IP Library Granted Patent US 8,817,784
Granted Patent B2
US 8,817,784 · App. 13/347,545 · Granted Aug 26, 2014

Method and apparatus for multicast packet reception

Inventors: David J. Riddoch (Huntingdon, GB); Martin W. Porter (Cambridge, GB); Steven L. Pope (Costa Mesa, CA)
Assignee: Solarflare Communications, Inc.
H04L12/18H04L49/90
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,817,784
App. No.
13/347,545
Granted
Aug 26, 2014
Kind
B2
Abstract

Roughly described, incoming data packets are delivered by the NIC directly to at least two user level endpoints. In an aspect, only filters that cannot be ambiguous are created in the NIC. In another aspect, the NIC maintains a filter table supporting direct delivery of incoming unicast and multicast data packets to one user level endpoint. Additional requests to join the same multicast group cause replacement of the NIC filter with one in the kernel. In another aspect, a NIC has limited capacity to maintain multicast group memberships. In response to a new multicast filter request, the kernel establishes it in the NIC only if the NIC still has sufficient capacity; otherwise it is established in the kernel.

Claims (101)

1. A method for establishing filtering for incoming data packets to be received from a network by a receiving device having an operating system and a network interface device, comprising the steps of the operating system:

receiving a first request to deliver a future incoming data packet to a first user level endpoint, the first request indicating first packet header properties to look for;

determining from the first packet header properties whether they are of a character that permits a user level process to make a second request to deliver the future incoming data packet also to a second user level endpoint; and

only if the first packet header properties are not of such a character, programming the network interface device to deliver a future incoming data packet having the first packet header properties to the first user level endpoint.

2. The method according to claim 1 , further comprising the step of, if the first packet header properties are of such a character, causing the operating system to deliver to the first user level endpoint a future incoming data packet having the first packet header properties.

3. The method according to claim 1 , wherein the first request comprises a request to join a multicast group, the first packet header properties including a destination IP address matching the multicast group address,

and wherein the step of determining determines that the first packet header properties are of a character that permits a user level process to make a second request to deliver the future incoming data packet also to a second user level endpoint.

4. The method according to claim 1 , wherein the step of determining determines that the first packet header properties are not of a character that permits a user level process to make a second request to deliver the future incoming data packet also to a second user level endpoint.

5. The method according to claim 4 , wherein the first request comprises a recv( ) or recvFrom( ) call.

6. The method according to claim 4 , further comprising the step of, where other reasons exist for not programming the network interface device to deliver a future incoming data packet having the first packet header properties to the first user level endpoint, causing the operating system to deliver to the first user level endpoint a future incoming data packet having the first packet header properties.

7. The method according to claim 1 , wherein the first request is to deliver to the first user level endpoint a stream of future incoming data packets all having the first packet header properties.

8. A system for establishing filtering for incoming data packets to be received from a network, for use with a network interface device, comprising, in a receiving device:

a memory subsystem; and

a data processor coupled to the memory subsystem, the data processor configured to:

receive a first request from a user level process to deliver a future incoming data packet to a first user level endpoint, the first request indicating first packet header properties to look for;

determine from the first packet header properties whether they are of a character that permits a user level process to make a second request to deliver the future incoming data packet also to a second user level endpoint; and

only if the first packet header properties are not of such a character, program the network interface device to deliver a future incoming data packet having the first packet header properties to the first user level endpoint.

9. A method for establishing filtering for incoming data packets to be received from a network, for use with a network interface device by a host system,

the host system configured to have an operating system having a network protocol stack and further having a memory subsystem and a data processor coupled to the memory subsystem,

the method comprising the steps of:

in response to receiving a first request for a first user level endpoint to join a first multicast group, data processor programming the network interface device to deliver future incoming data packets of the first multicast group to the first user level endpoint in a manner that at least part of a header of the future incoming data packets, including an identification of at least one of the first multicast group and the first user level endpoint, bypasses the operating system network protocol stack; and

in response to receiving a second request for a second user level endpoint to join the first multicast group, the data processor:

causing the network interface device to deliver future incoming data packets of the first multicast group to the operating system and not to the first user level endpoint; and

causing the operating system to deliver future incoming data packets of the first multicast group, to both the first and second user level endpoints.

10. A method according to claim 9 , further comprising the steps of:

receiving, while the first user level endpoint remains a member of the first multicast group, a third request for a third user level endpoint to join a second multicast group; and

programming the network interface device to deliver future incoming data packets of the second multicast group to the third user level endpoint in a manner that at least part of a header of future incoming data packets of the second multicast group, including an identification of at least one of the second multicast group and the third user level endpoint, bypasses the operating system network protocol stack.

11. The method according to claim 9 , wherein the network interface device includes a filter table that maintains, for each of a plurality of packet header match criteria, identification of a single corresponding packet destination endpoint for incoming data packets matching the corresponding packet header match criteria,

and wherein the step of programming the network interface device to deliver future incoming data packets to the first user level endpoint, comprises the step of programming into the filter table an identification of the first user level endpoint as the single corresponding packet destination endpoint for incoming data packets having a destination IP address matching that of the first multicast group.

12. A method according to claim 9 , further comprising the steps of:

receiving a third request for a third user level endpoint to join the first multicast group;

making a determination that the network interface device lacks sufficient capacity to be programmed to add the third user level endpoint as an endpoint for delivery of future incoming data packets of the first multicast group; and

causing the operating system to deliver to the third user level endpoint, future incoming data packets of the first multicast group.

13. A method according to claim 9 , further comprising the steps of:

receiving a third request for a third user level endpoint to join the first multicast group; and

in response to a determination that the operating system is already handling deliveries of incoming data packets of the first multicast group, causing the operating system to deliver future incoming data packets of the first multicast group also to the third user level endpoint.

14. A method according to claim 9 , further comprising the steps of:

receiving a request for a particular user level endpoint to leave the first multicast group;

making a determination that the network interface device has sufficient capacity to be programmed for delivery of future incoming data packets of the first multicast group to all user level endpoints of the host that remain as members of the first multicast group; and

causing the network interface device to deliver future incoming data packets of the first multicast group to each of the remaining user level endpoints and not to the operating system.

15. The method according to claim 9 , further comprising the steps of:

receiving a request for the first a particular user level endpoint to leave the first multicast group;

in response to a determination that only one user level endpoint of the host computer system remains a member of the first multicast group, causing the network interface device to deliver future incoming data packets of the first multicast group to the remaining user level endpoint and not to the operating system.

16. The method according to claim 9 , wherein the first user level endpoint comprises a user level receive queue.

17. The method of claim 9 , wherein the second request is received while the first user level endpoint remains a member of the first multicast group.

18. A host system for establishing filtering for incoming data packets to be received from a network, for use with a network interface device, the host system being configured to have an operating system having a network protocol stack, comprising:

a memory subsystem; and

a data processor coupled to the memory subsystem,

the data processor configured to, in response to a first request for a first user level endpoint to join a first multicast group, program the network interface device to deliver future incoming data packets of the first multicast group to the first user level endpoint in a manner that at least part of a header of the future incoming data packets, including an identification of at least one of the first multicast group and the first user level endpoint, bypasses the operating system network protocol stack, and

the data processor is further configured to, in response to a second request for a second user level endpoint to join the first multicast group:

cause the network interface device to deliver future incoming data packets of the first multicast group to the operating system and not to the first user level endpoint; and

cause the operating system to deliver future incoming data packets of the first multicast group, to both the first and second user level endpoints.

19. A system according to claim 18 , wherein the data processor is further configured to, in response to a third request for a third user level endpoint to join a second multicast group, received while the first user level endpoint remains a member of the first multicast group, program the network interface device to deliver future incoming data packets of the second multicast group to the third user level endpoint in a manner that at least part of a header of future incoming data packets of the second multicast group, including an identification of at least one of the second multicast group and the third user level endpoint, bypasses the operating system network protocol stack.

20. A system according to claim 18 , wherein the first user level endpoint comprises a user level receive queue.

21. A host system for establishing filtering for incoming data packets to be received from a network, for use with a network interface device, the host system being configured to have an operating system having a network protocol stack, comprising:

a memory subsystem; and

a data processor coupled to the memory subsystem,

the data processor configured to, in response to a first request for a first user level endpoint to join a first multicast group, program the network interface device to deliver future incoming data packets of the first multicast group to the first user level endpoint in a manner that at least part of a header of the future incoming data packets, including an identification of at least one of the first multicast group and the first user level endpoint, bypasses the operating system network protocol stack,

and wherein the data processor is further configured to, in response to a second request for a second user level endpoint to join the first multicast group:

cause the network interface device to deliver future incoming data packets of the first multicast group to the operating system and not to the first user level endpoint; and

cause the operating system to deliver future incoming data packets of the first multicast group, to both the first and second user level endpoints.

22. A system according to claim 21 , wherein the data processor is further configured to, in response to a request for the first a particular user level endpoint to leave the first multicast group, and further in response to a determination that only one user level endpoint of the host computer system remains a member of the first multicast group, cause the network interface device to deliver future incoming data packets of the first multicast group to the remaining user level endpoint and not to the operating system.

23. A method for establishing filtering for incoming data packets to be received by a network interface device from a network, the network interface device comprising a resource configuration unit and a filter comprising a table and communicating with a host subsystem via an internal communications bus of the host subsystem, the host subsystem having an operating system having a network protocol stack, comprising the steps of:

receiving by the network interface device a first instruction from the host subsystem to deliver future incoming data packets of a first multicast group to a first user level endpoint in the host subsystem, in a manner that at least part of a header of the future incoming data packets, including an identification of at least one of the first multicast group and the first user level endpoint, bypasses the operating system network protocol stack;

programming by the resource configuration unit the table in the network interface device in response to the receiving the first instruction with a first correspondence of an identification of the first user level endpoint with an identification of the first multicast group;

receiving by the network interface device, while the first correspondence remains valid in the table, a second instruction from the host subsystem to deliver future incoming data packets of the first multicast group to a second user level endpoint in the host subsystem;

further programming by the resource configuration unit the table in the network interface device in response to the receiving the second instruction with a second correspondence of an identification of the second user level endpoint with an identification of the first multicast group, such that the table comprises a correspondence of an identification of both the first and the second user level endpoints, on the one hand, with an identification of the first multicast group, on the other hand;

receiving by the network interface device, while the first and second correspondences remain valid in the table, a third instruction from the host subsystem to no longer deliver future incoming data packets of the first multicast group to an identified one of the first and second user level endpoints; and

deleting from the table, the correspondence of the first multicast group with the identified one of the first and second user level endpoints.

24. A method for filtering incoming data packets received by a network interface device from a network, the network interface device communicating with a host subsystem via a communications bus, the host subsystem having an operating system having a network protocol stack, comprising the steps of:

the network interface device receiving from the network an incoming data packet of a first multicast group; and

the network interface device delivering the data packet via the communications bus to a first user level process, in a manner that at least part of a header of the incoming data packet, including an identification of at least one of the first multicast group and the first user level endpoint, bypass the operating system.

25. The method according to claim 24 , further comprising the step of the network interface device deciding whether the data packet should be forwarded to the operating system or the first user level process, prior to the step of the network interface device delivering the data packet to a first user level process.

26. The method according to claim 24 , wherein the host subsystem is running a plurality of user level processed including to the first user level process,

further comprising the step of the network interface device deciding which of the user level processes should receive the data packet, prior to the step of the network interface device delivering the data packet to a first user level process.

27. A method for filtering incoming data packets received by a network interface device from a network, the network interface device communicating with a host subsystem via a communications bus, the host subsystem having an operating system having a network protocol stack, comprising the steps of:

the network interface device receiving a first data packet incoming from the network; and

the network interface device delivering the first data packet via the communications bus to each of a plurality of target user level processes, in a manner that at least part of a header of the incoming data packet, including an identification of at least one of the first multicast group and a respective one of the target user level processes, bypass the operating system.

28. Network interface apparatus, for use with a network and with a host subsystem in communication with the network interface apparatus via an internal communications bus of the host subsystem, the host subsystem being capable of running an operating system having a network protocol stack and at least one user level process collectively having a plurality of user level endpoints for receipt of data packets incoming from the network interface apparatus, the network interface apparatus comprising:

a filter for filtering incoming data packets received from the network; and

a table that identifies at least two user level endpoints for receipt of incoming data packets matching a single set of multicast grow filter criteria.

29. Apparatus according to claim 28 , further comprising the host subsystem.

30. Apparatus according to claim 29 , wherein the apparatus is configured to deliver a data packet matching the single set of multicast group filter criteria, incoming from the network, to each of the user level endpoints identified in the table as being for receipt of incoming data packets matching the single set of filter criteria.

31. Apparatus according to claim 28 , wherein the table has capacity to identify, for of each of a plurality of multicast groups, at least two user level endpoints for delivery of incoming data packets of each single one of the multicast groups.

32. Apparatus according to claim 31 , wherein the table further has capacity to identify user level endpoints for delivery of incoming unicast data packets.

33. Network interface apparatus, for use with a host subsystem in communication with the network interface apparatus via an internal communications bus of the host subsystem, the host subsystem having an operating system having a network protocol stack, the network interface device comprising:

a filter for filtering incoming data packets received from the network, the filter comprising a table; and

a resource configuration unit that, in response to receipt from the host subsystem via the communications bus of first and second instructions to deliver future incoming data packets of a first multicast group to respective first and second user level endpoints in the host subsystem, in a manner that at least part of a header of the future incoming data packets, including an identification of at least one of the first multicast group and the first user level endpoint and the second user level endpoint, bypasses the operating system network protocol stack, configures the filter table in the network interface device with a correspondence of an identification of both the first and second user level endpoints, on the one hand, with an identification of the first multicast group, on the other hand,

wherein the filter is operative in response to receipt from the network of a first incoming data packet of the first multicast group, for delivering the first incoming data packet to both the first and second user level endpoints in a manner at least part of a header of the incoming data packet, including an identification of at least one of the first multicast group and the respective first user level endpoint and the second user level endpoint, both bypassing the operating system network protocol stack.

34. Network interface apparatus, for use with a host subsystem in communication with the network interface apparatus via an internal communications bus of the host subsystem, the host subsystem having an operating system having a network protocol stack, the network interface device comprising:

a filter for filtering incoming data packets received from the network, the filter comprising a table, the table including a primary table and a secondary table; and

a resource configuration unit that, in response to receipt from the host subsystem via the communications bus of a first instruction to deliver future incoming data packets of a first multicast group to a first user level endpoint in the host subsystem, configures the primary table in the network interface device with a correspondence of an identification of the first user level endpoint, on the one hand, with an identification of the first multicast group, on the other hand,

wherein in response to receipt from the host subsystem, while the first correspondence remains valid in the primary table, a second instruction from the host subsystem to deliver future incoming data packets of the first multicast group to a second user level endpoint in the host subsystem, the resource configuration unit configures the secondary table with both the first correspondence and a second correspondence of an identification of the second user level endpoint with an identification of the first multicast group and disables the first correspondence from the primary table.

35. A method for filtering incoming data packets received by a network interface device from a network, the network interface device communicating with a host subsystem via a communications bus, the host subsystem having an operating system having a network protocol stack, comprising the steps of:

configuring a filter table in the network interface device with a correspondence between each of a plurality of user level processes, on the one hand, and an identification of a first multicast group, on the other hand;

in response to the network interface device receiving from the network an incoming data packet of the first multicast group, determining whether the following conditions are fulfilled:

the incoming data packet is not malformed,

the incoming data packet uses a protocol that is supported in the filter table, and

at least one correspondence is found between the incoming data packet and at least one user level endpoint; and

in response to the step of determining, if all of the conditions are fulfilled, the network interface device delivering the incoming data packet to each of the plurality of user level processes, bypassing the operating system; and

and in response to the step of determining, if not all of the conditions are fulfilled, the network interface device delivering the incoming data packet to the operating system.

Assignments (7)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 25, 2019
From: SOLARFLARE COMMUNICATIONS, INC.
To: XILINX, INC.
Reel/Frame 051108/0209 →
RELEASE OF INTELLECTUAL PROPERTY SECURITY AGREEMENT Recorded Jul 31, 2019
From: ALLY BANK
To: SOLARFLARE COMMUNICATIONS, INC.
Reel/Frame 049918/0440 →
RELEASE OF SECURITY INTEREST Recorded Jun 15, 2017
From: PACIFIC WESTERN BANK
To: SOLARFLARE COMMUNICATIONS, INC.
Reel/Frame 042820/0890 →
SECURITY INTEREST Recorded Mar 7, 2017
From: SOLARFLARE COMMUNICATIONS, INC.
To: ALLY BANK
Reel/Frame 041902/0527 →
SECURITY INTEREST Recorded Apr 6, 2016
From: SOLARFLARE COMMUNICATIONS, INC.
To: PACIFIC WESTERN BANK
Reel/Frame 038363/0589 →
CORRECTIVE ASSIGNMENT TO CORRECT THE TYPOGRAPHICAL ERRORS IN THREE OF THE APPLICATION NUMBERS (12/158,176, 12/864,435 AND 13/347,454) IN THE CHANGE OF ADDRESS PREVIOUSLY RECORDED ON REEL 029636 FRAME 0295. ASSIGNOR(S) HEREBY CONFIRMS THE CORRECT APPICATION NUMBERS ARE 13/158,176, 12/866,435 AND 13/347,545, RESPECTIVELY. Recorded Mar 19, 2013
From: SOLARFLARE COMMUNICATIONS INC.
To: SOLARFLARE COMMUNICATIONS INC.
Reel/Frame 030046/0542 →
CHANGE OF ADDRESS OF THE ASSIGNEE Recorded Jan 8, 2013
From: SOLARFLARE COMMUNICATIONS INC.
To: SOLARFLARE COMMUNICATIONS INC.
Reel/Frame 029636/0295 →
Continuity (2)
Continuation 11351177 · Feb 8, 2006
Related Publication 20120113987A1 · May 10, 2012