This disclosure generally relates to information handling systems, and more particularly relates to fast updates of data packet checksums.
As the value and use of information continues to increase, individuals and businesses seek additional ways to process and store information. One option is an information handling system. An information handling system generally processes, compiles, stores, and/or communicates information or data for business, personal, or other purposes. Because technology and information handling needs and requirements may vary between different applications, information handling systems may also vary regarding what information is handled, how the information is handled, how much information is processed, stored, or communicated, and how quickly and efficiently the information may be processed, stored, or communicated. The variations in information handling systems allow for information handling systems to be general or configured for a specific user or specific use such as financial transaction processing, reservations, enterprise data storage, or global communications. In addition, information handling systems may include a variety of hardware and software resources that may be configured to process, store, and communicate information and may include one or more computer systems, data storage systems, and networking systems.
It will be appreciated that for simplicity and clarity of illustration, elements illustrated in the Figures have not necessarily been drawn to scale. For example, the dimensions of some of the elements are exaggerated relative to other elements. Embodiments incorporating teachings of the present disclosure are shown and described with respect to the drawings presented herein, in which:
The use of the same reference symbols in different drawings indicates similar or identical items.
The following description in combination with the Figures is provided to assist in understanding the teachings disclosed herein. The following discussion will focus on specific implementations and embodiments of the teachings. This focus is provided to assist in describing the teachings, and should not be interpreted as a limitation on the scope or applicability of the teachings. However, other teachings can certainly be used in this application. The teachings can also be used in other applications, and with several different types of architectures, such as distributed computing architectures, client/server architectures, or middleware server architectures and associated resources.
Private network 100 includes a Network Address Translation (NAT) router 110 and client systems 120, 122, and 124. NAT router 110 provides Internet Protocol (IP) masquerading to hide the IP address space of client systems 120, 122, and 124 from a public network 130. As such, NAT router 110 sets up a private network with a hidden IP address space that is hidden behind a single IP address in the IP address space of public network 130. For example, public network 130 can represent the Internet, upon which NAT router 110 is identified by a public IP address, such as 143.166.147.7, and the NAT router can establish a private subnet, such as 192.168.100.x, establishing itself as the default gateway for the private subnet, such as 192.168.100.1. Here, clients 120, 122, and 124 are each assigned IP addresses on the private subnet, such as 192.168.100.2 for client 120, 192.168.100.3 for client 122, and 192.168.100.4 for client 124. In a particular embodiment, the IP addresses of clients 120, 122, and 124 are static IP addresses that are provided on the clients and NAT router 110. In another embodiment, the IP addresses of clients 120, 122, and 124 are provided to the clients from NAT router 110 when the clients are connected to the NAT router, such as via a local area network (LAN) or wireless LAN. Here, NAT router 110 can implement the Dynamic Host Configuration Protocol (DHCP) to assign clients 120, 122, and 124 their respective IP addresses when they are connected to the NAT router.
NAT router 110 includes a switch 112, a NAT table 114, and a checksum calculation module (checksum module) 116. In operation, NAT router 110 receives IP packets, translates the information included in a source field and in a port field of the IP packets to new source information and new port information based upon the entries in NAT table 114, calculates anew checksum for the IP packets based upon the new source information and the new port information in checksum module 116, and forwards the IP packets to a destination indicated by a destination field of the IP packets via switch 112.
NAT table 114 includes entries for each of clients 120, 122, and 124, as defined by their respective private IP addresses and assigned private ports. For example, NAT table 114 includes an entry for client 120 that is referenced by the private IP address of the client, that is, 192.168.100.2, and by the private port assigned to the client, that is, port 3855. For each client entry, NAT table 114 includes an associated public IP address, that is, the public IP address of NAT router 110, 143.166.147.7, and an assigned public port, that is, port 6282. When an IP packet is received from the private network, the source information included in a source field of the IP packet, that is, the private IP address and the private port, is replaced with the public source information, that is, the public IP address and the public port. Conversely, when an IP packet is received from the public network, the destination information included in a destination field of the IP packet, that is, the public IP address of NAT router 110 and the public port associated with a particular client 120, 122, or 124, is replaced with the private destination information, that is the private IP address and the private port of the particular client.
However, in both the case of the IP packet received from the private network and the case of the IP packet received from the public network, the translated data packet that is forwarded via switch 112 requires the calculation of an updated checksum. That is, if the original checksum as found in the received IP packet and that is based upon the original source or destination information, is provided on an IP packet that has had a source field or destination field translated, the translated IP packet will be identified as a bad packet because the receiving device will calculate a different checksum based upon the translated source or destination information. Therefore, after translating the source or destination field of received IP packets, checksum module 116 operates to calculate a new checksum based upon the contents of the translated source field or destination field.
In the illustrated example, NAT router 110 receives IP packet 140 from client 120. IP packet 140 includes a source address field 142, a destination address field 144, a data payload 146, and a checksum field 148. Source field 142 includes the IP address and the port information associated with client 120, that is, IP address 192.168.100.2 and port 3855. Destination field 144 includes that IP address and the port information associated with the destination to which the information in data payload 146 is intended to be delivered, such as IP address 143.166.224.244 and port 80. Checksum field 148 includes checksum information for data packet 140 that is determined based upon the information in source field 142, destination field 144, and data payload 146.
NAT router 110 translates IP packet 140 into anew IP packet 150 including new source field 152, destination field 144, data payload 146, and a new checksum field 158, as follows. NAT router 110 determines that IP packet 140 is from client 120 based upon the information in source field 142, indexes into NAT table 114 to determine the public address associated with the client, and provides the public address information from the NAT table to new source field 152. No translation or modification is performed on the contents of destination field 144 or data payload 146, so the destination field and the data payload are provided to IP packet 150.
Checksum module 116 operates to determine a new checksum for data packet 150 and to provide the new checksum in checksum field 158, thereby completing the translation of IP packet 140, and switch 112 routes data packet 150 to the destination in public network 130. In a particular embodiment, checksum module 116 determines the new checksum based upon the contents of new source field 152, destination field 144, and data payload 146. In another embodiment, checksum module 116 determined the new checksum based upon the checksum information from checksum field 148 and the source information from new source field 152, without reference to the information in destination field 144 or data payload 146. Checksum module 116 calculates the checksum information based upon one or more checksum algorithms, as described below. In a particular embodiment, NAT router 110 includes a processor and a memory, and checksum module 116 represents code stored in the memory for performing the one or more checksum algorithms. In another embodiment, checksum module 116 represents a hardware device configured to perform the one or more checksum algorithms, such as an application specific integrated circuit, a programmable logic device, or another hardware device, as needed or desired. The skilled artisan will recognize that for a given IP packet, the payload may include other types of packets such as Transmission Control Protocol (TCP) packets, User Datagram Protocol (UDP) packets, or other packets that may include their own checksum validation. The teachings of the present disclosure are applicable as described below.
In a particular embodiment, checksum module 116 operates to perform updates of checksums for IP packets, TCP packets, and UDP packets in accordance with the Internet Engineering Task Force (IETF) Request For Comments Number 1624 (RFC 1624) which describes a technique for incremental computation of Internet packet checksums using unsigned twos-complement arithmetic. For IP and TCP packets, the checksum update proceeds according to the following pseudo-code:
For UDP packets in which the checksum is not equal to zero, the checksum update proceeds according to the following pseudo-code:
In another embodiment, checksum module 116 operates to perform updates of checksums for IP packets, TCP packets, and UDP packets using twos-complement arithmetic. For IP and TCP packets, the checksum update proceeds using unsigned twos-complement arithmetic according to the following pseudo-code:
For UDP packets in which the checksum is not equal to zero, the checksum update proceeds using unsigned twos-complement arithmetic according to the following pseudo-code:
In a particular embodiment, the checksum updates as described herein are provided on other types of devices that perform checksum updates, in addition to the embodiment shown for NAT router 110. For example, where a network router, switch, gateway, firewall, intrusion detection system, intrusion prevention system, perimeter network, or other device operates to calculate IP packet checksums, the teachings of the present application can be utilized to provide the checksums, and the illustration of NAT router 110 is provided as an exemplary embodiment of the present disclosure. For example, calculation of the checksum information included in checksum field 148 can be performed in client 120 based upon the teachings of the present application, using the information from source address field 142, destination address field 144, and data 146.
Information handling system 600 can include devices or modules that embody one or more of the devices or modules described above, and operates to perform one or more of the methods described above. Information handling system 600 includes a processors 602 and 604, a chipset 610, a memory 620, a graphics interface 630, include a basic input and output system/extensible firmware interface (BIOS/EFI) module 640, a disk controller 650, a disk emulator 660, an input/output (I/O) interface 670, and a network interface 680. Processor 602 is connected to chipset 610 via processor interface 606, and processor 604 is connected to the chipset via processor interface 608. Memory 620 is connected to chipset 610 via a memory bus 622. Graphics interface 630 is connected to chipset 610 via a graphics interface 632, and provides a video display output 636 to a video display 634. In a particular embodiment, information handling system 600 includes separate memories that are dedicated to each of processors 602 and 604 via separate memory interfaces. An example of memory 620 includes random access memory (RAM) such as static RAM (SRAM), dynamic RAM (DRAW non-volatile RAM (NV-RAM), or the like, read only memory (ROM), another type of memory, or a combination thereof.
BIOS/EFI module 640, disk controller 650, and I/O interface 670 are connected to chipset 610 via an I/O channel 612. An example of I/O channel 612 includes a Peripheral Component Interconnect (PCI) interface, a PCI-Extended (PCI-X) interface, a high-speed PCI-Express (PCIe) interface, another industry standard or proprietary communication interface, or a combination thereof. Chipset 610 can also include one or more other I/O interfaces, including an Industry Standard Architecture (ISA) interface, a Small Computer Serial Interface (SCSI) interface, an Inter-Integrated Circuit (I2C) interface, a System Packet Interface (SPI), a Universal Serial Bus (USB), another interface, or a combination thereof. BIOS/EFI module 640 includes BIOS/EFI code operable to detect resources within information handling system 600, to provide drivers for the resources, initialize the resources, and access the resources. BIOS/EFI module 640 includes code that operates to detect resources within information handling system 600, to provide drivers for the resources, to initialize the resources, and to access the resources.
Disk controller 650 includes a disk interface 652 that connects the disc controller to a hard disk drive (HDD) 654, to an optical disk drive (ODD) 656, and to disk emulator 660. An example of disk interface 652 includes an Integrated Drive Electronics (IDE) interface, an Advanced Technology Attachment (ATA) such as a parallel ATA (PATA) interface or a serial ATA (SATA) interface, a SCSI interface, a USB interface, a proprietary interface, or a combination thereof. Disk emulator 660 permits a solid-state drive 664 to be connected to information handling system 600 via an external interface 662. An example of external interface 662 includes a USB interface, an IEEE 1394 (Firewire) interface, a proprietary interface, or a combination thereof. Alternatively, solid-state drive 664 can be disposed within information handling system 600.
I/O interface 670 includes a peripheral interface 672 that connects the I/O interface to an add-on resource 674, to a TPM 676, and to network interface 680. Peripheral interface 672 can be the same type of interface as I/O channel 612, or can be a different type of interface. As such, I/O interface 670 extends the capacity of I/O channel 612 when peripheral interface 672 and the I/O channel are of the same type, and the I/O interface translates information from a format suitable to the I/O channel to a format suitable to the peripheral channel 672 when they are of a different type. Add-on resource 674 can include a data storage system, an additional graphics interface, a network interface card (NIC), a sound/video processing card, another add-on resource, or a combination thereof. Add-on resource 674 can be on a main circuit board, on separate circuit board or add-in card disposed within information handling system 600, a device that is external to the information handling system, or a combination thereof.
Network interface 680 represents a NIC disposed within information handling system 600, on a main circuit board of the information handling system, integrated onto another component such as chipset 610, in another suitable location, or a combination thereof. Network interface device 680 includes network channels 682 and 684 that provide interfaces to devices that are external to information handling system 600. In a particular embodiment, network channels 682 and 684 are of a different type than peripheral channel 672 and network interface 680 translates information from a format suitable to the peripheral channel to a format suitable to external devices. An example of network channels 682 and 684 includes InfiniBand channels, Fibre Channel channels, Gigabit Ethernet channels, proprietary channel architectures, or a combination thereof. Network channels 682 and 684 can be connected to external network resources (not illustrated). The network resource can include another information handling system, a data storage system, another network, a grid management system, another suitable resource, or a combination thereof.
Although only a few exemplary embodiments have been described in detail herein, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of the embodiments of the present disclosure. Accordingly, all such modifications are intended to be included within the scope of the embodiments of the present disclosure as defined in the following claims. In the claims, means-plus-function clauses are intended to cover the structures described herein as performing the recited function and not only structural equivalents, but also equivalent structures.
The above-disclosed subject matter is to be considered illustrative, and not restrictive, and the appended claims are intended to cover any and all such modifications, enhancements, and other embodiments that fall within the scope of the present invention. Thus, to the maximum extent allowed by law, the scope of the present invention is to be determined by the broadest permissible interpretation of the following claims and their equivalents, and shall not be restricted or limited by the foregoing detailed description.
Number | Name | Date | Kind |
---|---|---|---|
6047304 | Ladwig | Apr 2000 | A |
6728930 | Poeluev | Apr 2004 | B2 |
6964008 | Van Meter, III | Nov 2005 | B1 |
7096389 | Hornung et al. | Aug 2006 | B2 |
7408932 | Kounavis | Aug 2008 | B2 |
7453874 | Nguyen | Nov 2008 | B1 |
7606263 | Parker | Oct 2009 | B1 |
7890460 | Wilmot | Feb 2011 | B2 |
8806011 | Graham-Cumming | Aug 2014 | B1 |
20020101872 | Boivie | Aug 2002 | A1 |
20020184598 | Bace | Dec 2002 | A1 |
20050213586 | Cyganski | Sep 2005 | A1 |
20060075119 | Hussain | Apr 2006 | A1 |
20070011560 | Backman | Jan 2007 | A1 |
20080117911 | Rajakarunanayake | May 2008 | A1 |
20080225847 | Manjunatha | Sep 2008 | A1 |
20120304040 | Bender | Nov 2012 | A1 |
20130166260 | Fan et al. | Jun 2013 | A1 |
20130318357 | Abraham et al. | Nov 2013 | A1 |
20140032933 | Smith | Jan 2014 | A1 |
Entry |
---|
R. Braden, “Computing the Internet Checksum,” Network Working Group Request for Comments: 1071, BBN Laboratories, Sep. 1988, 24 pgs. |
T. Mallory, “Incremental Updating of the Internet Checksum,” Network Working Group Request for Comments: 1141, BBN Communications, Jan. 1990, 2 pgs. |
Rijsinghani, “Computation of the Internet Checksum via Incremental Update,” Network Working Group Request for Comments: 1624, Digital Equipment Corporation, May 1994, 6 pgs. |
Number | Date | Country | |
---|---|---|---|
20160118999 A1 | Apr 2016 | US |