# US 2004/0203378 A1 · Persistent peer-to-peer networking over a piconet network

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

- Number: US 2004/0203378 A1
- Document ID: US20040203378A1
- Status: Published application
- Kind: A1
- Application number: 10/322,188
- Filed: 2002-12-18
- Published: 2004-10-14
- Earliest claimed: 2002-12-18
- Assignees: Microsoft Corporation
- Inventors: Simon Powers
- Web page: https://patentgrep.com/patent/US20040203378A1

## CPC

- H04W 88/04: adapted for relaying to or from another terminal or user
- H04W 84/18: Self-organising networks, e.g. ad-hoc networks or sensor networks
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A persistent peer-to-peer network is implemented over a network with master-slave topology. Data being sent from master to slave or from slave to master are sent in one transmission, but data sent from one slave to another is received by the master and retransmitted to the slave. A session table is kept at each device includes an ordered list of devices, where the first device is the master device. When a master device drops out of the network the slave devices promote the next device in the ordered list of devices to master. A master device may also receive a request from a slave device to become master, and update its session table and send the updated session table to all devices. The slave device requesting master status is then treated as master by all devices in the network.

## Claims

### Claim 1

A method for providing a persistent operable peer-to-peer connection among each of three or more devices, where the three or more devices operate according to a protocol in which one device from among the three or more devices is designated as a master device, and each of said other devices from among the three or more devices is designated as a slave device, and where each of the devices designated as a slave device communicates only with the device designated as a master device, said method comprising:
detecting that a first transmission received by said device designated a master device, comprising data from a first slave device, is intended for a second slave device from among said three or more devices; and
relaying a second transmission, said second transmission comprising said data and identity data identifying said first slave device, to said second slave device.

### Claim 2 (depends on 1)

The method of claim 1, where said detection that a first transmission is intended for a second slave device comprises:
detecting that said first transmission comprises the address of said second slave device.

### Claim 3 (depends on 1)

The method of claim 1, where said protocol is the Bluetooth piconet protocol.

### Claim 4 (depends on 1)

A computer-readable medium having stored thereon at least one computer-executable module comprising computer-executable instructions for performing the method of claim 1.

### Claim 5

A method for providing master migration for a persistent operable peer-to-peer connection among each of three or more devices, where the three or more devices operate according to a protocol in which a first device from among the three or more devices is designated as a master device, and each other device from among the three or more devices is designated as a slave device, and where each of said devices designated as a slave device communicates only with the device designated as master device, said method comprising:
detecting that said first device designated as master device has ceased communication; and
connecting as master device to other devices from among the three or more devices designated as slave devices.

### Claim 6 (depends on 5)

The method of claim 5, where each of said three or more devices stores a session table comprising the identities of each of said devices, said method further comprising:
causing each device from among said devices designated as slave devices to delete said identity of said first device from said session table.

### Claim 7 (depends on 6)

The method of claim 6, where said step of connecting as master device to other devices from among the three or more devices designated as slave devices comprises:
connecting as master device if said stored session table indicates designation as master device.

### Claim 8 (depends on 7)

The method of claim 7, where said session table comprises an ordered list of identities of each of said devices, and where said step of connecting as master device if said stored session table indicates designation as master device comprises:
determining the identity of the new master device by determining which of said devices appears first in said ordered list of identities.

### Claim 9 (depends on 6)

The method of claim 6, where said session table further comprises an update value, said method further comprising:
updating said session table by incrementing said update value; and
sending said updated session table to each of said devices designated as a slave device.

### Claim 10 (depends on 5)

The method of claim 5, where said protocol is the Bluetooth piconet protocol.

### Claim 11 (depends on 5)

A computer-readable medium having stored thereon at least one computer-executable module comprising computer-executable instructions for performing the method of claim 5.

### Claim 12

A method for providing master migration for a persistent operable peer-to-peer connection among each of three or more devices, where the three or more devices operate according to a protocol in which a first device from among the three or more devices is designated as a master device, and each other device from among the three or more devices is designated as a slave device, and where each of said devices designated as a slave device communicates only with the device designated as master device, said method comprising:
sending a migration command to said first device designated as a master device; and
acting as a master device.

### Claim 13 (depends on 12)

The method of claim 12, where each of said three or more devices comprises a session table comprising the identities of each of said devices, said method further comprising:
receiving a session table update.

### Claim 14 (depends on 13)

The method of claim 13, where said step of acting as a master device comprises:
connecting as master device if said stored session table indicates designation as master device.

### Claim 15 (depends on 12)

A computer-readable medium having stored thereon at least one computer-executable module comprising computer-executable instructions for performing the method of claim 12.

### Claim 16

A method for providing master migration for a persistent operable peer-to-peer connection among each of three or more devices, where the three or more devices operate according to a protocol in which a first device from among the three or more devices is designated as a master device, and each other device from among the three or more devices is designated as a slave device, and where each of said devices designated as a slave device communicates only with the device designated as master device, said method comprising:
receiving a migration command from a second device designated as a slave device; and
sending information to said devices designated as slave devices indicating that said second device is newly designated as a master device.

### Claim 17 (depends on 16)

The method of claim 16, where each of said three or more devices stores a session table comprising the identities of each of said devices, said step of sending information to said devices designated as slave devices indicating that said second device is newly designated as a master device comprising:
causing each device from among said devices designated as slave devices to modify said said session table stored in said device.

### Claim 18 (depends on 17)

The method of claim 17, where said session table comprises an ordered list of identities of each of said devices, and where said step of causing each device from among said devices designated as slave devices to modify said session table stored in said device comprises:
sending an updated session table with said second device appearing first in said ordered list of identities.

### Claim 19 (depends on 16)

A computer-readable medium having stored thereon at least one computer-executable module comprising computer-executable instructions for performing the method of claim 16.

### Claim 20

A first device that participates in communication with two or more second devices, each of the first and second devices being adapted to engage in communication using an underlying master/slave topology, either the first device or one of the second devices being designated at any point in time as the master, the device comprising:
a protocol engine that receives a request to send data to one of the second devices and uses the hub-and-spoke topology to carry out the request by either: (1) sending the data directly to said one of the second devices, if said first device is designated as the master, or (2) sending the data to the device that is designated as the master with information that indicates that the master is to forward the data to said one of the second devices, if said first device is not designated as the master.

### Claim 21 (depends on 20)

The first device of claim 20, further comprising:
data storage which stores a session table that indicates which of the devices is designated as the master, wherein the protocol engine determines which device is the master by consulting the session table.

### Claim 22 (depends on 21)

The first device of claim 21, where the session table comprises an ordered list of device identities, and where the protocol engine determines which device is the master by consulting the session table and determining which device identity appears first in said list of device identities.

### Claim 23 (depends on 21)

The first device of claim 21, where the session table comprises an update value, and where the first device further comprises:
an update session table engine which receives a session table update, determines if said session table update is newer than said session table in said data storage, and if so, updates said session table in said data storage according to said session table update.

### Claim 24 (depends on 21)

The first device of claim 21, wherein the first device detects that a connection to the master has been lost and consults the session table to determine which of the devices will become the master.

### Claim 25 (depends on 24)

The first device of claim 24, wherein the session table indicates that the first device will become the master, and wherein the protocol engine:
creates a new session table indicating that the first device is the new hub;
stores said new session table in said data storage;
waits for at least one of the second devices to connect to the first device; and
sends said new session table to each device that connects to the first device.

### Claim 26 (depends on 25)

The first device of claim 25, wherein the new session table includes an update counter, and wherein the protocol engine:
sets said update counter in said new session table to a value that is higher than the value that could have been created for session tables by the master with which connection was lost.

### Claim 27 (depends on 24)

The first device of claim 24, wherein the session table indicates that a designated one of the second devices will become the master, and wherein the protocol engine:
initiates a connection with said designated one of the second devices; and
receives a new session table from said designated one of said second devices.

### Claim 28 (depends on 20)

The first device of claim 20, wherein the protocol engine sends an message to said device designated as master indicating that the first device is to assume the role of the master, whereupon said master device sends a message to said first and second devices to drop their respective connections to the device that is currently designated as the master, upon which said second devices initiate new connections to the first device as a new master.

### Claim 29 (depends on 28)

The first device of claim 28, where said first device further comprises data storage which stores a session table that indicates which of the devices is designated as the master, wherein the protocol engine determines which device is the master by consulting the session table, and where said a message to said first and second devices to drop their respective connections to the device that is currently designated as the master is session table update.

### Claim 30 (depends on 20)

The first device of claim 20, wherein the first device has been designated as the master, and wherein the first device receives a packet from one of the second devices, the packet comprising:
an address of the first device or one of the second devices; and
data,
and wherein the protocol engine acts on the packet according to the address.

### Claim 31 (depends on 30)

The first device of claim 30, wherein the address is that of the first device, and wherein the protocol engine publishes said data and an identity of a device corresponding to said address to an application layer.

### Claim 32 (depends on 30)

The first device of claim 30, wherein the address is not that of the first device, and wherein the protocol engine:
modifies the packet to contain the address of the device from which the packet is received, or creates a new packet comprising the address of the device from which the packet is received and said data; and
sends the modified packet or the newly-created packet to the device indicated by the original packet's address.

### Claim 33 (depends on 20)

The first device of claim 20, wherein one of said second devices has been designated as the master, and wherein the first device receives a packet from one of the second devices, the packet comprising:
an address of the first device or one of the second devices; and
data,
and wherein the protocol engine publishes the data and an identity of a device corresponding to said address to an application layer.

### Claim 34 (depends on 20)

The first device of claim 20, wherein one of said second devices has been designated as the master, and wherein the first device creates a packet for a destination device from among said second devices, the packet comprising:
an address of said destination device; and
data,
and wherein the protocol engine sends said packet to said device designated as the master.

### Claim 35

A device for providing a persistent operable peer-to-peer connection among each of three or more devices, where the three or more devices operate according to a protocol in which one device from among the three or more devices is designated as a master device, and each of said other devices from among the three or more devices is designated as a slave device, and where each of the devices designated as a slave device communicates only with the device designated as a master device, comprising:
means for detecting that a first transmission received by said device designated a master device, comprising data from a first slave device, is intended for a second slave device from among said three or more devices; and
means for relaying a second transmission, said second transmission comprising said data and identity data identifying said first slave device, to said second slave device.

### Claim 36

A device for providing master migration for a persistent operable peer-to-peer connection among each of three or more devices, where the three or more devices operate according to a protocol in which a first device from among the three or more devices is designated as a master device, and each other device from among the three or more devices is designated as a slave device, and where each of said devices designated as a slave device communicates only with the device designated as master device, comprising:
means for detecting that said first device designated as master device has ceased communication; and
means for connecting as master device to other devices from among the three or more devices designated as slave devices.

### Claim 37

A device for providing master migration for a persistent operable peer-to-peer connection among each of three or more devices, where the three or more devices operate according to a protocol in which a first device from among the three or more devices is designated as a master device, and each other device from among the three or more devices is designated as a slave device, and where each of said devices designated as a slave device communicates only with the device designated as master device, comprising:
sending a migration command to said first device designated as a master device; and
acting as a master device.

### Claim 38

A device for providing master migration for a persistent operable peer-to-peer connection among each of three or more devices, where the three or more devices operate according to a protocol in which a first device from among the three or more devices is designated as a master device, and each other device from among the three or more devices is designated as a slave device, and where each of said devices designated as a slave device communicates only with the device designated as master device, said method comprising:
means for receiving a migration command from a second device designated as a slave device; and
means for sending information to said devices designated as slave devices indicating that said second device is newly designated as a master device.
