WO2016172963A1 - P2p group discovery method, related device and p2p group - Google Patents

P2p group discovery method, related device and p2p group Download PDF

Info

Publication number
WO2016172963A1
WO2016172963A1 PCT/CN2015/078108 CN2015078108W WO2016172963A1 WO 2016172963 A1 WO2016172963 A1 WO 2016172963A1 CN 2015078108 W CN2015078108 W CN 2015078108W WO 2016172963 A1 WO2016172963 A1 WO 2016172963A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
client device
client
supported
whitelist
Prior art date
Application number
PCT/CN2015/078108
Other languages
French (fr)
Chinese (zh)
Inventor
庞高昆
方平
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201580035724.2A priority Critical patent/CN106664328B/en
Priority to PCT/CN2015/078108 priority patent/WO2016172963A1/en
Publication of WO2016172963A1 publication Critical patent/WO2016172963A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a P2P group discovery method, related device, and P2P group.
  • Wi-Fi Wireless Fidelity
  • Wi-Fi Wi-Fi
  • IEEE Institute of Electrical and Electronics Engineers
  • Wi-Fi can be used.
  • wearable devices can form a wifi group to connect people to the Internet more closely.
  • wearable devices involve more personal privacy, so the protection of personal privacy will be more challenged.
  • Wi-Fi devices typically identify themselves by an identifier, typically a Media Access Control (MAC) address, also known as a hardware address.
  • the MAC address is a globally unique address, that is, each Wi-Fi device recognizes each other through a globally unique MAC address when interacting with other Wi-Fi devices.
  • P2P Peer to Peer
  • WFA Wi-Fi Alliance
  • FIG. 1 is a flow chart of P2P group A (assumed to be a mobile phone) and P2P device B (assumed to be a glasses) to form a P2P group. As shown in Figure 1, the P2P group is organized as follows: step:
  • the P2P device A and the P2P device B perform GO negotiation, and determine, as the GO device, the device as the GO and the device as the client in the P2P device A and the P2P device B according to the negotiation result. It is assumed that the P2P device A is determined to be the GO device in the P2P group, and the P2P device B is determined to be the client device in the P2P group.
  • P2P device A and P2P device B perform an initial authentication interaction.
  • the P2P device A and the P2P device B exchange WPS configuration information.
  • S105, P2P device A and P2P device B perform a four-way handshake to establish a secure connection.
  • step S105 the P2P device A and the P2P device B complete the establishment of the P2P group. After the step S105, the P2P device A and the P2P device B can exchange the service data between the two.
  • the P2P device C sends a P2P probe request to discover the P2P group.
  • the GO device (P2P device A) in the P2P group listens to the P2P probe request, and returns a P2P probe response to the P2P device C.
  • P2P device A and P2P device C exchange WPS configuration information.
  • S110, P2P device A and P2P device C perform a four-way handshake to establish a secure connection.
  • the P2P device A and the P2P device C can exchange the service data between the two.
  • the discovery process between the P2P devices defined by the specifications in the prior art is that the P2P device that has not joined the P2P group discovers the client device that has joined the P2P group and receives the client device.
  • the probe response message sent by the GO device of the P2P group is sent by the GO device of the P2P group.
  • the client device that has joined the P2P group associates with the GO device of the P2P group (for example, P2P device A).
  • P2P devices B can be associated with the GO device by step S101 to step S105.
  • the client information is notified to the GO device (for example, the P2P device A and the P2P device B can send their own information to the other party through steps S101 to S102).
  • the GO device sends a probe response to a P2P device that is not connected to the P2P group
  • the GO device will information about all client devices that have been associated with itself (for example, the MAC address, device type, and serial number of all client devices that have been associated with the GO device. Etc.) is sent to a P2P device that is not joined to the P2P group.
  • the GO device leaks information of all client devices that have been associated with itself to the P2P device that is not joined to the P2P group, causing information leakage of the client device, if the hacker obtains information of the client device.
  • the MAC address of the client device may use the information of the client device to track the user who uses the client device, etc., resulting in the privacy leakage of the user who uses the client device.
  • the GO device in order to protect the information of the client device from being leaked, the GO device sets a changed temporary MAC address for each client device that has been associated with itself, and then, when the GO device sends a probe to the P2P device that is not connected to the P2P group, In response, the GO device transmits information of all client devices that have been associated with itself, including: a fixed MAC address, a temporary MAC address, a device type, a serial number, and the like of all client devices that have been associated with the GO device to the P2P that is not joined. Group of P2P devices. It can be seen that the hacker can still obtain the fixed MAC address of the client device by using the scheme of setting the temporary MAC address for the client device. Therefore, the information of the client device cannot be guaranteed to be leaked.
  • the embodiment of the present invention provides a P2P group discovery method, a related device, and a P2P group, which are used to improve the security of device information of a client device in a P2P group.
  • a method for discovering a P2P group including:
  • the GO device obtains an information protection indication of the client device
  • the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
  • the device Determining, according to the obtained information protection indication of the client device, the GO device
  • the device sends the device information of the client device to the response message sent by the P2P device;
  • the GO device sends the response message to the P2P device.
  • the GO device obtains the information protection indication of the client device, specifically: the GO device receives the information before the GO device establishes a secure connection with the client device Information protection indication sent by the client device.
  • the GO device obtains the information protection indication of the client device, specifically, after the GO device establishes a secure connection with the client device, the GO device receives the An encrypted information protection indication sent by the client device.
  • the information protection indication carries the information protection identifier information, where The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device; and according to the obtained information protection indication of the client device, determine whether the device is in the The device information of the client device is carried in the response message sent by the P2P device, and specifically includes: the information protection identifier information carried in the information protection indication of the client device indicates that the GO device allows the device information of the client device.
  • the GO device determines that the device information of the client device is carried in the response message sent to the P2P device; and the information protection identifier information carried in the information protection indication of the client device is characterized.
  • the GO device determines The device
  • the information protection indication carries the information protection identifier information;
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to a whitelist; when the information protection identifier information represents the When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes the Client The identification information of the P2P device supported by the device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is the client The device allows the P2P device to obtain the device information of the client.
  • determining, according to the obtained information protection indication of the client device, whether to carry the response message sent to the P2P device includes: a whitelist is carried in the information protection indication of the client device, and the whitelist includes the information of the P2P device, or the information protection indication of the client device is carried.
  • the GO device determines that the client is carried in the response message sent to the P2P device.
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist.
  • the information protection indication of the client device carries a whitelist, and the information of the P2P device is not included in the whitelist.
  • the GO device determines that the The device information of the client device is not carried in the response message sent by the P2P device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to represent whether the client device is
  • the GO device is configured to send the device information of the client device to the P2P device supported by the client device according to the whitelist; and the information protection identifier information carried in the information protection indication of the client device indicates that the GO device is allowed to follow the
  • the method further includes: after the GO device establishes a secure connection with the client device, receiving the sending by the client device An encrypted whitelist, wherein the whitelist includes identification information of a P2P device supported by the client device, or information identifying identifier information of a P2P device supported by the client device, Or the P2P device supported by the client device; the P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  • the device information of the client device includes: receiving the whitelist sent by the client device, and the whitelist includes the information of the P2P device, or receiving a whitelist sent by the client device, and When the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines that the device information of the client device is carried in the response message sent to the P2P device;
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or when receiving the a whitelist sent by the client device, where the information of the P2P device is not included in the whitelist, or when the client device is received When the whitelist is sent, and the P2P device does not meet the
  • the GO device obtains the information protection indication of the client device, specifically: after the GO device establishes a secure connection with the client device, Receiving, by the corresponding interface, an information protection indication for the client device, where the information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not added to the P2P group; or The information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; when the information protection indication is used to indicate that the GO device is allowed to follow the white When the list sends the device information of the client device to the P2P device supported by the client device, the information protection indication further includes a whitelist set for the client device; the whitelist includes the P2P supported by the client device.
  • the P2P device supported by the client device is a P2P device that allows the client device to obtain device information of the client.
  • a method for discovering a P2P group including:
  • the client device determines whether the GO device is required to protect the device information of the client device
  • the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect device information of the client device, so that the GO device according to the
  • the information protection indication of the client device is used to determine whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
  • the client device sends the information protection indication of the client device to the GO device, which specifically includes:
  • the client device Before the GO device establishes a secure connection with the client device, the client device sends an information protection indication of the client device to the GO device.
  • the client device sends the information protection indication of the client device to the GO device, specifically: establishing a secure connection between the client device and the GO device Thereafter, the client device sends an encrypted information protection indication to the GO device.
  • the information protection indication carries the information protection identifier information
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device.
  • the information protection indication carries the information protection identifier information;
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation Said client device allows said GO set
  • the information protection indication further carries the whitelist; the whitelist includes the P2P supported by the client device.
  • the identification information of the device or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device allows the client device to obtain the location A P2P device that describes the device information of the client.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to identify whether the client device is Allowing the GO device to send device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection identifier information indicates that the client device allows the GO device to follow the white list
  • the method further includes: establishing a secure connection between the GO device and the client device.
  • the client device sends an encrypted whitelist to the GO device, where the whitelist includes the identification information of the P2P device supported by the client device or the identifier information of the P2P device supported by the client device.
  • a GO device in a P2P group including:
  • Obtaining a module configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client device Equipment information is protected;
  • a receiving module configured to receive a P2P query message sent by the P2P device
  • a determining module configured to determine, according to the information protection indication of the client device obtained by the obtaining module, whether the device information of the client device is carried in a response message sent to the P2P device;
  • a sending module configured to send the response message to the P2P device.
  • the obtaining module is configured to receive an information protection indication sent by the client device before the GO device establishes a secure connection with the client device.
  • the obtaining module is configured to: after the GO device establishes a secure connection with the client device, receive an encrypted information protection indication sent by the client device .
  • the information protection indication carries the information protection identifier information
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device.
  • the determining module is specifically configured to protect information of the client device.
  • the information protection identifier information carried in the indication is configured to allow the GO device to send the device information of the client device to the P2P device, and determine that the device information of the client device is carried in the response message sent to the P2P device.
  • the information protection indication carries the information protection identifier information;
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes The information of the P2P device supported by the client device, or the information indicating the identity information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is The client device allows a P2P device to obtain device information of the client.
  • the determining module is configured to: when the information protection indication of the client device carries a white list, and the white The information includes the information of the P2P device, or the information protection indication of the client device carries a whitelist, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist. Determining that the device information of the client device is carried in the response message sent to the P2P device; and the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to follow the white list.
  • the device information of the client device is sent to the P2P device supported by the client device, or the information protection indication of the client device carries a whitelist, and the whitelist does not include the information of the P2P device, or the The information protection indication of the client device carries a whitelist, and the P2P device does not meet the P2 supported by the client device included in the whitelist.
  • the feature information of the P device is determined, it is determined that the device information of the client device is not carried in the response message sent to the P2P device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to represent whether the client device is Allowing the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; the receiving module is further configured to: when the information protection indication of the client device is carried in the information protection indication The information representation allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, and after the GO device establishes a secure connection with the client device, the client device is received.
  • the encrypted whitelist is sent; wherein the whitelist includes the identification information of the P2P device supported by the client device, or the information that identifies the identity information of the P2P device supported by the client device, or the P2P supported by the client device. Feature information of the device; the P2P device supported by the client device allows the client device to obtain its own device. Interest rates P2P device.
  • the determining module is specifically configured to: when the receiving module receives a whitelist sent by the client device, The whitelist includes the information of the P2P device, or when the receiving module receives the whitelist sent by the client device, and the P2P device meets the information included in the whitelist.
  • the device information of the client device is carried in the response message sent to the P2P device; and the information protection identifier information carried in the information protection indication of the client device is not represented.
  • the information is received, it is determined that the device information of the client device is not carried in the response message sent to the P2P device.
  • the obtaining module is specifically configured to: after the GO device establishes a secure connection with the client device, receive, by using a corresponding interface of the GO device interface, An information protection indication of the client device, where the information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not added to the P2P group; or the information protection indication is used for Determining whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; when the information protection indication is used to indicate that the GO device is allowed to whitelist the client When the device information of the device is sent to the P2P device supported by the client device, the information protection indication further includes a whitelist set for the client device, and the whitelist includes the identification information of the P2P device supported by the client device.
  • the P2P device supported by the client device is a P2P device that allows the client device to obtain device information of the client.
  • the fourth aspect provides a client device in a P2P group, including:
  • a determining module configured to determine whether a GO device is required to protect device information of the client device
  • a sending module configured to send, to the GO device, an information protection indication of the client device determined by the determining module
  • the client device and the GO device belong to the P2P group, and the information protection The indication is used to indicate whether the GO device is required to protect device information of the client device, so that the GO device determines, according to the information protection indication of the client device, whether to carry the message in a response message sent to the P2P device.
  • the sending module is specifically configured to send information about the client device to the GO device before the GO device establishes a secure connection with the client device. Protection instructions.
  • the sending module is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
  • the information protection indication carries the information protection identifier information
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device.
  • the information protection indication carries the information protection identifier information;
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes The information of the P2P device supported by the client device, or the information indicating the identity information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is The client device allows a P2P device to obtain device information of the client.
  • the information protection indication carries information protection identifier information, where the information protection identifier information is used Determining whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to a whitelist; the sending module is further configured to: when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, after transmitting the information protection indication of the client device to the GO device, After the GO device establishes a secure connection with the client device, the encrypted whitelist is sent to the GO device, where the whitelist includes the identifier information of the P2P device supported by the client device, or the client device is supported.
  • the information of the identification information of the P2P device or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is a P2P device
  • a P2P group comprising: a GO device as described in the third aspect or in combination with any possible implementation of the third aspect, and at least one as in the fourth aspect or in combination with the fourth aspect A possible implementation of the client device described.
  • a GO device in a P2P group including:
  • a processor configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client device Device information for protection;
  • a receiver configured to receive a P2P query message sent by the P2P device
  • the processor is further configured to determine, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in a response message sent to the P2P device;
  • a transmitter configured to send the response message to the P2P device.
  • the processor before the establishing a secure connection between the GO device and the client device, receiving information protection sent by the client device by using the receiver Instructions.
  • the processor after the GO device establishes a secure connection with the client device, receives, by the receiver, an encrypted sent by the client device.
  • Information protection instructions after the GO device establishes a secure connection with the client device, receives, by the receiver, an encrypted sent by the client device.
  • the information protection indication carries the information protection identifier information
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device.
  • the processor is specifically configured to protect information of the client device.
  • the information protection identifier information carried in the indication is configured to allow the GO device to send the device information of the client device to the P2P device, and determine that the device information of the client device is carried in the response message sent to the P2P device.
  • the information protection indication carries information protection identifier information;
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes The information of the P2P device supported by the client device, or the information indicating the identity information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is The client device allows a P2P device to obtain device information of the client.
  • the processor is configured to: when the information protection indication of the client device carries a white list, and the white The information includes the information of the P2P device, or the information protection indication of the client device carries a whitelist, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist.
  • the protection identifier information representation does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or the information protection indication of the client device carries a whitelist, and the The whitelist does not include the information of the P2P device, or the information protection indication of the client device carries a whitelist, and the P2P device does not meet the P2P device supported by the client device included in the whitelist.
  • the feature information is obtained, it is determined that the device information of the client device is not carried in the response message sent to the P2P device.
  • the information protection indication carries information protection identifier information, where the information protection identifier information is used to represent whether the client device is Allowing the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; the receiver is further configured to use the information protection identifier carried in the information protection indication of the client device
  • the information representation allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, and after the GO device establishes a secure connection with the client device, the client device is received.
  • the encrypted whitelist is sent; wherein the whitelist includes the identification information of the P2P device supported by the client device, or the information that identifies the identity information of the P2P device supported by the client device, or the P2P supported by the client device. Feature information of the device; the P2P device supported by the client device allows the client device to obtain its own device letter. The P2P device.
  • the processor is configured to: when the receiver receives a whitelist sent by the client device, The whitelist includes the information of the P2P device, or when the receiver receives the whitelist sent by the client device, and the P2P device meets the P2P device supported by the client device included in the whitelist.
  • the list sends the device information of the client device to the P2P device supported by the client device, or when the receiver receives the whitelist sent by the client device, and the whitelist does not include the P2P device.
  • the feature information of the P2P device supported by the client device is included in the whitelist, it is determined that the device information of the client device is not carried in the response message sent to the P2P device.
  • the processor is specifically configured to: after the GO device establishes a secure connection with the client device, receive, by using a corresponding interface of the GO device interface, An information protection indication of the client device, where the information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not added to the P2P group; or the information protection indication is used for Determining whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; when the information protection indication is used to indicate that the GO device is allowed to whitelist the client When the device information of the device is sent to the P2P device supported by the client device, the information protection indication further includes a whitelist set for the client device, and the whitelist includes the identification information of the P2P device supported by the client device.
  • the P2P device supported by the client device is a P2P device that allows the client device to obtain device information of the client.
  • the seventh aspect provides a client device in a P2P group, including:
  • a processor configured to determine whether a GO device is required to protect device information of the client device
  • a transmitter configured to send, to the GO device, an information protection indication of the client device determined by the processor
  • the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect device information of the client device, so that the GO device according to the
  • the information protection indication of the client device is used to determine whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
  • the transmitter is configured to send information about the client device to the GO device before the GO device establishes a secure connection with the client device. Protection instructions.
  • the transmitter is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
  • the information protection indication carries the information protection identifier information
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device.
  • the information protection indication carries the information protection identifier information;
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes The information of the P2P device supported by the client device, or the information indicating the identity information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is The client device allows a P2P device to obtain device information of the client.
  • the information protection indication carries information protection identifier information, where the information protection identifier information is used to represent whether the client device is Allowing the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; the sender is further configured to: when the information protection identifier information indicates that the client device allows the When the GO device sends the device information of the client device to the P2P device supported by the client device according to the whitelist, after transmitting the information protection indication of the client device to the GO device, the GO device and the After the client device establishes the secure connection, the encrypted whitelist is sent to the GO device, where the whitelist includes the identifier information of the P2P device supported by the client device, or represents the client setting.
  • the P2P device supported by the P2P device and the P2P device supported by the client device; the P2P device supported by the client device is a P2P device that allows the client
  • the eighth aspect provides a P2P group, comprising: a GO device as described in the sixth aspect or in combination with any possible implementation manner of the sixth aspect, and at least one of the seventh aspect or the seventh aspect Possible implementation of the client device described.
  • the P2P group discovery method, related device, and P2P group provided by the embodiment of the present invention on the client device side, the client device determines whether the GO device needs to protect the device information of the client device, and sends the client device information to the GO device. a protection indication; on the GO device side, the GO device obtains an information protection indication of the client device; receives a P2P query request sent by the P2P device; and determines whether to carry the client in the response message sent to the P2P device according to the obtained information protection indication of the client device Device information of the device and send the response message to the P2P device.
  • the client device may determine, for itself, whether the GO device needs to protect the device information of the client device, and the client device determines whether the indication needs the GO device to the client.
  • the information protection indication of the protection of the device information of the device is sent to the GO device.
  • the GO device receives the P2P query message sent by the P2P device, the device information of all the client devices that have established the connection with the device is not sent to the P2P device. And transmitting, according to the obtained information protection indication of the client device, the client device that allows the device information to be sent to the P2P device, to send the device information of the client device to the P2P device, and not to send the device information to the P2P.
  • the client device of the device does not send the device information of the client device to the P2P device, which improves the security of the device information of the client device.
  • FIG. 1 is a flowchart of forming a P2P group by a P2P device A and a P2P device B according to the background art of the present invention
  • FIG. 2 is a schematic diagram of a P2P group discovery method applied to a GO device side according to an embodiment of the present invention. flow chart;
  • FIG. 3 is a flowchart of a method for discovering a P2P group applied to a client device side according to an embodiment of the present disclosure
  • FIG. 5 is a flowchart of a second method for discovering a P2P group according to Embodiment 1 of the present invention.
  • FIG. 6 is a flowchart of a method for discovering a P2P group according to Embodiment 2 of the present invention.
  • FIG. 7 is a flowchart of a method for discovering a P2P group applied to a GO device side and a client device side according to an embodiment of the present disclosure
  • FIG. 8 is a flowchart of a method for discovering a P2P group according to Embodiment 2 of the present invention.
  • FIG. 9 is a flowchart of a second method for discovering a P2P group according to Embodiment 2 of the present invention.
  • FIG. 10 is a flowchart of a method for discovering a P2P group according to Embodiment 1 of the present invention.
  • FIG. 11 is a flowchart of a method for discovering a P2P group applied to a GO device side and a client device side according to an embodiment of the present disclosure
  • FIG. 12 is a flowchart of a method for discovering a P2P group according to Embodiment 5 of the present invention.
  • FIG. 13 is a flowchart of a method for discovering a P2P group according to Embodiment 6 of the present invention.
  • FIG. 14 is a flowchart of a method for discovering a P2P group applied to a GO device side and a client device side according to an embodiment of the present disclosure
  • FIG. 16 is a schematic structural diagram of a GO device according to an embodiment of the present disclosure.
  • FIG. 17 is a schematic structural diagram of a client device according to an embodiment of the present disclosure.
  • FIG. 18 is a schematic structural diagram of a second GO device according to an embodiment of the present disclosure.
  • FIG. 19 is a schematic structural diagram of a second client device according to an embodiment of the present invention.
  • the embodiments of the present invention provide a P2P group discovery method, a related device, and a P2P group.
  • the preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only for explanation and explanation. The present invention is not intended to limit the invention. And without conflict In the case of the embodiments and the features in the embodiments, the features in the present application can be combined with each other.
  • An embodiment of the present invention provides a method for discovering a P2P group, which is applied to a GO device side, as shown in FIG. 2, and includes:
  • the GO device obtains an information protection indication of the client device.
  • the client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
  • the GO device receives the P2P query message sent by the P2P device.
  • the GO device determines, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in the response message sent to the P2P device.
  • the GO device sends a response message to the P2P device.
  • the embodiment of the present invention further provides a P2P group discovery method, which is applied to the client device side, as shown in FIG. 3, and includes:
  • the client device determines whether the GO device needs to protect the device information of the client device.
  • the client device sends an information protection indication of the client device to the GO device.
  • the client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device, so that the GO device determines whether it is sending to the P2P device according to the information protection indication of the client device.
  • the response message carries the device information of the client device, and the P2P device is a P2P device that has not joined the P2P group, for example, a P2P device that is ready to join the P2P group, or a device that is ready to join other P2P groups, or only Scan the device found in the P2P group.
  • the GO device is a device that is negotiated as a group leader in the P2P group
  • the client device is a device that is not a group leader in the P2P group
  • the P2P device is a device that is not added to the P2P group.
  • a P2P group discovery method is provided by the embodiment of the present invention.
  • the GO device does not send all the device information of all the client devices in the P2P group to the P2P device, but according to the client.
  • the information protection indication sent by the device determines a client device that can disclose its device information to the P2P device, and will be able to disclose its device information to the P2P device.
  • the device information of the client device is sent to the P2P device, which improves the security of the device information of the client device.
  • the client device may be a client device or multiple client devices. That is, when the client device is a plurality of client devices, the GO device may perform the foregoing S201 and S203 corresponding to each client device. The operations corresponding to the above S201 and S203 can also be performed for a plurality of client devices at a time.
  • a method for discovering a P2P group is provided, which is applied to a GO device side.
  • the GO device can receive an information protection indication sent by the client device before establishing a secure connection with the client device, and the information The protection indication carries the information protection identification information, or the information protection indication carries the information protection identification information and the white list.
  • a method for discovering a P2P group according to Embodiment 1 of the present invention specifically includes the following steps:
  • the GO device Before establishing a secure connection between the GO device and the client device, the GO device receives an information protection indication sent by the client device.
  • the client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
  • the discovery between the GO device and the client device may be completed.
  • the P2P group configuration process shown in Figure 1 is used.
  • the two P2P devices need to negotiate as the P2P device of the GO and the P2P device as the client. Therefore, the P2P as the client is negotiated.
  • the device may establish a secure connection before the GO negotiation with the P2P device as the GO, and at any time before establishing the secure connection, that is, at any time after step S102 and before step S105, the clipet device to the GO
  • the device sends an information protection indication, for example, after step S102 and before step S103, or after step S103 and before step S104, the client The device sends an information protection indication to the GO device; and for the client device that joins the P2P group after the P2P group is established, after the GO device sends the P2P response message for the P2P query message to the client device, and before establishing the secure connection,
  • the client device sends an information protection indication to the GO device, for example, after step S107 and before step S108, or after step S108 and at step S109.
  • the client device sent an information protection indication to the GO device.
  • the information protection indication may be carried by an existing message, or a new message may be created to carry the information protection indication.
  • the client device may be one or more.
  • this step is performed for each client device, and the GO device receives the client device before the GO device establishes a secure connection with the client device.
  • the GO device may also reply the confirmation message to the corresponding client device.
  • the P2P query message in this step may be used to perform P2P discovery, for example, may be a Probe Request message.
  • steps S401 to S402 when performing steps S401 to S402, steps S403 to S406 are performed:
  • step S403. Determine whether the information protection identifier information indicates that the GO device is allowed to send the device information of the client device to the P2P device; if yes, go to step S404, otherwise, go to step S405.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device, that is, the information protection identifier information is not added for all The P2P device of the P2P group, if the information protection identifier information representation allows the GO device to transmit the device information of the client device to the P2P device, the characterizing device is allowed to send the device information of the client device to all P2P devices that send the query request to the GO device.
  • the device that does not allow the GO device to hold the client device The information is sent to any P2P device that sent a query request to the GO device.
  • the information protection identifier information may be implemented in multiple implementation manners, for example, the information protection identifier may be implemented by using an information protection identifier, and the information protection identifier may be a bit bit or multiple bits, and the information protection identifier is The value indicates whether the corresponding client device allows the GO device to send the device information of the corresponding client device to the P2P device that is not joined to the P2P group.
  • the information protection indication may be carried by the existing message.
  • an association request (Association Request) message is an example of an association request (Association Request) message.
  • an indication bit may be added in the P2P capability field of the Association Request message as an information protection identifier to indicate whether the GO device is allowed to send its own device information. 1 is the use of 8 bits included in the P2P capability field. As shown in Table 1, the bold font in Table 1 is the 6th bit, which represents the information protection indication bit.
  • the indicator bit can be a bit bit, and the value of the bit bit can be used to characterize the device that allows the GO device to transmit its own device information or not allow the GO device to transmit its own device information.
  • the characterization is to allow the GO device to send the device information of the client device itself.
  • the characterization does not allow the GO device to send the device information of the client device itself; or, when When the value of the bit is 0, the device is configured to allow the GO device to send the device information of the client device.
  • the device does not allow the GO device to send the device information of the client device, which can be defined according to the actual situation. .
  • the GO device may send an association response (Association Response) message to acknowledge the received Association Request message.
  • association Response Association Response
  • the step may be performed: determining, for each client device, whether the information protection identifier information of the client device indicates that the GO device is allowed to send the device information of the client device to the P2P device. .
  • the GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Proceed to step S406.
  • the GO device determines that the response message sent to the P2P device carries the client device.
  • Device Information
  • the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
  • the GO device determines that the response message sent to the P2P device does not carry the client. Device information for the device.
  • steps S401 to S402 are performed, steps S4031 to S4071 are performed.
  • S4031 Determine whether the information protection identifier information is used to indicate that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; if yes, go to step S4041; otherwise, go to step S4061.
  • the information protection indication carries the information protection identifier information; the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist;
  • the information protection indication When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries a whitelist;
  • the whitelist contains the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device allows the client device to obtain the P2P device.
  • the client's device information for the P2P device is not limited to the Wi-Fi Protected Access (WPA) or the Wi-Fi Protected Access (WPA) device, or the Wi-Fi Protecte, etc.
  • the whitelist contains the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device allows the client device to obtain the P2P device.
  • the client's device information for the P2P device is not limited to the P2P device.
  • the whitelist may include information of the P2P device supported by the client device, that is, the information of the P2P device that the client device allows to acquire its own device information.
  • the whitelist can have different ways of storing information of the P2P device, for example, it can be directly supported.
  • the device identification information of the P2P device is stored (for example, the MAC address information of the P2P device);
  • the whitelist may also store information indicating the identification information of the P2P device supported by the client device. That is, if the storage space needs to be saved, the identification information of the P2P device may not be directly stored, but the identification information used to characterize the P2P device may be stored.
  • the information can be implemented in the form of a bloom filter.
  • Each client device generates a bloom filter bit table, and uses the bloom filter to identify the P2P device supported by the client device (for example, MAC address). After performing a hash operation, the value obtained by the hash operation is used to represent the location of the bit information of the P2P device stored in the blowfilter bit table, and the calculated value is mapped to the corresponding bit in the bloomfilter bit table.
  • the nth bit in the bloomfilter bit table is set to 1.
  • the GO device receives the bloom filter bit table sent by the client device that allows it to send the device information according to the whitelist, and the GO device interacts with the client device in advance to interact with the client device, so that the GO device receives the query sent by the P2P device.
  • the client device that has sent the whitelist is first determined, and the hashing bit table set for each device that has sent the whitelist is hashed to the identification information of the P2P device, and the identification information of the P2P device is obtained.
  • the position information in the bloomfilter bit table is compared with the position information of each bloomfilter bit table. If the location of the P2P device in the blood filter bit table is 1 after the hash information, the P2P device is the bloomfilter.
  • the P2P device supported by the client device corresponding to the bit table, the GO device may send the device information of the client device to the P2P device.
  • a bloom filter bit table may be set for all client devices, and different client devices adopt different hash algorithms. The specific implementation manner may be determined according to actual conditions, and is not enumerated here;
  • the whitelist may also store the feature information of the P2P device supported by the client device, that is, the client device may determine the common features of the P2P device supported by the client, and store the feature in the whitelist, when the P2P device has In this feature, the GO device is allowed to send its own device information to the P2P device.
  • the client device can determine that the supported P2P device has the following characteristics: the pre-preset bit of the MAC address of the P2P device and the front of its own MAC address.
  • the preset bits are the same because The pre-set of the MAC address of the device of the same manufacturer is usually the same.
  • the client device allows the GO device to connect the client device. Device information is sent to the P2P device.
  • the step may be implemented as: determining, for each client device, whether the information protection identifier information carried by the information protection indication sent by the client device is used to represent the client device to allow the GO device
  • the device information of the client device is sent to the P2P device supported by the client device according to the whitelist.
  • S4011 Determine whether the information of the P2P device is included in the whitelist, or whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist; if yes, go to step S4051; otherwise, go to step S4061.
  • the step may be implemented as follows: for each sent information protection indication, the client device carrying the whitelist is determined, and determining whether the whitelist of the client device includes the information of the P2P device Whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist.
  • the GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Go to step S4071.
  • the information protection indication of the client device carries the whitelist
  • the whitelist includes the information of the P2P device, or the information protection indication of the client device carries the whitelist, and the P2P device complies with the client included in the whitelist.
  • the GO device determines that the device information of the client device is carried in the response message sent to the P2P device.
  • the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or the information protection indication of the client device.
  • the whitelist is carried in the whitelist, and the whitelist does not include the information of the P2P device, or the information protection indication of the client device carries the whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist.
  • the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
  • S4071 Send a response message to the P2P device.
  • a method for discovering a P2P group is provided, which is applied to the client device side. As shown in FIG. 6, the method includes the following steps:
  • the client device determines whether the GO device is required to protect the device information of the client device.
  • the client device Before the GO device establishes a secure connection with the client device, the client device sends an information protection indication of the client device to the GO device.
  • the client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
  • the step may be specifically implemented after the GO negotiation between the client device and the GO device, and before the GO device establishes a secure connection with the client device, The GO device sends an information protection indication of the client device.
  • the step may be specifically implemented as: receiving, by the client device, the P2P response sent by the GO device for the P2P query message. After the message, and before the GO device establishes a secure connection with the client device, the information protection indication of the client device is sent to the GO device.
  • the information protection indication may carry the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device.
  • the information protection indication may be carried with the information protection identifier information; the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist;
  • the information protection indication When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries a whitelist;
  • the whitelist contains the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device allows the client to obtain the client. Device information for P2P devices.
  • FIG. 7 is a method for discovering a P2P group according to an embodiment of the present invention, which is applied to a GO device side and a client device side. As shown in FIG. 7, the method includes the following steps:
  • the interaction between the probe request message and the probe response message is performed between the first P2P device and the second P2P device.
  • the first P2P device and the second P2P device perform GO device negotiation, and the negotiation result is that the second P2P device is a GO device.
  • the second P2P device is a GO device
  • the second P2P device is equivalent to the GO device in Embodiment 1 and Embodiment 2
  • the first P2P device is equivalent to Embodiment 1 And the client device in Embodiment 2.
  • the first P2P device and the second P2P device perform an initial authentication interaction.
  • the first P2P device sends an information protection indication Association Request to the second P2P device, and the information protection indication carries the information protection identifier information, where the information protection identifier information indicates that the first P2P device allows the second P2P device to be the first P2P device.
  • Device information is sent to P2P devices that are not connected to the P2P group.
  • the second P2P device sends a confirmation response Association Response to the first P2P device.
  • the first P2P device interacts with the second P2P device to configure WPS configuration information.
  • the first P2P device performs a four-way handshake with the second P2P device to establish a secure channel.
  • the second P2P device receives the query message sent by the third P2P device.
  • the second P2P device sends a response message to the third P2P device, and carries the device information of the first P2P device in the response message.
  • the third P2P device sends an information protection indication Association to the second P2P device.
  • the information protection indication carries the information protection indication information, and the information protection indication information indicates that the third P2P device allows the second P2P device to send the device information of the third P2P device to the P2P device that is not connected to the P2P group according to the white list. .
  • the second P2P device sends a confirmation response Association Response to the third P2P device.
  • the second P2P device receives the query message sent by the fourth P2P device.
  • the second P2P device sends a response message to the fourth P2P device, and determines that the fourth P2P device is not the P2P device supported by the third P2P device according to the whitelist of the third P2P device, and only carries the first in the probe response. Device information of the P2P device.
  • the fourth P2P device sends an information protection indication Association Request to the second P2P device, and the information protection indication carries an information protection indication bit and a white list.
  • the value of the information protection indication bit indicates that the fourth P2P device allows the second P2P device to follow.
  • the whitelist sends the device information of the fourth P2P device to the P2P device that is connected to the P2P group.
  • the second P2P device sends a confirmation response Association Response to the fourth P2P device.
  • steps S708 to S715 and the execution of steps S705 to S707 are not strictly sequential.
  • a method for discovering a P2P group is provided, which is applied to a GO device side.
  • the GO device receives an encrypted information protection indication sent by the client device after establishing a secure connection with the client device, and
  • the information protection indication carries information protection identification information, or the information protection indication carries information protection identification information and a white list.
  • a method for discovering a P2P group according to Embodiment 3 of the present invention specifically includes the following steps:
  • the handshake between the GO device and the client device may be completed after four handshakes.
  • the P2P group setup process shown in Figure 1 Take the P2P group setup process shown in Figure 1 as an example.
  • the P2P group the P2P as the client in the two P2P devices.
  • the client device may send an information protection indication to the GO device after the step S105.
  • the client device may after the step S110.
  • the GO device sends an information protection indication.
  • the information protection indication may be encrypted according to the secure connection established by the GO device and the client device.
  • the information protection indication may be carried by an existing message, or a new message may be created for carrying.
  • the information protection indication can be carried by an existing Action message, a management message, or the like.
  • the data carried after the message header can be encrypted according to the established secure connection.
  • steps S804 to S807 are performed:
  • step S804. Determine whether the information protection identifier information indicates that the GO device is allowed to send the device information of the client device to the P2P device; if yes, go to step S805; otherwise, go to step S806.
  • the step may be implemented as: determining, for each client device, whether the information protection identifier information carried by the information protection indication sent by the client device is used to represent the client device to allow the GO device
  • the device information of the client device is sent to the P2P device supported by the client device according to the whitelist.
  • the GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Proceed to step S807.
  • the GO device determines that the response message sent to the P2P device carries the client device.
  • Device Information
  • the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
  • the information protection identifier information carried in the information protection indication of the client device is characterized
  • the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
  • steps S801 to S803 are performed, steps S8041 to S8081 are performed.
  • S8041 Determine whether the information protection identifier information is used to indicate that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; if yes, go to step S8051; otherwise, go to step S8071.
  • the information protection indication carries the information protection identifier information; the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist;
  • the information protection indication When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries a whitelist;
  • the whitelist contains the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device allows the client device to obtain the P2P device.
  • the client's device information for the P2P device is not limited to the Wi-Fi Protected Access (WPA) or the Wi-Fi Protected Access (WPA) device, or the Wi-Fi Protecte, etc.
  • the whitelist contains the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device allows the client device to obtain the P2P device.
  • the client's device information for the P2P device is not limited to the P2P device.
  • the step may be implemented as: determining, for each client device, whether the information protection identifier information carried by the information protection indication sent by the client device is used to represent the client device to allow the GO device
  • the device information of the client device is sent to the P2P device supported by the client device according to the whitelist.
  • S8051 Determine whether the information of the P2P device is included in the whitelist, or whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist; if yes, go to step S8061; otherwise, go to step S8071.
  • the step may be implemented as follows: for each sent information protection indication, the client device carrying the whitelist is determined, and the white of the client device is determined. Whether the information of the P2P device is included in the list, or whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist.
  • the GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Go to step S8081.
  • the information protection indication of the client device carries the whitelist
  • the whitelist includes the information of the P2P device, or the information protection indication of the client device carries the whitelist, and the P2P device complies with the client included in the whitelist.
  • the GO device determines that the device information of the client device is carried in the response message sent to the P2P device.
  • the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or the information protection indication of the client device.
  • the whitelist is carried in the whitelist, and the whitelist does not include the information of the P2P device, or the information protection indication of the client device carries the whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist.
  • the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
  • S8081 Send a response message to the P2P device.
  • Embodiment 4 of the present invention a method for discovering a P2P group is provided, which is applied to the client device side, as shown in FIG. 10, and specifically includes the following steps:
  • the client device determines whether the GO device is required to protect the device information of the client device.
  • the client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
  • FIG. 11 is a P2P discovery method according to an embodiment of the present invention, which is applied to a GO device side and a client device side, as shown in FIG.
  • S1101 Perform interaction between the probe request message and the probe response message between the first P2P device and the second P2P device.
  • the first P2P device and the second P2P device perform GO device negotiation, and the negotiation result is that the second P2P device is a GO device.
  • the second P2P device is a GO device
  • the second P2P device is equivalent to the GO device in Embodiment 3 and Embodiment 4
  • the first P2P device is equivalent to Embodiment 3 And the client device in Embodiment 4.
  • S1103 The first P2P device and the second P2P device perform an initial authentication interaction.
  • S1104 The first P2P device interacts with the second P2P device to configure WPS configuration information.
  • S1105 The first P2P device performs a four-way handshake with the second P2P device to establish a secure channel.
  • the first P2P device sends an encrypted information protection indication to the second P2P device, where the information protection indication carries an information protection identifier, where the value of the information protection identifier indicates that the first P2P device does not allow the second P2P device to be the first
  • the device information of the P2P device is sent to the P2P device that is not connected to the P2P group.
  • the second P2P device sends an acknowledgement response to the first P2P device.
  • S1108 The second P2P device receives the query message sent by the third P2P device.
  • the second P2P device sends a response message to the third P2P device, and does not carry any device information of the P2P device in the probe response.
  • the third P2P device and the second P2P device perform an initial authentication interaction.
  • the S1111, the third P2P device and the second P2P device exchange WPS configuration information.
  • the third P2P device performs a four-way handshake with the second P2P device to establish a secure channel.
  • the third P2P device sends an encrypted information protection indication to the second P2P device, where the information protection indication carries the information protection indication bit and the white list, and the value of the information protection indication bit indicates that the third P2P device allows the second P2P device to follow
  • the whitelist sends the device information of the third P2P device to the P2P device that is connected to the P2P group.
  • S1114 The second P2P device sends an acknowledgement response to the third P2P device.
  • a method for discovering a P2P group is provided, which is applied to a GO device side.
  • the GO device receives an information protection indication sent by the client device after establishing a preliminary connection with the client device, and the information protection The indication carries an information protection identifier and receives an encrypted whitelist after establishing a secure connection with the client device.
  • a method for discovering a P2P group according to Embodiment 5 of the present invention specifically includes the following steps:
  • the GO device Before the GO device establishes a secure connection with the client device, the GO device receives an information protection indication sent by the client device.
  • the information protection indicator carries the information protection identifier information.
  • the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist.
  • S1202 Receive a P2P query message sent by the P2P device.
  • step S1203 Determine whether the information protection identifier information carried in the information protection indication of the client device indicates that the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to the whitelist; if yes, go to step S1204, otherwise, go to step S1207. .
  • the whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device is allowed by the client device.
  • the GO device when the information protection identifier information carried in the information protection indication of the client device indicates that the GO device sends the device information of the client device to the P2P device supported by the client device according to the white list, the GO device establishes a secure connection with the client device. After that, the encrypted whitelist sent by the client device is received.
  • S1205 Determine whether the information of the P2P device is included in the whitelist, or whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist; if yes, go to step S1206; otherwise, go to step S1207.
  • step S1206 The GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Proceed to step S1208.
  • the whitelist when receiving the whitelist sent by the client device, the whitelist includes the information of the P2P device, or receives the whitelist sent by the client device, and the P2P device complies with the client device supported by the whitelist.
  • the GO device determines that the device information of the client device is carried in the response message sent to the P2P device.
  • the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or send the client device to send If the whitelist does not include the information of the P2P device or the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines The response message sent to the P2P device does not carry the device information of the client device.
  • S1208 Send a response message to the P2P device.
  • a method for discovering a P2P group is provided, which is applied to the client device side, as shown in FIG.
  • the client device determines whether the GO device needs to protect the device information of the client device.
  • S1302 Send an information protection indication of the client device to the GO device before establishing a secure connection between the GO device and the client device.
  • the step may be specifically implemented after the GO negotiation between the client device and the GO device, and before the GO device establishes a secure connection with the client device. And sending the information protection indication of the client device to the GO device; when the client device is added to the client device of the P2P group after the P2P group is established, the step may be specifically implemented: after the client device receives the P2P probe response sent by the GO device, And before the GO device establishes a secure connection with the client device, sending an information protection indication of the client device to the GO device.
  • the information protection indication carries the information protection identifier information; the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the corresponding P2P device according to the whitelist;
  • step S1303 Determine whether the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; if yes, go to step S1304; otherwise, the process ends.
  • the whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device is allowed by the client device.
  • FIG. 14 is a method for discovering a P2P group according to an embodiment of the present invention, which is applied to a GO device side and a client device side, as shown in FIG. Next steps:
  • S1401 Perform interaction between the probe request message and the probe response message between the first P2P device and the second P2P device.
  • the first P2P device and the second P2P device perform GO device negotiation, and the negotiation result is that the second P2P device is a GO device.
  • the second P2P device is a GO device, and in this embodiment, the second P2P device is equivalent to the GO device in Embodiment 5 and Embodiment 6, and the first P2P device is equivalent to Embodiment 5 And the client device in Embodiment 6.
  • the first P2P device sends an information protection indication Association Request to the second P2P device, and the information protection indication carries the information protection identifier information, where the information protection identifier information indicates that the first P2P device allows the second P2P device to be the first according to the whitelist.
  • the device information of the P2P device is sent to the P2P device that is not connected to the P2P group.
  • S1404 The second P2P device sends a confirmation response Association Response to the first P2P device.
  • S1405 The first P2P device and the second P2P device perform an initial authentication interaction.
  • S1406 The first P2P device interacts with the second P2P device to configure WPS configuration information.
  • the first P2P device performs a four-way handshake with the second P2P device to establish a secure channel.
  • S1408 The second P2P device receives the whitelist sent by the first P2P device.
  • S1409 The second P2P device receives the query message sent by the third P2P device.
  • the second P2P device sends a response message to the third P2P device, and determines that the third P2P device is not the P2P device supported by the first P2P device according to the whitelist of the first P2P device, and does not carry any P2P in the probe response.
  • Device information for the device is not the P2P device supported by the first P2P device according to the whitelist of the first P2P device, and does not carry any P2P in the probe response.
  • the third P2P device sends an information protection indication Association Request to the second P2P device, and the information protection indication carries an information protection indication bit, and the value of the information protection indication bit indicates that the third P2P device allows the second P2P device to follow the white list.
  • Device information of the third P2P device It is sent to the P2P device that is connected to the P2P group.
  • S1412 The second P2P device sends a confirmation response Association Response to the third P2P device.
  • the third P2P device and the second P2P device perform an initial authentication interaction.
  • the third P2P device interacts with the second P2P device to configure WPS configuration information.
  • the S1415 and the third P2P device perform a four-way handshake with the second P2P device to establish a secure channel.
  • S1416 The third P2P device sends a whitelist to the second P2P device.
  • a method for discovering a P2P group is provided, which is applied to a GO device side.
  • the GO device receives the client device through the corresponding interface of the GO device interface.
  • Information protection instructions After the GO device establishes a secure connection with the client device, the GO device receives the client device through the corresponding interface of the GO device interface.
  • a method for discovering a P2P group according to Embodiment 7 of the present invention, as shown in FIG. 15, specifically includes the following steps:
  • S1501 After establishing a secure connection between the GO device and the client device, receiving, by the corresponding interface of the GO device interface, an information protection indication for the client device;
  • the information protection indication is used to indicate whether the GO device is allowed to send the device information of the corresponding client device to the P2P device that is not added to the P2P group; or
  • the information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to the whitelist; and the information protection indication is used to indicate that the GO device is allowed to send the device information of the client device to the client according to the whitelist.
  • the information protection indication also includes a whitelist set for the client device.
  • the whitelist includes the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device allows the client device to obtain the P2P device. P2P device with its own device information.
  • the user cannot directly set the information of the P2P device supported by the client device through the user interface (UI, User Interface) interface, and the GO device usually processes the information.
  • UI User Interface
  • a more powerful P2P device usually has a UI interface, and the user can use the interface on the GO to set a protection indication for the client that has established a secure connection with the GO device.
  • the user can operate through an interface provided by the corresponding application on the GO interface, and set an information protection indication for the client device.
  • a plurality of setting modes may be included: whether to allow the information of the client device to be sent to the P2P device that is not connected to the P2P group, or whether the information of the client device is allowed to be sent to the P2P that is not connected to the P2P group according to the whitelist.
  • the device if allowed, also needs to set a corresponding whitelist for the client device.
  • S1502 Receive a P2P query message sent by the P2P device.
  • step S1503 Determine, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in the response message sent to the P2P device, and if yes, go to step S1504; otherwise, go to step S1505.
  • S1504 Send a response message carrying the device information of the client device to the P2P device. This process ends.
  • S1505 Send a response message to the P2P device that does not carry any device information of the client device. This process ends.
  • the embodiment of the present invention further provides a related device and a P2P group. Since the principle of the problem solved by the related device and the P2P group is similar to the method for discovering the P2P group, the implementation of the related device and the P2P group can be referred to. The implementation of the foregoing method will not be repeated here.
  • the GO device in the P2P group provided by the embodiment of the present invention, as shown in FIG. 16, includes the following modules:
  • the obtaining module 1601 is configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client Device information of the device is protected;
  • the receiving module 1602 is configured to receive a P2P query message sent by the P2P device.
  • a determining module 1603 configured to determine, according to the information protection indication of the client device obtained by the obtaining module 1601, whether the device information of the client device is carried in a response message sent to the P2P device;
  • the sending module 1604 is configured to send the response message to the P2P device.
  • the obtaining module 1601 is specifically configured to receive an information protection indication sent by the client device before the GO device establishes a secure connection with the client device.
  • the obtaining module 1601 is specifically configured to: after the GO device establishes a secure connection with the client device, receive an encrypted information protection indication sent by the client device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device;
  • the determining module 1603 is configured to: when the information protection identifier information carried in the information protection indication of the client device is configured to allow the GO device to send the device information of the client device to the P2P device, determine The device sends the device information of the client device to the response message sent by the P2P device;
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, determine a response message sent to the P2P device.
  • the device information of the client device is not carried in the device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist.
  • the information protection indication further carries White list
  • the whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device Supported P2P devices are allowed for the client device A P2P device that obtains device information of the client.
  • the determining module 1603 is configured to: when the information protection indication of the client device carries a whitelist, and the whitelist includes the information of the P2P device, or
  • the information protection indication of the client device carries a whitelist, and the P2P device determines the response sent to the P2P device when the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist.
  • the message carrying the device information of the client device is included in the message;
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
  • the information protection indication of the client device carries a whitelist, and the whitelist does not include the information of the P2P device, or
  • the P2P device When the information protection indication of the client device carries a whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device sends the information to the P2P device.
  • the device information of the client device is not carried in the response message.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist.
  • the receiving module 1602 is further configured to: when the information protection indication information carried in the information protection indication of the client device is used to indicate that the GO device is configured to send the device information of the client device to the client device according to a white list. Receiving, by the P2P device, an encrypted white list sent by the client device after the GO device establishes a secure connection with the client device;
  • the whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  • the determining module 1603 is specifically configured to: when receiving the whitelist sent by the client device, the whitelist includes the information of the P2P device, or
  • Receiving the whitelist sent by the client device, and the P2P device is configured to carry the response message sent by the P2P device when the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist.
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
  • the P2P device After receiving the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the response message is sent to the P2P device.
  • the device information of the client device is not carried.
  • the obtaining module 1601 is configured to: after the GO device establishes a secure connection with the client device, receive an information protection indication for the client device by using a corresponding interface of the GO device interface;
  • the information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not joined to the P2P group; or
  • the information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection indication is used to indicate that the GO device is allowed to be When the device information of the client device is sent to the P2P device supported by the client device according to the whitelist, the information protection indication further includes a whitelist set for the client device;
  • the whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device
  • the supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  • the client device in the P2P group provided by the embodiment of the present invention, as shown in FIG. 17, includes the following modules:
  • a determining module 1701 configured to determine whether a GO device is required to protect device information of the client device
  • the sending module 1702 is configured to send, to the GO device, an information protection indication of the client device determined by the determining module 1701;
  • the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect device information of the client device, so that the GO device according to the
  • the information protection indication of the client device is used to determine whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
  • the sending module 1702 is specifically configured to send an information protection indication of the client device to the GO device before the GO device establishes a secure connection with the client device.
  • the sending module 1702 is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist.
  • the information protection indication further carries White list
  • the whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device
  • the supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  • the information protection indication carries information protection identification information;
  • the protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to a whitelist;
  • the sending module 1702 is further configured to: when the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to a white list, After transmitting the information protection indication of the client device to the GO device, after the GO device establishes a secure connection with the client device, sending an encrypted whitelist to the GO device;
  • the whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  • a P2P group provided by the embodiment of the present invention includes: a GO device as shown in FIG. 16 and at least one client device as shown in FIG. 17.
  • the embodiment of the present invention further provides a related device and a P2P group. Since the principle of the problem solved by the related device and the P2P group is similar to the method for discovering the P2P group, the implementation of the related device and the P2P group can be referred to. The implementation of the foregoing method will not be repeated here.
  • the embodiment of the present invention provides a GO device in a P2P group, as shown in FIG. 18, including a processor 1801 (which may be one or more, one of the embodiments of the present invention is taken as an example), and the receiver 1802 sends 1803, memory 1804, and bus system 1805, wherein:
  • the processor 1801 controls the operation of the GO device, and the processor 1801 may also be referred to as a CPU (Central Processing Unit).
  • the processor 1801 may be an integrated circuit chip with signal processing capabilities.
  • the processor 1801 may also be a general-purpose processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a Field-Programmable Gate Array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • Memory 1804 can include read only memory and random access memory and provides instructions and data to processor 1801. A portion of memory 1804 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the various components of the GO device are coupled together by a bus system 1805, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like.
  • the bus system may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus may be one or more physical lines, and when it is a plurality of physical lines, it may be divided into an address bus, a data bus, a control bus, and the like.
  • the processor 1801, the memory 1804, and the receiver 1802, the transmitter 1803 may also be directly connected through a communication line.
  • various buses are labeled as bus system 1805 in the figure.
  • Memory 1804 stores the following elements, executable modules or data structures, or subsets thereof, or their extended sets:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 1801 performs the following operations by calling an operation instruction stored in the memory 1804 (which can be stored in the operating system):
  • the processor 1801 is configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client Device information of the device is protected;
  • the receiver 1802 is configured to receive a P2P query message sent by the P2P device.
  • the processor 1801 is further configured to: determine, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in a response message sent to the P2P device;
  • the transmitter 1803 is configured to send the response message to the P2P device.
  • the processor 1801 receives, by the receiver 1802, an information protection indication sent by the client device, before the GO device establishes a secure connection with the client device.
  • the processor 1801 after the GO device establishes a secure connection with the client device, receives the encrypted letter sent by the client device by using the receiver 1802. Information protection instructions.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device;
  • the processor 1801 is configured to: when the information protection identifier information carried in the information protection indication of the client device is configured to allow the GO device to send the device information of the client device to the P2P device, determine The device sends the device information of the client device to the response message sent by the P2P device;
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, determine a response message sent to the P2P device.
  • the device information of the client device is not carried in the device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist.
  • the information protection indication further carries White list
  • the whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device
  • the supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  • the processor 1801 is specifically configured to: when the information protection indication of the client device carries a whitelist, and the whitelist includes the information of the P2P device, or
  • the information protection indication of the client device carries a whitelist, and the P2P device determines the response sent to the P2P device when the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist.
  • the message carrying the device information of the client device is included in the message;
  • the information protection identifier information carried in the information protection indication of the client device is not allowed to be characterized
  • the GO device sends the device information of the client device to the P2P device supported by the client device according to a whitelist, or
  • the information protection indication of the client device carries a whitelist, and the whitelist does not include the information of the P2P device, or
  • the P2P device When the information protection indication of the client device carries a whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device sends the information to the P2P device.
  • the device information of the client device is not carried in the response message.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist.
  • the receiver 1802 is further configured to: when the information protection indication information carried in the information protection indication of the client device is used to indicate that the GO device is configured to send the device information of the client device to the client device according to a white list. Receiving, by the P2P device, an encrypted white list sent by the client device after the GO device establishes a secure connection with the client device;
  • the whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device.
  • the P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  • the processor 1801 is specifically configured to: when the receiver 1802 receives the whitelist sent by the client device, and the whitelist includes the information of the P2P device, or
  • the receiver 1802 When the receiver 1802 receives the whitelist sent by the client device, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device is in the P2P device
  • the sent response message carries the device information of the client device.
  • the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
  • the receiver 1802 When the receiver 1802 receives the whitelist sent by the client device, and the whitelist Does not include information about the P2P device, or
  • the receiver 1802 When the receiver 1802 receives the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P is in the P2P The device information sent by the device does not carry the device information of the client device.
  • the processor 1801 is configured to: after the GO device establishes a secure connection with the client device, receive an information protection indication for the client device by using a corresponding interface of the GO device interface;
  • the information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not joined to the P2P group; or
  • the information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection indication is used to indicate that the GO device is allowed to be When the device information of the client device is sent to the P2P device supported by the client device according to the whitelist, the information protection indication further includes a whitelist set for the client device;
  • the whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device
  • the supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  • the embodiment of the present invention provides a client device in a P2P group, as shown in FIG. 19, including a processor 1901 (which may be one or more, one of the embodiments of the present invention is taken as an example), a transmitter 1902, and a memory. 1903 and a bus system 1904, wherein:
  • the processor 1901 controls the operation of the GO device, and the processor 1901 may also be referred to as a CPU (Central Processing Unit).
  • the processor 1901 may be an integrated circuit chip with signal processing capabilities.
  • the processor 1901 may also be a general-purpose processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a Field-Programmable Gate Array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA Field-Programmable Gate Array
  • Programmable logic devices discrete gates or transistor logic devices, discrete hardware components.
  • General office The processor can be a microprocessor or the processor can be any conventional processor or the like.
  • the memory 1903 can include read only memory and random access memory and provides instructions and data to the processor 1901.
  • a portion of the memory 1903 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the various components of the GO device are coupled together by a bus system 1904, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like.
  • the bus system may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus may be one or more physical lines, and when it is a plurality of physical lines, it may be divided into an address bus, a data bus, a control bus, and the like.
  • the processor 1901, the memory 1903, and the transmitter 1902 may also be directly connected through a communication line.
  • various buses are labeled as bus system 1904 in the figure.
  • the memory 1903 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the processor 1901 performs the following operations by calling an operation instruction stored in the memory 1903 (which can be stored in the operating system):
  • the processor 1901 is configured to determine whether the GO device is required to protect device information of the client device.
  • a transmitter 1902 configured to send, to the GO device, an information protection indication of the client device determined by the processor 1901;
  • the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect device information of the client device, so that the GO device according to the
  • the information protection indication of the client device is used to determine whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
  • the transmitter 1902 is specifically configured to send an information protection indication of the client device to the GO device before the GO device establishes a secure connection with the client device.
  • the transmitter 1902 is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist.
  • the information protection indication further carries White list
  • the whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device
  • the supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  • the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist.
  • the transmitter 1902 is further configured to: when the information protection identifier information indicates that the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a white list, After transmitting the information protection indication of the client device to the GO device, after the GO device establishes a secure connection with the client device, sending an encrypted whitelist to the GO device;
  • the whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the client device.
  • the feature information of the supported P2P device; the P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  • a P2P group provided by the embodiment of the present invention includes: a GO device as shown in FIG. 18, and at least one client device as shown in FIG.
  • the P2P group discovery method, related device, and P2P group provided by the embodiment of the present invention on the client device side, the client device determines whether the GO device needs to protect the device information of the client device, and sends the client device information to the GO device. a protection indication; on the GO device side, the GO device obtains an information protection indication of the client device; receives a P2P query request sent by the P2P device; and determines whether to carry the client in the response message sent to the P2P device according to the obtained information protection indication of the client device Device information of the device and send the response message to the P2P device.
  • the client device may determine, for itself, whether the GO device needs to protect the device information of the client device, and the client device determines whether the GO device is required for the client device.
  • the information protection indication of the protection of the device information is sent to the GO device.
  • the GO device receives the P2P query message sent by the P2P device, the device information of all the client devices that have established the connection with the device is not sent to the P2P device to be added.
  • the device information of the client device is sent to the P2P device for sending the device information to the client device to be joined to the P2P device, and the device information is not allowed to be sent to be added.
  • the client device of the P2P device does not send the device information of the client device to the P2P device to be added, which improves the security of the device information of the client device.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the present invention is directed to a method, apparatus (system), and computer program according to an embodiment of the present invention.
  • the flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to the technical field of communications. Provided in embodiments of the present invention are a P2P group discovery method, related device and P2P group, the method comprising: determining, by a client device at a client device side, whether a GO device is required to protect device information of the client device; transmitting to the GO device a client device information protection instruction; acquiring, by the GO device at a GO device side, the client device information protection instruction; receiving a P2P query message transmitted by a P2P device; and determining, according to the acquired client device information protection instruction, whether to carry the client device information in a response message to be transmitted to the P2P device, and transmitting the response message to the P2P device. The present invention improves device information security of the client device.

Description

一种P2P组的发现方法、相关设备及P2P组Method for discovering P2P group, related equipment and P2P group 技术领域Technical field
本发明涉及通信技术领域,特别涉及一种P2P组的发现方法、相关设备及P2P组。The present invention relates to the field of communications technologies, and in particular, to a P2P group discovery method, related device, and P2P group.
背景技术Background technique
无线保真(Wi-Fi,Wireless Fidelity)从1997年无线局域网标准美国电气和电子工程师协会(IEEE,Institute of Electrical and Electronics Engineers)802.11发布以来,在拥有众多在业界领先的公司组成的Wi-Fi联盟的大力推动下,同时以其具有的部署快速、使用便利和传输速率高等优势,发展迅猛。Wi-Fi (Wireless Fidelity) has been formed by Wi-Fi, a leading company in the industry since the release of 802.11, the IEEE, Institute of Electrical and Electronics Engineers (IEEE) in 1997. Under the strong promotion of the alliance, it has developed rapidly due to its rapid deployment, convenient use and high transmission rate.
现有技术中,不但手机、平板电脑、手提电脑使用Wi-Fi,可穿戴设备产品形态包括以手腕为支撑的watch类(包括手表和腕带等产品),以脚为支撑的shoes类(包括鞋、袜子或者将来的其他腿上佩戴产品),以头部为支撑的Glass类(包括眼镜、头盔、头带等),以及智能服装、书包、拐杖、配饰、项链等各类非主流产品形态都可以使用Wi-Fi。例如:可穿戴设备之间可以组成wifi组(Group)将人与互联网连接的更加紧密,但是,可穿戴设备会涉及到更多的个人隐私,那么,个人隐私的保护将受到更大的挑战。In the prior art, not only mobile phones, tablets, and laptops use Wi-Fi, but the wearable device product forms include wrist-supported watches (including watches and wristbands), and foot-supported shoes (including Shoes, socks or other products worn on the legs in the future), head-supported Glass (including glasses, helmets, headbands, etc.), as well as smart clothing, school bags, crutches, accessories, necklaces and other non-mainstream products. Wi-Fi can be used. For example, wearable devices can form a wifi group to connect people to the Internet more closely. However, wearable devices involve more personal privacy, so the protection of personal privacy will be more challenged.
Wi-Fi设备通常通过一个识别符来对自身进行标识,该识别符通常为媒体访问控制(MAC,Media Access Control)地址,也称为硬件地址。MAC地址为全球唯一地址,也就是每个Wi-Fi设备在跟其他Wi-Fi设备进行信息交互时,通过全球唯一的MAC地址进行相互识别。进一步地,Wi-Fi联盟(WFA,Wi-Fi Alliance)中的点到点(P2P,Peer to Peer)group工作组制定了P2P规范,规定了P2P设备之间通过Wi-Fi组建group的过程。组建后的group中有一个设备称为组长(GO,Group Owner)设备,group中其他设备称为客户(client)设备。图1为P2P设备A(假设为手机)和P2P设备B(假设为眼镜)组建P2P group的流程图,如图1所示,P2P group的组建过程包括如下 步骤:Wi-Fi devices typically identify themselves by an identifier, typically a Media Access Control (MAC) address, also known as a hardware address. The MAC address is a globally unique address, that is, each Wi-Fi device recognizes each other through a globally unique MAC address when interacting with other Wi-Fi devices. Further, the P2P (Peer to Peer) group working group in the Wi-Fi Alliance (WFA, Wi-Fi Alliance) has developed a P2P specification, which stipulates the process of grouping P2P devices through Wi-Fi. One of the groups in the group is called a group (GO, Group Owner) device, and the other devices in the group are called client devices. Figure 1 is a flow chart of P2P group A (assumed to be a mobile phone) and P2P device B (assumed to be a glasses) to form a P2P group. As shown in Figure 1, the P2P group is organized as follows: step:
S101、P2P设备A和P2P设备B通过P2P的扫描发现机制发现对方。S101, P2P device A, and P2P device B discover each other through the P2P scanning discovery mechanism.
S102、P2P设备A和P2P设备B进行GO协商,根据协商结果确定P2P设备A和P2P设备B中作为GO的设备以及作为client的设备。假设P2P设备A被确定为该P2P group中的GO设备,P2P设备B被确定为该P2P group中的client设备。S102. The P2P device A and the P2P device B perform GO negotiation, and determine, as the GO device, the device as the GO and the device as the client in the P2P device A and the P2P device B according to the negotiation result. It is assumed that the P2P device A is determined to be the GO device in the P2P group, and the P2P device B is determined to be the client device in the P2P group.
S103、P2P设备A和P2P设备B进行初始鉴权(Authentication)的交互。S103, P2P device A and P2P device B perform an initial authentication interaction.
S104、P2P设备A和P2P设备B交互WPS配置信息。S104. The P2P device A and the P2P device B exchange WPS configuration information.
S105、P2P设备A和P2P设备B进行四次握手建立安全连接。S105, P2P device A and P2P device B perform a four-way handshake to establish a secure connection.
至步骤S105,P2P设备A和P2P设备B完成P2P group的组建,在步骤S105之后,P2P设备A和P2P设备B可以交互二者之间的业务数据。To step S105, the P2P device A and the P2P device B complete the establishment of the P2P group. After the step S105, the P2P device A and the P2P device B can exchange the service data between the two.
那么,后续要加入该P2P group的设备均作为client的角色加入。假设P2P设备C(假设为手环)要加入该P2P group,会执行后续步骤:Then, the devices that want to join the P2P group are added as the role of the client. Assuming P2P device C (assumed to be a bracelet) to join the P2P group, the next steps are performed:
S106、P2P设备C发送P2P探测请求(P2P probe request)去发现该P2P group。S106. The P2P device C sends a P2P probe request to discover the P2P group.
S107、该P2P group中的GO设备(P2P设备A)监听到该P2P probe request,向P2P设备C回复P2P探测响应(P2P Probe response)。S107. The GO device (P2P device A) in the P2P group listens to the P2P probe request, and returns a P2P probe response to the P2P device C.
S108、P2P设备A和P2P设备C进行初始鉴权(Authentication)的交互。S108, P2P device A and P2P device C perform an initial authentication interaction.
S109、P2P设备A和P2P设备C交互WPS配置信息。S109, P2P device A and P2P device C exchange WPS configuration information.
S110、P2P设备A和P2P设备C进行四次握手建立安全连接。S110, P2P device A and P2P device C perform a four-way handshake to establish a secure connection.
在步骤S110之后,P2P设备A和P2P设备C可以交互二者之间的业务数据。After step S110, the P2P device A and the P2P device C can exchange the service data between the two.
但是,现有技术中的规范定义的P2P设备之间的发现过程,即定义的带内(in-band)发现过程为:未加入P2P group的P2P设备发现已经加入P2P group的client设备,并接收P2P group的GO设备发送的探测响应消息(probe response),在该发现过程中,由于已经加入P2P group的client设备在加入P2P group时,会与P2P group的GO设备作关联(例如:P2P设备A和P2P设备 B可以通过步骤S101~步骤S105作关联),那么会将自身的client信息告知GO设备(例如:P2P设备A和P2P设备B可以通过步骤S101~步骤S102向对方发送自身的信息),那么,当GO设备向未接入P2P group的P2P设备发送探测响应时,GO设备将已经与自身关联的所有client设备的信息(例如:已经与GO设备关联的所有client设备的MAC地址、设备类型、序列号等等)发送给未加入该P2P group的P2P设备。也就是说,在该发现过程中,GO设备向未加入该P2P group的P2P设备泄露了已经与自身关联的所有client设备的信息,造成了client设备的信息泄漏,如果黑客获取了client设备的信息(例如:client设备的MAC地址)可能利用client设备的信息对使用client设备的用户进行跟踪等操作,导致使用该client设备的用户的隐私泄漏。However, the discovery process between the P2P devices defined by the specifications in the prior art, that is, the defined in-band discovery process, is that the P2P device that has not joined the P2P group discovers the client device that has joined the P2P group and receives the client device. The probe response message sent by the GO device of the P2P group. In the process of the discovery, the client device that has joined the P2P group associates with the GO device of the P2P group (for example, P2P device A). And P2P devices B can be associated with the GO device by step S101 to step S105. Then, the client information is notified to the GO device (for example, the P2P device A and the P2P device B can send their own information to the other party through steps S101 to S102). When the GO device sends a probe response to a P2P device that is not connected to the P2P group, the GO device will information about all client devices that have been associated with itself (for example, the MAC address, device type, and serial number of all client devices that have been associated with the GO device. Etc.) is sent to a P2P device that is not joined to the P2P group. That is, in the process of the discovery, the GO device leaks information of all client devices that have been associated with itself to the P2P device that is not joined to the P2P group, causing information leakage of the client device, if the hacker obtains information of the client device. (For example, the MAC address of the client device) may use the information of the client device to track the user who uses the client device, etc., resulting in the privacy leakage of the user who uses the client device.
现有技术中,为了保护client设备的信息不被泄露,GO设备为每个已经与自身关联的client设备设置变化的临时MAC地址,那么,当GO设备向未接入P2P group的P2P设备发送探测响应时,GO设备将已经与自身关联的所有client设备的信息,包括:已经与GO设备关联的所有client设备的固定MAC地址、临时MAC地址、设备类型、序列号等等发送给未加入该P2P group的P2P设备。可见,仅仅靠采用为client设备设置临时MAC地址的方案,黑客还是能够获取client设备的固定MAC地址,那么,无法保证client设备的信息不被泄露。In the prior art, in order to protect the information of the client device from being leaked, the GO device sets a changed temporary MAC address for each client device that has been associated with itself, and then, when the GO device sends a probe to the P2P device that is not connected to the P2P group, In response, the GO device transmits information of all client devices that have been associated with itself, including: a fixed MAC address, a temporary MAC address, a device type, a serial number, and the like of all client devices that have been associated with the GO device to the P2P that is not joined. Group of P2P devices. It can be seen that the hacker can still obtain the fixed MAC address of the client device by using the scheme of setting the temporary MAC address for the client device. Therefore, the information of the client device cannot be guaranteed to be leaked.
发明内容Summary of the invention
本发明实施例提供了一种P2P组的发现方法、相关设备及P2P组,用以提高P2P组中的client设备的设备信息的安全性。The embodiment of the present invention provides a P2P group discovery method, a related device, and a P2P group, which are used to improve the security of device information of a client device in a P2P group.
第一方面,提供一种P2P组的发现方法,包括:In a first aspect, a method for discovering a P2P group is provided, including:
GO设备获得client设备的信息保护指示;The GO device obtains an information protection indication of the client device;
其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备将所述client设备的设备信息进行保护;The client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
所述GO设备接收P2P设备发送的P2P查询消息;Receiving, by the GO device, a P2P query message sent by the P2P device;
所述GO设备根据获得的所述client设备的信息保护指示,确定是否在向 所述P2P设备发送的响应消息中携带所述client设备的设备信息;Determining, according to the obtained information protection indication of the client device, the GO device The device sends the device information of the client device to the response message sent by the P2P device;
所述GO设备向所述P2P设备发送所述响应消息。The GO device sends the response message to the P2P device.
结合第一方面,在第一种可能的实现方式中,GO设备获得client设备的信息保护指示,具体包括:在所述GO设备与所述client设备建立安全连接之前,所述GO设备接收所述client设备发送的信息保护指示。With reference to the first aspect, in a first possible implementation manner, the GO device obtains the information protection indication of the client device, specifically: the GO device receives the information before the GO device establishes a secure connection with the client device Information protection indication sent by the client device.
结合第一方面,在第二种可能的实现方式中,GO设备获得client设备的信息保护指示,具体包括:在所述GO设备与所述client设备建立安全连接之后,所述GO设备接收所述client设备发送的加密的信息保护指示。With reference to the first aspect, in a second possible implementation manner, the GO device obtains the information protection indication of the client device, specifically, after the GO device establishes a secure connection with the client device, the GO device receives the An encrypted information protection indication sent by the client device.
结合第一方面的第一种可能的实现方式、或者第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备;根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息,具体包括:当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,所述GO设备确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,所述GO设备确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner, the information protection indication carries the information protection identifier information, where The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device; and according to the obtained information protection indication of the client device, determine whether the device is in the The device information of the client device is carried in the response message sent by the P2P device, and specifically includes: the information protection identifier information carried in the information protection indication of the client device indicates that the GO device allows the device information of the client device When the P2P device is sent to the P2P device, the GO device determines that the device information of the client device is carried in the response message sent to the P2P device; and the information protection identifier information carried in the information protection indication of the client device is characterized. When the GO device is not allowed to send the device information of the client device to the P2P device, the GO device determines The device information of the client device is not carried in the response message sent to the P2P device.
结合第一方面的第一种可能的实现方式、或者第一方面的第二种可能的实现方式,在第四种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;所述白名单包含所述client 设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。With reference to the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in the fourth possible implementation manner, the information protection indication carries the information protection identifier information; The information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to a whitelist; when the information protection identifier information represents the When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes the Client The identification information of the P2P device supported by the device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is the client The device allows the P2P device to obtain the device information of the client.
结合第一方面的第四种可能的实现方式,在第五种可能的实现方式中,根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息,具体包括:当所述client设备的信息保护指示中携带有白名单,且所述白名单中包括所述P2P设备的信息,或者所述client设备的信息保护指示中携带有白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,所述GO设备确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者所述client设备的信息保护指示中携带有白名单,且所述白名单中不包括所述P2P设备的信息,或者所述client设备的信息保护指示中携带有白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,所述GO设备确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, determining, according to the obtained information protection indication of the client device, whether to carry the response message sent to the P2P device The device information of the client device includes: a whitelist is carried in the information protection indication of the client device, and the whitelist includes the information of the P2P device, or the information protection indication of the client device is carried. When there is a whitelist, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines that the client is carried in the response message sent to the P2P device. Device information of the device; the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist. Or the information protection indication of the client device carries a whitelist, and the information of the P2P device is not included in the whitelist. Or when the information protection indication of the client device carries a whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines that the The device information of the client device is not carried in the response message sent by the P2P device.
结合第一方面的第一种可能的实现方式,在第六种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述方法还包括:在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的白名单;其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、 或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。With reference to the first possible implementation manner of the first aspect, in a sixth possible implementation, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to represent whether the client device is The GO device is configured to send the device information of the client device to the P2P device supported by the client device according to the whitelist; and the information protection identifier information carried in the information protection indication of the client device indicates that the GO device is allowed to follow the When the whitelist sends the device information of the client device to the P2P device supported by the client device, the method further includes: after the GO device establishes a secure connection with the client device, receiving the sending by the client device An encrypted whitelist, wherein the whitelist includes identification information of a P2P device supported by the client device, or information identifying identifier information of a P2P device supported by the client device, Or the P2P device supported by the client device; the P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
结合第一方面的第六种可能的实现方式,在第七种可能的实现方式中,根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息,具体包括:当接收到所述client设备发送的白名单,且所述白名单中包括所述P2P设备的信息,或者当接收到所述client设备发送的白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,所述GO设备确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者当接收到所述client设备发送的白名单,且所述白名单中不包括所述P2P设备的信息,或者当接收到所述client设备发送的白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,所述GO设备确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner, determining, according to the obtained information protection indication of the client device, whether to carry the response message sent to the P2P device The device information of the client device includes: receiving the whitelist sent by the client device, and the whitelist includes the information of the P2P device, or receiving a whitelist sent by the client device, and When the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines that the device information of the client device is carried in the response message sent to the P2P device; The information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or when receiving the a whitelist sent by the client device, where the information of the P2P device is not included in the whitelist, or when the client device is received When the whitelist is sent, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines that the response message sent to the P2P device is not carried. Device information of the client device.
结合第一方面,在第八种可能的实现方式中,GO设备获得client设备的信息保护指示,具体包括:在所述GO设备与所述client设备建立安全连接之后,通过所述GO设备界面的对应接口接收针对所述client设备的信息保护指示;所述信息保护指示用于指示是否允许所述GO设备将所述client设备的设备信息发送给未加入所述P2P组的P2P设备;或者所述信息保护指示用于指示是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护指示用于指示允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示还包括为所述client设备设置的白名单;所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特 征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。With reference to the first aspect, in an eighth possible implementation manner, the GO device obtains the information protection indication of the client device, specifically: after the GO device establishes a secure connection with the client device, Receiving, by the corresponding interface, an information protection indication for the client device, where the information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not added to the P2P group; or The information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; when the information protection indication is used to indicate that the GO device is allowed to follow the white When the list sends the device information of the client device to the P2P device supported by the client device, the information protection indication further includes a whitelist set for the client device; the whitelist includes the P2P supported by the client device. Identification information of the device, or information identifying the identification information of the P2P device supported by the client device, or the client • Special support of P2P devices The P2P device supported by the client device is a P2P device that allows the client device to obtain device information of the client.
第二方面,提供一种P2P组的发现方法,包括:In a second aspect, a method for discovering a P2P group is provided, including:
client设备确定是否需要GO设备对所述client设备的设备信息进行保护;The client device determines whether the GO device is required to protect the device information of the client device;
所述client设备向所述GO设备发送所述client设备的信息保护指示;Sending, by the client device, an information protection indication of the client device to the GO device;
其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备对所述client设备的设备信息进行保护,以便所述GO设备根据所述client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带所述client设备的设备信息,所述P2P设备是未加入所述P2P组的P2P设备。The client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect device information of the client device, so that the GO device according to the The information protection indication of the client device is used to determine whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
结合第二方面,在第一种可能的实现方式中,所述client设备向所述GO设备发送所述client设备的信息保护指示,具体包括:With reference to the second aspect, in a first possible implementation, the client device sends the information protection indication of the client device to the GO device, which specifically includes:
在所述GO设备与所述client设备建立安全连接之前,所述client设备向所述GO设备发送所述client设备的信息保护指示。Before the GO device establishes a secure connection with the client device, the client device sends an information protection indication of the client device to the GO device.
结合第二方面,在第二种可能的实现方式中,所述client设备向所述GO设备发送所述client设备的信息保护指示,具体包括:在所述client设备与所述GO设备建立安全连接之后,所述client设备向所述GO设备发送加密的信息保护指示。With reference to the second aspect, in a second possible implementation manner, the client device sends the information protection indication of the client device to the GO device, specifically: establishing a secure connection between the client device and the GO device Thereafter, the client device sends an encrypted information protection indication to the GO device.
结合第二方面的第一种可能的实现方式,或者结合第二方面的第二种可能的实现方式,在第三种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备。With reference to the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in the third possible implementation manner, the information protection indication carries the information protection identifier information, The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device.
结合第二方面的第一种可能的实现方式,或者结合第二方面的第二种可能的实现方式,在第四种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护标识信息表征所述client设备允许所述GO设 备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。With reference to the first possible implementation manner of the second aspect, or the second possible implementation manner of the second aspect, in the fourth possible implementation manner, the information protection indication carries the information protection identifier information; The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation Said client device allows said GO set When the device information of the client device is sent to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes the P2P supported by the client device. The identification information of the device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device allows the client device to obtain the location A P2P device that describes the device information of the client.
结合第二方面的第一种可能的实现方式,在第五种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在向所述GO设备发送所述client设备的信息保护指示之后,还包括:在所述GO设备与所述client设备建立安全连接之后,所述client设备向所述GO设备发送加密的白名单;其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。With reference to the first possible implementation manner of the second aspect, in a fifth possible implementation, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to identify whether the client device is Allowing the GO device to send device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection identifier information indicates that the client device allows the GO device to follow the white list After the device information of the client device is sent to the P2P device supported by the client device, after the information protection indication of the client device is sent to the GO device, the method further includes: establishing a secure connection between the GO device and the client device. The client device sends an encrypted whitelist to the GO device, where the whitelist includes the identification information of the P2P device supported by the client device or the identifier information of the P2P device supported by the client device. Information, or characteristic information of the P2P device supported by the client device; the P2P device supported by the client device is the cli An ent device allows a P2P device to obtain its own device information.
第三方面,提供一种P2P组中的GO设备,包括:In a third aspect, a GO device in a P2P group is provided, including:
获得模块,用于获得client设备的信息保护指示;其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要该GO设备将所述client设备的设备信息进行保护;Obtaining a module, configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client device Equipment information is protected;
接收模块,用于接收P2P设备发送的P2P查询消息;a receiving module, configured to receive a P2P query message sent by the P2P device;
确定模块,用于根据所述获得模块获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;a determining module, configured to determine, according to the information protection indication of the client device obtained by the obtaining module, whether the device information of the client device is carried in a response message sent to the P2P device;
发送模块,用于向所述P2P设备发送所述响应消息。 And a sending module, configured to send the response message to the P2P device.
结合第三方面,在第一种可能的实现方式中,所述获得模块,具体用于在所述GO设备与所述client设备建立安全连接之前,接收所述client设备发送的信息保护指示。With reference to the third aspect, in a first possible implementation, the obtaining module is configured to receive an information protection indication sent by the client device before the GO device establishes a secure connection with the client device.
结合第三方面,在第二种可能的实现方式中,所述获得模块,具体用于在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的信息保护指示。With reference to the third aspect, in a second possible implementation manner, the obtaining module is configured to: after the GO device establishes a secure connection with the client device, receive an encrypted information protection indication sent by the client device .
结合第三方面的第一种可能的实现方式,或者结合第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备;所述确定模块,具体用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in the third possible implementation manner, the information protection indication carries the information protection identifier information, The information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device. The determining module is specifically configured to protect information of the client device. The information protection identifier information carried in the indication is configured to allow the GO device to send the device information of the client device to the P2P device, and determine that the device information of the client device is carried in the response message sent to the P2P device. And determining, when the information protection indication information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, determining a response sent to the P2P device The device information of the client device is not carried in the message.
结合第三方面的第一种可能的实现方式,或者结合第三方面的第二种可能的实现方式,在第四种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。 With reference to the first possible implementation manner of the third aspect, or the second possible implementation manner of the third aspect, in the fourth possible implementation manner, the information protection indication carries the information protection identifier information; The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes The information of the P2P device supported by the client device, or the information indicating the identity information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is The client device allows a P2P device to obtain device information of the client.
结合第三方面的第四种可能的实现方式,在第五种可能的实现方式中,所述确定模块,具体用于当所述client设备的信息保护指示中携带有白名单,且所述白名单中包括所述P2P设备的信息,或者所述client设备的信息保护指示中携带有白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者所述client设备的信息保护指示中携带有白名单,且所述白名单中不包括所述P2P设备的信息,或者所述client设备的信息保护指示中携带有白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the fourth possible implementation manner of the third aspect, in a fifth possible implementation, the determining module is configured to: when the information protection indication of the client device carries a white list, and the white The information includes the information of the P2P device, or the information protection indication of the client device carries a whitelist, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist. Determining that the device information of the client device is carried in the response message sent to the P2P device; and the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to follow the white list. The device information of the client device is sent to the P2P device supported by the client device, or the information protection indication of the client device carries a whitelist, and the whitelist does not include the information of the P2P device, or the The information protection indication of the client device carries a whitelist, and the P2P device does not meet the P2 supported by the client device included in the whitelist. When the feature information of the P device is determined, it is determined that the device information of the client device is not carried in the response message sent to the P2P device.
结合第三方面的第一种可能的实现方式,在第六种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;所述接收模块,还用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的白名单;其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。With reference to the first possible implementation manner of the third aspect, in a sixth possible implementation, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to represent whether the client device is Allowing the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; the receiving module is further configured to: when the information protection indication of the client device is carried in the information protection indication The information representation allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, and after the GO device establishes a secure connection with the client device, the client device is received. The encrypted whitelist is sent; wherein the whitelist includes the identification information of the P2P device supported by the client device, or the information that identifies the identity information of the P2P device supported by the client device, or the P2P supported by the client device. Feature information of the device; the P2P device supported by the client device allows the client device to obtain its own device. Interest rates P2P device.
结合第三方面的第六种可能的实现方式,在第七种可能的实现方式中,所述确定模块,具体用于当所述接收模块接收到所述client设备发送的白名单,且所述白名单中包括所述P2P设备的信息,或者当所述接收模块接收到所述client设备发送的白名单,且所述P2P设备符合所述白名单中包括的所述 client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者当所述接收模块接收到所述client设备发送的白名单,且所述白名单中不包括所述P2P设备的信息,或者当所述接收模块接收到所述client设备发送的白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the sixth possible implementation of the third aspect, in a seventh possible implementation, the determining module is specifically configured to: when the receiving module receives a whitelist sent by the client device, The whitelist includes the information of the P2P device, or when the receiving module receives the whitelist sent by the client device, and the P2P device meets the information included in the whitelist. When the feature information of the P2P device supported by the client device is determined, the device information of the client device is carried in the response message sent to the P2P device; and the information protection identifier information carried in the information protection indication of the client device is not represented. Allowing the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or when the receiving module receives the whitelist sent by the client device, and the whitelist is The information of the P2P device is not included, or when the receiving module receives the whitelist sent by the client device, and the P2P device does not meet the features of the P2P device supported by the client device included in the whitelist. When the information is received, it is determined that the device information of the client device is not carried in the response message sent to the P2P device.
结合第三方面,在第八种可能的实现方式中,所述获得模块,具体用于在所述GO设备与所述client设备建立安全连接之后,通过所述GO设备界面的对应接口接收针对所述client设备的信息保护指示;所述信息保护指示用于指示是否允许所述GO设备将所述client设备的设备信息发送给未加入所述P2P组的P2P设备;或者所述信息保护指示用于指示是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护指示用于指示允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示还包括为所述client设备设置的白名单;所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。With reference to the third aspect, in an eighth possible implementation, the obtaining module is specifically configured to: after the GO device establishes a secure connection with the client device, receive, by using a corresponding interface of the GO device interface, An information protection indication of the client device, where the information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not added to the P2P group; or the information protection indication is used for Determining whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; when the information protection indication is used to indicate that the GO device is allowed to whitelist the client When the device information of the device is sent to the P2P device supported by the client device, the information protection indication further includes a whitelist set for the client device, and the whitelist includes the identification information of the P2P device supported by the client device. Or the information identifying the identification information of the P2P device supported by the client device, or the feature of the P2P device supported by the client device The P2P device supported by the client device is a P2P device that allows the client device to obtain device information of the client.
第四方面,提供一种P2P组中的client设备,包括:The fourth aspect provides a client device in a P2P group, including:
确定模块,用于确定是否需要GO设备对所述client设备的设备信息进行保护;a determining module, configured to determine whether a GO device is required to protect device information of the client device;
发送模块,用于向所述GO设备发送所述确定模块确定的所述client设备的信息保护指示;a sending module, configured to send, to the GO device, an information protection indication of the client device determined by the determining module;
其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护 指示用于指示是否需要所述GO设备对所述client设备的设备信息进行保护,以便所述GO设备根据所述client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带所述client设备的设备信息,所述P2P设备是未加入所述P2P组的P2P设备。The client device and the GO device belong to the P2P group, and the information protection The indication is used to indicate whether the GO device is required to protect device information of the client device, so that the GO device determines, according to the information protection indication of the client device, whether to carry the message in a response message sent to the P2P device. Device information of the client device, where the P2P device is a P2P device that is not added to the P2P group.
结合第四方面,在第一种可能的实现方式中,所述发送模块,具体用于在所述GO设备与所述client设备建立安全连接之前,向所述GO设备发送所述client设备的信息保护指示。With reference to the fourth aspect, in a first possible implementation, the sending module is specifically configured to send information about the client device to the GO device before the GO device establishes a secure connection with the client device. Protection instructions.
结合第四方面,在第二种可能的实现方式中,所述发送模块,具体用于在所述client设备与所述GO设备建立安全连接之后,向所述GO设备发送加密的信息保护指示。With reference to the fourth aspect, in a second possible implementation, the sending module is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
结合第四方面的第一种可能的实现方式,或者结合第四方面的第二种可能的实现方式,在第三种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备。With reference to the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, in the third possible implementation manner, the information protection indication carries the information protection identifier information, The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device.
结合第四方面的第一种可能的实现方式,或者结合第四方面的第二种可能的实现方式,在第四种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。With reference to the first possible implementation manner of the fourth aspect, or the second possible implementation manner of the fourth aspect, in the fourth possible implementation manner, the information protection indication carries the information protection identifier information; The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes The information of the P2P device supported by the client device, or the information indicating the identity information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is The client device allows a P2P device to obtain device information of the client.
结合第四方面的第一种可能的实现方式,在第五种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于 表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;所述发送模块,还用于当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在向所述GO设备发送所述client设备的信息保护指示之后,在所述GO设备与所述client设备建立安全连接之后,向所述GO设备发送加密的白名单;其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。With reference to the first possible implementation manner of the fourth aspect, in a fifth possible implementation manner, the information protection indication carries information protection identifier information, where the information protection identifier information is used Determining whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to a whitelist; the sending module is further configured to: when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, after transmitting the information protection indication of the client device to the GO device, After the GO device establishes a secure connection with the client device, the encrypted whitelist is sent to the GO device, where the whitelist includes the identifier information of the P2P device supported by the client device, or the client device is supported. The information of the identification information of the P2P device or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is a P2P device that the client device allows to obtain its own device information.
第五方面,提供一种P2P组,包括:一个如第三方面或者结合第三方面的任一可能的实现方式所述的GO设备、以及至少一个如如第四方面或者结合第四方面的任一可能的实现方式所述的client设备。A fifth aspect, a P2P group is provided, comprising: a GO device as described in the third aspect or in combination with any possible implementation of the third aspect, and at least one as in the fourth aspect or in combination with the fourth aspect A possible implementation of the client device described.
第六方面、提供一种P2P组中的GO设备,包括:In a sixth aspect, a GO device in a P2P group is provided, including:
处理器,用于获得client设备的信息保护指示;其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备将所述client设备的设备信息进行保护;a processor, configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client device Device information for protection;
接收器,用于接收P2P设备发送的P2P查询消息;a receiver, configured to receive a P2P query message sent by the P2P device;
处理器,还用于根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The processor is further configured to determine, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in a response message sent to the P2P device;
发送器,用于向所述P2P设备发送所述响应消息。And a transmitter, configured to send the response message to the P2P device.
结合第六方面,在第一种可能的实现方式中,所述处理器,具体在所述GO设备与所述client设备建立安全连接之前,通过所述接收器接收所述client设备发送的信息保护指示。With reference to the sixth aspect, in a first possible implementation, the processor, before the establishing a secure connection between the GO device and the client device, receiving information protection sent by the client device by using the receiver Instructions.
结合第六方面,在第二种可能的实现方式中,所述处理器,具体在所述GO设备与所述client设备建立安全连接之后,通过所述接收器接收所述client设备发送的加密的信息保护指示。 With reference to the sixth aspect, in a second possible implementation, the processor, after the GO device establishes a secure connection with the client device, receives, by the receiver, an encrypted sent by the client device. Information protection instructions.
结合第六方面的第一种可能的实现方式,或者结合第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备;所述处理器,具体用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the third aspect, in the third possible implementation manner, the information protection indication carries the information protection identifier information, The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device. The processor is specifically configured to protect information of the client device. The information protection identifier information carried in the indication is configured to allow the GO device to send the device information of the client device to the P2P device, and determine that the device information of the client device is carried in the response message sent to the P2P device. And determining, when the information protection indication information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, determining a response sent to the P2P device The device information of the client device is not carried in the message.
结合第六方面的第一种可能的实现方式,或者结合第六方面的第二种可能的实现方式,在第四种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。With reference to the first possible implementation manner of the sixth aspect, or the second possible implementation manner of the sixth aspect, in the fourth possible implementation manner, the information protection indication carries information protection identifier information; The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes The information of the P2P device supported by the client device, or the information indicating the identity information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is The client device allows a P2P device to obtain device information of the client.
结合第六方面的第四种可能的实现方式,在第五种可能的实现方式中,所述处理器,具体用于当所述client设备的信息保护指示中携带有白名单,且所述白名单中包括所述P2P设备的信息,或者所述client设备的信息保护指示中携带有白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息 保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者所述client设备的信息保护指示中携带有白名单,且所述白名单中不包括所述P2P设备的信息,或者所述client设备的信息保护指示中携带有白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the fourth possible implementation manner of the sixth aspect, in a fifth possible implementation, the processor is configured to: when the information protection indication of the client device carries a white list, and the white The information includes the information of the P2P device, or the information protection indication of the client device carries a whitelist, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist. Determining, in the response message sent to the P2P device, device information of the client device; information carried in the information protection indication of the client device The protection identifier information representation does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or the information protection indication of the client device carries a whitelist, and the The whitelist does not include the information of the P2P device, or the information protection indication of the client device carries a whitelist, and the P2P device does not meet the P2P device supported by the client device included in the whitelist. When the feature information is obtained, it is determined that the device information of the client device is not carried in the response message sent to the P2P device.
结合第六方面的第一种可能的实现方式,在第六种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;所述接收器,还用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的白名单;其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。With reference to the first possible implementation manner of the sixth aspect, in a sixth possible implementation, the information protection indication carries information protection identifier information, where the information protection identifier information is used to represent whether the client device is Allowing the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; the receiver is further configured to use the information protection identifier carried in the information protection indication of the client device The information representation allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, and after the GO device establishes a secure connection with the client device, the client device is received. The encrypted whitelist is sent; wherein the whitelist includes the identification information of the P2P device supported by the client device, or the information that identifies the identity information of the P2P device supported by the client device, or the P2P supported by the client device. Feature information of the device; the P2P device supported by the client device allows the client device to obtain its own device letter. The P2P device.
结合第六方面的第六种可能的实现方式,在第七种可能的实现方式中,所述处理器,具体用于当所述接收器接收到所述client设备发送的白名单,且所述白名单中包括所述P2P设备的信息,或者当所述接收器接收到所述client设备发送的白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者当所述接收器接收到所述client设备发送的白名单,且所述白名单中不包括所述P2P设备的信息,或者当所述接收器接收到所述client设备发送的白名单,且所述P2P设备不符合所 述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。With reference to the sixth possible implementation manner of the sixth aspect, in a seventh possible implementation, the processor is configured to: when the receiver receives a whitelist sent by the client device, The whitelist includes the information of the P2P device, or when the receiver receives the whitelist sent by the client device, and the P2P device meets the P2P device supported by the client device included in the whitelist. Determining, in the response message sent by the P2P device, the device information of the client device; the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to follow the white The list sends the device information of the client device to the P2P device supported by the client device, or when the receiver receives the whitelist sent by the client device, and the whitelist does not include the P2P device. Information, or when the receiver receives a whitelist sent by the client device, and the P2P device does not comply with the When the feature information of the P2P device supported by the client device is included in the whitelist, it is determined that the device information of the client device is not carried in the response message sent to the P2P device.
结合第六方面,在第八种可能的实现方式中,所述处理器,具体用于在所述GO设备与所述client设备建立安全连接之后,通过所述GO设备界面的对应接口接收针对所述client设备的信息保护指示;所述信息保护指示用于指示是否允许所述GO设备将所述client设备的设备信息发送给未加入所述P2P组的P2P设备;或者所述信息保护指示用于指示是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护指示用于指示允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示还包括为所述client设备设置的白名单;所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。With reference to the sixth aspect, in an eighth possible implementation, the processor is specifically configured to: after the GO device establishes a secure connection with the client device, receive, by using a corresponding interface of the GO device interface, An information protection indication of the client device, where the information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not added to the P2P group; or the information protection indication is used for Determining whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; when the information protection indication is used to indicate that the GO device is allowed to whitelist the client When the device information of the device is sent to the P2P device supported by the client device, the information protection indication further includes a whitelist set for the client device, and the whitelist includes the identification information of the P2P device supported by the client device. Or the information identifying the identification information of the P2P device supported by the client device, or the characteristic information of the P2P device supported by the client device The P2P device supported by the client device is a P2P device that allows the client device to obtain device information of the client.
第七方面,提供一种P2P组中的client设备,包括:The seventh aspect provides a client device in a P2P group, including:
处理器,用于确定是否需要GO设备对所述client设备的设备信息进行保护;a processor, configured to determine whether a GO device is required to protect device information of the client device;
发送器,用于向所述GO设备发送所述处理器确定的所述client设备的信息保护指示;a transmitter, configured to send, to the GO device, an information protection indication of the client device determined by the processor;
其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备对所述client设备的设备信息进行保护,以便所述GO设备根据所述client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带所述client设备的设备信息,所述P2P设备是未加入所述P2P组的P2P设备。The client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect device information of the client device, so that the GO device according to the The information protection indication of the client device is used to determine whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
结合第七方面,在第一种可能的实现方式中,所述发送器,具体用于在所述GO设备与所述client设备建立安全连接之前,向所述GO设备发送所述client设备的信息保护指示。 With reference to the seventh aspect, in a first possible implementation, the transmitter is configured to send information about the client device to the GO device before the GO device establishes a secure connection with the client device. Protection instructions.
结合第七方面,在第二种可能的实现方式中,所述发送器,具体用于在所述client设备与所述GO设备建立安全连接之后,向所述GO设备发送加密的信息保护指示。With reference to the seventh aspect, in a second possible implementation manner, the transmitter is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
结合第七方面的第一种可能的实现方式,或者结合第七方面的第二种可能的实现方式,在第三种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备。With reference to the first possible implementation manner of the seventh aspect, or the second possible implementation manner of the seventh aspect, in the third possible implementation manner, the information protection indication carries the information protection identifier information, The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to the P2P device.
结合第七方面的第一种可能的实现方式,或者结合第七方面的第二种可能的实现方式,在第四种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。With reference to the first possible implementation manner of the seventh aspect, or the second possible implementation manner of the seventh aspect, in the fourth possible implementation manner, the information protection indication carries the information protection identifier information; The information protection identifier information is used to indicate whether the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a whitelist; when the information protection identifier information representation When the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries the whitelist; the whitelist includes The information of the P2P device supported by the client device, or the information indicating the identity information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the P2P device supported by the client device is The client device allows a P2P device to obtain device information of the client.
结合第七方面的第一种可能的实现方式,在第五种可能的实现方式中,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;所述发送器,还用于当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在向所述GO设备发送所述client设备的信息保护指示之后,在所述GO设备与所述client设备建立安全连接之后,向所述GO设备发送加密的白名单;其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设 备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。With reference to the first possible implementation manner of the seventh aspect, in a fifth possible implementation, the information protection indication carries information protection identifier information, where the information protection identifier information is used to represent whether the client device is Allowing the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; the sender is further configured to: when the information protection identifier information indicates that the client device allows the When the GO device sends the device information of the client device to the P2P device supported by the client device according to the whitelist, after transmitting the information protection indication of the client device to the GO device, the GO device and the After the client device establishes the secure connection, the encrypted whitelist is sent to the GO device, where the whitelist includes the identifier information of the P2P device supported by the client device, or represents the client setting. The P2P device supported by the P2P device and the P2P device supported by the client device; the P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
第八方面,提供一种P2P组,包括:一个如第六方面或者结合第六方面的任一可能的实现方式所述的GO设备、以及至少一个如第七方面或者结合第七方面的任一可能的实现方式所述的client设备。The eighth aspect provides a P2P group, comprising: a GO device as described in the sixth aspect or in combination with any possible implementation manner of the sixth aspect, and at least one of the seventh aspect or the seventh aspect Possible implementation of the client device described.
本发明实施例的有益效果包括:Advantageous effects of embodiments of the present invention include:
本发明实施例提供的一种P2P组的发现方法、相关设备及P2P组,在client设备侧,client设备确定是否需要GO设备对client设备的设备信息进行保护;并向GO设备发送client设备的信息保护指示;在GO设备侧,GO设备获得client设备的信息保护指示;接收P2P设备发送的P2P查询请求;根据获得的client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带client设备的设备信息,并向P2P设备发送该响应信息。本发明实施例提供的一种P2P组的发现方法,client设备可以为自身确定是否需要GO设备对client设备的设备信息进行保护的策略,并由client设备将确定出的指示是否需要GO设备对client设备的设备信息进行保护的信息保护指示发送给GO设备,当GO设备接收到P2P设备发送的P2P查询消息时,不会将已经与自身建立连接的所有client设备的设备信息全部发送给该P2P设备,而是根据获得的client设备的信息保护指示,针对允许将设备信息发送给该P2P设备的client设备,将该client设备的设备信息发送给该P2P设备,针对不允许将设备信息发送给该P2P设备的client设备,不将该client设备的设备信息发送给该P2P设备,提高了client设备的设备信息的安全性。The P2P group discovery method, related device, and P2P group provided by the embodiment of the present invention, on the client device side, the client device determines whether the GO device needs to protect the device information of the client device, and sends the client device information to the GO device. a protection indication; on the GO device side, the GO device obtains an information protection indication of the client device; receives a P2P query request sent by the P2P device; and determines whether to carry the client in the response message sent to the P2P device according to the obtained information protection indication of the client device Device information of the device and send the response message to the P2P device. A P2P group discovery method provided by the embodiment of the present invention, the client device may determine, for itself, whether the GO device needs to protect the device information of the client device, and the client device determines whether the indication needs the GO device to the client. The information protection indication of the protection of the device information of the device is sent to the GO device. When the GO device receives the P2P query message sent by the P2P device, the device information of all the client devices that have established the connection with the device is not sent to the P2P device. And transmitting, according to the obtained information protection indication of the client device, the client device that allows the device information to be sent to the P2P device, to send the device information of the client device to the P2P device, and not to send the device information to the P2P. The client device of the device does not send the device information of the client device to the P2P device, which improves the security of the device information of the client device.
附图说明DRAWINGS
图1为本发明背景技术提供的P2P设备A和P2P设备B组建P2P group的流程图;1 is a flowchart of forming a P2P group by a P2P device A and a P2P device B according to the background art of the present invention;
图2为本发明实施例提供的一种P2P组的发现方法应用于GO设备侧的 流程图;FIG. 2 is a schematic diagram of a P2P group discovery method applied to a GO device side according to an embodiment of the present invention; flow chart;
图3为本发明实施例提供的一种P2P组的发现方法应用于client设备侧的流程图;FIG. 3 is a flowchart of a method for discovering a P2P group applied to a client device side according to an embodiment of the present disclosure;
图4为本发明实施例1提供的一种P2P组的发现方法之一的流程图;4 is a flowchart of a method for discovering a P2P group according to Embodiment 1 of the present invention;
图5为本发明实施例1提供的一种P2P组的发现方法之二的流程图;FIG. 5 is a flowchart of a second method for discovering a P2P group according to Embodiment 1 of the present invention;
图6为本发明实施例2提供的一种P2P组的发现方法的流程图;6 is a flowchart of a method for discovering a P2P group according to Embodiment 2 of the present invention;
图7为本发明实施例提供的一种P2P组的发现方法应用于GO设备侧和client设备侧的流程图;FIG. 7 is a flowchart of a method for discovering a P2P group applied to a GO device side and a client device side according to an embodiment of the present disclosure;
图8为本发明实施例2提供的一种P2P组的发现方法之一的流程图;FIG. 8 is a flowchart of a method for discovering a P2P group according to Embodiment 2 of the present invention;
图9为本发明实施例2提供的一种P2P组的发现方法之二的流程图;FIG. 9 is a flowchart of a second method for discovering a P2P group according to Embodiment 2 of the present invention;
图10为本发明实施例1提供的一种P2P组的发现方法的流程图;FIG. 10 is a flowchart of a method for discovering a P2P group according to Embodiment 1 of the present invention;
图11为本发明实施例提供的一种P2P组的发现方法应用于GO设备侧和client设备侧的流程图;FIG. 11 is a flowchart of a method for discovering a P2P group applied to a GO device side and a client device side according to an embodiment of the present disclosure;
图12为本发明实施例5提供的一种P2P组的发现方法的流程图;FIG. 12 is a flowchart of a method for discovering a P2P group according to Embodiment 5 of the present invention;
图13为本发明实施例6提供的一种P2P组的发现方法的流程图;FIG. 13 is a flowchart of a method for discovering a P2P group according to Embodiment 6 of the present invention;
图14为本发明实施例提供的一种P2P组的发现方法应用于GO设备侧和client设备侧的流程图;FIG. 14 is a flowchart of a method for discovering a P2P group applied to a GO device side and a client device side according to an embodiment of the present disclosure;
图15为本发明实施例7提供的一种P2P组的发现方法的流程图;15 is a flowchart of a method for discovering a P2P group according to Embodiment 7 of the present invention;
图16为本发明实施例提供的一种GO设备之一的结构示意图;FIG. 16 is a schematic structural diagram of a GO device according to an embodiment of the present disclosure;
图17为本发明实施例提供的一种client设备之一的结构示意图;FIG. 17 is a schematic structural diagram of a client device according to an embodiment of the present disclosure;
图18为本发明实施例提供的一种GO设备之二的结构示意图;FIG. 18 is a schematic structural diagram of a second GO device according to an embodiment of the present disclosure;
图19为本发明实施例提供的一种client设备之二的结构示意图。FIG. 19 is a schematic structural diagram of a second client device according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供了一种P2P组的发现方法、相关设备及P2P组,以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。并且在不冲突 的情况下,本申请中的实施例及实施例中的特征可以相互组合。The embodiments of the present invention provide a P2P group discovery method, a related device, and a P2P group. The preferred embodiments of the present invention are described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are only for explanation and explanation. The present invention is not intended to limit the invention. And without conflict In the case of the embodiments and the features in the embodiments, the features in the present application can be combined with each other.
本发明实施例提供一种P2P组的发现方法,应用于GO设备侧,如图2所示,包括:An embodiment of the present invention provides a method for discovering a P2P group, which is applied to a GO device side, as shown in FIG. 2, and includes:
S201、GO设备获得client设备的信息保护指示;S201. The GO device obtains an information protection indication of the client device.
其中,client设备与GO设备同属于一P2P组,信息保护指示用于指示是否需要GO设备对client设备的设备信息进行保护。The client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
S202、GO设备接收P2P设备发送的P2P查询消息。S202. The GO device receives the P2P query message sent by the P2P device.
S203、GO设备根据获得的client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带client设备的设备信息。S203. The GO device determines, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in the response message sent to the P2P device.
S204、GO设备向P2P设备发送响应消息。S204. The GO device sends a response message to the P2P device.
与上述图2所示方法相应的,本发明实施例还提供一种P2P组的发现方法,应用于client设备侧,如图3所示,包括:Corresponding to the method shown in FIG. 2, the embodiment of the present invention further provides a P2P group discovery method, which is applied to the client device side, as shown in FIG. 3, and includes:
S301、client设备确定是否需要GO设备对client设备的设备信息进行保护。S301. The client device determines whether the GO device needs to protect the device information of the client device.
S302、client设备向GO设备发送client设备的信息保护指示,S302. The client device sends an information protection indication of the client device to the GO device.
其中,client设备与GO设备同属于一P2P组,信息保护指示用于指示是否需要GO设备对client设备的设备信息进行保护,以便GO设备根据client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带该client设备的设备信息,该P2P设备是还未加入所述P2P组的P2P设备,例如可以是准备加入该P2P组的P2P设备,或准备加入其他P2P组的设备,或仅扫描发现P2P组的设备。The client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device, so that the GO device determines whether it is sending to the P2P device according to the information protection indication of the client device. The response message carries the device information of the client device, and the P2P device is a P2P device that has not joined the P2P group, for example, a P2P device that is ready to join the P2P group, or a device that is ready to join other P2P groups, or only Scan the device found in the P2P group.
本发明实施例中,GO设备为该P2P组中经过协商作为组长的设备,client设备为该P2P组中作为非组长的设备,P2P设备为未加入该P2P组的设备。本发明实施例提供的一种P2P组的发现方法,在P2P设备进行P2P发现的时候,GO设备不会将自身所在P2P组的所有client设备的设备信息全部发送给该P2P设备,而是根据client设备发送的信息保护指示确定能够对该P2P设备公开其设备信息的client设备,并将能够对该P2P设备公开其设备信息的 client设备的设备信息发送给该P2P设备,提高了client设备的设备信息的安全性。In the embodiment of the present invention, the GO device is a device that is negotiated as a group leader in the P2P group, the client device is a device that is not a group leader in the P2P group, and the P2P device is a device that is not added to the P2P group. A P2P group discovery method is provided by the embodiment of the present invention. When a P2P device performs P2P discovery, the GO device does not send all the device information of all the client devices in the P2P group to the P2P device, but according to the client. The information protection indication sent by the device determines a client device that can disclose its device information to the P2P device, and will be able to disclose its device information to the P2P device. The device information of the client device is sent to the P2P device, which improves the security of the device information of the client device.
本发明实施例中,client设备可以为一个client设备也可以为多个client设备,也就是说,当client设备为多个client设备时,GO设备可以针对每个client设备分别执行上述S201和S203对应的操作,也可以一次针对多个client设备执行上述S201和S203对应的操作。In the embodiment of the present invention, the client device may be a client device or multiple client devices. That is, when the client device is a plurality of client devices, the GO device may perform the foregoing S201 and S203 corresponding to each client device. The operations corresponding to the above S201 and S203 can also be performed for a plurality of client devices at a time.
下面结合附图,用具体实施例对本发明提供的方法及相关设备进行详细描述。The method and related equipment provided by the present invention will be described in detail below with reference to the accompanying drawings.
实施例1:Example 1:
本发明实施例1中,提供一种P2P组的发现方法,应用于GO设备侧,在实施例1中,GO设备可以在与client设备建立安全连接之前接收client设备发送的信息保护指示,并且信息保护指示中携带有信息保护标识信息,或者信息保护指示中携带有信息保护标识信息以及白名单。In the first embodiment of the present invention, a method for discovering a P2P group is provided, which is applied to a GO device side. In Embodiment 1, the GO device can receive an information protection indication sent by the client device before establishing a secure connection with the client device, and the information The protection indication carries the information protection identification information, or the information protection indication carries the information protection identification information and the white list.
本发明实施例1提供的一种P2P组的发现方法,如图4~图5所示,具体包括如下步骤:A method for discovering a P2P group according to Embodiment 1 of the present invention, as shown in FIG. 4 to FIG. 5, specifically includes the following steps:
S401、在GO设备与client设备建立安全连接之前,GO设备接收client设备发送的信息保护指示;S401. Before establishing a secure connection between the GO device and the client device, the GO device receives an information protection indication sent by the client device.
其中,client设备与GO设备同属于一P2P组,信息保护指示用于指示是否需要GO设备对client设备的设备信息进行保护。The client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
进一步地,本发明实施例中,GO设备与client设备建立安全连接之前可以为GO设备与client设备之间完成发现之后。以图1所示的P2P group的组建过程为例,由于在P2P组建立时,两个P2P设备需要进行协商作为GO的P2P设备和作为client的P2P设备,因此,对于协商结果为作为client的P2P设备,建立安全连接之前可以为在与作为GO的P2P设备进行GO协商之后,且在建立安全连接之前的任一时刻,即可以在步骤S102之后且步骤S105之前的任一时刻,cliet设备向GO设备发送信息保护指示,例如,可以在步骤S102之后且步骤S103之前,或者在步骤S103之后且在步骤S104之前,client 设备向GO设备发送信息保护指示;而对于在P2P组建立之后加入该P2P组的client设备,可以在GO设备向该client设备发送针对P2P查询消息的P2P响应消息之后,且在建立安全连接之前的任一时刻,即可以在步骤S107之后且步骤S110之前的任一时刻,client设备向GO设备发送信息保护指示,例如,可以在步骤S107之后且步骤S108之前,或者在步骤S108之后且在步骤S109之前,client设备向GO设备发送信息保护指示。Further, in the embodiment of the present invention, after the GO device establishes a secure connection with the client device, the discovery between the GO device and the client device may be completed. For example, the P2P group configuration process shown in Figure 1 is used. When a P2P group is established, the two P2P devices need to negotiate as the P2P device of the GO and the P2P device as the client. Therefore, the P2P as the client is negotiated. The device may establish a secure connection before the GO negotiation with the P2P device as the GO, and at any time before establishing the secure connection, that is, at any time after step S102 and before step S105, the clipet device to the GO The device sends an information protection indication, for example, after step S102 and before step S103, or after step S103 and before step S104, the client The device sends an information protection indication to the GO device; and for the client device that joins the P2P group after the P2P group is established, after the GO device sends the P2P response message for the P2P query message to the client device, and before establishing the secure connection, At any time, that is, after step S107 and before step S110, the client device sends an information protection indication to the GO device, for example, after step S107 and before step S108, or after step S108 and at step S109. Previously, the client device sent an information protection indication to the GO device.
进一步地,信息保护指示可以通过现有的消息进行承载,也可以创建新的消息来承载信息保护指示。Further, the information protection indication may be carried by an existing message, or a new message may be created to carry the information protection indication.
进一步地,本步骤中,client设备可以为一个或多个,当为多个时,本步骤针对每个client设备,均执行在GO设备与该client设备建立安全连接之前,GO设备接收该client设备发送的信息保护指示。Further, in this step, the client device may be one or more. When there are multiple, this step is performed for each client device, and the GO device receives the client device before the GO device establishes a secure connection with the client device. Information protection instructions sent.
可选地,GO设备接收到client设备发送的信息保护指示之后,还可以向对应client设备回复确认消息。Optionally, after receiving the information protection indication sent by the client device, the GO device may also reply the confirmation message to the corresponding client device.
S402、接收P2P设备发送的P2P查询消息。S402. Receive a P2P query message sent by the P2P device.
进一步地,本步骤中P2P查询消息可以用于进行P2P发现,例如:可以为探测请求(Probe Request)消息。Further, the P2P query message in this step may be used to perform P2P discovery, for example, may be a Probe Request message.
进一步地,当信息保护指示中携带有信息保护标识信息时,如图4所示,在执行完步骤S401~步骤S402后执行步骤S403~步骤S406:Further, when the information protection indication carries the information protection identification information, as shown in FIG. 4, after performing steps S401 to S402, steps S403 to S406 are performed:
S403、判断信息保护标识信息是否表征允许GO设备将client设备的设备信息发送给P2P设备;若是,进入步骤S404,否则,进入步骤S405。S403. Determine whether the information protection identifier information indicates that the GO device is allowed to send the device information of the client device to the P2P device; if yes, go to step S404, otherwise, go to step S405.
进一步地,信息保护指示中携带有信息保护标识信息,信息保护标识信息用于表征client设备是否允许GO设备将client设备的设备信息发送给P2P设备,也就是说,信息保护标识信息针对所有未加入P2P组的P2P设备,若信息保护标识信息表征允许GO设备将client设备的设备信息发送给P2P设备,则表征允许GO设备将client设备的设备信息发送给所有向GO设备发送了查询请求的P2P设备;若信息保护标识信息表征不允许GO设备将client设备的设备信息发送给P2P设备,则表征不允许GO设备将client设备的设备 信息发送给任一向GO设备发送了查询请求的P2P设备。Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device, that is, the information protection identifier information is not added for all The P2P device of the P2P group, if the information protection identifier information representation allows the GO device to transmit the device information of the client device to the P2P device, the characterizing device is allowed to send the device information of the client device to all P2P devices that send the query request to the GO device. If the information protection identification information representation does not allow the GO device to transmit the device information of the client device to the P2P device, the device that does not allow the GO device to hold the client device The information is sent to any P2P device that sent a query request to the GO device.
进一步地,信息保护标识信息可以通过多种实现方式进行实现,例如:可以通过信息保护标识位的方式实现,信息保护标识位可以为一个比特bit位或者多个bit位,通过信息保护标识位的值表征对应client设备是否允许GO设备将该对应client设备的设备信息发送给未加入P2P组的P2P设备。Further, the information protection identifier information may be implemented in multiple implementation manners, for example, the information protection identifier may be implemented by using an information protection identifier, and the information protection identifier may be a bit bit or multiple bits, and the information protection identifier is The value indicates whether the corresponding client device allows the GO device to send the device information of the corresponding client device to the P2P device that is not joined to the P2P group.
进一步地,为了使现有协议改动较小,可以通过现有的消息对信息保护指示进行承载。下面以关联请求(Association Request)消息为例,具体实施时,可以在Association Request消息的P2P capability field这个域中增加一个指示位作为信息保护标识位,指示是否允许GO设备发送自身的设备信息,表1为P2P capability field包含的8个比特位的使用情况,如表1所示,表1中加粗字体为其中的第6位,表征信息保护指示位。该指示位可以为一个比特(bit)位,bit位的值可以表征允许GO设备发送自身的设备信息或者不允许GO设备发送自身的设备信息。例如:当该bit位的值为1时,表征允许GO设备发送client设备自身的设备信息,当该bit位的值为0时,表征不允许GO设备发送client设备自身的设备信息;或者,当该bit位的值为0时,表征允许GO设备发送client设备自身的设备信息,当该bit位的值为1时,表征不允许GO设备发送client设备自身的设备信息,可以根据实际情况进行定义。Further, in order to make the existing protocol change less, the information protection indication may be carried by the existing message. The following is an example of an association request (Association Request) message. In the specific implementation, an indication bit may be added in the P2P capability field of the Association Request message as an information protection identifier to indicate whether the GO device is allowed to send its own device information. 1 is the use of 8 bits included in the P2P capability field. As shown in Table 1, the bold font in Table 1 is the 6th bit, which represents the information protection indication bit. The indicator bit can be a bit bit, and the value of the bit bit can be used to characterize the device that allows the GO device to transmit its own device information or not allow the GO device to transmit its own device information. For example, when the value of the bit is 1, the characterization is to allow the GO device to send the device information of the client device itself. When the value of the bit is 0, the characterization does not allow the GO device to send the device information of the client device itself; or, when When the value of the bit is 0, the device is configured to allow the GO device to send the device information of the client device. When the value of the bit is 1, the device does not allow the GO device to send the device information of the client device, which can be defined according to the actual situation. .
表1Table 1
Figure PCTCN2015078108-appb-000001
Figure PCTCN2015078108-appb-000001
Figure PCTCN2015078108-appb-000002
Figure PCTCN2015078108-appb-000002
进一步地,若GO设备向client设备回复确认消息,可以发送关联响应(Association Response)消息对接收到的Association Request消息进行确认响应。Further, if the GO device replies to the client device with an acknowledgment message, it may send an association response (Association Response) message to acknowledge the received Association Request message.
进一步地,当client设备为多个client设备时,本步骤执行可以为:针对每个client设备,判断该client设备的信息保护标识信息是否表征允许GO设备将该client设备的设备信息发送给P2P设备。Further, when the client device is a plurality of client devices, the step may be performed: determining, for each client device, whether the information protection identifier information of the client device indicates that the GO device is allowed to send the device information of the client device to the P2P device. .
S404、GO设备确定在向P2P设备发送的响应消息中携带该client设备的设备信息。进入步骤S406。 S404. The GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Proceed to step S406.
本步骤中,当client设备的信息保护指示中携带的信息保护标识信息表征允许GO设备将client设备的设备信息发送给P2P设备时,GO设备确定在向P2P设备发送的响应消息中携带client设备的设备信息。In this step, when the information protection identifier information carried in the information protection indication of the client device allows the GO device to transmit the device information of the client device to the P2P device, the GO device determines that the response message sent to the P2P device carries the client device. Device Information.
S405、GO设备确定在向P2P设备发送的响应消息中不携带client设备的设备信息。S405. The GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
本步骤中,当client设备的信息保护指示中携带的信息保护标识信息表征不允许GO设备将client设备的设备信息发送给P2P设备时,GO设备确定在向P2P设备发送的响应消息中不携带client设备的设备信息。In this step, when the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to transmit the device information of the client device to the P2P device, the GO device determines that the response message sent to the P2P device does not carry the client. Device information for the device.
S406、向P2P设备发送响应消息。S406. Send a response message to the P2P device.
进一步地,当信息保护指示中携带有信息保护标识信息以及白名单时,如图5所示,在执行完步骤S401~步骤S402后执行步骤S4031~步骤S4071。Further, when the information protection indication carries the information protection identification information and the white list, as shown in FIG. 5, after steps S401 to S402 are performed, steps S4031 to S4071 are performed.
S4031、判断信息保护标识信息是否用于表征client设备允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备;若是,则进入步骤S4041,否则,进入步骤S4061。S4031: Determine whether the information protection identifier information is used to indicate that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; if yes, go to step S4041; otherwise, go to step S4061.
进一步地,信息保护指示中携带有信息保护标识信息;信息保护标识信息用于表征client设备是否允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information; the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist;
当信息保护标识信息表征client设备允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备时,信息保护指示中还携带有白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries a whitelist;
白名单包含client设备支持的P2P设备的标识信息、或者表征client设备支持的P2P设备的标识信息的信息、或者client设备支持的P2P设备的特征信息;client设备支持的P2P设备为client设备允许其获得该client的设备信息的P2P设备。The whitelist contains the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device allows the client device to obtain the P2P device. The client's device information for the P2P device.
进一步地,本发明实施例中,白名单可以包含client设备所支持的P2P设备的信息,即client设备允许其获取自身的设备信息的P2P设备的信息。白名单可以具有不同的存储P2P设备的信息的方式,例如:可以直接将所支持 的P2P设备的设备标识信息进行存储(例如:P2P设备的MAC地址信息);Further, in the embodiment of the present invention, the whitelist may include information of the P2P device supported by the client device, that is, the information of the P2P device that the client device allows to acquire its own device information. The whitelist can have different ways of storing information of the P2P device, for example, it can be directly supported. The device identification information of the P2P device is stored (for example, the MAC address information of the P2P device);
白名单中也可以存储表征client设备支持的P2P设备的标识信息的信息,也就是说,如果需要节省存储空间,可以不直接存储P2P设备的标识信息,而是存储用于表征P2P设备的标识信息的信息,具体实施时,可以采用布龙过滤器(bloom filter)的方式,每个client设备生成一个bloomfilter位表,采用bloom filter对client设备所支持的P2P设备的标识信息(例如:MAC地址)进行哈希(hash)运算后,通过hash运算得到的值表征将该P2P设备的标识信息存储在bloomfilter位表中的bit位的位置,将运算得到的值映射到bloomfilter位表中对应的bit位,并将该bit位的值设置为1(bloomfilter位表初始时所有bit位均为0)。例如:若运算得到的值为n,则将bloomfilter位表中的第n个bit位设置为1。GO设备会接收到允许其按照白名单发送设备信息的client设备发送的bloomfilter位表,并且GO设备会预先与client设备交互client设备采用的hash算法,这样,当GO设备接收到P2P设备发送的查询消息时,首先确定发送了白名单的client设备,针对为每个发送了白名单的设备设置的bloomfilter位表,对P2P设备的标识信息进行对应的hash运算,得到该P2P设备的标识信息在各bloomfilter位表中的位置信息,将得到的位置信息分别与各bloomfilter位表进行比对,如果某bloomfilter位表中该P2P设备的标识信息hash后得到的位置为1,那么该P2P设备为该bloomfilter位表对应的client设备所支持的P2P设备,GO设备可以将该client设备的设备信息发送给该P2P设备。进一步地,也可以为所有client设备设置一个bloomfilter位表,不同client设备采用不同的hash算法,具体实施方式可以根据实际情况进行确定,这里不一一列举;The whitelist may also store information indicating the identification information of the P2P device supported by the client device. That is, if the storage space needs to be saved, the identification information of the P2P device may not be directly stored, but the identification information used to characterize the P2P device may be stored. The information can be implemented in the form of a bloom filter. Each client device generates a bloom filter bit table, and uses the bloom filter to identify the P2P device supported by the client device (for example, MAC address). After performing a hash operation, the value obtained by the hash operation is used to represent the location of the bit information of the P2P device stored in the blowfilter bit table, and the calculated value is mapped to the corresponding bit in the bloomfilter bit table. And set the value of this bit to 1 (all bits in the bloom filter bit table are initially 0). For example, if the value obtained by the operation is n, the nth bit in the bloomfilter bit table is set to 1. The GO device receives the bloom filter bit table sent by the client device that allows it to send the device information according to the whitelist, and the GO device interacts with the client device in advance to interact with the client device, so that the GO device receives the query sent by the P2P device. In the case of a message, the client device that has sent the whitelist is first determined, and the hashing bit table set for each device that has sent the whitelist is hashed to the identification information of the P2P device, and the identification information of the P2P device is obtained. The position information in the bloomfilter bit table is compared with the position information of each bloomfilter bit table. If the location of the P2P device in the blood filter bit table is 1 after the hash information, the P2P device is the bloomfilter. The P2P device supported by the client device corresponding to the bit table, the GO device may send the device information of the client device to the P2P device. Further, a bloom filter bit table may be set for all client devices, and different client devices adopt different hash algorithms. The specific implementation manner may be determined according to actual conditions, and is not enumerated here;
进一步地,白名单中也可以存储client设备支持的P2P设备的特征信息,也就是说,client设备可以确定出自身支持的P2P设备的共同特征,将该特征存储在白名单中,当P2P设备具有该特征时,允许GO设备将自身的设备信息发送给该P2P设备,例如:client设备可以确定所支持的P2P设备的特征为:P2P设备的MAC地址的前预设位与自身的MAC地址的前预设位相同,因为 相同厂商的设备的MAC地址的前预设为通常是相同的,当P2P设备的MAC地址的前预设位与client设备的MAC地址的前预设位相同时,client设备允许GO设备将client设备的设备信息发送给该P2P设备。Further, the whitelist may also store the feature information of the P2P device supported by the client device, that is, the client device may determine the common features of the P2P device supported by the client, and store the feature in the whitelist, when the P2P device has In this feature, the GO device is allowed to send its own device information to the P2P device. For example, the client device can determine that the supported P2P device has the following characteristics: the pre-preset bit of the MAC address of the P2P device and the front of its own MAC address. The preset bits are the same because The pre-set of the MAC address of the device of the same manufacturer is usually the same. When the pre-preset bit of the MAC address of the P2P device is the same as the pre-preset bit of the MAC address of the client device, the client device allows the GO device to connect the client device. Device information is sent to the P2P device.
进一步地,当client设备为多个client设备时,本步骤可以实施为:针对每个client设备,判断该client设备发送的信息保护指示携带的信息保护标识信息是否用于表征该client设备允许GO设备按照白名单将该client设备的设备信息发送给该client设备支持的P2P设备。Further, when the client device is a plurality of client devices, the step may be implemented as: determining, for each client device, whether the information protection identifier information carried by the information protection indication sent by the client device is used to represent the client device to allow the GO device The device information of the client device is sent to the P2P device supported by the client device according to the whitelist.
S4041、判断白名单中是否包括该P2P设备的信息,或者该P2P设备是否符合白名单中包括的client设备支持的P2P设备的特征信息;若是,进入步骤S4051,否则,进入步骤S4061。S4011: Determine whether the information of the P2P device is included in the whitelist, or whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist; if yes, go to step S4051; otherwise, go to step S4061.
进一步地,当client设备为多个client设备时,本步骤可以实施为:针对每个发送的信息保护指示携带有白名单的client设备,判断该client设备的白名单中是否包括该P2P设备的信息,或者该P2P设备是否符合该白名单中包括的该client设备支持的P2P设备的特征信息。Further, when the client device is a plurality of client devices, the step may be implemented as follows: for each sent information protection indication, the client device carrying the whitelist is determined, and determining whether the whitelist of the client device includes the information of the P2P device Whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist.
S4051、GO设备确定在向P2P设备发送的响应消息中携带client设备的设备信息。进入步骤S4071。S4051: The GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Go to step S4071.
本步骤中,当client设备的信息保护指示中携带有白名单,且白名单中包括P2P设备的信息,或者client设备的信息保护指示中携带有白名单,且P2P设备符合白名单中包括的client设备支持的P2P设备的特征信息时,GO设备确定在向P2P设备发送的响应消息中携带client设备的设备信息In this step, the information protection indication of the client device carries the whitelist, and the whitelist includes the information of the P2P device, or the information protection indication of the client device carries the whitelist, and the P2P device complies with the client included in the whitelist. When the feature information of the P2P device supported by the device is used, the GO device determines that the device information of the client device is carried in the response message sent to the P2P device.
S4061、GO设备确定在向P2P设备发送的响应消息中不携带client设备的设备信息。S4061: The GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
本步骤中,当client设备的信息保护指示中携带的信息保护标识信息表征不允许GO设备按照白名单将该client设备的设备信息发送给该client设备支持的P2P设备,或者client设备的信息保护指示中携带有白名单,且白名单中不包括P2P设备的信息,或者client设备的信息保护指示中携带有白名单,且P2P设备不符合白名单中包括的该client设备支持的P2P设备的特征信息时, GO设备确定在向P2P设备发送的响应消息中不携带该client设备的设备信息。In this step, the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or the information protection indication of the client device. The whitelist is carried in the whitelist, and the whitelist does not include the information of the P2P device, or the information protection indication of the client device carries the whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist. Time, The GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
S4071、向P2P设备发送响应消息。S4071: Send a response message to the P2P device.
实施例2:Example 2:
与本发明实施例1相应地,本发明实施例2中,提供一种P2P组的发现方法,应用于client设备侧,如图6所示,具体包括如下步骤:Corresponding to the first embodiment of the present invention, in the second embodiment of the present invention, a method for discovering a P2P group is provided, which is applied to the client device side. As shown in FIG. 6, the method includes the following steps:
S601、client设备确定是否需要GO设备对该client设备的设备信息进行保护。S601. The client device determines whether the GO device is required to protect the device information of the client device.
S602、在GO设备与client设备建立安全连接之前,client设备向GO设备发送client设备的信息保护指示;S602. Before the GO device establishes a secure connection with the client device, the client device sends an information protection indication of the client device to the GO device.
其中,client设备与GO设备同属于一P2P组,信息保护指示用于指示是否需要GO设备对client设备的设备信息进行保护。The client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
进一步地,当client设备为与GO设备建立P2P组的client设备时,本步骤可以具体实施为:在client设备与GO设备进行GO协商之后,且在GO设备与该client设备建立安全连接之前,向GO设备发送client设备的信息保护指示;当client设备为在P2P组建立之后加入P2P组的client设备时,本步骤可以具体实施为:在client设备接收到GO设备发送的针对P2P查询消息的P2P响应消息之后,且在GO设备与该client设备建立安全连接之前,向GO设备发送client设备的信息保护指示。Further, when the client device is a client device that establishes a P2P group with the GO device, the step may be specifically implemented after the GO negotiation between the client device and the GO device, and before the GO device establishes a secure connection with the client device, The GO device sends an information protection indication of the client device. When the client device joins the client device of the P2P group after the P2P group is established, the step may be specifically implemented as: receiving, by the client device, the P2P response sent by the GO device for the P2P query message. After the message, and before the GO device establishes a secure connection with the client device, the information protection indication of the client device is sent to the GO device.
进一步地,信息保护指示中可以携带有信息保护标识信息,信息保护标识信息用于表征client设备是否允许GO设备将client设备的设备信息发送给P2P设备。Further, the information protection indication may carry the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device.
进一步地,信息保护指示中可以携带有信息保护标识信息;信息保护标识信息用于表征client设备是否允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备;Further, the information protection indication may be carried with the information protection identifier information; the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist;
当信息保护标识信息表征client设备允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备时,信息保护指示中还携带有白名单; When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries a whitelist;
白名单包含client设备支持的P2P设备的标识信息、或者表征client设备支持的P2P设备的标识信息的信息、或者client设备支持的P2P设备的特征信息;client设备支持的P2P设备为client设备允许获得client的设备信息的P2P设备。The whitelist contains the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device allows the client to obtain the client. Device information for P2P devices.
与实施例1和实施例2相应地,图7为本发明实施例提供的一种P2P组的发现方法,应用于GO设备侧和client设备侧,如图7所示,具体包括如下步骤:Corresponding to Embodiment 1 and Embodiment 2, FIG. 7 is a method for discovering a P2P group according to an embodiment of the present invention, which is applied to a GO device side and a client device side. As shown in FIG. 7, the method includes the following steps:
S701、第一P2P设备和第二P2P设备之间进行探测请求消息和探测响应消息的交互。S701. The interaction between the probe request message and the probe response message is performed between the first P2P device and the second P2P device.
S702、第一P2P设备和第二P2P设备进行GO设备协商,且协商结果为第二P2P设备为GO设备。S702: The first P2P device and the second P2P device perform GO device negotiation, and the negotiation result is that the second P2P device is a GO device.
进一步地,本步骤中,假设确定出第二P2P设备为GO设备,那么本实施中,第二P2P设备相当于实施例1和实施例2中的GO设备,第一P2P设备相当于实施例1和实施例2中的client设备。Further, in this step, if it is determined that the second P2P device is a GO device, in this implementation, the second P2P device is equivalent to the GO device in Embodiment 1 and Embodiment 2, and the first P2P device is equivalent to Embodiment 1 And the client device in Embodiment 2.
S703、第一P2P设备和第二P2P设备进行初始鉴权(Authentication)的交互。S703. The first P2P device and the second P2P device perform an initial authentication interaction.
S704、第一P2P设备向第二P2P设备发送信息保护指示Association Request,且信息保护指示中携带有信息保护标识信息,信息保护标识信息表征第一P2P设备允许第二P2P设备将第一P2P设备的设备信息发送给未接入P2P组的P2P设备。S704: The first P2P device sends an information protection indication Association Request to the second P2P device, and the information protection indication carries the information protection identifier information, where the information protection identifier information indicates that the first P2P device allows the second P2P device to be the first P2P device. Device information is sent to P2P devices that are not connected to the P2P group.
S705、第二P2P设备向第一P2P设备发送确认响应Association Response。S705. The second P2P device sends a confirmation response Association Response to the first P2P device.
S706、第一P2P设备与第二P2P设备交互WPS配置信息。S706. The first P2P device interacts with the second P2P device to configure WPS configuration information.
S707、第一P2P设备与第二P2P设备进行四次握手建立安全通道。S707. The first P2P device performs a four-way handshake with the second P2P device to establish a secure channel.
S708、第二P2P设备接收第三P2P设备发送的查询消息。S708. The second P2P device receives the query message sent by the third P2P device.
S709、第二P2P设备向第三P2P设备回复响应消息,并在响应消息中携带第一P2P设备的设备信息。S709. The second P2P device sends a response message to the third P2P device, and carries the device information of the first P2P device in the response message.
S710、第三P2P设备向第二P2P设备发送信息保护指示Association  Request,且信息保护指示中携带有信息保护指示信息,信息保护指示信息表征第三P2P设备允许第二P2P设备按照白名单将第三P2P设备的设备信息发送给为未接入P2P组的P2P设备。S710. The third P2P device sends an information protection indication Association to the second P2P device. The information protection indication carries the information protection indication information, and the information protection indication information indicates that the third P2P device allows the second P2P device to send the device information of the third P2P device to the P2P device that is not connected to the P2P group according to the white list. .
S711、第二P2P设备向第三P2P设备发送确认响应Association Response。S711. The second P2P device sends a confirmation response Association Response to the third P2P device.
S712、第二P2P设备接收第四P2P设备发送的查询消息。S712. The second P2P device receives the query message sent by the fourth P2P device.
S713、第二P2P设备向第四P2P设备回复响应消息,并根据第三P2P设备的白名单,确定第四P2P设备不为第三P2P设备支持的P2P设备,则在探测响应中仅携带第一P2P设备的设备信息。S713. The second P2P device sends a response message to the fourth P2P device, and determines that the fourth P2P device is not the P2P device supported by the third P2P device according to the whitelist of the third P2P device, and only carries the first in the probe response. Device information of the P2P device.
S714、第四P2P设备向第二P2P设备发送信息保护指示Association Request,且信息保护指示中携带有信息保护指示位和白名单,信息保护指示位的值表征第四P2P设备允许第二P2P设备按照白名单将第四P2P设备的设备信息发送给为接入P2P组的P2P设备。S714. The fourth P2P device sends an information protection indication Association Request to the second P2P device, and the information protection indication carries an information protection indication bit and a white list. The value of the information protection indication bit indicates that the fourth P2P device allows the second P2P device to follow. The whitelist sends the device information of the fourth P2P device to the P2P device that is connected to the P2P group.
S715、第二P2P设备向第四P2P设备发送确认响应Association Response。S715. The second P2P device sends a confirmation response Association Response to the fourth P2P device.
进一步地,步骤S708~步骤S715的执行与步骤S705~步骤S707的执行没有严格的先后顺序。Further, the execution of steps S708 to S715 and the execution of steps S705 to S707 are not strictly sequential.
实施例3:Example 3:
本发明实施例3中,提供一种P2P组的发现方法,应用于GO设备侧,在实施例3中,GO设备在与client设备建立安全连接之后接收client设备发送的加密的信息保护指示,并且信息保护指示中携带有信息保护标识信息,或者信息保护指示中携带有信息保护标识信息以及白名单。In the third embodiment of the present invention, a method for discovering a P2P group is provided, which is applied to a GO device side. In Embodiment 3, the GO device receives an encrypted information protection indication sent by the client device after establishing a secure connection with the client device, and The information protection indication carries information protection identification information, or the information protection indication carries information protection identification information and a white list.
本发明实施例3提供的一种P2P组的发现方法,如图8~图9所示,具体包括如下步骤:A method for discovering a P2P group according to Embodiment 3 of the present invention, as shown in FIG. 8 to FIG. 9, specifically includes the following steps:
S801、在GO设备与client设备建立安全连接之后,接收client设备发送的加密的信息保护指示。S801. After establishing a secure connection between the GO device and the client device, receiving an encrypted information protection indication sent by the client device.
进一步地,本发明实施例中,GO设备与client设备建立安全连接之后可以为GO设备与client设备之间完成四次握手之后。以图1所示的P2P group的组建过程为例,针对在P2P组建立时,两个P2P设备中作为client的P2P 设备,建立安全连接之后可以在步骤S105之后,client设备向GO设备发送信息保护指示;而对于在P2P组建立之后加入该P2P组的client设备,建立安全连接之后可以在步骤S110之后,client设备向GO设备发送信息保护指示。Further, in the embodiment of the present invention, after the GO device establishes a secure connection with the client device, the handshake between the GO device and the client device may be completed after four handshakes. Take the P2P group setup process shown in Figure 1 as an example. For the P2P group, the P2P as the client in the two P2P devices. After the device establishes the secure connection, the client device may send an information protection indication to the GO device after the step S105. For the client device that joins the P2P group after the P2P group is established, after the secure connection is established, the client device may after the step S110. The GO device sends an information protection indication.
进一步地,本步骤中,可以根据GO设备与client设备建立的安全连接对信息保护指示进行加密。本实施例中,信息保护指示可以通过现有消息进行承载,也可以创建新的消息进行承载。例如:可以通过现有的Action消息、管理消息等承载信息保护指示。加密时可以根据建立的安全连接,对消息头之后携带的数据进行加密。Further, in this step, the information protection indication may be encrypted according to the secure connection established by the GO device and the client device. In this embodiment, the information protection indication may be carried by an existing message, or a new message may be created for carrying. For example, the information protection indication can be carried by an existing Action message, a management message, or the like. When encrypting, the data carried after the message header can be encrypted according to the established secure connection.
S802、对接收到的加密的信息保护指示进行解密。S802. Decrypt the received information protection indication of the encryption.
S803、接收P2P设备发送的P2P查询消息。S803. Receive a P2P query message sent by the P2P device.
进一步地,当信息保护指示中携带有信息保护标识信息时,如图8所示,在执行完步骤S801~步骤S803后执行步骤S804~步骤S807:Further, when the information protection indication carries the information protection identification information, as shown in FIG. 8, after performing steps S801 to S803, steps S804 to S807 are performed:
S804、判断信息保护标识信息是否表征允许GO设备将client设备的设备信息发送给P2P设备;若是,进入步骤S805,否则,进入步骤S806。S804. Determine whether the information protection identifier information indicates that the GO device is allowed to send the device information of the client device to the P2P device; if yes, go to step S805; otherwise, go to step S806.
进一步地,当client设备为多个client设备时,本步骤可以实施为:针对每个client设备,判断该client设备发送的信息保护指示携带的信息保护标识信息是否用于表征该client设备允许GO设备按照白名单将该client设备的设备信息发送给该client设备支持的P2P设备。Further, when the client device is a plurality of client devices, the step may be implemented as: determining, for each client device, whether the information protection identifier information carried by the information protection indication sent by the client device is used to represent the client device to allow the GO device The device information of the client device is sent to the P2P device supported by the client device according to the whitelist.
S805、GO设备确定在向P2P设备发送的响应消息中携带该client设备的设备信息。进入步骤S807。S805. The GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Proceed to step S807.
本步骤中,当client设备的信息保护指示中携带的信息保护标识信息表征允许GO设备将client设备的设备信息发送给P2P设备时,GO设备确定在向P2P设备发送的响应消息中携带client设备的设备信息。In this step, when the information protection identifier information carried in the information protection indication of the client device allows the GO device to transmit the device information of the client device to the P2P device, the GO device determines that the response message sent to the P2P device carries the client device. Device Information.
S806、GO设备确定在向P2P设备发送的响应消息中不携带client设备的设备信息。S806. The GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
本步骤中,当client设备的信息保护指示中携带的信息保护标识信息表征 不允许GO设备将client设备的设备信息发送给P2P设备时,GO设备确定在向P2P设备发送的响应消息中不携带client设备的设备信息。In this step, the information protection identifier information carried in the information protection indication of the client device is characterized When the GO device is not allowed to send the device information of the client device to the P2P device, the GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
S807、向P2P设备发送响应消息。S807. Send a response message to the P2P device.
进一步地,当信息保护指示中携带有信息保护标识信息以及白名单时,如图9所示,在执行完步骤S801~步骤S803后执行步骤S8041~步骤S8081。Further, when the information protection indication carries the information protection identification information and the white list, as shown in FIG. 9 , after steps S801 to S803 are performed, steps S8041 to S8081 are performed.
S8041、判断信息保护标识信息是否用于表征client设备允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备;若是,则进入步骤S8051,否则,进入步骤S8071。S8041: Determine whether the information protection identifier information is used to indicate that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; if yes, go to step S8051; otherwise, go to step S8071.
进一步地,信息保护指示中携带有信息保护标识信息;信息保护标识信息用于表征client设备是否允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information; the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist;
当信息保护标识信息表征client设备允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备时,信息保护指示中还携带有白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries a whitelist;
白名单包含client设备支持的P2P设备的标识信息、或者表征client设备支持的P2P设备的标识信息的信息、或者client设备支持的P2P设备的特征信息;client设备支持的P2P设备为client设备允许其获得该client的设备信息的P2P设备。The whitelist contains the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device allows the client device to obtain the P2P device. The client's device information for the P2P device.
进一步地,当client设备为多个client设备时,本步骤可以实施为:针对每个client设备,判断该client设备发送的信息保护指示携带的信息保护标识信息是否用于表征该client设备允许GO设备按照白名单将该client设备的设备信息发送给该client设备支持的P2P设备。Further, when the client device is a plurality of client devices, the step may be implemented as: determining, for each client device, whether the information protection identifier information carried by the information protection indication sent by the client device is used to represent the client device to allow the GO device The device information of the client device is sent to the P2P device supported by the client device according to the whitelist.
S8051、判断白名单中是否包括该P2P设备的信息,或者该P2P设备是否符合白名单中包括的client设备支持的P2P设备的特征信息;若是,进入步骤S8061,否则,进入步骤S8071。S8051: Determine whether the information of the P2P device is included in the whitelist, or whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist; if yes, go to step S8061; otherwise, go to step S8071.
进一步地,当client设备为多个client设备时,本步骤可以实施为:针对每个发送的信息保护指示携带有白名单的client设备,判断该client设备的白 名单中是否包括该P2P设备的信息,或者该P2P设备是否符合该白名单中包括的该client设备支持的P2P设备的特征信息。Further, when the client device is a plurality of client devices, the step may be implemented as follows: for each sent information protection indication, the client device carrying the whitelist is determined, and the white of the client device is determined. Whether the information of the P2P device is included in the list, or whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist.
S8061、GO设备确定在向P2P设备发送的响应消息中携带client设备的设备信息。进入步骤S8081。S8061: The GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Go to step S8081.
本步骤中,当client设备的信息保护指示中携带有白名单,且白名单中包括P2P设备的信息,或者client设备的信息保护指示中携带有白名单,且P2P设备符合白名单中包括的client设备支持的P2P设备的特征信息时,GO设备确定在向P2P设备发送的响应消息中携带client设备的设备信息In this step, the information protection indication of the client device carries the whitelist, and the whitelist includes the information of the P2P device, or the information protection indication of the client device carries the whitelist, and the P2P device complies with the client included in the whitelist. When the feature information of the P2P device supported by the device is used, the GO device determines that the device information of the client device is carried in the response message sent to the P2P device.
S8071、GO设备确定在向P2P设备发送的响应消息中不携带client设备的设备信息。S8071: The GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
本步骤中,当client设备的信息保护指示中携带的信息保护标识信息表征不允许GO设备按照白名单将该client设备的设备信息发送给该client设备支持的P2P设备,或者client设备的信息保护指示中携带有白名单,且白名单中不包括P2P设备的信息,或者client设备的信息保护指示中携带有白名单,且P2P设备不符合白名单中包括的该client设备支持的P2P设备的特征信息时,GO设备确定在向P2P设备发送的响应消息中不携带该client设备的设备信息。In this step, the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or the information protection indication of the client device. The whitelist is carried in the whitelist, and the whitelist does not include the information of the P2P device, or the information protection indication of the client device carries the whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist. The GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
S8081、向P2P设备发送响应消息。S8081: Send a response message to the P2P device.
实施例4:Example 4:
与本发明实施例3相应地,本发明实施例4中,提供一种P2P组的发现方法,应用于client设备侧,如图10所示,具体包括如下步骤:Corresponding to Embodiment 3 of the present invention, in Embodiment 4 of the present invention, a method for discovering a P2P group is provided, which is applied to the client device side, as shown in FIG. 10, and specifically includes the following steps:
S1001、client设备确定是否需要GO设备对该client设备的设备信息进行保护。S1001: The client device determines whether the GO device is required to protect the device information of the client device.
S1002、在client设备与GO设备建立安全连接之后,向GO设备发送加密的信息保护指示;S1002: After the client device establishes a secure connection with the GO device, send an encrypted information protection indication to the GO device.
其中,client设备与GO设备同属于一P2P组,信息保护指示用于指示是否需要GO设备对client设备的设备信息进行保护。The client device and the GO device belong to a P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
本步骤中,关于信息保护指示携带内容的解释可以参见实施例2,这里不 再赘述。In this step, for the explanation of the information protection indication carrying content, refer to Embodiment 2, where Let me repeat.
与实施例3和实施例4相应地,图11为本发明实施例提供的一种P2P发现方法,应用于GO设备侧和client设备侧,如图11所示,具体包括如下步骤:Corresponding to Embodiment 3 and Embodiment 4, FIG. 11 is a P2P discovery method according to an embodiment of the present invention, which is applied to a GO device side and a client device side, as shown in FIG.
S1101、第一P2P设备和第二P2P设备之间进行探测请求消息和探测响应消息的交互。S1101: Perform interaction between the probe request message and the probe response message between the first P2P device and the second P2P device.
S1102、第一P2P设备和第二P2P设备进行GO设备协商,且协商结果为第二P2P设备为GO设备。S1102: The first P2P device and the second P2P device perform GO device negotiation, and the negotiation result is that the second P2P device is a GO device.
进一步地,本步骤中,假设确定出第二P2P设备为GO设备,那么本实施中,第二P2P设备相当于实施例3和实施例4中的GO设备,第一P2P设备相当于实施例3和实施例4中的client设备。Further, in this step, if it is determined that the second P2P device is a GO device, in this implementation, the second P2P device is equivalent to the GO device in Embodiment 3 and Embodiment 4, and the first P2P device is equivalent to Embodiment 3 And the client device in Embodiment 4.
S1103、第一P2P设备和第二P2P设备进行初始鉴权(Authentication)的交互。S1103: The first P2P device and the second P2P device perform an initial authentication interaction.
S1104、第一P2P设备与第二P2P设备交互WPS配置信息。S1104: The first P2P device interacts with the second P2P device to configure WPS configuration information.
S1105、第一P2P设备与第二P2P设备进行四次握手建立安全通道。S1105: The first P2P device performs a four-way handshake with the second P2P device to establish a secure channel.
进一步地,至步骤S1105可以认为第一P2P设备和第二P2P设备之间建立了安全连接。Further, it is considered that the secure connection is established between the first P2P device and the second P2P device in step S1105.
S1106、第一P2P设备向第二P2P设备发送加密的信息保护指示,且信息保护指示中携带有信息保护标识位,信息保护标识位的值表征第一P2P设备不允许第二P2P设备将第一P2P设备的设备信息发送给未接入P2P组的P2P设备。S1106: The first P2P device sends an encrypted information protection indication to the second P2P device, where the information protection indication carries an information protection identifier, where the value of the information protection identifier indicates that the first P2P device does not allow the second P2P device to be the first The device information of the P2P device is sent to the P2P device that is not connected to the P2P group.
S1107、第二P2P设备向第一P2P设备发送确认响应。S1107: The second P2P device sends an acknowledgement response to the first P2P device.
S1108、第二P2P设备接收第三P2P设备发送的查询消息。S1108: The second P2P device receives the query message sent by the third P2P device.
S1109、第二P2P设备向第三P2P设备回复响应消息,并在探测响应中不携带任何P2P设备的设备信息。S1109: The second P2P device sends a response message to the third P2P device, and does not carry any device information of the P2P device in the probe response.
S1110、第三P2P设备和第二P2P设备进行初始鉴权(Authentication)的交互。 S1110. The third P2P device and the second P2P device perform an initial authentication interaction.
S1111、第三P2P设备与第二P2P设备交互WPS配置信息。The S1111, the third P2P device and the second P2P device exchange WPS configuration information.
S1112、第三P2P设备与第二P2P设备进行四次握手建立安全通道。S1112: The third P2P device performs a four-way handshake with the second P2P device to establish a secure channel.
进一步地,至步骤S1112可以认为第三P2P设备和第二P2P设备之间建立了安全连接。Further, it is considered that the secure connection is established between the third P2P device and the second P2P device in step S1112.
S1113、第三P2P设备向第二P2P设备发送加密的信息保护指示,且信息保护指示中携带有信息保护指示位和白名单,信息保护指示位的值表征第三P2P设备允许第二P2P设备按照白名单将第三P2P设备的设备信息发送给为接入P2P组的P2P设备。S1113: The third P2P device sends an encrypted information protection indication to the second P2P device, where the information protection indication carries the information protection indication bit and the white list, and the value of the information protection indication bit indicates that the third P2P device allows the second P2P device to follow The whitelist sends the device information of the third P2P device to the P2P device that is connected to the P2P group.
S1114、第二P2P设备向第三P2P设备发送确认响应。S1114: The second P2P device sends an acknowledgement response to the third P2P device.
实施例5:Example 5:
本发明实施例5中,提供一种P2P组的发现方法,应用于GO设备侧,在实施例5中,GO设备在与client设备建立初步连接之后接收client设备发送的信息保护指示,并且信息保护指示中携带有信息保护标识位,并在与client设备建立安全连接之后接收加密的白名单。In the embodiment 5 of the present invention, a method for discovering a P2P group is provided, which is applied to a GO device side. In Embodiment 5, the GO device receives an information protection indication sent by the client device after establishing a preliminary connection with the client device, and the information protection The indication carries an information protection identifier and receives an encrypted whitelist after establishing a secure connection with the client device.
本发明实施例5提供的一种P2P组的发现方法,如图12所示,具体包括如下步骤:A method for discovering a P2P group according to Embodiment 5 of the present invention, as shown in FIG. 12, specifically includes the following steps:
S1201、在GO设备与client设备建立安全连接之前,GO设备接收client设备发送的信息保护指示;S1201: Before the GO device establishes a secure connection with the client device, the GO device receives an information protection indication sent by the client device.
信息保护指示中携带有信息保护标识信息;信息保护标识信息用于表征client设备是否允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备。The information protection indicator carries the information protection identifier information. The information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist.
S1202、接收P2P设备发送的P2P查询消息。S1202: Receive a P2P query message sent by the P2P device.
S1203、判断client设备的信息保护指示中携带的信息保护标识信息是否表征允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备;若是,进入步骤S1204,否则,进入步骤S1207。S1203: Determine whether the information protection identifier information carried in the information protection indication of the client device indicates that the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to the whitelist; if yes, go to step S1204, otherwise, go to step S1207. .
S1204、在GO设备与client设备建立安全连接之后,接收client设备发送的加密的白名单, S1204: After the GO device establishes a secure connection with the client device, receiving an encrypted whitelist sent by the client device,
其中,白名单包含client设备支持的P2P设备的标识信息、或者表征client设备支持的P2P设备的标识信息的信息、或者client设备支持的P2P设备的特征信息;client设备支持的P2P设备为client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is allowed by the client device. A P2P device that obtains its own device information.
本步骤中,当client设备的信息保护指示中携带的信息保护标识信息表征允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备时,在GO设备与client设备建立安全连接之后,接收client设备发送的加密的白名单。In this step, when the information protection identifier information carried in the information protection indication of the client device indicates that the GO device sends the device information of the client device to the P2P device supported by the client device according to the white list, the GO device establishes a secure connection with the client device. After that, the encrypted whitelist sent by the client device is received.
S1205、判断白名单中是否包括上述P2P设备的信息,或者上述P2P设备是否符合所述白名单中包括的client设备支持的P2P设备的特征信息;若是,则进入步骤S1206,否则,进入步骤S1207。S1205: Determine whether the information of the P2P device is included in the whitelist, or whether the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist; if yes, go to step S1206; otherwise, go to step S1207.
S1206、GO设备确定在向P2P设备发送的响应消息中携带client设备的设备信息。进入步骤S1208。S1206: The GO device determines that the device information of the client device is carried in the response message sent to the P2P device. Proceed to step S1208.
进一步地,本步骤中,当接收到client设备发送的白名单,且白名单中包括P2P设备的信息,或者接收到client设备发送的白名单,且P2P设备符合白名单中包括的client设备支持的P2P设备的特征信息时,GO设备确定在向P2P设备发送的响应消息中携带client设备的设备信息。Further, in this step, when receiving the whitelist sent by the client device, the whitelist includes the information of the P2P device, or receives the whitelist sent by the client device, and the P2P device complies with the client device supported by the whitelist. When the feature information of the P2P device is used, the GO device determines that the device information of the client device is carried in the response message sent to the P2P device.
S1207、GO设备确定在向P2P设备发送的响应消息中不携带client设备的设备信息。S1207. The GO device determines that the device information of the client device is not carried in the response message sent to the P2P device.
进一步地,本步骤中,当client设备的信息保护指示中携带的信息保护标识信息表征不允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备,或者接收到client设备发送的白名单,且白名单中不包括P2P设备的信息,或者接收到client设备发送的白名单,且P2P设备不符合白名单中包括的client设备支持的P2P设备的特征信息时,GO设备确定在向P2P设备发送的响应消息中不携带client设备的设备信息。Further, in this step, the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or send the client device to send If the whitelist does not include the information of the P2P device or the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines The response message sent to the P2P device does not carry the device information of the client device.
S1208、向P2P设备发送响应消息。S1208: Send a response message to the P2P device.
实施例6: Example 6
与本发明实施例5相应地,本发明实施例6中,提供一种P2P组的发现方法,应用于client设备侧,如图13所示,具体包括如下步骤:Corresponding to the fifth embodiment of the present invention, in the sixth embodiment of the present invention, a method for discovering a P2P group is provided, which is applied to the client device side, as shown in FIG.
S1301、client设备确定是否需要GO设备对client设备的设备信息进行保护。S1301: The client device determines whether the GO device needs to protect the device information of the client device.
S1302、在GO设备与client设备建立安全连接之前,向GO设备发送client设备的信息保护指示。S1302: Send an information protection indication of the client device to the GO device before establishing a secure connection between the GO device and the client device.
进一步地,当client设备为与GO设备建立所述P2P组的client设备时,本步骤可以具体实施为:在client设备与GO设备进行GO协商之后,且在GO设备与该client设备建立安全连接之前,向GO设备发送client设备的信息保护指示;当client设备为在P2P组建立之后加入P2P组的client设备时,本步骤可以具体实施为:在client设备接收到GO设备发送的P2P探测响应之后,且在GO设备与该client设备建立安全连接之前,向GO设备发送client设备的信息保护指示。Further, when the client device is the client device that establishes the P2P group with the GO device, the step may be specifically implemented after the GO negotiation between the client device and the GO device, and before the GO device establishes a secure connection with the client device. And sending the information protection indication of the client device to the GO device; when the client device is added to the client device of the P2P group after the P2P group is established, the step may be specifically implemented: after the client device receives the P2P probe response sent by the GO device, And before the GO device establishes a secure connection with the client device, sending an information protection indication of the client device to the GO device.
进一步地,信息保护指示中携带有信息保护标识信息;信息保护标识信息用于表征client设备是否允许GO设备按照白名单将client设备的设备信息发送给对应的P2P设备;Further, the information protection indication carries the information protection identifier information; the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the corresponding P2P device according to the whitelist;
S1303、判断信息保护标识信息是否表征client设备允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备;若是,进入步骤S1304,否则,本流程结束。S1303: Determine whether the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist; if yes, go to step S1304; otherwise, the process ends.
S1304、在GO设备与client设备建立安全连接之后,且在GO设备与client设备交互业务数据之前,向GO设备发送加密的白名单;S1304: After the GO device establishes a secure connection with the client device, and sends the encrypted whitelist to the GO device before the GO device interacts with the client device.
其中,白名单包含client设备支持的P2P设备的标识信息、或者表征client设备支持的P2P设备的标识信息的信息、或者client设备支持的P2P设备的特征信息;client设备支持的P2P设备为client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is allowed by the client device. A P2P device that obtains its own device information.
与实施例5和实施例6相应地,图14为本发明实施例提供的一种P2P组的发现方法,应用于GO设备侧和client设备侧,如图14所示,具体包括如 下步骤:Corresponding to Embodiment 5 and Embodiment 6, FIG. 14 is a method for discovering a P2P group according to an embodiment of the present invention, which is applied to a GO device side and a client device side, as shown in FIG. Next steps:
S1401、第一P2P设备和第二P2P设备之间进行探测请求消息和探测响应消息的交互。S1401: Perform interaction between the probe request message and the probe response message between the first P2P device and the second P2P device.
S1402、第一P2P设备和第二P2P设备进行GO设备协商,且协商结果为第二P2P设备为GO设备。S1402: The first P2P device and the second P2P device perform GO device negotiation, and the negotiation result is that the second P2P device is a GO device.
进一步地,本步骤中,假设确定出第二P2P设备为GO设备,那么本实施中,第二P2P设备相当于实施例5和实施例6中的GO设备,第一P2P设备相当于实施例5和实施例6中的client设备。Further, in this step, it is assumed that the second P2P device is a GO device, and in this embodiment, the second P2P device is equivalent to the GO device in Embodiment 5 and Embodiment 6, and the first P2P device is equivalent to Embodiment 5 And the client device in Embodiment 6.
S1403、第一P2P设备向第二P2P设备发送信息保护指示Association Request,且信息保护指示中携带有信息保护标识信息,信息保护标识信息表征第一P2P设备允许第二P2P设备按照白名单将第一P2P设备的设备信息发送给未接入P2P组的P2P设备。S1403: The first P2P device sends an information protection indication Association Request to the second P2P device, and the information protection indication carries the information protection identifier information, where the information protection identifier information indicates that the first P2P device allows the second P2P device to be the first according to the whitelist. The device information of the P2P device is sent to the P2P device that is not connected to the P2P group.
S1404、第二P2P设备向第一P2P设备发送确认响应Association Response。S1404: The second P2P device sends a confirmation response Association Response to the first P2P device.
S1405、第一P2P设备和第二P2P设备进行初始鉴权(Authentication)的交互。S1405: The first P2P device and the second P2P device perform an initial authentication interaction.
S1406、第一P2P设备与第二P2P设备交互WPS配置信息。S1406: The first P2P device interacts with the second P2P device to configure WPS configuration information.
S1407、第一P2P设备与第二P2P设备进行四次握手建立安全通道。S1407: The first P2P device performs a four-way handshake with the second P2P device to establish a secure channel.
进一步地,至步骤S1407可以认为第一P2P设备和第二P2P设备之间建立了安全连接。Further, it can be considered that a secure connection is established between the first P2P device and the second P2P device in step S1407.
S1408、第二P2P设备接收第一P2P设备发送的白名单。S1408: The second P2P device receives the whitelist sent by the first P2P device.
S1409、第二P2P设备接收第三P2P设备发送的查询消息。S1409: The second P2P device receives the query message sent by the third P2P device.
S1410、第二P2P设备向第三P2P设备回复响应消息,并根据第一P2P设备的白名单,确定第三P2P设备不为第一P2P设备支持的P2P设备,则在探测响应中不携带任何P2P设备的设备信息。S1410: The second P2P device sends a response message to the third P2P device, and determines that the third P2P device is not the P2P device supported by the first P2P device according to the whitelist of the first P2P device, and does not carry any P2P in the probe response. Device information for the device.
S1411、第三P2P设备向第二P2P设备发送信息保护指示Association Request,且信息保护指示中携带有信息保护指示位,信息保护指示位的值表征第三P2P设备允许第二P2P设备按照白名单将第三P2P设备的设备信息发 送给为接入P2P组的P2P设备。S1411: The third P2P device sends an information protection indication Association Request to the second P2P device, and the information protection indication carries an information protection indication bit, and the value of the information protection indication bit indicates that the third P2P device allows the second P2P device to follow the white list. Device information of the third P2P device It is sent to the P2P device that is connected to the P2P group.
S1412、第二P2P设备向第三P2P设备发送确认响应Association Response。S1412: The second P2P device sends a confirmation response Association Response to the third P2P device.
S1413、第三P2P设备和第二P2P设备进行初始鉴权(Authentication)的交互。S1413. The third P2P device and the second P2P device perform an initial authentication interaction.
S1414、第三P2P设备与第二P2P设备交互WPS配置信息。S1414. The third P2P device interacts with the second P2P device to configure WPS configuration information.
S1415、第三P2P设备与第二P2P设备进行四次握手建立安全通道。The S1415 and the third P2P device perform a four-way handshake with the second P2P device to establish a secure channel.
进一步地,至步骤S1415可以认为第三P2P设备和第二P2P设备之间建立了安全连接。Further, it is considered that a secure connection is established between the third P2P device and the second P2P device in step S1415.
S1416、第三P2P设备向第二P2P设备发送白名单。S1416: The third P2P device sends a whitelist to the second P2P device.
实施例7:Example 7
本发明实施例7中,提供一种P2P组的发现方法,应用于GO设备侧,在实施例7中,GO设备在与client设备建立安全连接之后,通过GO设备界面的对应接口接收针对client设备的信息保护指示。In the seventh embodiment of the present invention, a method for discovering a P2P group is provided, which is applied to a GO device side. In Embodiment 7, after the GO device establishes a secure connection with the client device, the GO device receives the client device through the corresponding interface of the GO device interface. Information protection instructions.
本发明实施例7提供的一种P2P组的发现方法,如图15所示,具体包括如下步骤:A method for discovering a P2P group according to Embodiment 7 of the present invention, as shown in FIG. 15, specifically includes the following steps:
S1501、在GO设备与client设备建立安全连接之后,通过GO设备界面的对应接口接收针对client设备的信息保护指示;S1501: After establishing a secure connection between the GO device and the client device, receiving, by the corresponding interface of the GO device interface, an information protection indication for the client device;
进一步地,信息保护指示用于指示是否允许GO设备将对应client设备的设备信息发送给未加入所述P2P组的P2P设备;或者Further, the information protection indication is used to indicate whether the GO device is allowed to send the device information of the corresponding client device to the P2P device that is not added to the P2P group; or
信息保护指示用于指示是否允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备;当信息保护指示用于指示允许GO设备按照白名单将client设备的设备信息发送给client设备支持的P2P设备时,信息保护指示还包括为client设备设置的白名单;The information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to the whitelist; and the information protection indication is used to indicate that the GO device is allowed to send the device information of the client device to the client according to the whitelist. When the device supports P2P devices, the information protection indication also includes a whitelist set for the client device.
白名单包含client设备支持的P2P设备的标识信息、或者表征client设备支持的P2P设备的标识信息的信息、或者client设备支持的P2P设备的特征信息;client设备支持的P2P设备为该client设备允许获得自身的设备信息的P2P设备。 The whitelist includes the identification information of the P2P device supported by the client device, or the information indicating the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device allows the client device to obtain the P2P device. P2P device with its own device information.
进一步地,针对某些不具备丰富的UI界面的client设备,用户无法直接通过用户接口(UI,User Interface)界面为client设备设置该client设备支持的P2P设备的信息,又由于GO设备通常为处理能力更强大的P2P设备,通常具有UI界面,用户可以通过GO上的界面为已经与GO设备建立了安全连接的client的设置信息保护指示。并且,用户可以通过GO界面上对应应用提供的接口进行操作,为client设备设置信息保护指示。Further, for some client devices that do not have a rich UI interface, the user cannot directly set the information of the P2P device supported by the client device through the user interface (UI, User Interface) interface, and the GO device usually processes the information. A more powerful P2P device usually has a UI interface, and the user can use the interface on the GO to set a protection indication for the client that has established a secure connection with the GO device. Moreover, the user can operate through an interface provided by the corresponding application on the GO interface, and set an information protection indication for the client device.
进一步地,可以包括多种设置方式:设置是否允许将client设备的信息发送给未接入P2P组的P2P设备,或者,是否允许按照白名单将client设备的信息发送给未接入P2P组的P2P设备,若允许,还需要为client设备设置对应的白名单。Further, a plurality of setting modes may be included: whether to allow the information of the client device to be sent to the P2P device that is not connected to the P2P group, or whether the information of the client device is allowed to be sent to the P2P that is not connected to the P2P group according to the whitelist. The device, if allowed, also needs to set a corresponding whitelist for the client device.
S1502、接收P2P设备发送的P2P查询消息。S1502: Receive a P2P query message sent by the P2P device.
S1503、根据获得的client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带client设备的设备信息,若是,进入步骤S1504,否则,进入步骤S1505。S1503: Determine, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in the response message sent to the P2P device, and if yes, go to step S1504; otherwise, go to step S1505.
S1504、向P2P设备发送携带有client设备的设备信息的响应消息。本流程结束。S1504: Send a response message carrying the device information of the client device to the P2P device. This process ends.
S1505、向P2P设备发送不携带任何client设备的设备信息的响应消息。本流程结束。S1505: Send a response message to the P2P device that does not carry any device information of the client device. This process ends.
基于同一发明构思,本发明实施例还提供了相关设备和P2P组,由于这些相关设备和P2P组所解决问题的原理与前述P2P组的发现方法相似,因此该相关设备和P2P组的实施可以参见前述方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present invention further provides a related device and a P2P group. Since the principle of the problem solved by the related device and the P2P group is similar to the method for discovering the P2P group, the implementation of the related device and the P2P group can be referred to. The implementation of the foregoing method will not be repeated here.
本发明实施例提供的一种P2P组中的GO设备,如图16所示,包括如下模块:The GO device in the P2P group provided by the embodiment of the present invention, as shown in FIG. 16, includes the following modules:
获得模块1601,用于获得client设备的信息保护指示;其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备将所述client设备的设备信息进行保护;The obtaining module 1601 is configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client Device information of the device is protected;
接收模块1602,用于接收P2P设备发送的P2P查询消息; The receiving module 1602 is configured to receive a P2P query message sent by the P2P device.
确定模块1603,用于根据所述获得模块1601获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;a determining module 1603, configured to determine, according to the information protection indication of the client device obtained by the obtaining module 1601, whether the device information of the client device is carried in a response message sent to the P2P device;
发送模块1604,用于向所述P2P设备发送所述响应消息。The sending module 1604 is configured to send the response message to the P2P device.
进一步地,所述获得模块1601,具体用于在所述GO设备与所述client设备建立安全连接之前,接收所述client设备发送的信息保护指示。Further, the obtaining module 1601 is specifically configured to receive an information protection indication sent by the client device before the GO device establishes a secure connection with the client device.
进一步地,所述获得模块1601,具体用于在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的信息保护指示。Further, the obtaining module 1601 is specifically configured to: after the GO device establishes a secure connection with the client device, receive an encrypted information protection indication sent by the client device.
进一步地,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device;
所述确定模块1603,具体用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The determining module 1603 is configured to: when the information protection identifier information carried in the information protection indication of the client device is configured to allow the GO device to send the device information of the client device to the P2P device, determine The device sends the device information of the client device to the response message sent by the P2P device;
当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, determine a response message sent to the P2P device. The device information of the client device is not carried in the device.
进一步地,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist. P2P device supported by the client device;
当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许 获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device Supported P2P devices are allowed for the client device A P2P device that obtains device information of the client.
进一步地,所述确定模块1603,具体用于当所述client设备的信息保护指示中携带有白名单,且所述白名单中包括所述P2P设备的信息,或者Further, the determining module 1603 is configured to: when the information protection indication of the client device carries a whitelist, and the whitelist includes the information of the P2P device, or
所述client设备的信息保护指示中携带有白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The information protection indication of the client device carries a whitelist, and the P2P device determines the response sent to the P2P device when the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist. The message carrying the device information of the client device is included in the message;
当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
所述client设备的信息保护指示中携带有白名单,且所述白名单中不包括所述P2P设备的信息,或者The information protection indication of the client device carries a whitelist, and the whitelist does not include the information of the P2P device, or
所述client设备的信息保护指示中携带有白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection indication of the client device carries a whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device sends the information to the P2P device. The device information of the client device is not carried in the response message.
进一步地,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist. P2P device supported by the client device;
所述接收模块1602,还用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的白名单;The receiving module 1602 is further configured to: when the information protection indication information carried in the information protection indication of the client device is used to indicate that the GO device is configured to send the device information of the client device to the client device according to a white list. Receiving, by the P2P device, an encrypted white list sent by the client device after the GO device establishes a secure connection with the client device;
其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
进一步地,所述确定模块1603,具体用于当接收到所述client设备发送的白名单,且所述白名单中包括所述P2P设备的信息,或者 Further, the determining module 1603 is specifically configured to: when receiving the whitelist sent by the client device, the whitelist includes the information of the P2P device, or
接收到所述client设备发送的白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;Receiving the whitelist sent by the client device, and the P2P device is configured to carry the response message sent by the P2P device when the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist. Device information of the client device;
当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
接收到所述client设备发送的白名单,且所述白名单中不包括所述P2P设备的信息,或者Receiving a whitelist sent by the client device, and the whitelist does not include the information of the P2P device, or
接收到所述client设备发送的白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。After receiving the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the response message is sent to the P2P device. The device information of the client device is not carried.
进一步地,所述获得模块1601,具体用于在所述GO设备与所述client设备建立安全连接之后,通过所述GO设备界面的对应接口接收针对所述client设备的信息保护指示;Further, the obtaining module 1601 is configured to: after the GO device establishes a secure connection with the client device, receive an information protection indication for the client device by using a corresponding interface of the GO device interface;
所述信息保护指示用于指示是否允许所述GO设备将所述client设备的设备信息发送给未加入所述P2P组的P2P设备;或者The information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not joined to the P2P group; or
所述信息保护指示用于指示是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护指示用于指示允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示还包括为所述client设备设置的白名单;The information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection indication is used to indicate that the GO device is allowed to be When the device information of the client device is sent to the P2P device supported by the client device according to the whitelist, the information protection indication further includes a whitelist set for the client device;
所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
本发明实施例提供的一种P2P组中的client设备,如图17所示,包括如下模块: The client device in the P2P group provided by the embodiment of the present invention, as shown in FIG. 17, includes the following modules:
确定模块1701,用于确定是否需要GO设备对所述client设备的设备信息进行保护;a determining module 1701, configured to determine whether a GO device is required to protect device information of the client device;
发送模块1702,用于向所述GO设备发送所述确定模块1701确定的所述client设备的信息保护指示;The sending module 1702 is configured to send, to the GO device, an information protection indication of the client device determined by the determining module 1701;
其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备对所述client设备的设备信息进行保护,以便所述GO设备根据所述client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带所述client设备的设备信息,所述P2P设备是未加入所述P2P组的P2P设备。The client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect device information of the client device, so that the GO device according to the The information protection indication of the client device is used to determine whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
进一步地,所述发送模块1702,具体用于在所述GO设备与所述client设备建立安全连接之前,向所述GO设备发送所述client设备的信息保护指示。Further, the sending module 1702 is specifically configured to send an information protection indication of the client device to the GO device before the GO device establishes a secure connection with the client device.
进一步地,所述发送模块1702,具体用于在所述client设备与所述GO设备建立安全连接之后,向所述GO设备发送加密的信息保护指示。Further, the sending module 1702 is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
进一步地,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备。Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device.
进一步地,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist. P2P device supported by the client device;
当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
进一步地,所述信息保护指示中携带有信息保护标识信息;所述信息保 护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;Further, the information protection indication carries information protection identification information; The protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to a whitelist;
所述发送模块1702,还用于当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在向所述GO设备发送所述client设备的信息保护指示之后,在所述GO设备与所述client设备建立安全连接之后,向所述GO设备发送加密的白名单;The sending module 1702 is further configured to: when the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to a white list, After transmitting the information protection indication of the client device to the GO device, after the GO device establishes a secure connection with the client device, sending an encrypted whitelist to the GO device;
其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
本发明实施例提供的一种P2P组,包括:一个如图16所示的GO设备、以及至少一个如图17所示的client设备。A P2P group provided by the embodiment of the present invention includes: a GO device as shown in FIG. 16 and at least one client device as shown in FIG. 17.
基于同一发明构思,本发明实施例还提供了相关设备和P2P组,由于这些相关设备和P2P组所解决问题的原理与前述P2P组的发现方法相似,因此该相关设备和P2P组的实施可以参见前述方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present invention further provides a related device and a P2P group. Since the principle of the problem solved by the related device and the P2P group is similar to the method for discovering the P2P group, the implementation of the related device and the P2P group can be referred to. The implementation of the foregoing method will not be repeated here.
本发明实施例提供了一种P2P组中的GO设备,如图18所示,包括处理器1801(可以为一个或多个,本发明各实施例中以一个为例)、接收器1802、发送器1803、存储器1804以及总线系统1805,其中:The embodiment of the present invention provides a GO device in a P2P group, as shown in FIG. 18, including a processor 1801 (which may be one or more, one of the embodiments of the present invention is taken as an example), and the receiver 1802 sends 1803, memory 1804, and bus system 1805, wherein:
处理器1801控制GO设备的操作,处理器1801还可以称为CPU(Central Processing Unit,中央处理单元)。处理器1801可能是一种集成电路芯片,具有信号的处理能力。处理器1801还可以是通用处理器、数字信号处理器(DSP,Digital Signal Processing)、专用集成电路(ASIC,Application Specific Integrated Circuit)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 1801 controls the operation of the GO device, and the processor 1801 may also be referred to as a CPU (Central Processing Unit). The processor 1801 may be an integrated circuit chip with signal processing capabilities. The processor 1801 may also be a general-purpose processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a Field-Programmable Gate Array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
存储器1804可以包括只读存储器和随机存取存储器,并向处理器1801提供指令和数据。存储器1804的一部分还可以包括非易失性随机存取存储器 (NVRAM)。Memory 1804 can include read only memory and random access memory and provides instructions and data to processor 1801. A portion of memory 1804 may also include non-volatile random access memory (NVRAM).
GO设备的各个组件通过总线系统1805耦合在一起,其中总线系统1805除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。该总线系统可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外部设备互连)总线或EISA(Extended Industry Standard Architecture,扩展工业标准体系结构)总线等。所述总线可以是一条或多条物理线路,当是多条物理线路时可以分为地址总线、数据总线、控制总线等。在本发明的其它一些实施例中,处理器1801、存储器1804以及接收器1802、发送器1803也可以通过通信线路直接连接。但是为了清楚说明起见,在图中将各种总线都标为总线系统1805。The various components of the GO device are coupled together by a bus system 1805, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. The bus system may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus may be one or more physical lines, and when it is a plurality of physical lines, it may be divided into an address bus, a data bus, a control bus, and the like. In some other embodiments of the present invention, the processor 1801, the memory 1804, and the receiver 1802, the transmitter 1803 may also be directly connected through a communication line. However, for clarity of description, various buses are labeled as bus system 1805 in the figure.
存储器1804存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:Memory 1804 stores the following elements, executable modules or data structures, or subsets thereof, or their extended sets:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器1801通过调用存储器1804存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 1801 performs the following operations by calling an operation instruction stored in the memory 1804 (which can be stored in the operating system):
处理器1801,用于获得client设备的信息保护指示;其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备将所述client设备的设备信息进行保护;The processor 1801 is configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client Device information of the device is protected;
接收器1802,用于接收P2P设备发送的P2P查询消息;The receiver 1802 is configured to receive a P2P query message sent by the P2P device.
处理器1801,还用于根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The processor 1801 is further configured to: determine, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in a response message sent to the P2P device;
发送器1803,用于向所述P2P设备发送所述响应消息。The transmitter 1803 is configured to send the response message to the P2P device.
进一步地,所述处理器1801,具体在所述GO设备与所述client设备建立安全连接之前,通过所述接收器1802接收所述client设备发送的信息保护指示。Further, the processor 1801 receives, by the receiver 1802, an information protection indication sent by the client device, before the GO device establishes a secure connection with the client device.
进一步地,所述处理器1801,具体在所述GO设备与所述client设备建立安全连接之后,通过所述接收器1802接收所述client设备发送的加密的信 息保护指示。Further, the processor 1801, after the GO device establishes a secure connection with the client device, receives the encrypted letter sent by the client device by using the receiver 1802. Information protection instructions.
进一步地,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device;
所述处理器1801,具体用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The processor 1801 is configured to: when the information protection identifier information carried in the information protection indication of the client device is configured to allow the GO device to send the device information of the client device to the P2P device, determine The device sends the device information of the client device to the response message sent by the P2P device;
当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, determine a response message sent to the P2P device. The device information of the client device is not carried in the device.
进一步地,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist. P2P device supported by the client device;
当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
进一步地,所述处理器1801,具体用于当所述client设备的信息保护指示中携带有白名单,且所述白名单中包括所述P2P设备的信息,或者Further, the processor 1801 is specifically configured to: when the information protection indication of the client device carries a whitelist, and the whitelist includes the information of the P2P device, or
所述client设备的信息保护指示中携带有白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The information protection indication of the client device carries a whitelist, and the P2P device determines the response sent to the P2P device when the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist. The message carrying the device information of the client device is included in the message;
当所述client设备的信息保护指示中携带的信息保护标识信息表征不允 许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device is not allowed to be characterized The GO device sends the device information of the client device to the P2P device supported by the client device according to a whitelist, or
所述client设备的信息保护指示中携带有白名单,且所述白名单中不包括所述P2P设备的信息,或者The information protection indication of the client device carries a whitelist, and the whitelist does not include the information of the P2P device, or
所述client设备的信息保护指示中携带有白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection indication of the client device carries a whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device sends the information to the P2P device. The device information of the client device is not carried in the response message.
进一步地,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist. P2P device supported by the client device;
所述接收器1802,还用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的白名单;The receiver 1802 is further configured to: when the information protection indication information carried in the information protection indication of the client device is used to indicate that the GO device is configured to send the device information of the client device to the client device according to a white list. Receiving, by the P2P device, an encrypted white list sent by the client device after the GO device establishes a secure connection with the client device;
其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
进一步地,所述处理器1801,具体用于当所述接收器1802接收到所述client设备发送的白名单,且所述白名单中包括所述P2P设备的信息,或者Further, the processor 1801 is specifically configured to: when the receiver 1802 receives the whitelist sent by the client device, and the whitelist includes the information of the P2P device, or
当所述接收器1802接收到所述client设备发送的白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;When the receiver 1802 receives the whitelist sent by the client device, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device is in the P2P device The sent response message carries the device information of the client device.
当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
当所述接收器1802接收到所述client设备发送的白名单,且所述白名单 中不包括所述P2P设备的信息,或者When the receiver 1802 receives the whitelist sent by the client device, and the whitelist Does not include information about the P2P device, or
当所述接收器1802接收到所述client设备发送的白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the receiver 1802 receives the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P is in the P2P The device information sent by the device does not carry the device information of the client device.
进一步地,所述处理器1801,具体用于在所述GO设备与所述client设备建立安全连接之后,通过所述GO设备界面的对应接口接收针对所述client设备的信息保护指示;Further, the processor 1801 is configured to: after the GO device establishes a secure connection with the client device, receive an information protection indication for the client device by using a corresponding interface of the GO device interface;
所述信息保护指示用于指示是否允许所述GO设备将所述client设备的设备信息发送给未加入所述P2P组的P2P设备;或者The information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not joined to the P2P group; or
所述信息保护指示用于指示是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护指示用于指示允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示还包括为所述client设备设置的白名单;The information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection indication is used to indicate that the GO device is allowed to be When the device information of the client device is sent to the P2P device supported by the client device according to the whitelist, the information protection indication further includes a whitelist set for the client device;
所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
本发明实施例提供了一种P2P组中的client设备,如图19所示,包括处理器1901(可以为一个或多个,本发明各实施例中以一个为例)、发送器1902、存储器1903以及总线系统1904,其中:The embodiment of the present invention provides a client device in a P2P group, as shown in FIG. 19, including a processor 1901 (which may be one or more, one of the embodiments of the present invention is taken as an example), a transmitter 1902, and a memory. 1903 and a bus system 1904, wherein:
处理器1901控制GO设备的操作,处理器1901还可以称为CPU(Central Processing Unit,中央处理单元)。处理器1901可能是一种集成电路芯片,具有信号的处理能力。处理器1901还可以是通用处理器、数字信号处理器(DSP,Digital Signal Processing)、专用集成电路(ASIC,Application Specific Integrated Circuit)、现场可编程门阵列(FPGA,Field-Programmable Gate Array)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处 理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 1901 controls the operation of the GO device, and the processor 1901 may also be referred to as a CPU (Central Processing Unit). The processor 1901 may be an integrated circuit chip with signal processing capabilities. The processor 1901 may also be a general-purpose processor, a digital signal processing (DSP), an application specific integrated circuit (ASIC), a Field-Programmable Gate Array (FPGA), or the like. Programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. General office The processor can be a microprocessor or the processor can be any conventional processor or the like.
存储器1903可以包括只读存储器和随机存取存储器,并向处理器1901提供指令和数据。存储器1903的一部分还可以包括非易失性随机存取存储器(NVRAM)。The memory 1903 can include read only memory and random access memory and provides instructions and data to the processor 1901. A portion of the memory 1903 may also include non-volatile random access memory (NVRAM).
GO设备的各个组件通过总线系统1904耦合在一起,其中总线系统1904除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。该总线系统可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component Interconnect,外部设备互连)总线或EISA(Extended Industry Standard Architecture,扩展工业标准体系结构)总线等。所述总线可以是一条或多条物理线路,当是多条物理线路时可以分为地址总线、数据总线、控制总线等。在本发明的其它一些实施例中,处理器1901、存储器1903以及发送器1902也可以通过通信线路直接连接。但是为了清楚说明起见,在图中将各种总线都标为总线系统1904。The various components of the GO device are coupled together by a bus system 1904, which may include, in addition to the data bus, a power bus, a control bus, a status signal bus, and the like. The bus system may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus may be one or more physical lines, and when it is a plurality of physical lines, it may be divided into an address bus, a data bus, a control bus, and the like. In some other embodiments of the present invention, the processor 1901, the memory 1903, and the transmitter 1902 may also be directly connected through a communication line. However, for clarity of description, various buses are labeled as bus system 1904 in the figure.
存储器1903存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 1903 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: include various operation instructions for implementing various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
在本发明实施例中,处理器1901通过调用存储器1903存储的操作指令(该操作指令可存储在操作系统中),执行如下操作:In the embodiment of the present invention, the processor 1901 performs the following operations by calling an operation instruction stored in the memory 1903 (which can be stored in the operating system):
处理器1901,用于确定是否需要GO设备对所述client设备的设备信息进行保护;The processor 1901 is configured to determine whether the GO device is required to protect device information of the client device.
发送器1902,用于向所述GO设备发送所述处理器1901确定的所述client设备的信息保护指示;a transmitter 1902, configured to send, to the GO device, an information protection indication of the client device determined by the processor 1901;
其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备对所述client设备的设备信息进行保护,以便所述GO设备根据所述client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带所述client设备的设备信息,所述P2P设备是未加入所述P2P组的P2P设备。 The client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect device information of the client device, so that the GO device according to the The information protection indication of the client device is used to determine whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
进一步地,所述发送器1902,具体用于在所述GO设备与所述client设备建立安全连接之前,向所述GO设备发送所述client设备的信息保护指示。Further, the transmitter 1902 is specifically configured to send an information protection indication of the client device to the GO device before the GO device establishes a secure connection with the client device.
进一步地,所述发送器1902,具体用于在所述client设备与所述GO设备建立安全连接之后,向所述GO设备发送加密的信息保护指示。Further, the transmitter 1902 is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
进一步地,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备。Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device.
进一步地,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist. P2P device supported by the client device;
当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
进一步地,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;Further, the information protection indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the whitelist according to the whitelist. P2P device supported by the client device;
所述发送器1902,还用于当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在向所述GO设备发送所述client设备的信息保护指示之后,在所述GO设备与所述client设备建立安全连接之后,向所述GO设备发送加密的白名单;The transmitter 1902 is further configured to: when the information protection identifier information indicates that the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a white list, After transmitting the information protection indication of the client device to the GO device, after the GO device establishes a secure connection with the client device, sending an encrypted whitelist to the GO device;
其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备 支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the client device. The feature information of the supported P2P device; the P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
本发明实施例提供的一种P2P组,包括:一个如图18所示的GO设备、以及至少一个如图19所示的client设备。A P2P group provided by the embodiment of the present invention includes: a GO device as shown in FIG. 18, and at least one client device as shown in FIG.
上述各装置实施例中各模块或组件实现的功能可参考图2至图15所示流程中的相应处理步骤,在此不再赘述。For the functions implemented by the modules or components in the foregoing embodiments, reference may be made to the corresponding processing steps in the processes shown in FIG. 2 to FIG. 15 , and details are not described herein again.
本发明实施例提供的一种P2P组的发现方法、相关设备及P2P组,在client设备侧,client设备确定是否需要GO设备对client设备的设备信息进行保护;并向GO设备发送client设备的信息保护指示;在GO设备侧,GO设备获得client设备的信息保护指示;接收P2P设备发送的P2P查询请求;根据获得的client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带client设备的设备信息,并向P2P设备发送该响应信息。本发明实施例提供的一组P2P组的探测方法,client设备可以为自身确定是否需要GO设备对client设备的设备信息进行保护的策略,并由client设备将确定的指示是否需要GO设备对client设备的设备信息进行保护的信息保护指示发送给GO设备,当GO设备接收到P2P设备发送的P2P查询消息时,不会将已经与自身建立连接的所有client设备的设备信息全部发送给待加入P2P设备,而是根据获得的client设备的信息保护指示,针对允许将设备信息发送给待加入P2P设备的client设备,将该client设备的设备信息发送给P2P设备,针对不允许将设备信息发送给待加入P2P设备的client设备,不将该client设备的设备信息发送给待加入P2P设备,提高了client设备的设备信息的安全性。The P2P group discovery method, related device, and P2P group provided by the embodiment of the present invention, on the client device side, the client device determines whether the GO device needs to protect the device information of the client device, and sends the client device information to the GO device. a protection indication; on the GO device side, the GO device obtains an information protection indication of the client device; receives a P2P query request sent by the P2P device; and determines whether to carry the client in the response message sent to the P2P device according to the obtained information protection indication of the client device Device information of the device and send the response message to the P2P device. In the method for detecting a group of P2P groups provided by the embodiment of the present invention, the client device may determine, for itself, whether the GO device needs to protect the device information of the client device, and the client device determines whether the GO device is required for the client device. The information protection indication of the protection of the device information is sent to the GO device. When the GO device receives the P2P query message sent by the P2P device, the device information of all the client devices that have established the connection with the device is not sent to the P2P device to be added. And, according to the obtained information protection indication of the client device, the device information of the client device is sent to the P2P device for sending the device information to the client device to be joined to the P2P device, and the device information is not allowed to be sent to be added. The client device of the P2P device does not send the device information of the client device to the P2P device to be added, which improves the security of the device information of the client device.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产 品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is directed to a method, apparatus (system), and computer program according to an embodiment of the present invention. The flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明实施例进行各种改动和变型而不脱离本发明实施例的精神和范围。这样,倘若本发明实施例的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the embodiments of the invention without departing from the spirit and scope of the embodiments of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the embodiments of the invention.

Claims (47)

  1. 一种P2P组的发现方法,其特征在于,包括:A method for discovering a P2P group, comprising:
    GO设备获得client设备的信息保护指示;The GO device obtains an information protection indication of the client device;
    其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备将所述client设备的设备信息进行保护;The client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device.
    所述GO设备接收P2P设备发送的P2P查询消息;Receiving, by the GO device, a P2P query message sent by the P2P device;
    所述GO设备根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The GO device determines, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in the response message sent to the P2P device;
    所述GO设备向所述P2P设备发送所述响应消息。The GO device sends the response message to the P2P device.
  2. 如权利要求1所述的方法,其特征在于,GO设备获得client设备的信息保护指示,具体包括:The method of claim 1, wherein the GO device obtains an information protection indication of the client device, specifically:
    在所述GO设备与所述client设备建立安全连接之前,所述GO设备接收所述client设备发送的信息保护指示。Before the GO device establishes a secure connection with the client device, the GO device receives an information protection indication sent by the client device.
  3. 如权利要求1所述的方法,其特征在于,GO设备获得client设备的信息保护指示,具体包括:The method of claim 1, wherein the GO device obtains an information protection indication of the client device, specifically:
    在所述GO设备与所述client设备建立安全连接之后,所述GO设备接收所述client设备发送的加密的信息保护指示。After the GO device establishes a secure connection with the client device, the GO device receives an encrypted information protection indication sent by the client device.
  4. 如权利要求2或3所述的方法,其特征在于,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备;The method according to claim 2 or 3, wherein the information protection indication carries information protection identification information, and the information protection identification information is used to indicate whether the client device allows the GO device to The device information of the client device is sent to the P2P device.
    根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息,具体包括:And determining, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in the response message sent to the P2P device, specifically:
    当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,所述GO设备确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息; And when the information protection identifier information carried in the information protection indication of the client device indicates that the GO device is configured to send the device information of the client device to the P2P device, the GO device determines to send to the P2P device The response message carries the device information of the client device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,所述GO设备确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, the GO device determines that the P2P device is in the P2P device. The device information of the client device is not carried in the response message sent.
  5. 如权利要求2或3所述的方法,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The method according to claim 2 or 3, wherein the information protection indication carries information protection identification information; the information protection identification information is used to indicate whether the client device allows the GO device to follow the white list. Sending the device information of the client device to the P2P device supported by the client device;
    当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  6. 如权利要求5所述的方法,其特征在于,根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息,具体包括:The method according to claim 5, wherein determining whether to carry the device information of the client device in the response message sent to the P2P device according to the obtained information protection indication of the client device includes:
    当所述client设备的信息保护指示中携带有白名单,且所述白名单中包括所述P2P设备的信息,或者When the information protection indication of the client device carries a whitelist, and the whitelist includes the information of the P2P device, or
    所述client设备的信息保护指示中携带有白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,所述GO设备确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;When the information protection indication of the client device carries a whitelist, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines that the P2P is in the P2P The device sends the response information of the client device to the response message sent by the device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
    所述client设备的信息保护指示中携带有白名单,且所述白名单中不包括 所述P2P设备的信息,或者The information protection indication of the client device carries a whitelist, and the whitelist does not include Information of the P2P device, or
    所述client设备的信息保护指示中携带有白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,所述GO设备确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection indication of the client device carries a whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines that the The device information of the client device is not carried in the response message sent by the P2P device.
  7. 如权利要求2所述的方法,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The method of claim 2, wherein the information protection indication carries information protection identification information; the information protection identification information is used to indicate whether the client device allows the GO device to perform whitelisting The device information of the client device is sent to the P2P device supported by the client device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述方法还包括:When the information protection identifier information carried in the information protection indication of the client device indicates that the GO device is configured to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the method further includes: :
    在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的白名单;After the GO device establishes a secure connection with the client device, receiving an encrypted white list sent by the client device;
    其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  8. 如权利要求7所述的方法,其特征在于,根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息,具体包括:The method of claim 7, wherein determining whether to carry the device information of the client device in the response message sent to the P2P device according to the obtained information protection indication of the client device includes:
    当接收到所述client设备发送的白名单,且所述白名单中包括所述P2P设备的信息,或者Receiving a whitelist sent by the client device, where the whitelist includes information about the P2P device, or
    当接收到所述client设备发送的白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,所述GO设备确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;When receiving the whitelist sent by the client device, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines to send to the P2P device The response message carries the device information of the client device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允 许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device is not allowed to be characterized The GO device sends the device information of the client device to the P2P device supported by the client device according to a whitelist, or
    当接收到所述client设备发送的白名单,且所述白名单中不包括所述P2P设备的信息,或者Receiving a whitelist sent by the client device, and the whitelist does not include information about the P2P device, or
    当接收到所述client设备发送的白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,所述GO设备确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When receiving the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, the GO device determines that the P2P device is in the P2P device. The device information of the client device is not carried in the response message sent.
  9. 如权利要求1所述的方法,其特征在于,GO设备获得client设备的信息保护指示,具体包括:The method of claim 1, wherein the GO device obtains an information protection indication of the client device, specifically:
    在所述GO设备与所述client设备建立安全连接之后,通过所述GO设备界面的对应接口接收针对所述client设备的信息保护指示;After the GO device establishes a secure connection with the client device, receiving, by the corresponding interface of the GO device interface, an information protection indication for the client device;
    所述信息保护指示用于指示是否允许所述GO设备将所述client设备的设备信息发送给未加入所述P2P组的P2P设备;或者The information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not joined to the P2P group; or
    所述信息保护指示用于指示是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护指示用于指示允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示还包括为所述client设备设置的白名单;The information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection indication is used to indicate that the GO device is allowed to be When the device information of the client device is sent to the P2P device supported by the client device according to the whitelist, the information protection indication further includes a whitelist set for the client device;
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  10. 一种P2P组的发现方法,其特征在于,包括:A method for discovering a P2P group, comprising:
    client设备确定是否需要GO设备对所述client设备的设备信息进行保护;The client device determines whether the GO device is required to protect the device information of the client device;
    所述client设备向所述GO设备发送所述client设备的信息保护指示;Sending, by the client device, an information protection indication of the client device to the GO device;
    其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备对所述client设备的设备信息进行保护, 以便所述GO设备根据所述client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带所述client设备的设备信息,所述P2P设备是未加入所述P2P组的P2P设备。The client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device. The P2P device is a P2P device that is not added to the P2P group, and is configured to carry the device information of the client device in a response message sent to the P2P device according to the information protection indication of the client device.
  11. 如权利要求10所述的方法,其特征在于,所述client设备向所述GO设备发送所述client设备的信息保护指示,具体包括:The method according to claim 10, wherein the client device sends an information protection indication of the client device to the GO device, which specifically includes:
    在所述GO设备与所述client设备建立安全连接之前,所述client设备向所述GO设备发送所述client设备的信息保护指示。Before the GO device establishes a secure connection with the client device, the client device sends an information protection indication of the client device to the GO device.
  12. 如权利要求10所述的方法,其特征在于,所述client设备向所述GO设备发送所述client设备的信息保护指示,具体包括:The method according to claim 10, wherein the client device sends an information protection indication of the client device to the GO device, which specifically includes:
    在所述client设备与所述GO设备建立安全连接之后,所述client设备向所述GO设备发送加密的信息保护指示。After the client device establishes a secure connection with the GO device, the client device sends an encrypted information protection indication to the GO device.
  13. 如权利要求11或12所述的方法,其特征在于,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备。The method according to claim 11 or 12, wherein the information protection indication carries information protection identification information, and the information protection identification information is used to indicate whether the client device allows the GO device to The device information of the client device is sent to the P2P device.
  14. 如权利要求11或12所述的方法,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The method according to claim 11 or 12, wherein the information protection indication carries information protection identification information, and the information protection identification information is used to indicate whether the client device allows the GO device to follow the white list. Sending the device information of the client device to the P2P device supported by the client device;
    当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  15. 如权利要求11所述的方法,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允 许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The method of claim 11, wherein the information protection indication carries information protection identification information; the information protection identification information is used to indicate whether the client device is allowed The GO device sends the device information of the client device to the P2P device supported by the client device according to the whitelist;
    当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在向所述GO设备发送所述client设备的信息保护指示之后,还包括:When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, send the client to the GO device. After the device's information protection instructions, it also includes:
    在所述GO设备与所述client设备建立安全连接之后,所述client设备向所述GO设备发送加密的白名单;After the GO device establishes a secure connection with the client device, the client device sends an encrypted whitelist to the GO device;
    其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  16. 一种P2P组中的GO设备,其特征在于,包括:A GO device in a P2P group, comprising:
    获得模块,用于获得client设备的信息保护指示;其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要该GO设备将所述client设备的设备信息进行保护;Obtaining a module, configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client device Equipment information is protected;
    接收模块,用于接收P2P设备发送的P2P查询消息;a receiving module, configured to receive a P2P query message sent by the P2P device;
    确定模块,用于根据所述获得模块获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;a determining module, configured to determine, according to the information protection indication of the client device obtained by the obtaining module, whether the device information of the client device is carried in a response message sent to the P2P device;
    发送模块,用于向所述P2P设备发送所述响应消息。And a sending module, configured to send the response message to the P2P device.
  17. 如权利要求16所述的GO设备,其特征在于,所述获得模块,具体用于在所述GO设备与所述client设备建立安全连接之前,接收所述client设备发送的信息保护指示。The GO device according to claim 16, wherein the obtaining module is configured to receive an information protection indication sent by the client device before the GO device establishes a secure connection with the client device.
  18. 如权利要求16所述的GO设备,其特征在于,所述获得模块,具体用于在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的信息保护指示。The GO device according to claim 16, wherein the obtaining module is configured to receive an encrypted information protection indication sent by the client device after the GO device establishes a secure connection with the client device.
  19. 如权利要求17或18所述的GO设备,其特征在于,所述信息保护 指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备;A GO device according to claim 17 or 18, wherein said information protection The indication carries the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device;
    所述确定模块,具体用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The determining module is specifically configured to: when the information protection identifier information carried in the information protection indication of the client device is configured to allow the GO device to send the device information of the client device to the P2P device, determine the The device information of the client device is carried in the response message sent by the P2P device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, determine a response message sent to the P2P device. The device information of the client device is not carried in the device.
  20. 如权利要求17或18所述的GO设备,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The GO device according to claim 17 or 18, wherein the information protection indication carries information protection identification information; the information protection identification information is used to indicate whether the client device allows the GO device to follow white The list sends the device information of the client device to the P2P device supported by the client device;
    当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  21. 如权利要求20所述的GO设备,其特征在于,所述确定模块,具体用于当所述client设备的信息保护指示中携带有白名单,且所述白名单中包括所述P2P设备的信息,或者The GO device according to claim 20, wherein the determining module is configured to: when the information protection indication of the client device carries a whitelist, and the whitelist includes the information of the P2P device ,or
    所述client设备的信息保护指示中携带有白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息; The information protection indication of the client device carries a whitelist, and the P2P device determines the response sent to the P2P device when the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist. The message carrying the device information of the client device is included in the message;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
    所述client设备的信息保护指示中携带有白名单,且所述白名单中不包括所述P2P设备的信息,或者The information protection indication of the client device carries a whitelist, and the whitelist does not include the information of the P2P device, or
    所述client设备的信息保护指示中携带有白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection indication of the client device carries a whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device sends the information to the P2P device. The device information of the client device is not carried in the response message.
  22. 如权利要求17所述的GO设备,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The GO device according to claim 17, wherein the information protection indication carries information protection identification information; the information protection identification information is used to indicate whether the client device allows the GO device to follow a white list. Sending the device information of the client device to the P2P device supported by the client device;
    所述接收模块,还用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的白名单;The receiving module is further configured to: when the information protection indication information carried in the information protection indication of the client device indicates that the GO device is configured to send the device information of the client device to the P2P supported by the client device according to the whitelist Receiving, after the device establishes a secure connection with the client device, receiving an encrypted white list sent by the client device;
    其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  23. 如权利要求22所述的GO设备,其特征在于,所述确定模块,具体用于当所述接收模块接收到所述client设备发送的白名单,且所述白名单中包括所述P2P设备的信息,或者The GO device according to claim 22, wherein the determining module is configured to: when the receiving module receives a whitelist sent by the client device, and the whitelist includes the P2P device Information, or
    当所述接收模块接收到所述client设备发送的白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;When the receiving module receives the whitelist sent by the client device, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, it is determined that the P2P device is sent to the P2P device. The response message carries the device information of the client device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允 许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device is not allowed to be characterized The GO device sends the device information of the client device to the P2P device supported by the client device according to a whitelist, or
    当所述接收模块接收到所述client设备发送的白名单,且所述白名单中不包括所述P2P设备的信息,或者When the receiving module receives the whitelist sent by the client device, and the whitelist does not include the information of the P2P device, or
    当所述接收模块接收到所述client设备发送的白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the receiving module receives the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device is in the P2P device The device information of the client device is not carried in the response message sent.
  24. 如权利要求16所述的GO设备,其特征在于,所述获得模块,具体用于在所述GO设备与所述client设备建立安全连接之后,通过所述GO设备界面的对应接口接收针对所述client设备的信息保护指示;The GO device according to claim 16, wherein the obtaining module is configured to: after the GO device establishes a secure connection with the client device, receive, by using a corresponding interface of the GO device interface, Information protection indication of the client device;
    所述信息保护指示用于指示是否允许所述GO设备将所述client设备的设备信息发送给未加入所述P2P组的P2P设备;或者The information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not joined to the P2P group; or
    所述信息保护指示用于指示是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护指示用于指示允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示还包括为所述client设备设置的白名单;The information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection indication is used to indicate that the GO device is allowed to be When the device information of the client device is sent to the P2P device supported by the client device according to the whitelist, the information protection indication further includes a whitelist set for the client device;
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  25. 一种P2P组中的client设备,其特征在于,包括:A client device in a P2P group, comprising:
    确定模块,用于确定是否需要GO设备对所述client设备的设备信息进行保护;a determining module, configured to determine whether a GO device is required to protect device information of the client device;
    发送模块,用于向所述GO设备发送所述确定模块确定的所述client设备的信息保护指示;a sending module, configured to send, to the GO device, an information protection indication of the client device determined by the determining module;
    其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护 指示用于指示是否需要所述GO设备对所述client设备的设备信息进行保护,以便所述GO设备根据所述client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带所述client设备的设备信息,所述P2P设备是未加入所述P2P组的P2P设备。The client device and the GO device belong to the P2P group, and the information protection The indication is used to indicate whether the GO device is required to protect device information of the client device, so that the GO device determines, according to the information protection indication of the client device, whether to carry the message in a response message sent to the P2P device. Device information of the client device, where the P2P device is a P2P device that is not added to the P2P group.
  26. 如权利要求25所述的client设备,其特征在于,所述发送模块,具体用于在所述GO设备与所述client设备建立安全连接之前,向所述GO设备发送所述client设备的信息保护指示。The client device according to claim 25, wherein the sending module is specifically configured to send information protection of the client device to the GO device before the GO device establishes a secure connection with the client device. Instructions.
  27. 如权利要求25所述的client设备,其特征在于,所述发送模块,具体用于在所述client设备与所述GO设备建立安全连接之后,向所述GO设备发送加密的信息保护指示。The client device according to claim 25, wherein the sending module is configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
  28. 如权利要求26或27所述的client设备,其特征在于,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备。The client device according to claim 26 or 27, wherein the information protection indication carries information protection identification information, and the information protection identification information is used to indicate whether the client device allows the GO device to The device information of the client device is sent to the P2P device.
  29. 如权利要求26或27所述的client设备,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The client device according to claim 26 or 27, wherein the information protection indication carries information protection identification information; the information protection identification information is used to indicate whether the client device allows the GO device to follow white The list sends the device information of the client device to the P2P device supported by the client device;
    当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  30. 如权利要求26所述的client设备,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备 是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The client device according to claim 26, wherein the information protection indication carries information protection identification information; and the information protection identification information is used to represent the client device Whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist;
    所述发送模块,还用于当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在向所述GO设备发送所述client设备的信息保护指示之后,在所述GO设备与所述client设备建立安全连接之后,向所述GO设备发送加密的白名单;The sending module is further configured to: when the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, After the GO device sends the information protection indication of the client device, after the GO device establishes a secure connection with the client device, the encrypted white list is sent to the GO device;
    其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  31. 一种P2P组,其特征在于,包括:一个如权利要求16~24所述的GO设备、以及至少一个如权利要求25~30所述的client设备。A P2P group, comprising: a GO device according to claims 16-24, and at least one client device according to claims 25-30.
  32. 一种P2P组中的GO设备,其特征在于,包括:A GO device in a P2P group, comprising:
    处理器,用于获得client设备的信息保护指示;其中,所述client设备与所述GO设备同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备将所述client设备的设备信息进行保护;a processor, configured to obtain an information protection indication of the client device, where the client device and the GO device belong to the P2P group, and the information protection indication is used to indicate whether the GO device is required to be the client device Device information for protection;
    接收器,用于接收P2P设备发送的P2P查询消息;a receiver, configured to receive a P2P query message sent by the P2P device;
    所述处理器,还用于根据获得的所述client设备的信息保护指示,确定是否在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The processor is further configured to: determine, according to the obtained information protection indication of the client device, whether the device information of the client device is carried in a response message sent to the P2P device;
    发送器,用于向所述P2P设备发送所述响应消息。And a transmitter, configured to send the response message to the P2P device.
  33. 如权利要求32所述的GO设备,其特征在于,所述处理器,具体在所述GO设备与所述client设备建立安全连接之前,通过所述接收器接收所述client设备发送的信息保护指示。The GO device according to claim 32, wherein the processor receives an information protection indication sent by the client device through the receiver before the GO device establishes a secure connection with the client device. .
  34. 如权利要求32所述的GO设备,其特征在于,所述处理器,具体在所述GO设备与所述client设备建立安全连接之后,通过所述接收器接收所述client设备发送的加密的信息保护指示。 The GO device according to claim 32, wherein the processor receives the encrypted information sent by the client device through the receiver after the GO device establishes a secure connection with the client device. Protection instructions.
  35. 如权利要求33或34所述的GO设备,其特征在于,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备;The GO device according to claim 33 or claim 34, wherein the information protection indication carries information protection identification information, and the information protection identification information is used to indicate whether the client device allows the GO device to The device information of the client device is sent to the P2P device;
    所述处理器,具体用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息;The processor is specifically configured to: when the information protection identifier information carried in the information protection indication of the client device indicates that the GO device is configured to send the device information of the client device to the P2P device, determine The device information of the client device is carried in the response message sent by the P2P device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备将所述client设备的设备信息发送给所述P2P设备时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device, determine a response message sent to the P2P device. The device information of the client device is not carried in the device.
  36. 如权利要求33或34所述的GO设备,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The GO device according to claim 33 or claim 34, wherein the information protection indication carries information protection identification information; the information protection identification information is used to indicate whether the client device allows the GO device to follow white The list sends the device information of the client device to the P2P device supported by the client device;
    当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  37. 如权利要求36所述的GO设备,其特征在于,所述处理器,具体用于当所述client设备的信息保护指示中携带有白名单,且所述白名单中包括所述P2P设备的信息,或者The GO device according to claim 36, wherein the processor is configured to: when the information protection indication of the client device carries a whitelist, and the whitelist includes the information of the P2P device ,or
    所述client设备的信息保护指示中携带有白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所 述P2P设备发送的响应消息中携带所述client设备的设备信息;When the information protection indication of the client device carries a whitelist, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, The device information of the client device is carried in the response message sent by the P2P device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
    所述client设备的信息保护指示中携带有白名单,且所述白名单中不包括所述P2P设备的信息,或者The information protection indication of the client device carries a whitelist, and the whitelist does not include the information of the P2P device, or
    所述client设备的信息保护指示中携带有白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the information protection indication of the client device carries a whitelist, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device sends the information to the P2P device. The device information of the client device is not carried in the response message.
  38. 如权利要求33所述的GO设备,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The GO device according to claim 33, wherein the information protection indication carries information protection identification information; the information protection identification information is used to indicate whether the client device allows the GO device to follow a white list. Sending the device information of the client device to the P2P device supported by the client device;
    所述接收器,还用于当所述client设备的信息保护指示中携带的信息保护标识信息表征允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在所述GO设备与所述client设备建立安全连接之后,接收所述client设备发送的加密的白名单;The receiver is further configured to: when the information protection indication information carried in the information protection indication of the client device indicates that the GO device is configured to send the device information of the client device to the P2P supported by the client device according to the whitelist. Receiving, after the device establishes a secure connection with the client device, receiving an encrypted white list sent by the client device;
    其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  39. 如权利要求38所述的GO设备,其特征在于,所述处理器,具体用于当所述接收器接收到所述client设备发送的白名单,且所述白名单中包括所述P2P设备的信息,或者The GO device according to claim 38, wherein the processor is configured to: when the receiver receives a whitelist sent by the client device, and the whitelist includes the P2P device Information, or
    当所述接收器接收到所述client设备发送的白名单,且所述P2P设备符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中携带所述client设备的设备信息; When the receiver receives the whitelist sent by the client device, and the P2P device meets the feature information of the P2P device supported by the client device included in the whitelist, it is determined that the P2P device is sent to the P2P device. The response message carries the device information of the client device;
    当所述client设备的信息保护指示中携带的信息保护标识信息表征不允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备,或者The information protection identifier information carried in the information protection indication of the client device does not allow the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, or
    当所述接收器接收到所述client设备发送的白名单,且所述白名单中不包括所述P2P设备的信息,或者When the receiver receives the whitelist sent by the client device, and the whitelist does not include the information of the P2P device, or
    当所述接收器接收到所述client设备发送的白名单,且所述P2P设备不符合所述白名单中包括的所述client设备支持的P2P设备的特征信息时,确定在向所述P2P设备发送的响应消息中不携带所述client设备的设备信息。When the receiver receives the whitelist sent by the client device, and the P2P device does not meet the feature information of the P2P device supported by the client device included in the whitelist, determining that the P2P device is in the P2P device The device information of the client device is not carried in the response message sent.
  40. 如权利要求32所述的GO设备,其特征在于,所述处理器,具体用于在所述GO设备与所述client设备建立安全连接之后,通过所述GO设备界面的对应接口接收针对所述client设备的信息保护指示;The GO device according to claim 32, wherein the processor is configured to receive, after the GO device establishes a secure connection with the client device, a corresponding interface of the GO device interface, Information protection indication of the client device;
    所述信息保护指示用于指示是否允许所述GO设备将所述client设备的设备信息发送给未加入所述P2P组的P2P设备;或者The information protection indication is used to indicate whether the GO device is allowed to send device information of the client device to a P2P device that is not joined to the P2P group; or
    所述信息保护指示用于指示是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;当所述信息保护指示用于指示允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示还包括为所述client设备设置的白名单;The information protection indication is used to indicate whether the GO device is allowed to send the device information of the client device to the P2P device supported by the client device according to a whitelist; and when the information protection indication is used to indicate that the GO device is allowed to be When the device information of the client device is sent to the P2P device supported by the client device according to the whitelist, the information protection indication further includes a whitelist set for the client device;
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  41. 一种P2P组中的client设备,其特征在于,包括:A client device in a P2P group, comprising:
    处理器,用于确定是否需要GO设备对所述client设备的设备信息进行保护;a processor, configured to determine whether a GO device is required to protect device information of the client device;
    发送器,用于向所述GO设备发送所述处理器确定的所述client设备的信息保护指示; a transmitter, configured to send, to the GO device, an information protection indication of the client device determined by the processor;
    其中,所述client设备与所述GO设备属于同属于所述P2P组,所述信息保护指示用于指示是否需要所述GO设备对所述client设备的设备信息进行保护,以便所述GO设备根据所述client设备的信息保护指示,确定是否在向P2P设备发送的响应消息中携带所述client设备的设备信息,所述P2P设备是未加入所述P2P组的P2P设备。The client device belongs to the P2P group and the information protection indication is used to indicate whether the GO device needs to protect the device information of the client device, so that the GO device is configured according to the The information protection indication of the client device determines whether the device information of the client device is carried in the response message sent to the P2P device, where the P2P device is a P2P device that is not added to the P2P group.
  42. 如权利要求41所述的client设备,其特征在于,所述发送器,具体用于在所述GO设备与所述client设备建立安全连接之前,向所述GO设备发送所述client设备的信息保护指示。The client device according to claim 41, wherein the sender is specifically configured to send information protection of the client device to the GO device before the GO device establishes a secure connection with the client device. Instructions.
  43. 如权利要求41所述的client设备,其特征在于,所述发送器,具体用于在所述client设备与所述GO设备建立安全连接之后,向所述GO设备发送加密的信息保护指示。The client device according to claim 41, wherein the sender is specifically configured to send an encrypted information protection indication to the GO device after the client device establishes a secure connection with the GO device.
  44. 如权利要求42或43所述的client设备,其特征在于,所述信息保护指示中携带有信息保护标识信息,所述信息保护标识信息用于表征所述client设备是否允许所述GO设备将所述client设备的设备信息发送给所述P2P设备。The client device according to claim 42 or 43, wherein the information protection indication carries information protection identification information, and the information protection identification information is used to indicate whether the client device allows the GO device to The device information of the client device is sent to the P2P device.
  45. 如权利要求42或43所述的client设备,其特征在于,所述信息保护指示中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;The client device according to claim 42 or 43, wherein the information protection indication carries information protection identification information; and the information protection identification information is used to indicate whether the client device allows the GO device to follow white The list sends the device information of the client device to the P2P device supported by the client device;
    当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,所述信息保护指示中还携带有所述白名单;When the information protection identifier information indicates that the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist, the information protection indication further carries White list
    所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得所述client的设备信息的P2P设备。The whitelist includes the identification information of the P2P device supported by the client device, or the information identifying the identification information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device; the client device The supported P2P device is a P2P device that allows the client device to obtain device information of the client.
  46. 如权利要求42所述的client设备,其特征在于,所述信息保护指示 中携带有信息保护标识信息;所述信息保护标识信息用于表征所述client设备是否允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备;A client device according to claim 42, wherein said information protection indication And carrying the information protection identifier information, where the information protection identifier information is used to indicate whether the client device allows the GO device to send the device information of the client device to the P2P device supported by the client device according to the whitelist;
    所述发送器,还用于当所述信息保护标识信息表征所述client设备允许所述GO设备按照白名单将所述client设备的设备信息发送给所述client设备支持的P2P设备时,在向所述GO设备发送所述client设备的信息保护指示之后,在所述GO设备与所述client设备建立安全连接之后,向所述GO设备发送加密的白名单;The sender is further configured to: when the information protection identifier information indicates that the client device allows the GO device to send device information of the client device to a P2P device supported by the client device according to a white list, After the GO device sends the information protection indication of the client device, after the GO device establishes a secure connection with the client device, the encrypted white list is sent to the GO device;
    其中,所述白名单包含所述client设备支持的P2P设备的标识信息、或者表征所述client设备支持的P2P设备的标识信息的信息、或者所述client设备支持的P2P设备的特征信息;所述client设备支持的P2P设备为所述client设备允许获得自身的设备信息的P2P设备。The whitelist includes the identifier information of the P2P device supported by the client device, or the identifier information of the P2P device supported by the client device, or the feature information of the P2P device supported by the client device. The P2P device supported by the client device is a P2P device that allows the client device to obtain its own device information.
  47. 一种P2P组,其特征在于,包括:一个如权利要求32~40所述的GO设备、以及至少一个如权利要求41~46所述的client设备。 A P2P group, comprising: a GO device according to claims 32-40, and at least one client device according to claims 41-46.
PCT/CN2015/078108 2015-04-30 2015-04-30 P2p group discovery method, related device and p2p group WO2016172963A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201580035724.2A CN106664328B (en) 2015-04-30 2015-04-30 A kind of discovery method of P2P group, relevant device and P2P group
PCT/CN2015/078108 WO2016172963A1 (en) 2015-04-30 2015-04-30 P2p group discovery method, related device and p2p group

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/078108 WO2016172963A1 (en) 2015-04-30 2015-04-30 P2p group discovery method, related device and p2p group

Publications (1)

Publication Number Publication Date
WO2016172963A1 true WO2016172963A1 (en) 2016-11-03

Family

ID=57197990

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/078108 WO2016172963A1 (en) 2015-04-30 2015-04-30 P2p group discovery method, related device and p2p group

Country Status (2)

Country Link
CN (1) CN106664328B (en)
WO (1) WO2016172963A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070001853A1 (en) * 2005-06-30 2007-01-04 Nokia Corporation RFID optimized capability negotiation
CN103327454A (en) * 2012-03-22 2013-09-25 株式会社泛泰 Method and apparatus to manage wireless direct access communication group
US20140153513A1 (en) * 2012-12-04 2014-06-05 Samsung Electronics Co., Ltd. Method and apparatus for setting up an internet protocol address in a wireless communication system
CN104010350A (en) * 2013-02-22 2014-08-27 佳能株式会社 Communication apparatus, control method therefor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8554827B2 (en) * 2006-09-29 2013-10-08 Qurio Holdings, Inc. Virtual peer for a content sharing system
US8965283B2 (en) * 2009-08-10 2015-02-24 Qualcomm Incorporated Setting up a direct link in a peer to peer wireless network
US8824437B2 (en) * 2011-03-02 2014-09-02 Ricoh Company, Ltd. Wireless communications device, electronic apparatus, and methods for determining and updating access point
US8848559B2 (en) * 2012-01-26 2014-09-30 Qualcomm Incorporated Methods and apparatuses for device discovery
CN104427488A (en) * 2013-08-29 2015-03-18 中兴通讯股份有限公司 Terminal and wireless networking method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070001853A1 (en) * 2005-06-30 2007-01-04 Nokia Corporation RFID optimized capability negotiation
CN103327454A (en) * 2012-03-22 2013-09-25 株式会社泛泰 Method and apparatus to manage wireless direct access communication group
US20140153513A1 (en) * 2012-12-04 2014-06-05 Samsung Electronics Co., Ltd. Method and apparatus for setting up an internet protocol address in a wireless communication system
CN104010350A (en) * 2013-02-22 2014-08-27 佳能株式会社 Communication apparatus, control method therefor

Also Published As

Publication number Publication date
CN106664328A (en) 2017-05-10
CN106664328B (en) 2019-11-29

Similar Documents

Publication Publication Date Title
US10516988B2 (en) Profile processing method, profile processing apparatus, user terminal, and eUICC
US11297666B2 (en) Electronic device and method for forming Wi-Fi direct group thereof
CN108886685B (en) Terminal matching method and device
CN105471481B (en) System and method for bluetooth pairing with a set of bluetooth devices
JP6759011B2 (en) Communication equipment, communication methods, and programs
JP6756009B2 (en) Data transmission
EP3637814A1 (en) Communication device, control method for communication device and program
CN105379190A (en) System and method for indicating service set identifier
US20160050566A1 (en) Wireless Terminal Configuration Method, Device, and System
BR112013000214A2 (en) method to allow, in a communication device, an indirect communication channel between the communication device and at least one additional communication device, communication device to allow an indirect communication channel between the communication device and at least one communication device additional communications, and computer program product
US20170339128A1 (en) Method and apparatus for authenticating a device using bluetooth technology
JP2017135519A (en) Communication device, communication method, and program
KR101934809B1 (en) Communication device, control method of communication device, and program
US9906953B2 (en) Method and user equipment for discovering device user
JP7387275B2 (en) Communication devices, communication methods and programs
JP6576129B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN112771815A (en) Key processing method and device
WO2016172963A1 (en) P2p group discovery method, related device and p2p group
CN113573297B (en) Communication method and device
JP7258493B2 (en) COMMUNICATION DEVICE, COMMUNICATION DEVICE CONTROL METHOD AND PROGRAM
JP6376620B2 (en) Wireless communication system, connection authentication program, and connection authentication method
JP2016032280A (en) Communication device, control method thereof, and program
EP2959742B1 (en) Communication apparatus, control method thereof, and program
US9860747B2 (en) System and method for cloud synchronizing known networks
US20210282008A1 (en) Communication apparatus, control method of communication apparatus and non-transitory computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15890343

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15890343

Country of ref document: EP

Kind code of ref document: A1