From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C5B6644100; Wed, 29 May 2024 10:04:43 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3BE19402CD; Wed, 29 May 2024 10:04:43 +0200 (CEST) Received: from EUR02-AM0-obe.outbound.protection.outlook.com (mail-am0eur02on2086.outbound.protection.outlook.com [40.107.247.86]) by mails.dpdk.org (Postfix) with ESMTP id C72A3402B9 for ; Wed, 29 May 2024 10:04:41 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SQjCQ80GKnidpr72CMoQgg+2zuSpa7bEAdmlnLaXDw/h0KF28+9Cc5bZGzqqSLM0ycBI827qFV5XcSQXtKEF0iL2h+hgyMuM+AdoqyjgZpq1T5pp59Oi9kxCyL+k8Lf334rE4XuKPxspPSn/l7gxOxVo2+qJ/zKZBM9h+R9ygNbORt0EZH41Zj9V25sKymnQ4dsTW6dHH2SBWbaDHbC8VnN/ELL4H3Pq5cdNM3oXMFbXrbP4QYjB1VNXnaG3Dy17mhgb5cMk/iGONm+gEnVc0btTXWCTh+TVwUxyzW0KL/KLQaXGnj2ak7ihshYRX/TvVTiSZ2WMtnqPccSh+MbR5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GZt7eLzsi4a2+H7l4y2r+oAhJ+mA/jplprLLYPU6I3o=; b=fimeaJdS4m4Op1c93at7tH1/Yymqgg2hgxyvY0N6hGH7CXD06npyik0nEpdICAsBRNeFzjlOxwlU85Ax7cUsUuQJv55D+n/Idzq4ptKtxjZlDMfSHPyIGqaZLzkSZ4ksajVyL0FdcGTGtx0eBBljK7xjWKPVmTPHME+4Q6LtNNsVfuON+d08O90av+Cwbi0wrMA93vgaQz2RkKcc7UpK6G3GwnJTxE3Pjn5MSgGtgIj9si0L4J6sCcpfY3h/Sg9g+6RLi1iix04GFQoW4qmbNCg5/N5drHEdpa4iS8dAQUC1BYpwFMHBibZOhCIJadHSUWortP2CrJRujKpSM2nmPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nokia.com; dmarc=pass action=none header.from=nokia.com; dkim=pass header.d=nokia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GZt7eLzsi4a2+H7l4y2r+oAhJ+mA/jplprLLYPU6I3o=; b=fGH8hVw6aTuXY5phaozdFaRv53vrDCnnK4D8cCcputkQDhXU7/yD7bN1DaVF1WxWKuQcXh4eUOjn10/wpJF+WXv75GUs4fIcKCt+5kSdQSTNL1YNx1JP4k5XbS8ZcIdMJk7tbKulcEGU0WRiaw69Nr2GtSZqLgi9c2aEYw9l7zhnZ9WZNBWEuU09WZVmKbDZklnl+R8o+3tuHIuEzQcp1dtX2w99PBaFBpZm9exGjesy/6+Rtk9x4AKtAkolY7OkXqkSSdpbjYYNjEom2dzQI+oxapAeFdQ/xSwgP/Pp67YJ+aGwnxI+xjJQcgzlBUmvJ8ofmbya0GJuDNJQxDOg+g== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nokia.com; Received: from DU2PR07MB9522.eurprd07.prod.outlook.com (2603:10a6:10:49a::12) by AS8PR07MB7975.eurprd07.prod.outlook.com (2603:10a6:20b:398::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Wed, 29 May 2024 08:04:40 +0000 Received: from DU2PR07MB9522.eurprd07.prod.outlook.com ([fe80::3bcc:6d1b:6257:819]) by DU2PR07MB9522.eurprd07.prod.outlook.com ([fe80::3bcc:6d1b:6257:819%4]) with mapi id 15.20.7633.018; Wed, 29 May 2024 08:04:39 +0000 Content-Type: multipart/alternative; boundary="------------ckf7nDJX0jZl4WEgeQ9O0KjR" Message-ID: <71639a21-b4b0-4e72-a402-2f38f1240996@nokia.com> Date: Wed, 29 May 2024 10:04:36 +0200 User-Agent: Mozilla Thunderbird Subject: Re: [Help] O-RAN Fronthaul CUS-U data structure implementation To: Lincoln Lavoie Cc: dev@dpdk.org References: <4b261fe0-de0d-4c34-8876-eb8f84fd77b0@nokia.com> Content-Language: en-US From: Mattia Milani In-Reply-To: X-ClientProxiedBy: FR4P281CA0333.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:ea::8) To DU2PR07MB9522.eurprd07.prod.outlook.com (2603:10a6:10:49a::12) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU2PR07MB9522:EE_|AS8PR07MB7975:EE_ X-MS-Office365-Filtering-Correlation-Id: a94107f4-fb1f-4afe-4b8b-08dc7fb5fd71 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|376005|1800799015|366007|69100299006; X-Microsoft-Antispam-Message-Info: =?utf-8?B?OUlEb1JiU25ibXVYWE8xZzlvUnFibnRXRy91bHVPSno0YUpseUdvQzNYbjZ6?= =?utf-8?B?NEttWkZDMHlEeUlMMDN1VU1DdGRCbFEyMUk0WVRCTTBlc0s5MVJzQTNXck91?= =?utf-8?B?U1JIMCtiL0hsZkpRU21Lcnl4cGkyZG1oUlVQOG9JSnZacml1WnFZRWVPQmps?= =?utf-8?B?NVd0Z3dHRTRyNzlmV2JzWmVPZUQyRWtQWStPYmh0bU1TUzgrTUhVY3BWcFlY?= =?utf-8?B?ZE9kRHhGcU9peTU4SUlWNUdVbUU4UTJER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lJyd2NmS3JXR3VJL0dja2pURDlBMXFtRVhRcmRa?= =?utf-8?B?TlVhY1B3NVdSYXN4cGRvRDdTOE9pTnB3ZnlIaXRxbFcwUEZ2bTYzelMxZU1m?= =?utf-8?B?R215UC9LUzBBUk5vVnNmL0VVSkVycnZnSjJ6YzZISEJtUHBlRFM0azYxMGh6?= =?utf-8?B?dWdtRU9FSS9KeDVFSXVxN0U2dFpRTEFDak5MK25CeG5JTXJ5NjVXWWpSK1RC?= =?utf-8?B?bVUybWVTQjJXanNMYjJ3WUcvTkFiT1N2Ty9JT1NBRXJZSTF4Z0Q3ZnV6SjVM?= =?utf-8?B?L1Q1TmpoMk5qamkrUHpOVUowNTFDMjZ3OVJVUHl5bHRzVkJEWmQxK1FjdG1M?= =?utf-8?B?bG1oMVlWKzNiajIrOWFRVEYrNjk4bXBKTjV3ZXQ3SUpoOThDNEcrRE9xNlF3?= =?utf-8?B?cW81d1ViU0Z6QnprSW8xRmM1WG42VklHRktMVDRHUW4ydTVLRjJ6dlMyUlZv?= =?utf-8?Q?MG0atyHt+LdpT1X2lXHUtH3dModoWLPlwG8qq1M0AriI=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU2PR07MB9522.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(376005)(1800799015)(366007)(69100299006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MWl2eGFnNEE3VWhOdkk1VmdXSjZIbk1jbDFXQ3dLam9kQTkwUittK013V0JR?= =?utf-8?B?REpVTEdmNXM1UkVBMG5FZ1ppbFhCNy9XWTBqdHhJVVNRZFYxN0l4dWQwZjlt?= =?utf-8?B?SllrZUFwVG5jbDN1TGtDeGlKdzBkcWd2VHRieFdjVFhFSHhRWjRxdVFRaHQx?= =?utf-8?B?NXc4R3hQRXJpU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lTXpCODFC?= =?utf-8?B?VXVTMTVHWDZINVgxOGJweWIvUHdya0lwUXk1cTdpT3BvSjZGRlhGenF1ZlV1?= =?utf-8?B?MEZkek9NR0VtVVNHQnMreHkxa3E3Z3ZmSStwa1JSNUVabE82Q3p3bkFPK3hk?= =?utf-8?B?WDI0N0FsU0lEL2VzQnF3RitCYnhXSDE5Rkp1SkhzRzgvV2wwb2ZFc1R3QmFj?= =?utf-8?B?OXc9PQ==?= X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-Network-Message-Id: a94107f4-fb1f-4afe-4b8b-08dc7fb5fd71 X-MS-Exchange-CrossTenant-AuthSource: DU2PR07MB9522.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 08:04:39.8942 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: D6JESxe4FhsNLdTDXZOvkFlhRqYP7t6GJ6bCDOcN7th58E1XjCRGIss7jl4x1FwQ9aVamtvmwghZ9+BB76vthA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7975 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org --------------ckf7nDJX0jZl4WEgeQ9O0KjR Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dear Lincoln, Thank you very much for providing this reference. I've to admit that I didn't know about this library but I'm looking into it but I have some questions/concerns. This library seems to be abandoned since 2 years, at least this is what I see from both the documentation and also their version control system: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=summary Do you think it's still reliable? The assumptions seems to be quite restrictive on the HW requirements of this library listed here: https://docs.o-ran-sc.org/projects/o-ran-sc-o-du-phy/en/latest/Assumptions_Dependencies.html#requirements With my experiments I'm just exploring using virtual interfaces and my HW, I would like to avoid those constraints. From what I can see some of the data structures already provided by DPDK are re-defined by this library, like the eth header data structure and the eCPRI header. I don't know if this is due to implementation reasons or because it has been built with an old version of DPDK. But without taking in consideration the endianess like rte_ecpri.h already does in DPDK and without supporting some msg types (line 94 file xran_pkt.h). Digging into the source code a bit I found some of the data structures I'm referring to in my original message, i.e. the ecpri Seq. ID. The following code puzzles me, source file at: https://gerrit.o-ran-sc.org/r/gitweb?p=o-du/phy.git;a=blob;f=fhi_lib/lib/api/xran_pkt.h;h=314b8d6b7d08f153369de5ad535702f50a574a35;hb=HEAD line 228: struct xran_ecpri_hdr  {      union xran_ecpri_cmn_hdr cmnhdr;      rte_be16_t ecpri_xtc_id;            /**< 3.1.3.1.6 real time control data / IQ data transfer message series identifier */      union ecpri_seq_id ecpri_seq_id;   /**< 3.1.3.1.7 message identifier */  } __rte_packed; Seems strange to me that ecpri_xtc_id is not a data structure on it's own, providing access to DU port, Band Sector etc. Also, the 'xran_pkt_comm_hdr' data structure at line 336 assumes that the packet doesn't have a VLAN header, but, I don't know if this is managed elsewhere. Given all that, I'm still of the idea that could be useful to have those kind of headers directly in DPDK but I'm open to reconsider my statement, please let me know if you have more information regarding this library. Best regards, Mattia On 28/05/2024 16:37, Lincoln Lavoie wrote: > > > You don't often get email from lylavoie@iol.unh.edu. Learn why this is > important > > > > CAUTION:This is an external email. Please be very careful when > clicking links or opening attachments. See the URL nok.it/ext for > additional information. > > Hi Mattia, > > Have you looked into the O-RAN OSC open fronthaul phy implementation? > https://docs.o-ran-sc.org/projects/o-ran-sc-o-du-phy/en/latest/Architecture-Overview_fh.html > > Cheers, > Lincoln > > On Tue, May 28, 2024 at 10:31 AM Mattia Milani > wrote: > > Dear DPDK Dev community, > > I hope this is the correct mailing list for my questions, otherwise > please excuse me and let me know where my questions should be posted. > > I was looking for a data structure capable to manage O-RAN Fronthaul > CUS-U headers (attached a screenshot of the header structure form a > packet analyzed with Wireshark) > but I couldn't find one. > > I would like to be capable to identify the different port ids but > also > the number of PRBs in the section part. > > I wrote my own implementation for a simple use case (I don't take in > consideration different versions and or data directions) > but it's enough for me at the moment. > > What I wanted to ask is the following: > - Does a data structure for this kind of header already exists? > - If it doesn't exists is it planned? > - If it's not planned could it be of some interest? > > If there is interest I would be happy to share what I developed up to > now to receive comments and/or assistance on how to make it fully > functioning. > > Best regards, > Mattia > > > > -- > *Lincoln Lavoie* > Principal Engineer, Broadband Technologies > 21 Madbury Rd., Ste. 100, Durham, NH 03824 > lylavoie@iol.unh.edu > https://www.iol.unh.edu > +1-603-674-2755 (m) > --------------ckf7nDJX0jZl4WEgeQ9O0KjR Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Dear Lincoln,

Thank you very much for providing this reference.

I've to admit that I didn't know about this library but I'm looking into it
but I have some questions/concerns.

This library seems to be abandoned since 2 years, at least this is what I
see from both the documentation and also their version control system:
https://gerrit.o-ran-sc.org/r/gitweb?p=o-du%2Fphy.git;a=summary
Do you think it's still reliable?

The assumptions seems to be quite restrictive on the HW requirements of
this library listed here: https://docs.o-ran-sc.org/projects/o-ran-sc-o-du-phy/en/latest/Assumptions_Dependencies.html#requirements
With my experiments I'm just exploring using virtual interfaces and my HW,
I would like to avoid those constraints.

From what I can see some of the data structures already provided by DPDK
are re-defined by this library, like the eth header data structure and the eCPRI header.
I don't know if this is due to implementation reasons or because it has been
built with an old version of DPDK.
But without taking in consideration the endianess like rte_ecpri.h already does in DPDK
and without supporting some msg types (line 94 file xran_pkt.h).

Digging into the source code a bit I found some of the data structures I'm referring to
in my original message, i.e. the ecpri Seq. ID. The following code puzzles me, source file at:
https://gerrit.o-ran-sc.org/r/gitweb?p=o-du/phy.git;a=blob;f=fhi_lib/lib/api/xran_pkt.h;h=314b8d6b7d08f153369de5ad535702f50a574a35;hb=HEAD
line 228:
struct xran_ecpri_hdr
 {
     union xran_ecpri_cmn_hdr cmnhdr;
     rte_be16_t ecpri_xtc_id;            /**< 3.1.3.1.6 real time control data / IQ data transfer message series identifier */
     union ecpri_seq_id ecpri_seq_id;   /**< 3.1.3.1.7 message identifier */
 } __rte_packed;

Seems strange to me that ecpri_xtc_id is not a data structure on it's own, providing access to DU port, Band Sector etc.
Also, the 'xran_pkt_comm_hdr' data structure at line 336 assumes that the packet doesn't have a VLAN header, but,
I don't know if this is managed elsewhere.

Given all that, I'm still of the idea that could be useful to have those kind of headers directly in DPDK
but I'm open to reconsider my statement, please let me know if you have more information regarding
this library.

Best regards,
Mattia


On 28/05/2024 16:37, Lincoln Lavoie wrote:

You don't often get email from lylavoie@iol.unh.edu. Learn why this is important

 
CAUTION: This is an external email. Please be very careful when clicking links or opening attachments. See the URL nok.it/ext for additional information.

 

Hi Mattia,

Have you looked into the O-RAN OSC open fronthaul phy implementation?  

Cheers,
Lincoln

On Tue, May 28, 2024 at 10:31 AM Mattia Milani <mattia.milani@nokia.com> wrote:
Dear DPDK Dev community,

I hope this is the correct mailing list for my questions, otherwise
please excuse me and let me know where my questions should be posted.

I was looking for a data structure capable to manage O-RAN Fronthaul
CUS-U headers (attached a screenshot of the header structure form a
packet analyzed with Wireshark)
but I couldn't find one.

I would like to be capable to identify the different port ids but also
the number of PRBs in the section part.

I wrote my own implementation for a simple use case (I don't take in
consideration different versions and or data directions)
but it's enough for me at the moment.

What I wanted to ask is the following:
- Does a data structure for this kind of header already exists?
- If it doesn't exists is it planned?
- If it's not planned could it be of some interest?

If there is interest I would be happy to share what I developed up to
now to receive comments and/or assistance on how to make it fully
functioning.

Best regards,
Mattia


--
Lincoln Lavoie
Principal Engineer, Broadband Technologies
21 Madbury Rd., Ste. 100, Durham, NH 03824
+1-603-674-2755 (m)

--------------ckf7nDJX0jZl4WEgeQ9O0KjR--