This application claims the benefit of Indian Patent Application No. 2947/DEL/2012, filed Sep. 21, 2012; the disclosure of which is incorporated herein by reference in its entirety.
The subject matter described herein related to testing communications network devices. More particularly, the subject matter described herein relates to methods, systems, and computer readable media for providing a unified framework to support diverse data generation engines that generate test data to test network communications devices.
Data traffic flowing through today's Internet includes a varied mix of data patterns. Different forms of text traffic can be found in web pages and emails. Different forms of binary traffic that traverses the Internet includes voice video, file transfers, along with undesirable traffic, such as malware and security attacks.
There are different types of network equipment like firewalls, WAN optimizers, deep packet inspection devices that need to process part or all of this data traffic in order to optimize the traffic flow or segregate or even block some part of the traffic. In order to test and validate such equipment, it is desirable to emulate some or all these payload patterns on top of various Open System Interconnect (OSI) layer 7 protocols.
One possible approach for emulating the different payload patterns is to store the payloads in multiple data files, read the data from the data files, and send the data on top of layer 7 protocols. In such an implementation, layer 7 protocol emulators would only be required to have the capability to read data files, and some current emulators have the ability to read data files. One issue with having emulators use file read operations to access data is that some emulators are required to generate gigabits of data per second. To feed such an emulator with a mix of payloads at that rate and still ensure that the same traffic is not being sent repeatedly, a large collection of such data files and a matching amount of storage would be required. The volume of required storage may require the use of disks. However, using disks for the storage is not a good option because of slow disk read speeds. Using RAM increases the read speeds, but the volume of RAM required is prohibitively expensive.
Another possible solution to emulating a diverse traffic mix is to use algorithms to generate different patterns of data in real time and use the generated data as the payload. Yet another possible solution is to use data taken from different files to prepare a mix of data which will be very close to what flows through the Internet.
One problem with including complex data generation logic in protocol emulators would lead to redundancy and maintenance overhead. Data generators could also be implemented as software libraries from which the emulator can read. Such an approach requires code in each of the emulators to identify the current test requirement and select the proper library from which to read. In short, all of the emulators need to be aware of all the existing data generator libraries and know how to read from the libraries.
Implementing different logic for each emulator is inefficient and not scalable. For example, when a change is made to a test protocol, the emulator code for each emulator must be modified to implement such a change. Requiring code modifications to implement each protocol change is undesirable.
Accordingly, there exists a need for methods, systems, and computer readable media for providing a unified framework to support diverse data generation engines.
Methods, systems, and computer readable media for providing a unified framework to support diverse data generation engines are provided. One exemplary system includes a protocol emulator that transmits data to a device under test. The protocol emulator sends a request including a data profile identifier to a data generation adapter. The data generation adaptor identifies a data generation engine of a plurality of data generation engines to provide data corresponding to the data profile identifier and requests the data from the identified data generation engine. The data generation engine that receives the request provides the data to the emulator, and the emulator forwards the data to the device under test.
The subject matter described herein for providing a unified framework to support diverse data generation engines may be implemented in hardware, software, firmware, or any combination thereof. As such, the terms “function” or “module” as used herein refer to hardware, software, and/or firmware for implementing the feature being described. In one exemplary implementation, the subject matter described herein may be implemented using a computer readable medium having stored thereon computer executable instructions that when executed by the processor of a computer control the computer to perform steps. Exemplary computer readable media suitable for implementing the subject matter described herein include non-transitory computer-readable media, such as disk memory devices, chip memory devices, programmable logic devices, and application specific integrated circuits. In addition, a computer readable medium that implements the subject matter described herein may be located on a single device or computing platform or may be distributed across multiple devices or computing platforms.
Preferred embodiments of the subject matter described herein will now be explained with reference to the accompanying drawings, wherein like reference numerals represent like parts, of which:
The subject matter described herein includes methods, systems, and computer readable media for providing a unified framework to support diverse data generation engines. According to one aspect of the subject matter described herein, each emulator only needs to implement a single capability, that is to read from a single data source. Such simplification of emulator design is one solution that a data generation adapter provides. The data generator based around the following basic ideas.
a) Open an instance to a data profile using its name.
b) Read certain length of the data using the instance. This can be done multiple times.
c) Close the instance when it's no longer needed.
a) Move the read pointer to a given offset in the data stream.
b) Read properties of the data, e.g. length, MD5 checksum.
The DGA defines a fixed set of interface structure and functions that any data generator needs to implement in order to become a DGA compatible engine.
An exemplary set of parent structures that may be used to implement the subject matter described herein include:
In one exemplary implementation, the DGA maintains a hash table of all the available profile names along with their respective data generation engines. Whenever a reader wants to open a profile instance for a given name, the DGE looks up the hash table, finds out the engine to which it belongs and invokes the open( ) function for that engine. The engine creates an object of its Profile_Instance structure and returns a reference to it.
When the reader invokes any of the operations on the profile instance, DGA looks up the profile reference inside it and extracts the data engine reference from that. Then the DGA simply invokes the corresponding operation function for the engine.
There are some functions like Seek( ), GetAttribute( ) which are optional. DGA pre populates these functions with a default implementation, for all the Data Generation Engines, the Engine can override them if they choose to.
Data generation adaptor 102 simplifies access to data stored by data generation engines 104 by providing a uniform interface for protocol emulator 106 to access data, regardless of the type or format in which data is stored. All that protocol emulator 106 is required to know is the name of a data profile that is being requested. For example, if emulator 106 desires to send HTTP file data to device under test 108, emulator 106 may send a request to data generation adaptor 102 to open a data profile instance for obtaining the HTTP file data. In response to the request, data generation adaptor 102 may identify a data generation engine 104 that provides the appropriate data and create a data profile instance 112 for retrieving the HTTP file data and maintaining state about data about the number of bytes that have been sent to device under test 108. If protocol emulator 106 desires to obtain a different kind of data, such as streaming video, protocol emulator 106 sends another request to data generation adaptor 102 with the data profile name for streaming video. Data generation adaptor 102 creates a data profile instance for obtaining the streaming video and the instance obtains the data from the appropriate data generation engine.
Data generation engines 104 provide data according to the various types. Data generation engines 104 register with data generation adaptor 102 to indicate the names of the data profiles managed by each data generation engine 104. Data generation adaptor 102 uses this registration information to identify a data generation engine to provide data in response to a required from protocol emulator 106. As new data needs to be added for test purposes, a new data generation engine 104 may be added to provide the new data. The new data generation engine 104 registers with data generation adapter 104, and any protocol emulators 106 need only be configured with the data profile instance identifier to access the new data generation engine. Configuration of the emulators with the new data profile instance identifier may be performed manually, e.g., via a graphical user interface, or automatically, e.g., through a registration procedure similar to that described herein for registering with the DGA.
In step 204, DGA 102, or more precisely, the newly-created data profile instance created by DGA 102, requests data from the DGE corresponding to the data profile identifier. In step 206, the data generation engine provides data to protocol emulator 106. Data generation engine 104 may send the data directly to emulator 106. Alternatively, data generation engine 104 may send the data to the data profile instance, which sends the data to protocol emulator 106. In step 208, emulator 106 sends the data to device under test 108. For example, the HTTP file data may be sent to a server through a firewall, where the firewall is the device under test.
Advantages:
In some existing protocol emulator implementations that support different types of payloads, implement separate handlings for each payload type. This model has several drawbacks:
The subject matter described herein segregates the configuration and storage/generation of the payload into a separate set of modules, i.e., the DGA and the data generation engines. New payload types can be supported across all the emulators with the addition of an engine along with some changes in the GUI section of the DGA to allow the user/developer to configure the payload configuration parameters for the new type.
It will be understood that various details of the presently disclosed subject matter may be changed without departing from the scope of the presently disclosed subject matter. Furthermore, the foregoing description is for the purpose of illustration only, and not for the purpose of limitation.
Number | Date | Country | Kind |
---|---|---|---|
2947/DEL/2012 | Sep 2012 | IN | national |
Number | Name | Date | Kind |
---|---|---|---|
6832184 | Bleier et al. | Dec 2004 | B1 |
7313600 | Tannous | Dec 2007 | B1 |
7342897 | Nader et al. | Mar 2008 | B1 |
8687483 | Hutchison et al. | Apr 2014 | B2 |
20010011215 | Beeker et al. | Aug 2001 | A1 |
20020156885 | Thakkar | Oct 2002 | A1 |
20030233637 | Martin | Dec 2003 | A1 |
20040210798 | Higashi | Oct 2004 | A1 |
20050027503 | Kumar | Feb 2005 | A1 |
20050149787 | Choi et al. | Jul 2005 | A1 |
20050259594 | Smith | Nov 2005 | A1 |
20060013252 | Smith | Jan 2006 | A1 |
20060077895 | Wright | Apr 2006 | A1 |
20060140209 | Cassiolato et al. | Jun 2006 | A1 |
20070022407 | Givoni et al. | Jan 2007 | A1 |
20070180135 | Kenrick | Aug 2007 | A1 |
20080059954 | Martin | Mar 2008 | A1 |
20090109063 | Grimshaw et al. | Apr 2009 | A1 |
20090125290 | Chatterjee et al. | May 2009 | A1 |
20090271171 | Nakayama et al. | Oct 2009 | A1 |
20090324228 | Bernard et al. | Dec 2009 | A1 |
20110256863 | Ramasamy et al. | Oct 2011 | A1 |
20110261698 | Kamerkar et al. | Oct 2011 | A1 |
20120051259 | Gintis et al. | Mar 2012 | A1 |
20120054828 | Jiang et al. | Mar 2012 | A1 |
20120150521 | Balkwill | Jun 2012 | A1 |
Entry |
---|
F. Larsson and A.H. Amirkhizi, “Assessment of IxLoad in a GGSN environment,” Master of Science Thesis in the Programme Networks and Distributed Systems, Chalmers University of Technology, University of Gothenburg, Department of Computer Science and Engineering, Göteborg, Sweden, Jun. 2010, 101 pages. |
F. Larsson and A.H. Amirkhizi, “Assessment of IxLoad in a GGSN environment,” Master of Science Thesis in the Programme Networks and Distributed Systems, Chalmers University of Technology, University of Gothenburg, Department of Computer Science and Engineering, G6teborg, Sweden, Jun. 2010, 101 pages. |
“IxLoad: Overview,” http://www.ixiacom.com/products/network—test/applications/ixload/index.php, p. 1 (Publication Date Unknown) (Downloaded from the Internet Dec. 18, 2012). |
Number | Date | Country | |
---|---|---|---|
20140088950 A1 | Mar 2014 | US |