High speed packet capture

Information

  • Patent Grant
  • 7907608
  • Patent Number
    7,907,608
  • Date Filed
    Friday, August 12, 2005
    19 years ago
  • Date Issued
    Tuesday, March 15, 2011
    13 years ago
Abstract
Packets can be read from a network interface into an application using a single kernel copy. In one embodiment, the invention includes a receiver packet memory to store captured packets, and a network interface driver operating in a kernel of a device to read packets captured by network interface hardware into the kernel by storing captured packets in the receiver packet memory. Then, an application interface can expose the receiver packet memory to an application executing on the device by representing the receiver packet memory as a virtual file.
Description
FIELD OF THE INVENTION

The present invention relates to computer networks, and in particular, to a network interface.


BACKGROUND

Computer networks and systems have become indispensable tools for modern business. Modern enterprises use such networks for communications and for storage. The information and data stored on the network of a business enterprise is often a highly valuable asset. Modern enterprises use numerous tools to keep outsiders, intruders, and unauthorized personnel from accessing valuable information stored on the network. These tools include firewalls, intrusion detection systems, and packet sniffer devices. However, once an intruder has gained access to sensitive content, there is no network device that can prevent the electronic transmission of the content from the network to outside the network. Similarly, there is no network device that can analyse the data leaving the network to monitor for policy violations, and make it possible to track down information leeks. What is needed is a comprehensive system to capture, store, and analyse all data communicated using the enterprises network. It is advantageous for such a system to be able to capture a large number of packets with high speed.





BRIEF DESCRIPTION OF THE DRAWINGS

The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings in which like reference numerals refer to similar elements and in which:



FIG. 1 is a block diagram illustrating a computer network connected to the Internet;



FIG. 2 is a block diagram illustrating one configuration of a capture system according to one embodiment of the present invention;



FIG. 3 is a block diagram illustrating the capture system according to one embodiment of the present invention;



FIG. 4 is a block diagram illustrating an object assembly module according to one embodiment of the present invention;



FIG. 5 is a block diagram illustrating an object store module according to one embodiment of the present invention;



FIG. 6 is a block diagram illustrating an example hardware architecture for a capture system according to one embodiment of the present invention;



FIG. 7 is a block diagram illustrating a packet capture module of a capture device according to one embodiment of the present invention;



FIG. 8A is a flow diagram illustrating network interface driver processing according to one embodiment of the present invention; and



FIG. 8B is a flow diagram illustrating application interface and application processing according to one embodiment of the present invention.





DETAILED DESCRIPTION

Although the present system will be discussed with reference to various illustrated examples, these examples should not be read to limit the broader spirit and scope of the present invention. Some portions of the detailed description that follows are presented in terms of algorithms and symbolic representations of operations on data within a computer memory. These algorithmic descriptions and representations are the means used by those skilled in the computer science arts to most effectively convey the substance of their work to others skilled in the art. An algorithm is here, and generally, conceived to be a self-consistent sequence of steps leading to a desired result. The steps are those requiring physical manipulations of physical quantities. Usually, though not necessarily, these quantities take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared and otherwise manipulated.


It has proven convenient at times, principally for reasons of common usage, to refer to these signals as bits, values, elements, symbols, characters, terms, numbers or the like. It should be borne in mind, however, that all of these and similar terms are to be associated with the appropriate physical quantities and are merely convenient labels applied to these quantities. Unless specifically stated otherwise, it will be appreciated that throughout the description of the present invention, use of terms such as “processing”, “computing”, “calculating”, “determining”, “displaying” or the like, refer to the action and processes of a computer system, or similar electronic computing device, that manipulates and transforms data represented as physical (electronic) quantities within the computer system's registers and memories into other data similarly represented as physical quantities within the computer system memories or registers or other such information storage, transmission or display devices.


As indicated above, one embodiment of the present invention is instantiated in computer software, that is, computer readable instructions, which, when executed by one or more computer processors/systems, instruct the processors/systems to perform the designated actions. Such computer software may be resident in one or more computer readable media, such as hard drives, CD-ROMs, DVD-ROMs, read-only memory, read-write memory and so on. Such software may be distributed on one or more of these media, or may be made available for download across one or more computer networks (e.g., the Internet). Regardless of the format, the computer programming, rendering and processing techniques discussed herein are simply examples of the types of programming, rendering and processing techniques that may be used to implement aspects of the present invention. These examples should in no way limit the present invention, which is best understood with reference to the claims that follow this description.


Networks



FIG. 1 illustrates a simple prior art configuration of a local area network (LAN) 10 connected to the Internet 12. Connected to the LAN 102 are various components, such as servers 14, clients 16, and switch 18. There are numerous other known networking components and computing devices that can be connected to the LAN 10. The LAN 10 can be implemented using various wireline or wireless technologies, such as Ethernet and 802.11b. The LAN 10 may be much more complex than the simplified diagram in FIG. 1, and may be connected to other LANs as well.


In FIG. 1, the LAN 10 is connected to the Internet 12 via a router 20. This router 20 can be used to implement a firewall, which are widely used to give users of the LAN 10 secure access to the Internet 12 as well as to separate a company's public Web server (can be one of the servers 14) from its internal network, i.e., LAN 10. In one embodiment, any data leaving the LAN 10 towards the Internet 12 must pass through the router 12. However, there the router 20 merely forwards packets to the Internet 12. The router 20 cannot capture, analyze, and searchably store the content contained in the forwarded packets.


One embodiment of the present invention is now illustrated with reference to FIG. 2. FIG. 2 shows the same simplified configuration of connecting the LAN 10 to the Internet 12 via the router 20. However, in FIG. 2, the router 20 is also connected to a capture system 22. In one embodiment, the router 12 splits the outgoing data stream, and forwards one copy to the Internet 12 and the other copy to the capture system 22.


There are various other possible configurations. For example, the router 12 can also forward a copy of all incoming data to the capture system 22 as well. Furthermore, the capture system 22 can be configured sequentially in front of, or behind the router 20, however this makes the capture system 22 a critical component in connecting to the Internet 12. In systems where a router 12 is not used at all, the capture system can be interposed directly between the LAN 10 and the Internet 12. In one embodiment, the capture system 22 has a user interface accessible from a LAN-attached device, such as a client 16.


In one embodiment, the capture system 22 intercepts all data leaving the network. In other embodiments, the capture system can also intercept all data being communicated inside the network 10. In one embodiment, the capture system 22 reconstructs the documents leaving the network 10, and stores them in a searchable fashion. The capture system 22 can then be used to search and sort through all documents that have left the network 10. There are many reasons such documents may be of interest, including network security reasons, intellectual property concerns, corporate governance regulations, and other corporate policy concerns.


Capture System


One embodiment of the present invention is now described with reference to FIG. 3. FIG. 3 shows one embodiment of the capture system 22 in more detail. The capture system 22 includes a network interface module 24 to receive the data from the network 10 or the router 20. In one embodiment, the network interface module 24 is implemented using one or more network interface cards (NIC), e.g., Ethernet cards. In one embodiment, the router 20 delivers all data leaving the network to the network interface module 24.


The captured raw data is then passed to a packet capture module 26. In one embodiment, the packet capture module 26 extracts data packets from the data stream received from the network interface module 24. In one embodiment, the packet capture module 26 reconstructs Ethernet packets from multiple sources to multiple destinations for the raw data stream.


In one embodiment, the packets are then provided the object assembly module 28. The object assembly module 28 reconstructs the objects being transmitted by the packets. For example, when a document is transmitted, e.g. as an email attachment, it is broken down into packets according to various data transfer protocols such as Transmission Control Protocol/Internet Protocol (TCP/IP) and Ethernet. The object assembly module 28 can reconstruct the document from the captured packets.


One embodiment of the object assembly module 28 is now described in more detail with reference to FIG. 4. When packets first enter the object assembly module, they are first provided to a reassembler 36. In one embodiment, the reassembler 36 groups—assembles—the packets into unique flows. For example, a flow can be defined as packets with identical Source IP and Destination IP addresses as well as identical TCP Source and Destination Ports. That is, the reassembler 36 can organize a packet stream by sender and recipient.


In one embodiment, the reassembler 36 begins a new flow upon the observation of a starting packet defined by the data transfer protocol. For a TCP/IP embodiment, the starting packet is generally referred to as the “SYN” packet. The flow can terminate upon observation of a finishing packet, e.g., a “Reset” or “FIN” packet in TCP/IP. If now finishing packet is observed by the reassembler 36 within some time constraint, it can terminate the flow via a timeout mechanism. In an embodiment using the TPC protocol, a TCP flow contains an ordered sequence of packets that can be assembled into a contiguous data stream by the ressembler 36. Thus, in one embodiment, a flow is an ordered data stream of a single communication between a source and a destination.


The flown assembled by the reassember 36 can then is provided to a protocol demultiplexer (demux) 38. In one embodiment, the protocol demux 38 sorts assembled flows using the TCP Ports. This can include performing a speculative classification of the flow contents based on the association of well-known port numbers with specified protocols. For example, Web Hyper Text Transfer Protocol (HTTP) packets—i.e., Web traffic—are typically associated with port 80, File Transfer Protocol (FTP) packets with port 20, Kerberos authentication packets with port 88, and so on. Thus in one embodiment, the protocol demux 38 separates all the different protocols in one flow.


In one embodiment, a protocol classifier 40 also sorts the flows in addition to the protocol demux 38. In one embodiment, the protocol classifier 40 —operating either in parallel or in sequence with the protocol demux 38—applies signature filters to the flows to attempt to identify the protocol based solely on the transported data. Furthermore, the protocol demux 38 can make a classification decision based on port number, which is subsequently overridden by protocol classifier 40. For example, if an individual or program attempted to masquerade an illicit communication (such as file sharing) using an apparently benign port such as port 80 (commonly used for HTTP Web browsing), the protocol classifier 40 would use protocol signatures, i.e., the characteristic data sequences of defined protocols, to verify the speculative classification performed by protocol demux 38.


In one embodiment, the object assembly module 28 outputs each flow organized by protocol, which represent the underlying objects. Referring again to FIG. 3, these objects can then be handed over to the object classification module 30 (sometimes also referred to as the “content classifier”) for classification based on content. A classified flow may still contain multiple content objects depending on the protocol used. For example, protocols such as HTTP (Internet Web Surfing) may contain over 100 objects of any number of content types in a single flow. To deconstruct the flow, each object contained in the flow is individually extracted, and decoded, if necessary, by the object classification module 30.


The object classification module 30 uses the inherent properties and signatures of various documents to determine the content type of each object. For example, a Word document has a signature that is distinct from a PowerPoint document, or an Email document. The object classification module 30 can extract out each individual object and sort them out by such content types. Such classification renders the present invention immune from cases where a malicious user has altered a file extension or other property in an attempt to avoid detection of illicit activity.


In one embodiment, the object classification module 30 determines whether each object should be stored or discarded. In one embodiment, this determination is based on a various capture rules. For example, a capture rule can indicate that Web Traffic should be discarded. Another capture rule can indicate that all PowerPoint documents should be stored, except for ones originating from the CEO's IP address. Such capture rules can be implemented as regular expressions, or by other similar means. Several embodiments of the object classification module 30 are described in more detail further below.


In one embodiment, the capture rules are authored by users of the capture system 22. The capture system 22 is made accessible to any network-connected machine through the network interface module 24 and user interface 34. In one embodiment, the user interface 34 is a graphical user interface providing the user with friendly access to the various features of the capture system 22. For example, the user interface 34 can provide a capture rule authoring tool that allows users to write and implement any capture rule desired, which are then applied by the object classification module 30 when determining whether each object should be stored. The user interface 34 can also provide pre-configured capture rules that the user can select from along with an explanation of the operation of such standard included capture rules. In one embodiment, the default capture rule implemented by the object classification module 30 captures all objects leaving the network 10.


If the capture of an object is mandated by the capture rules, the object classification module 30 can also determine where in the object store module 32 the captured object should be stored. With reference to FIG. 5, in one embodiment, the objects are stored in a content store 44 memory block. Within the content store 44 are files 46 divided up by content type. Thus, for example, if the object classification module determines that an object is a Word document that should be stored, it can store it in the file 46 reserved for Word documents. In one embodiment, the object store module 32 is integrally included in the capture system 22. In other embodiments, the object store module can be external—entirely or in part—using, for example, some network storage technique such as network attached storage (NAS) and storage area network (SAN).


Tag Data Structure


In one embodiment, the content store is a canonical storage location, simply a place to deposit the captured objects. The indexing of the objects stored in the content store 44 is accomplished using a tag database 42. In one embodiment, the tag database 42 is a database data structure in which each record is a “tag” that indexes an object in the content store 44 and contains relevant information about the stored object. An example of a tag record in the tag database 42 that indexes an object stored in the content store 44 is set forth in Table 1:










TABLE 1





Field Name
Definition







MAC Address
Ethernet controller MAC address unique to each



capture system


Source IP
Source Ethernet IP Address of object


Destination IP
Destination Ethernet IP Address of object


Source Port
Source TCP/IP Port number of object


Destination Port
Destination TCP/IP Port number of the object


Protocol
IP Protocol that carried the object


Instance
Canonical count identifying object within a



protocol capable of carrying multiple data



within a single TCP/IP connection


Content
Content type of the object


Encoding
Encoding used by the protocol carrying object


Size
Size of object


Timestamp
Time that the object was captured


Owner
User requesting the capture of object



(rule author)


Configuration
Capture rule directing the capture of object


Signature
Hash signature of object


Tag Signature
Hash signature of all preceding tag fields









There are various other possible tag fields, and some embodiments can omit numerous tag fields listed in Table 1. In other embodiments, the tag database 42 need not be implemented as a database, and a tag need not be a record. Any data structure capable of indexing an object by storing relational data over the object can be used as a tag data structure. Furthermore, the word “tag” is merely descriptive, other names such as “index” or “relational data store,” would be equally descriptive, as would any other designation performing similar functionality.


The mapping of tags to objects can, in one embodiment, be obtained by using unique combinations of tag fields to construct an object's name. For example, one such possible combination is an ordered list of the Source IP, Destination IP, Source Port, Destination Port, Instance and Timestamp. Many other such combinations including both shorter and longer names are possible. In another embodiment, the tag can contain a pointer to the storage location where the indexed object is stored.


The tag fields shown in Table 1 can be expressed more generally, to emphasize the underlying information indicated by the tag fields in various embodiments. Some of these possible generic tag fields are set forth in Table 2:










TABLE 2





Field Name
Definition







Device Identity
Identifier of capture device


Source Address
Origination Address of object


Destination
Destination Address of object


Address


Source Port
Origination Port of object


Destination Port
Destination Port of the object


Protocol
Protocol that carried the object


Instance
Canonical count identifying object within a



protocol capable of carrying multiple data



within a single connection


Content
Content type of the object


Encoding
Encoding used by the protocol carrying object


Size
Size of object


Timestamp
Time that the object was captured


Owner
User requesting the capture of object (rule author)


Configuration
Capture rule directing the capture of object


Signature
Signature of object


Tag Signature
Signature of all preceding tag fields









For many of the above tag fields in Tables 1 and 2, the definition adequately describes the relational data contained by each field. For the content field, the types of content that the object can be labeled as are numerous. Some example choices for content types (as determined, in one embodiment, by the object classification module 30) are JPEG, GIF, BMP, TIFF, PNG (for objects containing images in these various formats); Skintone (for objects containing images exposing human skin); PDF, MSWord, Excel, PowerPoint, MSOffice (for objects in these popular application formats); HTML, WebMail, SMTP, FTP (for objects captured in these transmission formats); Telnet, Rlogin, Chat (for communication conducted using these methods); GZIP, ZIP, TAR (for archives or collections of other objects); Basic_Source, C++_Source, C_Source, Java_Source, FORTRAN_Source, Verilog_Source, VHDL_Source, Assembly_Source, Pascal_Source, Cobol_Source, Ada_Source, Lisp_Source, Perl_Source, XQuery_Source, Hypertext Markup Language, Cascaded Style Sheets, JavaScript, DXF, Spice, Gerber, Mathematica, Matlab, AllegroPCB, ViewLogic, TangoPCAD, BSDL, C_Shell, K_Shell, Bash_Shell, Bourne_Shell, FTP, Telnet, MSExchange, POP3, RFC822, CVS, CMS, SQL, RTSP, MIME, PDF, PS (for source, markup, query, descriptive, and design code authored in these high-level programming languages); C Shell, K Shell, Bash Shell (for shell program scripts); Plaintext (for otherwise unclassified textual objects ); Crypto (for objects that have been encrypted or that contain cryptographic elements); Englishtext, Frenchtext, Germantext, Spanishtext, Japanesetext, Chinesetext, Koreantext, Russiantext (any human language text); Binary Unknown, ASCII Unknown, and Unknown (as catchall categories).


The signature contained in the Signature and Tag Signature fields can be any digest or hash over the object, or some portion thereof. In one embodiment, a well-known hash, such as MD5 or SHA1 can be used. In one embodiment, the signature is a digital cryptographic signature. In one embodiment, a digital cryptographic signature is a hash signature that is signed with the private key of the capture system 22. Only the capture system 22 knows its own private key, thus, the integrity of the stored object can be verified by comparing a hash of the stored object to the signature decrypted with the public key of the capture system 22, the private and public keys being a public key cryptosystem key pair. Thus, if a stored object is modified from when it was originally captured, the modification will cause the comparison to fail.


Similarly, the signature over the tag stored in the Tag Signature field can also be a digital cryptographic signature. In such an embodiment, the integrity of the tag can also be verified. In one embodiment, verification of the object using the signature, and the tag using the tag signature is performed whenever an object is presented, e.g., displayed to a user. In one embodiment, if the object or the tag is found to have been compromised, an alarm is generated to alert the user that the object displayed may not be identical to the object originally captured.


Network Interface and Packet Capture


In one embodiment, packet capture—as described in connection with network interface module 24 and packet capture module 26 in FIG. 3 above—is performed by the operating system kernel of the capture system 22. Object capture, classification, and other object related processing is performed by various applications executing on the capture system 22. In traditional network communications, such as the TCP/IP system, incoming packets are copied to various buffers in the kernel for processing, such as the sk_buffer and the ip_table. On the application side, the packets are copied to a socket and then handed over to the application.


This traditional incoming packet processing is designed for generic network communications. However, a capture device receives more packets than an ordinary network communications device, such as a server. The multiple copies required by the traditional system slow down the processing of incoming network packets. Thus, in one embodiment, the present invention includes a packet capture system that only uses one kernel copy of a received packet before it is provided to an application on the application side.


One embodiment of the present invention can be implemented in the packet capture module 26, discussed briefly with reference to FIG. 3. A more detailed discussion of one embodiment of the packet capture module 26 is now provided with reference to FIG. 7. FIG. 7 illustrates the packet capture module 26 disposed between the network interface module 24 and an application 72. The application 72 can be any of the applications executing on the capture system 22, such as object assembly, object storage, and object query applications.


In one embodiment, the network interface module 24 is a network interface card or an integrated network interface controller. The network interface module 24 may include more than one network interface cards or controllers, and each may have one or more receive ports on which packets can be received from the network. In one embodiment, the network interface module 24 and the packet capture module operate on the kernel side (i.e., on the operating system side) of the capture system 22, while the application 72 resides on the application side.


In one embodiment, the packets received from the network interface module 24 are read into the packet capture module 26 by the network interface driver 74. The network interface driver is a device driver that interfaces the network interface module with the kernel of the capture system 22. Device drivers generally operate at low levels of the operating system kernel.


The network interface driver 74 is configured to place incoming packets into the receiver packet memory 76. In one embodiment, packets are placed in the receiver packet memory 76 in consecutive order in a wraparound fashion. In other words, the receiver packet memory 76 can be treated as an infinite circular buffer. In FIG. 7, each slot in the receiver packet memory 76 represents storage for one packet. In a real-life implementation, the receiver packet memory 76 can hold many more packets than pictured, limited practically only by the kernel memory available.


The receive packet memory 76 can be implemented using any appropriate memory components depending on the specifications of the computational platform. Various memories, such as Flash, RAM, and other volatile and non-volatile memories can be used. Such memories are commodity components in the computer electronics field.


In one embodiment, the packet capture module 26 includes an application interface 80 to enable the packet capture module 26 to communicate with the application 72. When the application 72 is ready to process captured packets, it can access unprocessed packets from the receiver packet memory 76 via the application interface 80.


In one embodiment, the application interface 80 represents the receiver packet memory 76 as a virtual device file. The application 72 can then migrate packets from the receiver packet memory 76 by memory mapping this virtual device file. By representing the receiver packet memory 76 as a file, the application 72 can use file system commands and handles to reference and manipulate data in the receiver packet memory 76. When the application 72 memory maps this file, the application may then use memory operators to manipulate the data contained within the file. In one embodiment, the file may be opened and mapped in a “read only” mode such that multiple applications may read and act on the data in the file at the same time.


In one embodiment, the packet capture module also includes a control memory 78 to enable various operations on the receiver packet memory. The control memory 78 can contain various pointers into the receiver packet memory 76, for example, to identify the start of each packet. In one embodiment, the control memory also contains a head and a tail pointer to help identify the unprocessed packets in the receiver packet memory 76.


In one embodiment, the head pointer points at the last packet inserted into the receiver packet memory 76 by the network interface driver 74. In another embodiment, the head pointer can also point to the packet after the last packet inserted into the receiver packet memory 76 by the network interface driver 74. Similarly, in one embodiment, the tail pointer points at the last packet migrated to the application 72 via memory-mapping by the application interface 80. Likewise, in another embodiment, the tail pointer points at the packet after the last packet migrated to the application 72 via memory-mapping by the application interface 80. The head and tail pointers can point directly into the receiver packet memory 76, or they could point indirectly by pointing at appropriate pointers in the control memory 78.


Thus, in one embodiment, the control memory 78 can be accessed by both the network interface driver 74, and by the application 72 via the application interface 80. The head pointer is updated by the network interface driver 74, while the tail pointer is updated by the application 72.


A more detailed operation of the network interface driver 74 and the application interface 80 is now provided with reference to the flow diagrams in FIGS. 8A and 8B respectively. One embodiment of the operation of the network interface driver 74—as illustrated by FIG. 8A—begins, in block 802, with the network interface driver 74 reading in a packet pulled from the network by the network interface module 24.


In one embodiment, the network interface module 24 includes a NIC having multiple ports. Some ports may be designated for packet capture, while others can be designated for other functions, such as user interface. In one embodiment, network interface driver 74 only performs packet capture processing (as illustrated by FIG. 8A) on ports designated for packet capture. Other ports are treaded as regular receive packets and are processed according to the appropriate receive protocol, such as TCP/IP, implemented in the capture system 22. In an embodiment, where the network interface module 24 includes multiple NICs, some NICs may be designated for packet capture processing, while others are not.


In block 804, the received packet in placed—written into—the receive packet memory. In one embodiment, the received packet in placed into the receive packet memory contiguously next to the last packet received in a wraparound fashion. Finally, in block 806, the network interface driver 74 updates the head indicator that marks the last new unprocessed received packet. The processing then continues as the next packet is received in block 802.


One embodiment of the operation of the application interface 80—as illustrated by FIG. 8B—begins, in block 812, with the application interface 80 receiving a request for data from an application 72. In response to the request, the application interface 80 represents the receiver packet memory 76 as a virtual file, in block 814, to the application 72. This can be done by providing the application 72 standard file handler and command pointers, as is known in the art.


In block 816, the application memory maps the virtual file provided by the application interface 80, which provides the application 72 the ability to perform memory operations on the receiver packet memory 76 in the application space. The application 72 can now read packets from the memory mapped virtual file to access packets between the tail and head indicators maintained by the packet capture module 26 as set forth above.


When the application 72 has processed all the packets it wanted to process on this access, the application 72 provides the tail indicator corresponding with the last processed packet to the application interface 80 in block 818, which in turn updates the tail indicator maintained by the packet capture module.


In one embodiment, multiple applications can access the receiver packet memory in the method described above. In such an embodiment, the packet capture module 26 can maintain multiple tail indicators to correspond with the last packet read in by each application.


General Matters


In several embodiments, the capture system 22 has been described above as a stand-alone device. However, the capture system of the present invention can be implemented on any appliance capable of capturing and analyzing data from a network. For example, the capture system 22 described above could be implemented on one or more of the servers 14 or clients 16 shown in FIG. 1. The capture system 22 can interface with the network 10 in any number of ways, including wirelessly.


In one embodiment, the capture system 22 is an appliance constructed using commonly available computing equipment and storage systems capable of supporting the software requirements. In one embodiment, illustrated by FIG. 6, the hardware consists of a capture entity 46, a processing complex 48 made up of one or more processors, a memory complex 50 made up of one or more memory elements such as RAM and ROM, and storage complex 52, such as a set of one or more hard drives or other digital or analog storage means. In another embodiment, the storage complex 52 is external to the capture system 22, as explained above. In one embodiment, the memory complex stored software consisting of an operating system for the capture system device 22, a capture program, and classification program, a database, a filestore, an analysis engine and a graphical user interface.


Thus, a capture system and a file system for the capture system have been described. In the forgoing description, various specific values were given names, such as “objects,” and various specific modules, such as the “packet capture module” and “control memory” have been described. However, these names are merely to describe and illustrate various aspects of the present invention, and in no way limit the scope of the present invention. Furthermore various modules can be implemented as software or hardware modules, or without dividing their functionalities into modules at all. The present invention is not limited to any modular architecture either in software or in hardware, whether described above or not.

Claims
  • 1. A method for reading data into an application, the method comprising: reading a packet of data captured by a network interface coupled to a network interface driver that provides a communicative interface between the network interface and a kernel of a capture system;storing the packet in a receiver packet memory in a wraparound fashion such that the packet is placed contiguously next to a last new packet received, and wherein the packet and the last new packet are stored as read only data in the receiver packet memory such that multiple applications can access the packets, wherein the network interface and the network interface driver are configured on a kernel side of an operating system provisioned within the capture system, and wherein the applications reside on an application side of the capture system that is different from the kernel side;updating a head indicator, the head indicator identifying the last new packet in the receiver packet memory; andrepresenting the receiver packet memory as a virtual file, wherein a first application of the multiple applications is configured to migrate packets from the receiver packet memory by memory mapping the virtual file, the first application employing file system commands and handles to reference and to manipulate selected data in the receiver packet memory such that the virtual file is mapped in a read only mode to allow a second application of the multiple applications to access the selected data in the receiver packet memory, and wherein the capture system includes a control memory that provides a plurality of pointers to the receiver packet memory in order to allow access to the control memory by both the network interface driver and the first and second applications through an application interface.
  • 2. The method of claim 1, further comprising reading new packets from the memory-mapped virtual file by the first application.
  • 3. The method of claim 2, wherein reading the new packets comprises reading the new packets from a memory location indicated by a tail indicator, the tail indicator identifying the last packet read by the first application.
  • 4. The method of claim 3, wherein reading the new packets comprises reading the new packets from memory locations between the tail indicator and the head indicator.
  • 5. The method of claim 3, further comprising updating the tail indicator to account for the new packets read by the first application.
  • 6. The method of claim 3, wherein the head indicator comprises a head pointer into the receiver packet memory and the tail indicator comprises a tail pointer into the receiver packet memory.
  • 7. A capture device comprising: a receiver packet memory to store captured packets that include data;a network interface driver operating in a kernel of the capture device to read packets captured by a network interface module into the kernel by storing captured packets in the receiver packet memory in a wraparound fashion such that the packet is placed contiguously next to a last new packet received, and wherein the packet and the last new packet are stored as read only data in the receiver packet memory such that multiple applications can access the packets; andan application interface configured to expose the receiver packet memory to a first application of the multiple applications executing on the capture device by representing the receiver packet memory as a virtual file, wherein the network interface module and the network interface driver are configured on a kernel side of an operating system provisioned within the capture device, and wherein the applications reside on an application side of the capture device that is different from the kernel side, and wherein the first application is configured to migrate packets from the receiver packet memory by memory mapping the virtual file, the first application employing file system commands and handles to reference and to manipulate selected data in the receiver packet memory such that the virtual file is mapped in a read only mode to allow a second application of the multiple applications to access the selected data in the receiver packet memory, and wherein the capture device includes a control memory that provides a plurality of pointers to the receiver packet memory in order to allow access to the control memory by both the network interface driver and the first and second applications through the application interface.
  • 8. The capture device of claim 7, further comprising a control memory containing a head indicator and a tail indicator.
  • 9. The capture device of claim 8, wherein the head indicator comprises a head pointer pointing to the last packet written to the receiver packet memory by the network interface driver, and the tail indicator comprises a tail pointer pointing to the last packet processed by the first application.
  • 10. The capture device of claim 9, wherein the first application migrates packets from the kernel to the first application by performing memory read operations on the memory-mapped virtual file.
  • 11. The capture device of claim 10, wherein the first application performs read operations by reading packets between the head pointer and the tail pointer.
  • 12. The capture device of claim 11, wherein the first application updates the tail pointer after each packet migration.
  • 13. The capture device of claim 7, wherein the network interface module comprises a network interface controller (NIC).
  • 14. A non-transitory machine-readable medium having stored thereon data representing instructions that, when executed by a processor running an operating system kernel and at least one application, cause the processor to perform operations comprising: reading a packet of data captured by a network interface by coupled to a network interface driver that provides a communicative interface between the network interface and a kernel of a capture system,the packet of data being part of a document that includes a plurality of objects that identify characteristics of the document,wherein the document is captured based on a capture rule that specifies the objects, andwherein the capture rule designates whether to discard or to store the objects of the document, andwherein the capture rule is part of a default rule sot for a capture system configured to monitor network traffic and capture the document;storing the packet in a receiver packet memory in a wraparound fashion such that the packet is placed contiguously next to a last new packet received, andwherein the packet and the last new packet are stored as read only data in the receiver packet memory such that multiple applications can access the packets,wherein the network interface and the network interface driver are configured on a kernel side of an operating system provisioned within the capture system, andwherein the applications reside on an application side of the capture system that is different from the kernel side;updating a head indicator, the head indicator identifying the last new packet in the receiver packet memory; andexposing the receiver packet memory to the application by representing the receiver packet memory as a virtual filewherein a first application of the multiple applications is configured to migrate packets from the receiver packet memory by memory mapping the virtual file,the first application employing file system commands and handles to reference and to manipulate selected data in the receiver packet memory such that the virtual file is mapped in a read only mode to allow a second application of the multiple applications to access the selected data in the receiver packet memory, andwherein the capture system includes a control memory that provides a plurality of pointers to the receiver packet memory in order to allow access to the control memory by both the network interface driver and the first and second applications through an application interface.
  • 15. The machine-readable medium of claim 14, wherein the instructions further cause the processor have the first application to read new packets from the memory-mapped virtual file.
  • 16. The machine-readable medium of claim 15, wherein reading the new packets comprises reading the new packets from a memory location indicated by a tail indicator, the tail indicator identifying the last packet read by the first application.
  • 17. The machine-readable medium of claim 16, wherein reading the new packets comprises reading the new packets from memory locations between the tail indicator and the head indicator.
  • 18. The machine-readable medium of claim 16, wherein the instructions further cause the processor to have the first application update the tail indicator to account for the new packets read by the first application.
US Referenced Citations (200)
Number Name Date Kind
4286255 Siy Aug 1981 A
4710957 Bocci et al. Dec 1987 A
5249289 Thamm et al. Sep 1993 A
5465299 Matsumoto et al. Nov 1995 A
5479654 Squibb Dec 1995 A
5497489 Menne Mar 1996 A
5557747 Rogers et al. Sep 1996 A
5623652 Vora et al. Apr 1997 A
5768578 Kirk Jun 1998 A
5781629 Haber et al. Jul 1998 A
5794052 Harding Aug 1998 A
5813009 Johnson et al. Sep 1998 A
5943670 Prager Aug 1999 A
5995111 Morioka et al. Nov 1999 A
6026411 Delp Feb 2000 A
6078953 Vaid et al. Jun 2000 A
6094531 Allison et al. Jul 2000 A
6108697 Raymond et al. Aug 2000 A
6161102 Yanagilhara et al. Dec 2000 A
6175867 Taghadoss Jan 2001 B1
6192472 Garay et al. Feb 2001 B1
6243091 Berstis Jun 2001 B1
6243720 Munter et al. Jun 2001 B1
6278992 Curtis et al. Aug 2001 B1
6292810 Richards Sep 2001 B1
6356885 Ross et al. Mar 2002 B2
6389419 Wong et al. May 2002 B1
6408294 Getchius et al. Jun 2002 B1
6408301 Patton et al. Jun 2002 B1
6457017 Watkins et al. Sep 2002 B2
6493761 Baker et al. Dec 2002 B1
6499105 Yoshiura et al. Dec 2002 B1
6515681 Knight Feb 2003 B1
6516320 Odom et al. Feb 2003 B1
6523026 Gillis Feb 2003 B1
6539024 Janoska et al. Mar 2003 B1
6571275 Dong et al. May 2003 B1
6598033 Ross et al. Jul 2003 B2
6662176 Brunet et al. Dec 2003 B2
6691209 O'Connell Feb 2004 B1
6771595 Gilbert et al. Aug 2004 B1
6772214 McClain et al. Aug 2004 B1
6785815 Serret-Avila et al. Aug 2004 B1
6820082 Cook et al. Nov 2004 B1
6857011 Reinke Feb 2005 B2
6937257 Dunlavey Aug 2005 B1
6950864 Tsuchiya Sep 2005 B1
6978297 Piersol Dec 2005 B1
7020654 Najmi Mar 2006 B1
7020661 Cruanes et al. Mar 2006 B1
7062572 Hampton Jun 2006 B1
7072967 Saulpaugh et al. Jul 2006 B1
7082443 Ashby Jul 2006 B1
7093288 Hydrie et al. Aug 2006 B1
7130587 Hikokubo et al. Oct 2006 B2
7158983 Willse et al. Jan 2007 B2
7185073 Gai et al. Feb 2007 B1
7185192 Kahn Feb 2007 B1
7219131 Banister et al. May 2007 B2
7219134 Takeshima et al. May 2007 B2
7243120 Massey Jul 2007 B2
7246236 Stirbu Jul 2007 B2
7254562 Hsu et al. Aug 2007 B2
7266845 Hypponen Sep 2007 B2
7277957 Rowley et al. Oct 2007 B2
7290048 Barnett et al. Oct 2007 B1
7293067 Maki et al. Nov 2007 B1
7296070 Sweeney et al. Nov 2007 B2
7296088 Padmanabhan et al. Nov 2007 B1
7299277 Moran et al. Nov 2007 B1
7373500 Ramelson et al. May 2008 B2
7424744 Wu et al. Sep 2008 B1
7426181 Feroz et al. Sep 2008 B1
7434058 Ahuja et al. Oct 2008 B2
7477780 Boncyk et al. Jan 2009 B2
7483916 Lowe et al. Jan 2009 B2
7493659 Wu et al. Feb 2009 B1
7506055 McClain et al. Mar 2009 B2
7509677 Saurabh et al. Mar 2009 B2
7516492 Nisbet et al. Apr 2009 B1
7551629 Chen et al. Jun 2009 B2
7596571 Sifry Sep 2009 B2
7664083 Cermak et al. Feb 2010 B1
20010037324 Agrawal et al. Nov 2001 A1
20010046230 Rojas Nov 2001 A1
20020032677 Morgenthaler et al. Mar 2002 A1
20020052896 Streit et al. May 2002 A1
20020078355 Samar Jun 2002 A1
20020091579 Yehia et al. Jul 2002 A1
20020103876 Chatani et al. Aug 2002 A1
20020107843 Biebesheimer et al. Aug 2002 A1
20020116124 Garin et al. Aug 2002 A1
20020126673 Dagli et al. Sep 2002 A1
20020129140 Peled et al. Sep 2002 A1
20020159447 Carey et al. Oct 2002 A1
20030009718 Wolfgang et al. Jan 2003 A1
20030028493 Tajima Feb 2003 A1
20030028774 Meka Feb 2003 A1
20030046369 Sim et al. Mar 2003 A1
20030053420 Duckett et al. Mar 2003 A1
20030065571 Dutta Apr 2003 A1
20030084300 Koike May 2003 A1
20030084318 Schertz May 2003 A1
20030084326 Tarquini May 2003 A1
20030093678 Bowe et al. May 2003 A1
20030099243 Oh et al. May 2003 A1
20030105739 Essafi et al. Jun 2003 A1
20030131116 Jain et al. Jul 2003 A1
20030135612 Huntington Jul 2003 A1
20030185220 Valenci Oct 2003 A1
20030196081 Savarda et al. Oct 2003 A1
20030204741 Schoen et al. Oct 2003 A1
20030221101 Micali Nov 2003 A1
20030225796 Matsubara Dec 2003 A1
20030225841 Song et al. Dec 2003 A1
20030231632 Haeberlen Dec 2003 A1
20040059736 Willse et al. Mar 2004 A1
20040071164 Baum Apr 2004 A1
20040111678 Hara Jun 2004 A1
20040114518 MacFaden et al. Jun 2004 A1
20040117414 Braun et al. Jun 2004 A1
20040120325 Ayres Jun 2004 A1
20040122863 Sidman Jun 2004 A1
20040181513 Henderson et al. Sep 2004 A1
20040181690 Rothermel et al. Sep 2004 A1
20040194141 Sanders Sep 2004 A1
20040196970 Cole Oct 2004 A1
20040230572 Omoigui Nov 2004 A1
20040267753 Hoche Dec 2004 A1
20050004911 Goldberg et al. Jan 2005 A1
20050021715 Dugatkin et al. Jan 2005 A1
20050021743 Fleig et al. Jan 2005 A1
20050022114 Shanahan et al. Jan 2005 A1
20050027881 Figueira et al. Feb 2005 A1
20050033747 Wittkotter Feb 2005 A1
20050033803 Vleet et al. Feb 2005 A1
20050038809 Abajian et al. Feb 2005 A1
20050050205 Gordy et al. Mar 2005 A1
20050055327 Agrawal et al. Mar 2005 A1
20050055399 Savchuk Mar 2005 A1
20050091443 Hershkovich et al. Apr 2005 A1
20050091532 Moghe Apr 2005 A1
20050097441 Herbach et al. May 2005 A1
20050108244 Riise et al. May 2005 A1
20050114452 Prakash May 2005 A1
20050120006 Nye Jun 2005 A1
20050127171 Ahuja et al. Jun 2005 A1
20050128242 Suzuki Jun 2005 A1
20050131876 Ahuja et al. Jun 2005 A1
20050132034 de la Iglesia et al. Jun 2005 A1
20050132046 de la Iglesia et al. Jun 2005 A1
20050132079 de la Iglesia et al. Jun 2005 A1
20050132197 Medlar Jun 2005 A1
20050132198 Ahuja et al. Jun 2005 A1
20050132297 Milic-Frayling et al. Jun 2005 A1
20050138242 Pope et al. Jun 2005 A1
20050138279 Somasundaram Jun 2005 A1
20050149504 Ratnaparkhi Jul 2005 A1
20050166066 Ahuja et al. Jul 2005 A1
20050177725 Lowe et al. Aug 2005 A1
20050180341 Nelson et al. Aug 2005 A1
20050203940 Farrar et al. Sep 2005 A1
20050204129 Sudia et al. Sep 2005 A1
20050228864 Robertson Oct 2005 A1
20050235153 Ikeda Oct 2005 A1
20050289181 Deninger et al. Dec 2005 A1
20060005247 Zhang et al. Jan 2006 A1
20060021045 Cook Jan 2006 A1
20060021050 Cook et al. Jan 2006 A1
20060037072 Rao et al. Feb 2006 A1
20060041560 Forman et al. Feb 2006 A1
20060041570 Lowe et al. Feb 2006 A1
20060041760 Huang Feb 2006 A1
20060047675 Lowe et al. Mar 2006 A1
20060083180 Baba et al. Apr 2006 A1
20060150249 Gassen et al. Jul 2006 A1
20060167896 Kapur et al. Jul 2006 A1
20060184532 Hamada et al. Aug 2006 A1
20060242126 Fitzhugh Oct 2006 A1
20060242313 Le et al. Oct 2006 A1
20060251109 Muller et al. Nov 2006 A1
20060272024 Huang et al. Nov 2006 A1
20060288216 Buhler et al. Dec 2006 A1
20070006293 Balakrishnan et al. Jan 2007 A1
20070050334 Deninger et al. Mar 2007 A1
20070050381 Hu et al. Mar 2007 A1
20070094394 Singh et al. Apr 2007 A1
20070110089 Essafi et al. May 2007 A1
20070116366 Deninger et al. May 2007 A1
20070136599 Suga Jun 2007 A1
20070162609 Pope et al. Jul 2007 A1
20070226504 de la Iglesia et al. Sep 2007 A1
20070226510 de la Iglesia et al. Sep 2007 A1
20070248029 Merkey et al. Oct 2007 A1
20070271254 de la Iglesia et al. Nov 2007 A1
20070271371 Ahuja et al. Nov 2007 A1
20070271372 Deninger et al. Nov 2007 A1
20070280123 Atkins et al. Dec 2007 A1
20080028467 Kommareddy et al. Jan 2008 A1
20100121853 de la Iglesia et al. May 2010 A1
Related Publications (1)
Number Date Country
20070036156 A1 Feb 2007 US