This invention relates to processing incoming network frames.
Networks enable devices to quickly exchange information over great distances. Typically, information travels across a network inside network frames, also known as packets. A network frame contains a destination address (the frame destination) and a source address (the frame source). A network frame reaches its destination by winding its way through different computers in the network. Frames can carry nearly any kind of information including e-mail, Internet Web pages, and even real-time voice and video data.
In devices such as personal computers and set-top boxes, a general-purpose processor (e.g., a CPU) usually handles each incoming frame. As network communication grows in importance (e.g., Internet based applications), these general-purpose processors devote increasing resources to frame handling, sometimes at the expense of other tasks.
In general, in one aspect, the invention features a method of processing a frame received at a networked device. The networked device includes at least one port switch and at least one general-purpose processor. The method includes receiving frame information transmitted over the network at the port switch, determining, at the port switch, at least one port for the received frame information, and directing the received frame information based on the determined port(s).
Embodiments may include one or more of the following features. Directing may include forwarding at least some of the received information to the general-purpose processor. Directing may include determining one or more dedicated hardware systems (e.g., hardware cards) associated with the determined port(s). Such directing may also include forwarding at least some of the received information to the determined dedicated hardware system(s). The dedicated hardware system(s) can include dedicated hardware for processing video data and/or audio data (e.g., IP telephony data). The directing may include accessing a lookup table associating forwarding information with ports. The lookup table may be modified by the general-purpose processor.
The port may be the frame's destination and/or source port. The frame may be an IP (Internet Protocol) frame. The port may be a TCP (Transmission Control Protocol) port or a UDP (User Datagram Protocol) port.
In general, in another aspect, the invention features a port switch for use in a networked device that also includes at least one general-purpose processor. The port switch includes electronics and instructions for causing the electronics to receive frame information transmitted over the network; determine at least one port for the received frame information; and direct the received frame information based on the determined port(s).
In general, in another aspect, the invention features a networked device (e.g., a computer or set-top box) that includes at least one general-purpose processor, one or more dedicated hardware systems, a network connection for receiving frames from remote networked devices, and a port switch that receives information from the frames received over the network connection. The port switch determines at least one port for at least some of the received frames, and, based on the determined ports, directs some of the frames to the general-purpose processor and directing some of the frames to the dedicated hardware systems.
In general, in another aspect, the invention features a method of processing a frame received at a networked device having more than one general-purpose processor. The method includes receiving frame information transmitted over the network, determining at least one port for the received frame information, and directing the frame information to at least one or more general-purpose processors based on the determine port(s). The general-purpose processors may be configured in a master/slave arrangement or as peers.
Advantages of the invention will become apparent in view of the following description, including the figures, and the claims.
In many computers and other networked devices, a general-purpose processor such as a CPU (Central Processing Unit) processes incoming network frames. As network applications such as real-time voice and video increase in popularity, general-purpose processors often must dedicate increasing resources to their frame handling duties. A port switch, described below, can reduce the burden of network frame processing on a general-purpose processor by independently handling many functions currently provided by the general-purpose processor.
A number of different network models specify the information included in network frames. Often these models divide a device's network duties into a hierarchy of layers. Each layer insulates implementation details from other layers.
The network layer 106 handles the task of physically transmitting information from one networked device to another over the network 108. For example, the network layer 106 can use the destination address of a frame to find a path connecting a frame's source 100b and destination 100a. This is known as “routing.”
The transport layer 104 rests atop the network layer 106. When an application in the application layer 102b wants to send a big block or stream of information 110, the transport layer 104b disassembles the information into smaller frames that can be transmitted without overwhelming receiving devices with the overall size. When received at a destination device 100a, the transport layer 104a can reassemble the frames into their original arrangement. Common transport layer protocols include TCP (transmission control protocol), a connection oriented protocol, and UDP (user datagram protocol), a connectionless oriented protocol.
Atop the transport layer 104 rests the application layer 102. The application layer 102 can include application programs and higher level protocols such as HTTP (hypertext transfer protocol) and FTP (File Transfer Protocol). Again, the transport layer 104 can ensure that the application layer sees only the original stream of bytes instead of a piecemeal collection of frames.
To send information 110 from an application (e.g., an e-mail program) on device B 100b to an application on device A 100a, the information is processed by successively lower layers on source device 100b. After reaching the network layer 106b and traveling over the network 108, the information 110 winds its way back up the network layers of the destination device 100a. Although information is actually passed up through successive layers, conceptually, each layer communicates directly with its peer layer on another device. That is, software implementing the HTTP application protocol on device B can be programmed as if it talks directly with the HTTP application on device B. Similarly, elements of the transport layer 104a, conceptually, communicate directly with elements of transport layer 104b with the network layer invisibly taking care of the dirty work of actually getting frames from B to A.
As shown in
As shown in
When the processor 115 finally has time, the processor 115 determines the destination port of the frame and handles the frame accordingly. For example, frames 110b-110d are designated for delivery to ports x, y, and z, respectively. After the general-purpose processor 115 directs the frames transmitted by network devices B, C, and D to the appropriate ports, applications A, B, and N can access the information included in the frames 110b-110d.
As shown in
While the general-purpose processor 115 can buffer frames to prevent frames from being lost due to processor overload, buffering incoming frames can consume considerable memory. Additionally, periodic bursts of incoming frames can slow an already busy CPU, increasing the amount of time each buffered frame awaits processing. These factors can combine to make the architecture of
In some embodiments, the port switch 116 can handle each IP frame byte as it arrives. That is, the port switch 116 may ignore the values of other bytes and wait for those designating a port (e.g., bytes 23 and 24 of a TCP/IP frame). Handling frames based on ports can reduce the “store and forward” behavior usually performed on incoming frames. This can reduce the amount of memory needed to buffer incoming frames and can speed frame processing.
As shown in
As shown, the lookup table 134 can include information identifying dedicated hardware or an application associated with a frame port. The port switch 116 can direct the incoming frame in accordance with this information. For example, if the incoming frame has a destination port associated by the lookup table 134 with a real-time video-conferencing card, the port switch 116 can direct the incoming frame directly to the video-conference hardware without involving the general-purpose processor 115. In different embodiments, such directing may include outputting the frame bytes via a particular output or placing the frame bytes on a shared bus accessed by the appropriate system. For ports not found in the lookup table 134 or ports associated with the general-purpose processor 115, the frame bytes may be forwarded to the general-purpose processor 115 for handling. In different embodiments, the port switch 116 may add, subtract, or extract frame information before passing on the frame.
As shown in
In some embodiments, the port switch 116 uses only the destination port of a frame. However, in other embodiments the port switch may use only the frame's source port or both the source and destination port. For example, the port switch may use the source/destination port combination to distinguish streams associated with different instances of the same application.
The techniques described here are not limited to any particular hardware or software configuration; the port switch 116 may be implemented using hardware, firmware, and/or software. The port switch may be integrated into motherboards, network cards (e.g., Ethernet cards), modems, and so forth.
The port switch 116 can be used when a single device has more than one assigned IP address. Additionally, the port switch may be advantageously used in systems having more than one general-purpose processor (e.g., master/slave or peer multiprocessor configurations). For example, a multi-processor web-server may include a port switch to load-balance session handling over the processors. In one embodiment, each processor programs the port switch to associate a port destination/port source pair with a particular processor.
The port switch may also be advantageously used to duplicate frames and direct them to different ports. For example, one port may be “active” while another is redundant. The port switch may copy and direct a received frame to both ports. This may be used advantageously in a system that uses a call manager (a.k.a. a gate keeper or call agent). In the event of a failure, a redundant call manager could quickly take over because it has kept a copy of all transactions.
Each program can be coded in a high level procedural or object oriented programming language to communicate with a computer system. However, the programs can be coded in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Each such computer program may be stored on a storage medium (e.g., ROM) or device that is readable by port switch electronics.
Other embodiments are within the scope of the following claims.
This application is a continuation (and claims the benefit of priority under 35 USC §120) of U.S. application Ser. No. 09/475,542, filed Dec. 30, 1999 now U.S. Pat. No. 6,598,088. The disclosure of U.S. application Ser. No. 09/475,542 is considered part of (and is incorporated by reference in) the disclosure of this application.
Number | Name | Date | Kind |
---|---|---|---|
5751764 | Meyer et al. | May 1998 | A |
5751952 | Dai et al. | May 1998 | A |
5821875 | Lee et al. | Oct 1998 | A |
5867494 | Krishnaswamy et al. | Feb 1999 | A |
6012099 | Chung | Jan 2000 | A |
6035366 | Teich | Mar 2000 | A |
6058429 | Ames et al. | May 2000 | A |
6070187 | Subramaniam et al. | May 2000 | A |
6092108 | DiPlacido et al. | Jul 2000 | A |
6098157 | Hsu et al. | Aug 2000 | A |
6108345 | Zhang | Aug 2000 | A |
6112241 | Abdelnour et al. | Aug 2000 | A |
6178414 | Beckmann et al. | Jan 2001 | B1 |
6182185 | Stokes | Jan 2001 | B1 |
6185520 | Brown et al. | Feb 2001 | B1 |
6195356 | Anello et al. | Feb 2001 | B1 |
6212164 | Murakami et al. | Apr 2001 | B1 |
6243360 | Basilico | Jun 2001 | B1 |
6324613 | Aguilar et al. | Nov 2001 | B1 |
6343326 | Acharya et al. | Jan 2002 | B2 |
6385198 | Ofek et al. | May 2002 | B1 |
6388995 | Gai et al. | May 2002 | B1 |
6400730 | Latif et al. | Jun 2002 | B1 |
6404767 | Depelteau et al. | Jun 2002 | B1 |
6421711 | Blumenau et al. | Jul 2002 | B1 |
6438595 | Blumenau et al. | Aug 2002 | B1 |
6453371 | Hampson et al. | Sep 2002 | B1 |
6460120 | Bass et al. | Oct 2002 | B1 |
6463498 | Wakeley et al. | Oct 2002 | B1 |
6487619 | Takagi | Nov 2002 | B1 |
6519705 | Leung | Feb 2003 | B1 |
6570875 | Hegde | May 2003 | B1 |
6580715 | Bare | Jun 2003 | B1 |
6598088 | Lynch et al. | Jul 2003 | B1 |
6615306 | Ajanovic | Sep 2003 | B1 |
6678269 | Michels et al. | Jan 2004 | B1 |
6678270 | Garfinkel | Jan 2004 | B1 |
6687247 | Wilford et al. | Feb 2004 | B1 |
6697362 | Akella et al. | Feb 2004 | B1 |
6788704 | Lindsay | Sep 2004 | B1 |
6907036 | Malalur | Jun 2005 | B1 |
6912223 | Sloane | Jun 2005 | B1 |
6957270 | Erimli et al. | Oct 2005 | B1 |
6987763 | Rochberger et al. | Jan 2006 | B2 |
RE39360 | Aziz et al. | Oct 2006 | E |
20010014097 | Beck et al. | Aug 2001 | A1 |
20020052936 | Gai et al. | May 2002 | A1 |
20030198251 | Black et al. | Oct 2003 | A1 |
20050111364 | Hipp | May 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20030200341 A1 | Oct 2003 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 09475542 | Dec 1999 | US |
Child | 10454190 | US |