2011官方Wifi Direct协议介绍
2011官方Wifi Direct协议介绍
• The Wi-Fi Alliance has developed a specification, called the “Wi-Fi Alliance Peer-
to-Peer (P2P) Specification”, defining direct Wi-Fi connections between client
devices
• This presentation uses “Wi-Fi P2P” as an abbreviation for the technology
• Wi-Fi Direct™ is the branded name for this technology
– Members are able to certify their devices for the Wi-Fi Alliance Wi-Fi P2P certification
program
– Only devices certified for Wi-Fi P2P may use the Wi-Fi Direct® brand and supporting
marketing material
Reference material :
WPA2 V3.1
Phone Laptop
Laptop Laptop
TV
Printer Camera
Laptop
Projector
Pictures
Camera
Laptop
Wi-Fi Alliance, April 2011 107
Wi-Fi Direct™ Training :
Wi-Fi P2P Technology Fundamentals
Topic
Wi-Fi P2P Technology Overview
Wi-Fi P2P Architecture (P2P Device, P2P Group , P2P Group Owner
• Additional features
• IP address based
• Automatic device discovery
• Device service advertisement
• Support for device power management
• Support for temporary (one-time) and persistent (many-time) network connections
• Optional cross-connection to infrastructure network
• Enterprise manageability
• A P2P Group is a Wi-Fi P2P network that may include two types of devices
– P2P Device – Wi-Fi CERTIFIED™ device that is compliant with the Wi-Fi P2P specification
– Legacy device – Wi-Fi CERTIFIED™ device that is not compliant with the Wi-Fi P2P specification
• Note : Legacy devices may only function as clients in a P2P Group. They see P2P Group
Owners as APs.
Wi-Fi Alliance, April 2011 110
Wi-Fi P2P Architecture : P2P Device
P2P
Client
P2P Client
P2P Client
Group P2P
Owner Group
Owner
Legacy
1:1 P2P Group Client
1:n P2P Group
• A P2P Group is a Wi-Fi P2P network made of at least two Wi-Fi enabled devices
– One device must be a P2P Group Owner
– The other device(s) are Clients (P2P Clients and/or Legacy Clients)
User connects to a kiosk in a store User creates a persistent P2P Group with their home printer
• Formats utilize the Vendor Specific Information Element and Vendor Specific
Action frame in IEEE Std 802.11-2007
– Each P2P Group has a single SSID and a single security domain
– Each P2P Group has a unique P2P Group ID
– Wi-Fi P2P has a Wi-Fi Alliance-specific OUI
– OUI type indicates a Wi-Fi P2P specification version
P2P Invitation
Persistent Groups
Device Discovery
Group Formation
P2P Group Session
P2P Device
P2P Device
• P2P Group Owner starts P2P Group session and Client joins P2P Group
P2P Device
Probe Response
• Occurs only on three Social Channels (Channel 1,6,11 in the 2.4GHz band)
• Uses Probe Request and Probe Response frames to exchange device
information
• Two P2P-specific Device Discovery states
– Search state: transmit one or more Probe Request frames on each Social Channel
– Listen state : wait on a specific Social Channel (the Listen Channel) to receive Probe
Request frames
I’m Home_Printer
• Used to ensures that two simultaneously searching P2P Devices will arrive on a
common channel to establish communications
– P2P Devices cycle between Listen and Search states
• P2P Device waits on one of three Social Channels for Probe Request Frames (Listen)
• P2P Device sends Probe Request Frames on each of the three Social Channels (Search)
– Time spent in each cycle of the Listen State is randomized to prevent lock-stepping
between two devices and ensure convergence
Time
• Users can select which device to connect to based on its device name, services,
and so on
• If the target P2P Device is not part of a P2P Group, a new P2P Group is formed
using the P2P Group Formation Procedure
• If the target P2P Device is already part of a P2P Group, the searching P2P
Device may seek to join the group
– Use Wi-Fi Protected Setup™ (WPS) to obtain credentials and authenticate
• WPS handshakes take place on the Operating Channel of the P2P Group Owner
P2P Invitation
Persistent Groups
• All P2P Groups require a P2P Device to take on the role of P2P Group Owner
• Some key responsibilities of P2P Group Owners
– Assigns a globally unique P2P Group ID for the P2P Group at formation
– Determine the SSID for each P2P Group
– Select the Operating Channel of the P2P Group
• Must follow any procedures required for operation in a certain frequency band in a particular regulatory domain
– Determine the credentials required and be the authenticator for joining a P2P Group
• Use WPA2-PSK Authentication, AES Encryption, Network Key Type of 64 Hex characters
• Maintain a WPA-PSK passphrase for delivery to Legacy Clients
– Advertise the device information of the P2P Clients connected to a P2P Group
• Two P2P Devices forming a P2P Group negotiate which will be the Group
Owner
– A P2P Device may decline Group Owner Negotiation for any reason
– Group Owner negotiation relies on an Group Owner Intent attribute value and a Tie
breaker bit to resolve the decision quickly
– Group Owner Negotiation (and Group Formation) fails if both P2P Devices MUST
be the Group Owner
– P2P Devices remain on the common social channel until Group Owner Negotiation
completes
• Device that wins the negotiation assumes the AP/Registrar role and
becomes the P2P Group Owner
VendorB_phone
(His, PIN = 1234)
Connect to VendorB_phone,
Group Owner PIN=5678 VendorB_phone
(Hers, PIN=5678)
• Newly established P2P Group Owner starts a P2P Group session using the credentials
determined
• Uses the Operating Channel indicated during Group Owner Negotiation
– If not available, will use another channel from the Channel List
– P2P Client may have to scan to find the P2P Group Owner if the Operating Channel is not available
• P2P Group Formation starts with determination of the P2P Group Owner
– P2P group owners may be determined
• Through Group Owner Negotiation process, or
• Through configuration (autonomous)
P2P Invitation
Persistent Groups
WPA2-Personal
AES-CCMP
P2P Client P2P Group Owner
• To support higher layer data services using IP, the P2P Group Owner shall
provide IP addresses through a DHCP server (IPv4 minimum)
– P2P Clients that use IP services shall be capable of acting as a DHCP Client
STA AP
– Credentials
– WPA2-PSK / AES
– Network Key of 64 hex characters
– WPA2-PSK pass-phrase for Legacy Clients; at least 8 random ASCII letters/numbers
– Delivery of a pass-phrase to Legacy Clients that do not support WPS is allowed but implementation is out of
scope of the P2P specification
• SSID
• Of the format DIRECT-xy
• Where xy is two random ASCII letters/numbers
• P2P Group ID
• Assigned by the P2P Group Owner; globally unique for each P2P Group formed
• Contains the globally unique P2P Device Address of P2P Group Owner
• Remains the same throughout the life of a P2P Group
• Respond to any Probe Request Frame containing the P2P IE with a Probe
Response Frame containing the P2P IE
– Set the SSID to the SSID of the P2P Group for all Probe Responses that it sends
– Include WPS IE in all transmitted Beacon, Probe Request and Probe Response
frames
– Conform to relevant sections of IEEE Std 802.11-2007 when operating at 5GHz
Wi-Fi Alliance, April 2011 139
P2P Client Discovery
– For example, a camera may query a P2P Group Owner to discover if any of its
clients supporting printing of photos
– P2P Devices are expected to behave “politely” and not “bother” devices that do
not support P2P Client Discovery
• P2P Invitation
– A P2P Group Owner may invite a P2P Device to become a P2P Client in its P2P Group
– A P2P Client may invite another P2P Device to join the P2P Group to which it belongs
so it may use a supported service
– A P2P Device may request a provisioned Persistent P2P Group to be invoked
– Persistent P2P Groups to be discussed in next section
Stored:
P2P Invitation Request Stored:
P2P Group ID
P2P Group ID
Credentials P2P Invitation Response Credentials
• Unlike Temporary P2P Groups that exist for only a single session, a P2P
Persistent Group may be re-invoked at a future time to start additional
sessions after its initial formation
• P2P Persistent Groups may be restarted without repeating Provisioning
– P2P Devices in a successfully provisioned P2P Persistent Group must store the
associated P2P Group ID and Credentials
– Eliminates the need for users to repeat provisioning such as WPS PIN, etc.
• P2P Group Owner remains the same in subsequent sessions
• A P2P Group Owner may invoke a Persistent P2P Group at any time
– Autonomously, such as in response to request from a higher layer
– After a successful P2P Invitation Request and Response exchange with a member
of the Persistent Group
• A P2P Group Owner may invoke previously formed P2P Persistent Groups
without user intervention
– Capability advertised via Persistent Reconnect bit in P2P Group capabilities list
– The P2P Group Owner device may use the Listen state to remain discoverable
• A P2P Persistent Group is ended when the P2P Group Owner deletes the stored
Credentials for the P2P Persistent Group
Initial probes
unanswered
Device Discovery
User
Group Formation
P2P Group Session
• Use authentication in WPS to ensure that the correct devices (WPS PIN) are connected
– WPS PIN has already been entered to speed provisioning
– P2P Group Owner (TV) supplies SSID and WPA2 PSK using WPS
• P2P Group Owner starts P2P Group session and P2P Client joins P2P Group
Group Owner
Probe Request/Response
P2P Device
P2P Group
Owner
P2P Client
• Camera may communicate directly with Printer after receiving P2P Device
Address to perform Service Discovery, Group Formation, data exchange, etc.
Discovery
P2P Invitation
Provisioning
Connected
New P2P Device
P2P Group
Owner
Discovery Considerations
Notice of Absence
• P2P supports power saving mechanisms for P2P Group Owners and P2P
Clients
– Based on legacy PS and WMM-PS power management mechanisms
– Adapted mechanisms are referred to as P2P-PS and P2P-WMM-PS
Zzzzzzz…
Probe for Device/Service
• P2P Clients may influence the use of P2P Power Saving by submitting a P2P
Presence Request
– A P2P Group Owner shall not use Opportunistic Power Save while it has active P2P
Presence Requests
No Response While
P2P Device in Power Save Mode P2P Device
• Searching devices must be aware that P2P power saving techniques may
impact communication between searching and target P2P devices
– Device Discoverability Responses may take multiple beacon periods
Time
• After the end of each CTWindow, if the P2P Group Owner determines that all
connected P2P Clients are in Doze state
– The P2P Group Owner shall complete delivery of all queued broadcast/multicast
frames
– The P2P Group Owner may then enter Doze state until the next TBTT
• The P2P Group Owner will remain awake as long as any Client is determined
to be awake. A P2P Client is considered awake if:
– 1) It is in active mode
– 2) It is in Power Save Mode and has a WMM Unscheduled Service Period in
progress or an unanswered PS-Poll
Concurrency
Camera Printer
• Service Discovery can be used to ensure that two devices have compatible services
– Get list of all services offered by a P2P Device
– Get information about single or multiple services offered by a P2P Device
– Communicate an update to the services offered by a P2P Device
• Service Update Indicator support required for all P2P Devices that support
Discovery
• Counter sent in each Service Discovery Query and Service Discovery Response frame
• Incremented every time a change occurs in the service information of the P2P Device sending the
frame
• Enables P2P Devices to cache service information of other P2P Devices
• Receipt of Updated Indicator prompts the receiving device to flush and rewrite the cached service
information for the sending device
• A P2P Group may operate in the same channel (and regulatory class) as a
concurrently operating WLAN BSS
Ch 6 (2.4GHz) Ch 36 (5GHz)
• A P2P Device also reports its P2P Device address and P2P Interface addresses
to the WLAN AP at association to help with monitoring
Concurrency
P2P Client
• P2P Devices shall coexist well with nearby Wi-Fi networks, both legacy and P2P
– Follow standard W-Fi Alliance practices for protection of overlapping networks
P2P Client
WLAN
AP
P2P Group
Owner P2P Client
P2P Client
• As with AP‟s, P2P Devices that may operate as P2P Group Owners in the 5GHz
band must be compliant with appropriate country regulations regarding
coexistence with radar systems
– Support for DFS (Dynamic Frequency Selection) may be required depending on
supported channels
• 5GHz support
• P2P Group Owner Functionality
– Support multiple Client connections
– Concurrency
– Cross-Connection
– Data Distribution
– Form/re-invoke Persistent P2P Groups
• Support P2P Invitation Procedure
– Ability to remove/reject devices from P2P network
– Coexistence parameters
– IF 5GHz, support for DFS (Dynamic Frequency Selection)