Skip to content

seapath/sv-pcap-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

sv-pcap-generator

sv-pcap-generator is a tool used to generate IEC61850 Sample Values PCAP (Packet Capture) files. You can then replicate IEC61850 SV trafic on a network using tools such as bittwist or tcpreplay.

Table of Contents

Introduction

Features

  • Generation of SV PCAP files along various IEC61850 parameters (frequency, appid, number of streams, etc)
  • IEC61850 compliant pacing (250µs for 50Hz electrical network, 208µs for 60Hz electrical network)
  • Supports pcap loopback to make longer trafic generation

Installation

Requirements

Following Python packages are needed:

pip install numpy

To run merge_pcap script, wireshark package is needed.

Usage

To generate a IEC61850 SV pcap on 8 streams, with 4000 SV for each streams, for a 50Hz electrical network, run:

python3 generate_pcap.py -n 8 -l 4000 -f 50 output.pcap

Optionally, you can run merge_pcap.sh script to buckle a generated pcap with himself, and thus, make bigger pcap files.

To do so, run:

./merge_pcap.sh -a output.pcap -b output.pcap -o merged_output.pcap -n 10

This command will buckle the pcap file output.pcap with itself on 10 iterations.

Release notes

Version v0.1

Initial release

About

IEC 61850 Sample value pcap generator

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published