METHODS AND APPARATUS FOR MEMORY ALLOCATION AND REALLOCATION IN NETWORKING STACK INFRASTRUCTURES

    公开(公告)号:US20190303205A1

    公开(公告)日:2019-10-03

    申请号:US16368338

    申请日:2019-03-28

    Applicant: Apple Inc.

    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.

    Methods and apparatuses for cross-layer processing

    公开(公告)号:US11775359B2

    公开(公告)日:2023-10-03

    申请号:US17469610

    申请日:2021-09-08

    Applicant: Apple Inc.

    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.

    Methods and apparatus for early delivery of data link layer packets

    公开(公告)号:US11381514B2

    公开(公告)日:2022-07-05

    申请号:US15973153

    申请日:2018-05-07

    Applicant: Apple Inc.

    Abstract: Methods and apparatus for non-sequential packet transfer. Prior art multi-processor devices implement a complete network communications stack at each processor. The disclosed embodiments provide techniques for delivering network layer (L3) and/or transport layer (L4) data payloads in the order of receipt, rather than according to the data link layer (L2) order. The described techniques enable e.g., earlier packet delivery. Such design topologies can operate within a substantially smaller memory footprint compared to prior art solutions. As a related benefit, applications that are unaffected by data link layer corruptions can receive data immediately (rather than waiting for the re-transmission of an unrelated L4 data flow) and thus the overall network latency can be greatly reduced and user experience can be improved.

    Methods and apparatus for device driver operation in non-kernel space

    公开(公告)号:US11829303B2

    公开(公告)日:2023-11-28

    申请号:US16936143

    申请日:2020-07-22

    Applicant: Apple Inc.

    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.

    Methods and apparatus for emerging use case support in user space networking

    公开(公告)号:US11558348B2

    公开(公告)日:2023-01-17

    申请号:US16935982

    申请日:2020-07-22

    Applicant: Apple Inc.

    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.

Patent Agency Ranking