IP Library Granted Patent US 7,779,330
Granted Patent B1
US 7,779,330 · App. 11/415,554 · Granted Aug 17, 2010

Method and apparatus for computing checksum of packets

Assignee: Marvell International Ltd.
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 7,779,330
App. No.
11/415,554
Granted
Aug 17, 2010
Kind
B1
Abstract

A network interface includes a control module and a transmit module. The control module reads a segment of a packet and stores the segment in memory of the network interface when a size of the packet is greater than a size of the memory. The control module generates a partial checksum for the packet based on the segment. The control module reads a remainder of the packet at a first time and updates the partial checksum based on the remainder to generate a final checksum for the packet. The control module reads the remainder at a second time, where the second time is subsequent to the first time. The transmit module transmits the segment from the memory and transmits the remainder read at the second time.

Claims (50)

1. A network interface comprising:

a control module of the network interface to:

read a segment of a packet,

store the segment in memory of the network interface when a size of the packet is greater than a size of the memory,

generate a partial checksum for the packet based on the segment,

read a remainder of the packet at a first time,

update the partial checksum based on the remainder to generate a final checksum for the packet, and

read the remainder at a second time, wherein the second time is subsequent to the first time; and

a transmit module of the network interface to:

transmit the segment from the memory, and

transmit the remainder read at the second time.

2. An integrated circuit comprising the network interface of claim 1 .

3. A network device comprising the network interface of claim 1 .

4. The network interface of claim 1 , wherein the control module writes the partial checksum in the segment if the segment includes a checksum field, and wherein the control module writes the partial checksum in a register of the network interface if the segment does not include the checksum field.

5. The network interface of claim 1 , wherein the control module generates the final checksum by updating the partial checksum while the remainder is read at the first time.

6. The network interface of claim 1 , wherein the control module writes the final checksum in the remainder read at the second time if the segment does not include a checksum field.

7. The network interface of claim 1 , wherein the transmit module transmits the segment comprising the final checksum from the memory over one of Ethernet, optical, and wireless medium.

8. The network interface of claim 1 , wherein the transmit module transmits the remainder read at the second time comprising the final checksum over one of Ethernet, optical, and wireless medium.

9. A method comprising:

reading a segment of a packet,

storing the segment in memory of a network interface when a size of the packet is greater than a size of the memory;

generating a partial checksum for the packet based on the segment;

reading a remainder of the packet at a first time;

updating the partial checksum based on the remainder to generate a final checksum for the packet;

reading the remainder at a second time, wherein the second time is subsequent to the first time;

transmitting the segment from the memory; and

transmitting the remainder read at the second time.

10. The method of claim 9 further comprising:

writing the partial checksum in the segment if the segment includes a checksum field; and

writing the partial checksum in a register of the network interface if the segment does not include the checksum field.

11. The method of claim 9 further comprising generating the final checksum by updating the partial checksum while the remainder is read at the first time.

12. The method of claim 9 further comprising writing the final checksum in the remainder read at the second time if the segment does not include a checksum field.

13. The method of claim 9 further comprising transmitting the segment comprising the final checksum from the memory over one of Ethernet, optical, and wireless medium.

14. The method of claim 9 further comprising transmitting the remainder read at the second time comprising the final checksum over one of Ethernet, optical, and wireless medium.

15. A network interface comprising:

a control module of the network interface to:

generate a partial checksum for a packet by reading a segment of the packet, and

generate a final checksum for the packet by reading a remainder of the packet at a first time; and

a transmit module of the network interface to:

transmit the segment, and

transmit the remainder when the remainder is read at a second time, wherein the second time is subsequent to the first time.

16. An integrated circuit comprising the network interface of claim 15 .

17. A network device comprising the network interface of claim 15 .

18. The network interface of claim 15 , wherein the control module stores the segment in memory of the network interface when a size of the packet is greater than a size of the memory.

19. The network interface of claim 15 , wherein the control module generates the final checksum without storing the remainder read at the first time in memory of the network interface.

20. The network interface of claim 15 , wherein the control module writes the partial checksum in the segment if the segment includes a checksum field, and wherein the control module writes the partial checksum in a register of the network interface if the segment does not include the checksum field.

21. The network interface of claim 15 , wherein the control module generates the final checksum by updating the partial checksum while the remainder is read at the first time.

22. The network interface of claim 15 , wherein the control module writes the final checksum in the remainder read at the second time if the segment does not include a checksum field.

23. The network interface of claim 15 , wherein the transmit module transmits the segment comprising the final checksum from the memory over one of Ethernet, optical, and wireless medium.

24. The network interface of claim 15 , wherein the transmit module transmits the remainder read at the second time comprising the final checksum over one of Ethernet, optical, and wireless medium.

Assignments (3)
CHANGE OF NAME Recorded May 21, 2010
From: SYSKONNECT GMBH
To: MARVELL SEMICONDUCTOR GERMANY GMBH
Reel/Frame 024426/0279 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 21, 2006
From: MARVELL SEMICONDUCTOR GERMANY GMBH
To: MARVELL INTERNATIONAL LTD.
Reel/Frame 018128/0781 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 2, 2006
From: COCOS, COSTIN
To: SYSKONNECT GMBH
Reel/Frame 017860/0253 →
Continuity (1)
Provisional Application 6073703500 · Nov 15, 2005