-
公开(公告)号:US11606302B2
公开(公告)日:2023-03-14
申请号:US17346115
申请日:2021-06-11
Applicant: Apple Inc.
Inventor: Wei Shen , Sandeep Nair , Vidhi Goel , Francesco R. Dimambro , Eric Tsz Leung Cheng , Cahya Adiansyah Masputra
IPC: H04L47/22 , H04L47/35 , H04L47/32 , H04L47/2483
Abstract: Techniques are provided for managing a user space protocol stack are disclosed herein. A nexus in a kernel space can receive a packet from a packet pool, and extract information from the packet to generate a flow key indicating a particular flow for the packet. The nexus can further look up the flow key in a flow table to determine whether there is an existing flow key stored in the flow table matching the flow key of the packet, and store the packet into a batch of packets of the existing flow when the existing flow key matches the flow key of the packet. When a release condition being met, the nexus can release the batch of packets of the existing flow to a user space protocol stack within a user space application through a channel communicatively coupled to the nexus and the user space protocol stack.
-
2.
公开(公告)号:US11178260B2
公开(公告)日:2021-11-16
申请号:US16363495
申请日:2019-03-25
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Sandeep Nair , Zeh-Chen Liu , Wei Shen , Olivier Mardinian
IPC: H04L29/06 , H04L12/46 , G06F9/54 , G06F9/48 , G06F9/50 , G06F12/10 , G06F13/16 , G06F3/06 , G06F9/46 , G06F12/02 , H04L12/859 , H04L12/851 , H04L12/863 , H04L12/935 , H04L12/861 , G06F9/455 , H04L12/801 , H04L12/841 , G06F9/52 , H04L12/26 , G06F16/23 , G06F21/52 , H04L12/833 , H04L12/835 , H04L12/823 , H04L12/865 , G06F21/56 , G06F16/22 , H04L29/12 , H04L29/08 , H04L1/00
Abstract: Methods and apparatus for dynamic packet pool configuration in networking stack architectures. Unlike prior art monolithic memory allocations, embodiments of the present disclosure enable packet pools associated with non-kernel space applications to dynamically allocate additional memory allocations to a given non-kernel space application, or conversely, de-allocate memory allocations to a given non-kernel space application. Variants also disclose the splitting up of a memory allocation into device accessible portions and kernel accessible portions. Other variants disclose sizing certain segment allocations so as to be a multiple of a physical address page size. Such a variant enables a single input/output (I/O) bus address lookup for the given segment so as to minimize look up costs associated with an I/O lookup for the given segment.
-
3.
公开(公告)号:US11159651B2
公开(公告)日:2021-10-26
申请号:US16368338
申请日:2019-03-28
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Delziel Jude Fernandes , Darrin Jewell , Sandeep Nair , Wei Shen
IPC: G06F9/455 , H04L29/06 , H04L12/46 , G06F9/54 , G06F9/48 , G06F9/50 , G06F12/10 , G06F13/16 , G06F3/06 , G06F9/46 , G06F12/02 , H04L12/859 , H04L12/851 , H04L12/863 , H04L12/935 , H04L12/861 , H04L12/801 , H04L12/841 , G06F9/52 , H04L12/26 , G06F16/23 , G06F21/52 , H04L12/833 , H04L12/835 , H04L12/823 , H04L12/865 , G06F21/56 , G06F16/22 , H04L29/12 , H04L29/08 , H04L1/00
Abstract: Methods and apparatus for memory allocation and reallocation in networking stack infrastructures. Unlike prior art monolithic networking stacks, the exemplary networking stack architecture described hereinafter includes various components that span multiple domains (both in-kernel, and non-kernel). For example, unlike traditional “socket” based communication, disclosed embodiments can transfer data directly between the kernel and user space domains. A user space networking stack is disclosed that enables extensible, cross-platform-capable, user space control of the networking protocol stack functionality. The user space networking stack facilitates tighter integration between the protocol layers (including TLS) and the application or daemon. Exemplary systems can support multiple networking protocol stack instances (including an in-kernel traditional network stack). Due to this disclosed architecture, physical memory allocations (and deallocations) may be more flexibly implemented.
-
4.
公开(公告)号:US10798224B2
公开(公告)日:2020-10-06
申请号:US16146324
申请日:2018-09-28
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Wei Shen , Sandeep Nair , Dieter Wilfred Siegmund , Darrin Jewell
IPC: H04L29/06 , G06F13/16 , G06F3/06 , G06F9/46 , G06F9/50 , G06F9/54 , G06F12/02 , H04L12/859 , H04L12/851 , H04L12/863 , H04L12/935 , H04L12/861 , G06F9/455 , H04L12/801 , H04L12/46 , G06F9/48 , G06F12/10 , H04L12/841 , G06F9/52 , H04L12/26 , G06F16/23 , G06F21/52 , H04L12/833 , H04L12/835 , H04L12/823 , H04L12/865 , G06F21/56 , G06F16/22 , H04L29/12 , H04L29/08 , H04L1/00
Abstract: Methods and apparatus for efficient data transfer within a user space network stack. Unlike prior art monolithic networking stacks, the exemplary networking stack architecture described hereinafter includes various components that span multiple domains (both in-kernel, and non-kernel). For example, unlike traditional “socket” based communication, disclosed embodiments can transfer data directly between the kernel and user space domains. Direct transfer reduces the per-byte and per-packet costs relative to socket based communication. A user space networking stack is disclosed that enables extensible, cross-platform-capable, user space control of the networking protocol stack functionality. The user space networking stack facilitates tighter integration between the protocol layers (including TLS) and the application or daemon. Exemplary systems can support multiple networking protocol stack instances (including an in-kernel traditional network stack).
-
公开(公告)号:US11829303B2
公开(公告)日:2023-11-28
申请号:US16936143
申请日:2020-07-22
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Zeh-Chen Liu , Wei Shen
CPC classification number: G06F12/1458 , G06F9/5016 , G06F9/5022
Abstract: Methods and apparatus for device driver operation in non-kernel space. In one embodiment, an apparatus configured to configured to interface to a component device driver within non-kernel space is disclosed. The exemplary embodiment restricts device drivers to fewer privileges than kernel processes, while still providing acceptable real-time performance. In another embodiment, mechanisms for non-kernel space device driver operation are described. In one exemplary embodiment, a shared memory interface between kernel space and device drivers enables e.g., a zero-copy device driver architecture.
-
公开(公告)号:US11558348B2
公开(公告)日:2023-01-17
申请号:US16935982
申请日:2020-07-22
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Eric Tsz Leung Cheng , Sandeep Nair , Wei Shen
Abstract: Methods and apparatus for emerging use case support in user space networking architectures. In one embodiment, an apparatus configured to segregate packet data based on a packet type is disclosed. The exemplary embodiment provides a custom data type registry that enables the definition, addition, removal, modification, and/or prioritization of custom packet processing rules. Variants of the registry may support custom ethertype packets, network packets, and/or transport packets. In another embodiment, mechanisms for enabling an intermediary packet processing stage are described. Intermediary packet processing may enable user space system extensions that support e.g., packet filtering, packet modification, and/or other forms of packet processing.
-
公开(公告)号:US20210099427A1
公开(公告)日:2021-04-01
申请号:US16935982
申请日:2020-07-22
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Eric Tsz Leung Cheng , Sandeep Nair , Wei Shen
IPC: H04L29/06
Abstract: Methods and apparatus for emerging use case support in user space networking architectures. In one embodiment, an apparatus configured to segregate packet data based on a packet type is disclosed. The exemplary embodiment provides a custom data type registry that enables the definition, addition, removal, modification, and/or prioritization of custom packet processing rules. Variants of the registry may support custom ethertype packets, network packets, and/or transport packets. In another embodiment, mechanisms for enabling an intermediary packet processing stage are described. Intermediary packet processing may enable user space system extensions that support e.g., packet filtering, packet modification, and/or other forms of packet processing.
-
公开(公告)号:US11775359B2
公开(公告)日:2023-10-03
申请号:US17469610
申请日:2021-09-08
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Eric Tsz Leung Cheng , Wei Shen , Francesco Dimambro , Sandeep Nair
CPC classification number: G06F9/545 , G06F9/45558 , G06F9/468 , G06F21/53 , G06F2009/45587
Abstract: Methods and apparatuses for cross-layer processing. In some embodiments, kernel processes are executed at a higher privilege and priority than user space processes, thus cross-layer communication that spans both kernel and user space may introduce system vulnerabilities and/or consume limited resources in an undesirable manner. Unlike kernel space networking architectures that have to accommodate generic use cases, user space networking architectures are application specific, run in their own memory allocations, and can be terminated without affecting other user space applications 602 and/or kernel space operation. Various aspects described herein provide application specific, non-generic functionality without kernel assistance. Exemplary embodiments for buffer cloning, packet aggregation and “just in time” transformations, are illustrative of the broader concepts enabled by the present disclosure.
-
9.
公开(公告)号:US11212373B2
公开(公告)日:2021-12-28
申请号:US16236032
申请日:2018-12-28
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Wei Shen , Sandeep Nair , Olivier Mardinian , Darrin Jewell
IPC: G06F21/00 , H04L29/06 , H04L12/46 , G06F9/54 , G06F9/48 , G06F9/50 , G06F12/10 , G06F13/16 , G06F3/06 , G06F9/46 , G06F12/02 , H04L12/859 , H04L12/851 , H04L12/863 , H04L12/935 , H04L12/861 , G06F9/455 , H04L12/801 , H04L12/841 , G06F9/52 , H04L12/26 , G06F16/23 , G06F21/52 , H04L12/833 , H04L12/835 , H04L12/823 , H04L12/865 , G06F21/56 , G06F16/22 , H04L29/12 , H04L29/08 , H04L1/00
Abstract: Methods and apparatus for efficient data transfer within a user space network stack. Unlike prior art monolithic networking stacks, the exemplary networking stack architecture described hereinafter includes various components that span multiple domains (both in-kernel, and non-kernel). For example, unlike traditional “socket” based communication, disclosed embodiments can transfer data directly between the kernel and user space domains. Direct transfer reduces the per-byte and per-packet costs relative to socket based communication. A user space networking stack is disclosed that enables extensible, cross-platform-capable, user space control of the networking protocol stack functionality. The user space networking stack facilitates tighter integration between the protocol layers (including TLS) and the application or daemon. Exemplary systems can support multiple networking protocol stack instances (including an in-kernel traditional network stack).
-
公开(公告)号:US11954540B2
公开(公告)日:2024-04-09
申请号:US17471557
申请日:2021-09-10
Applicant: Apple Inc.
Inventor: Cahya Adiansyah Masputra , Eric Tsz Leung Cheng , Sandeep Nair , Wei Shen
IPC: G06F7/08 , G06F9/50 , G06F9/54 , G06F15/173 , H04L49/901 , H04L49/9047
CPC classification number: G06F9/544 , G06F9/5044 , G06F9/545 , G06F15/173 , G06F2209/548 , H04L49/901 , H04L49/9047
Abstract: Methods and apparatus for split memory allocations in non-kernel space. Many modern networking technologies use asymmetric transmit and/or receive resource. Various aspects described herein split memory resources for transmit and receive, configuring each for their respective hardware optimizations. For example, a receive data paths that support batch processing and packet aggregation may be allocated large memory objects (32 KB) that can route data packets on a per-flow basis. In contrast, transmit data paths that support multiple concurrent network connections may be allocated small memory objects (2 KB) that can route data packets one at a time.
-
-
-
-
-
-
-
-
-