# US 2019/0320017 A1 · Service Discovery Method and Service Discovery Apparatus

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0320017 A1
- Document ID: US20190320017A1
- Status: Published application
- Kind: A1
- Application number: 16/348,260
- Filed: 2016-11-08
- Published: 2019-10-17
- Earliest claimed: 2016-11-08
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Xiaoxian Li; Ping Fang
- Web page: https://patentgrep.com/patent/US20190320017A1

## CPC

- H04L 67/1065: {Discovery involving distributed pre-established resource-based relationships among peers, e.g. based on distributed hash tables [DHT] (pre-configuration of logical or physical connections H04L67/1053)}
- H04L 67/51: Discovery or management thereof, e.g. service location protocol [SLP] or web services
- H04W 40/246: {Connectivity information discovery}
- H04W 40/32: for defining a routing cluster membership
- H04W 8/005: {Discovery of network devices, e.g. terminals}
- H04W 84/12: WLAN [Wireless Local Area Networks]
- H04W 84/18: Self-organising networks, e.g. ad-hoc networks or sensor networks
- H04W 88/04: adapted for relaying to or from another terminal or user
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A service discovery method and a service discovery apparatus enable a NAN device that does not support a multi-hop service discovery not to respond to a relayed multi-hop service discovery message on the premise that the relayed service discovery message is correctly received by a NAN device that supports the multi-hop service discovery. The method includes: receiving, by a second NAN device, a first service discovery message that is sent by a first NAN device and that is used for a service discovery; and generating, by the second NAN device based on the first service discovery message, a second service discovery message used for the service discovery, and sending the second service discovery message, where the second NAN device serves as a service relay device that relays the service discovery initiated by the first NAN device.

## Claims

### Claim at position 1

-14. (canceled)

### Claim 15

A service discovery method, comprising:
receiving, by a third neighbor awareness networking (NAN) device, a second service discovery message from a second NAN device and used for a service discovery, wherein the second service discovery message comprises second service identifier information and multi-hop service indication information, wherein the second service identifier information indicates information about a service that is subscribed to or published by using the second service discovery message, wherein the multi-hop service indication information indicates that the second service discovery message is used to relay the service discovery, wherein the second service discovery message is generated by the second NAN device based on a first service discovery message, wherein the first service discovery message is received by the second NAN device from a first NAN device and used for the service discovery, wherein the second NAN device serves as a service relay device that relays the service discovery initiated by the first NAN device, wherein the first service discovery message comprises first service identifier information, wherein the first service identifier information indicates information about a service that is subscribed to or published by using the first service discovery message, and wherein the second service identifier information is different from the first service identifier information;
determining, by the third NAN device based on the second service identifier information, whether a service that is subscribed to or published by the first NAN device matches a service requirement of the third NAN device when the third NAN device determines, based on the multi-hop service indication information, that the second service discovery message is used to relay the service discovery; and
sending, by the third NAN device, a service matching response message to the second NAN device when the third NAN device determines that the service that is subscribed to or published by the first NAN device matches the service requirement of the third NAN device.

### Claim 16 (depends on 15)

The service discovery method according to claim 15, wherein determining, by the third NAN device based on the second service identifier information, whether the service that is subscribed to or published by the first NAN device matches the service requirement of the third NAN device comprises:
obtaining, based on the second service identifier information, the first service identifier information corresponding to the service that is subscribed to or published by the first NAN device; and
determining whether the first service identifier information matches third service identifier information, wherein the third service identifier information indicates a service that is subscribed to or published based on the service requirement of the third NAN device.

### Claim 17 (depends on 15)

The service discovery method according to claim 15, wherein determining, by the third NAN device based on the second service identifier information, whether the service that is subscribed to or published by the first NAN device matches the service requirement of the third NAN device comprises:
generating fourth service identifier information based on third service identifier information, wherein the third service identifier information indicates a service corresponding to the service requirement of the third NAN device; and
determining whether the second service identifier information matches the fourth service identifier information.

### Claim 18 (depends on 15)

The service discovery method according to claim 15, wherein sending, by the third NAN device, the service matching response message to the second NAN device comprises sending, by the third NAN device when the second service discovery message is a service descriptor frame (SDF) subscribe service subscribe message, an SDF publish service publish message to the second NAN device.

### Claim 19 (depends on 18)

The service discovery method according to claim 18, wherein the SDF publish service publish message sent to the second NAN device carries multi-hop service matching indication information, wherein the multi-hop service matching indication information indicates that the service matching response message responds to a relayed service discovery message.

### Claim at position 7

-36. (canceled)

### Claim 37

A service discovery apparatus, wherein the service discovery apparatus is a second neighbor awareness networking (NAN) device and comprises:
an interface circuit; and
a processor coupled to the interface circuit and configured to:
receive, using the interface circuit, a first service discovery message from a first NAN device and used for a service discovery, wherein the first service discovery message comprises first service identifier information, and wherein the first service identifier information indicates information about a service that is subscribed to or published using the first service discovery message; and
generate, based on the first service discovery message when the service discovery apparatus serves as a service relay device that relays the service discovery initiated by the first NAN device, a second service discovery message used for the service discovery by generating a second service identifier information based on the first service identifier information; and
send, using the interface circuit, the second service discovery message,
wherein the second service discovery message comprises the second service identifier information and multi-hop service indication information, wherein the second service identifier information indicates information about a service that is subscribed to or published by using the second service discovery message, wherein the second service identifier information is different from the first service identifier information, and wherein the multi-hop service indication information indicates that the second service discovery message is used to relay the service discovery.

### Claim 38

(canceled)

### Claim 39 (depends on 37)

The service discovery apparatus according to claim 37, wherein the first service discovery message further includes an effective relay time, and wherein the processor is further configured to:
start a timer when the first service discovery message is received; and
control the interface circuit to cancel sending of the second service discovery message when a time on the timer is greater than or equal to the effective relay time.

### Claim 40

A service discovery apparatus, wherein the service discovery apparatus is a third neighbor awareness networking (NAN) device and comprises:
a processor; and
an interface circuit coupled to the processor, wherein the interface circuit is configured to receive a second service discovery message from a second NAN device and used for a service discovery, wherein the second service discovery message includes second service identifier information and multi-hop service indication information, wherein the second service identifier information indicates information about a service that is subscribed to or published by using the second service discovery message, wherein the multi-hop service indication information indicates that the second service discovery message is used to relay the service discovery, wherein the second service discovery message is generated by the second NAN device based on a first service discovery message, wherein the first service discovery message is received by the second NAN device from a first NAN device and used for the service discovery, wherein the second NAN device serves as a service relay device that relays the service discovery initiated by the first NAN device, wherein the first service discovery message includes first service identifier information, wherein the first service identifier information indicates information about a service that is subscribed to or published by using the first service discovery message, wherein the second service identifier information is different from the first service identifier information, and
wherein the processor is configured to:
determine, based on the second service identifier information when determining, based on the multi-hop service indication information, that the second service discovery message is used to relay the service discovery, whether a service that is subscribed to or published by the first NAN device matches a service requirement of the service discovery apparatus; and
control the interface circuit to send a service matching response message to the second NAN device when determining that the service that is subscribed to or published by the first NAN device matches the service requirement of the service discovery apparatus.

### Claim 41 (depends on 40)

The service discovery apparatus according to claim 40, wherein the processor is further configured to:
obtain, based on the second service identifier information, the first service identifier information corresponding to the service that is subscribed to or published by the first NAN device; and
determine whether the first service identifier information matches third service identifier information, wherein the third service identifier information indicates a service corresponding to the service requirement of the service discovery apparatus.

### Claim 42 (depends on 40)

The service discovery apparatus according to claim 40, wherein the processor is further configured to:
generate fourth service identifier information based on third service identifier information, wherein the third service identifier information indicates a service corresponding to the service requirement of the service discovery apparatus; and
determine whether the second service identifier information matches the fourth service identifier information.

### Claim 43 (depends on 40)

The service discovery apparatus according to claim 40, wherein the processor is further configured to control the interface circuit to send a service descriptor frame (SDF) publish service publish message to the second NAN device when the second service discovery message is an SDF subscribe service subscribe message.

### Claim 44 (depends on 43)

The service discovery apparatus according to claim 43, wherein the SDF publish service publish message sent to the second NAN device carries multi-hop service matching indication information, and wherein the multi-hop service matching indication information indicates that the service matching response message is used to respond to a relayed service discovery message.

### Claim 45 (depends on 40)

The service discovery apparatus according to claim 40, wherein the processor is further configured to control the interface circuit to send an SDF follow-up service follow-up message to the second NAN device when the second service discovery message is an SDF publish service publish message.

### Claim 46 (depends on 45)

The service discovery apparatus according to claim 45, wherein the SDF follow-up service follow-up message sent to the second NAN device carries multi-hop service matching indication information, and wherein the multi-hop service matching indication information indicates that the service matching response message is used to respond to a relayed service discovery message.

### Claim 47 (depends on 15)

The service discovery method according to claim 15, wherein sending, by the third NAN device, the service matching response message to the second NAN device comprises sending, by the third NAN device when the second service discovery message is an SDF publish service publish message, an SDF follow-up service follow-up message to the second NAN device.

### Claim 48 (depends on 47)

The service discovery method according to claim 47, wherein the SDF follow-up service follow-up message sent to the second NAN device carries multi-hop service matching indication information, wherein the multi-hop service matching indication information indicates that the service matching response message responds to a relayed service discovery message.
