Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp167988rwr; Tue, 25 Apr 2023 19:47:45 -0700 (PDT) X-Google-Smtp-Source: AKy350Z+ckpeiGQixK3h/DkfPd/DHbm8FEPPB6iXJT17AS4TDxRuNPXpW1nIdeCB39AsiaVZeDoa X-Received: by 2002:a17:902:f34d:b0:1a2:63af:e980 with SMTP id q13-20020a170902f34d00b001a263afe980mr18358533ple.13.1682477265131; Tue, 25 Apr 2023 19:47:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682477265; cv=none; d=google.com; s=arc-20160816; b=G1Z6FD5/Y0p+6/Q+F/qyHPHXIVPWtl52Bce+PqH9l1vrQiy1vydT5oDqpb2C+SqA7F D4TJe2EfstzgiLhaxeH2rwqX0hzG6y6dBSDcT1OyoiKK337hpiBsW00bF2gclSxrDgml jsfwIi82cKmhzb1daKHEIbGCc6xrkC+wqztTp8u3bf5UFEV/MPjvagXJDMtq4fkJpz3b rn1AmVtFWKbbpW2CWtaNYl6xCN5dgjIFHS7s6C8YfqCEib4gHLpB2JZbi4o0EgDf9/+G DX8IcgX9dSaCBGxYekrDZ6U8JVz52eR4E72+/RVPph+dsKvtPIPNTAiddqaxippYRlw+ 32Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=CvriiGhuafw4yBJ4KEQ9n3jTJZD+LjI3FuHyF1N25tg=; b=tIGlXXB9lLwyloWmS1B9ZfLQE4liZMSYZGlCL19N7iOuqhHVMUcbVKMVeVbx844Jt1 DWHtgPaDtt3yHTE9/dr5rj6LA6sQISe3IkFhJx/jZK8RUi4umqH0b+PKRJD4W8bUEszz jXsmlaQ2eI7/0YzAzBKeW4bZB4yZGrRxmm6YuIqWh7tiCQTtaHEMZXQqrduY/f5JaiT6 7KPlRp0E7db1UHBNT/WLZw2+q8B3J6D64jDX3HAKY7NwmdpePFbumDqjleTJ2bBwnUBk +amcuROU9Eh9zHbrcMdNwpuFLqXsloooYlUs+dzhl/5Jt9jp0haPCFANevG2GjGOjIlu NKZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lx7jYNgf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 17-20020a170902c21100b001a522f321f6si14219956pll.29.2023.04.25.19.47.33; Tue, 25 Apr 2023 19:47:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=lx7jYNgf; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239081AbjDZCnp (ORCPT + 62 others); Tue, 25 Apr 2023 22:43:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230435AbjDZCno (ORCPT ); Tue, 25 Apr 2023 22:43:44 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AFD1A2; Tue, 25 Apr 2023 19:43:43 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1a6684fd760so8555035ad.0; Tue, 25 Apr 2023 19:43:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682477022; x=1685069022; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=CvriiGhuafw4yBJ4KEQ9n3jTJZD+LjI3FuHyF1N25tg=; b=lx7jYNgfayAQ1yhzffckKXtuUtOGiWc8uMvMnXmmW6BQopJBXtQw6o9iDSQfh11t7C 4ejgEsWnZU3MR97CQmHPYRE2XuxaiCfLwtcKhJW3KrwQUuK1hZsurd+ljqWTl9Jx++RZ jcLQ80mmaGN2O/PyCqU5ECSoQiSdvnglkr9g1DjVG50uIIiFbGhbvwfPuTucBQLVFaLo 0AR+5v3z5l6J9vXzD3NhO1+6FmkfTVVFuw42JXz3bhiBySUjSNaFv6JStpzOJ6YKS34+ uCcioUwFqEP0LEt2rfI0a2L0+FG3n+UwwIjbkV1UeyVqLsi8kdxfH2djkYEY8cOjxbfl zA1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682477022; x=1685069022; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CvriiGhuafw4yBJ4KEQ9n3jTJZD+LjI3FuHyF1N25tg=; b=ktlm5qNJ18ELv0L8gaH55UwjHUUuO/xbfdm2aM6kIPR+n6p/0oUl8Y+TVdPhFyNiMD puKZgbyV7wQmZO2NULKOYH/ZVTO/hTW5ACj0a5bfVBtu3EochtpwI8n4VwF3BnjX89lj dT6xFVhR/f6Y4/JgLwRrZHzg+gY6I9seD/mvrpMZlTY2F7LG6O47kW0sOGLnCHZl2qTs PPS9N6H7bU6BarEHqlg1t+EJfHVmklZ3xt+1pZGD/X4OZVQOUOm4mR1Yl2nkrZNsRdst Kk04TI3Mkb440VRuIquAI2zqqgBIrke8x38DdxkDQ/Qp+0hZCy8PwNnk7ZEaA3tRmcxD p0vw== X-Gm-Message-State: AC+VfDyX5xWq8jVZETBgkyIYhy6AIJP8wcXTRKKS32T1xuLrZdpVN9HH Omgh5jVdR+OJXP1/XqqsQ58= X-Received: by 2002:a17:902:f543:b0:1a6:6edd:d143 with SMTP id h3-20020a170902f54300b001a66eddd143mr5182523plf.6.1682477022425; Tue, 25 Apr 2023 19:43:42 -0700 (PDT) Received: from hoboy.vegasvil.org ([2601:640:8200:33:e2d5:5eff:fea5:802f]) by smtp.gmail.com with ESMTPSA id f1-20020a170902ff0100b001a5059861adsm8857834plj.224.2023.04.25.19.43.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Apr 2023 19:43:41 -0700 (PDT) Date: Tue, 25 Apr 2023 19:43:40 -0700 From: Richard Cochran To: "Stern, Avraham" Cc: "Greenman, Gregory" , "kuba@kernel.org" , "linux-wireless@vger.kernel.org" , "johannes@sipsolutions.net" , "netdev@vger.kernel.org" Subject: Re: pull-request: wireless-next-2023-03-30 Message-ID: References: <20230330205612.921134-1-johannes@sipsolutions.net> <20230331000648.543f2a54@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Tue, Apr 25, 2023 at 07:03:50AM +0000, Stern, Avraham wrote: > Having the timestamps of the frames seemed like a basic capability that userspace will need to implement ptp over wifi, regardless of the selected approach. Having time stamps on unicast PTP frames would be a great solution. But I'm guessing that you aren't talking about that? > Apparently you had other ways in mind, so I would love to have that discussion and hear about it. Let's back up a bit. Since you would like to implement PTP over Wifi in Linux, may I suggest that the first step is to write up and publish your design idea so that everyone gets on the same page? Your design might touch upon a number of points... - Background - Difficulty of multicast protocols (like PTP) over WiFi. - What do the networking standards say? - IEEE Std 802.11-2016 - Timing Measurement (TM) - Fine Timing Measurement (FTM) - IEEE 1588 - Media-Dependent, Media-Independent MDMI - Special Ports - 802.1AS - Fine Timing Measurement Burst - Which of the above can be used for a practical solution? - What are the advantages/disadvantages of TM versus FTM? - What alternatives might we pursue? - unicast PTP without FTM - AP as transparent clock - Existing Linux interfaces for time synchronization - What can be used as is? - What new interaces or extensions are needed, and why? - Vendor support - How will we encourage broad acceptance/coverage? IMO, the simplest way that will unlock many use cases is to provide time stamps for single unicast frames, like in ieee80211_rx_status.device_timestamp and expose an adjustable PHC using timecounter/cyclecounter over the free running usec clock. Then you could synchronize client/AP over unicast IPv4 PTP (for example) with no user space changes needed, AND it would work on all radios, even those that don't implement FTM. Thanks, Richard