search cancel

Unable to virtualize TCP Traffic Using PCAP file with DevTest 10.6

book

Article ID: 216711

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

We are trying to virtualize TCP traffic using PCAP file. However, we have not been successful in getting this to work. 

We would like to understand what options are available for this type of virtualization.

Environment

Release : 10.5 and up

Component : CA Service Virtualization

Cause

N/A

Resolution

When creating a service image from a  PCAP file we are limited to only HTTP or HTTPS traffic, and not all TCP packets. Also, we do not support IPv6, so the traffic you capture will need to be using IPv4 addressing.

See https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-6/using/using-service-virtualization/using-devtest-workstation-with-service-virtualization/creating-service-images/create-a-service-image-from-pcap.html

Depending on your environment, you may need to configure the Virtual Service Catalog and force IPv4, by editing the LISA_HOME/IdentityAccessManager/bin/standalone.conf, and adding the following statement:


#Force IPv4 connection
JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true"

See https://techdocs.broadcom.com/us/en/ca-enterprise-software/devops/devtest-solutions/10-6/using/using-virtual-service-catalog/configure-virtual-service-catalog.html

In order to use the PCAP file, the packet capture must be using IPv4 addressing.

 

Below is an example of how it was configured in the support lab, using a PCAP file, which captured HTTP traffic on port 8080.

Note: Client port = 57088 and Server port = 8080. Therefore, the target port used when configuring the virtual service image is 8080.

The Server's IPv4 address is 10.74.242.xxx, which is what was used for the Target Host.

 

Attachments