Creating an IP checksum in a pipeline architecture with packet modification
AssigneeBroadcom Corporation
InventorsDennis Lee, Eric Ng
Life of this patent
Estimating the term…
Abstract
A network device for processing data on a data network includes a port interface, connected to a plurality of ports configured to receive a data packet from a data network and to send a processed data packet to the data network and a parser, in communication with the port interface, configured to parse the received data packet and modify the received packet to produce the processed data packet. The parser is configured to set a flag for portions of the data packet to be changed, determine a pseudo-checksum from the portions for which the flag has not been set and provide a new checksum for the processed data packet using the pseudo-checksum.
Claims18
A network device for processing data on a data network, the network device comprising:
- a port interface, connected to a plurality of ports configured to receive a data packet from a data network and to send a processed data packet to the data network;
- and
- a parser, in communication with the port interface, configured to parse the received data packet and modify the received packet to produce the processed data packet;
- wherein the parser is configured to set a flag for portions of the data packet to be changed, determine a pseudo-checksum from the portions for which the flag has not been set and provide a new checksum for the processed data packet using the pseudo-checksum.
A method for processing data in a network device, the method comprising the steps of:
- receiving a data packet at one port of a plurality of ports of a network device;
- parsing the received data packets to determine attributes of the received data packet;
- setting a flag for portions of the data packet to be changed and determining a pseudo-checksum from the portions for which the flag has not been set;
- providing a new checksum for the processed data packet using the pseudo-checksum;
- modifying the received data packets based on the determined attributes to produce a processed data packet;
- and
- forwarding the processed data packet to an egress port of the plurality of ports.
A network device for processing data, the network device comprising:
- port interface means for receiving a data packet at one port of a plurality of ports and sending a processed data packet to an egress port of the plurality of ports;
- parsing means for parsing the received data packets to determine attributes of the received data packet;
- pseudo-checksum means for setting a flag for portions of the data packet to be changed and determining a pseudo-checksum from the portions for which the flag has not been set;
- checksum means for providing a new checksum for the processed data packet using the pseudo-checksum;
- and
- modifying means for modifying the received data packets based on the determined attributes to produce a processed data packet.
Dependencies are inferred from the claim text.