+ All Categories
Home > Documents > GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

Date post: 07-Jan-2022
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
13
1 © Siemens AG 2007 GPS Synchronized Distributed Tests using TTCN-3 Power Transmission and Distribution Page 2 Apr-07 © Siemens AG 2007 Power Transmission and Distribution Schwabe/Nguyen Agenda Part 1: Introduction to Siemens PTD EA What are the products of Siemens PTD EA What are test cases for these products Part 2: Distributed testing with TTCN-3 Part 3: The Test Setup and the Results Test purpose Using TTCN-3 distributed testing Results Extension of TTCN-3 for Testing of communication in process automation
Transcript
Page 1: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

1

© Siemens AG 2007

GPS Synchronized Distributed Tests using TTCN-3Power Transmission and Distribution

Page 2 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Agenda

Part 1: Introduction to Siemens PTD EAWhat are the products of Siemens PTD EAWhat are test cases for these products

Part 2: Distributed testing with TTCN-3

Part 3: The Test Setup and the ResultsTest purposeUsing TTCN-3 distributed testingResultsExtension of TTCN-3 for Testing of communication in process

automation

Page 2: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

2

Page 3 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Agenda

Part 1: Introduction to Siemens PTD EAWhat are the products of Siemens PTD EAWhat are test cases for these products

Part 2: Distributed testing with TTCN-3

Part 3: The Test Setup and the ResultsTest purposeUsing TTCN-3 distributed testingResultsExtension of TTCN-3 for Testing of communication in process automation

Page 4 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

GenerationGenerator protectionTransformer protection

TransmissionDistance protectionLine protectionFeeder protectionBusbar protection

DistributionTransformer protectionLine protectionOvercurrent protection

Protection systems are essential for a safe and reliable energy system

Page 3: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

3

Page 5 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

As in other industries, digitalization totallychanged the way protection devices work

1950 1960 1970 1980 1990 2000

Moving Coil devicesAnalogue devices

Digital devices

Page 6 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Today, energy management relies on communication technology

Page 4: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

4

Page 7 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

A typical test case:the protection setup for a busbar

Page 8 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

When a fault occurs, the protection device A turns off the power switch

Infeed

Busbar

Transformer

Power Switch

Fault Current

A

B

A fault occurs, e.g. due to strike of lightning

A fault current flows

Device A detects the current

Procedure:

Device A sends a command to the power switch after 50ms

The power switch is opened

The current flow is disrupted

Page 5: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

5

Page 9 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

An external fault should not lead to switching off the power switch assigned to device A

BLOCK!!

Device B detects the current

Device B switches off the power switch immediately

A fault occurs e.g. due to strike of lightningA fault current flows

Device A detects the current

Device B sends a blocking command to device A

Device A does not switch off the power switch

Procedure:

Page 10 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Timing:

• Detection of a fault current:approx. 20ms

• Switch-off of external faults:0 ms after detection

• Switch-off of busbar faults:50 ms after occurrence

The timing is very important when a blocking scheme is used for protection

BLOCK!!

The blocking signal has to be sent, transmitted and received within a window of 30 ms

In our test we want to show that thishappens even under heavy load. !

Page 6: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

6

Page 11 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

A lot of communication sources should be used simultaneously to perform a load test

Test case description:

• Generate a fault current• Within 30ms after fault occurrence:

• Send a T103 telegram• Send a http request• Send an operational request

In order to perform these tests:• A distributed test system with 3

test machines is needed• The test machines have to be

synchronized

Page 12 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Summary

The test machines have to support different protocols

Load testing of a blocking scheme with two protection devices – Challenges

Infeed

Busbar

Transformer

Power Switch

Fault Current

A

B

Our “synchronicity” requirement for this scenario is: “Within an interval of 10 ms”

Sending messages to a system under test from 3 test computers

The test computers have to be synchronized with each other

The analogue signal generator has to be synchronized with the test machines

!

Page 7: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

7

Page 13 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Agenda

Part 1: Introduction to Siemens PTD EAWhat are the products of Siemens PTD EAWhat are test cases for these products

Part 2: Distributed testing with TTCN-3

Part 3: The Test Setup and the ResultsTest purposeUsing TTCN-3 distributed testingResultsExtension of TTCN-3 for Testing of communication in process automation

Page 14 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

createstart

createstart

Dynamic Test Configurations in TTCN-3

TTCN-3 Test Case

SUT

createstart

TC MTC TCsTCs

TC

Page 8: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

8

Page 15 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Agenda

Part 1: Introduction to Siemens PTD EAWhat are the products of Siemens PTD EAWhat are test cases for these products

Part 2: Distributed testing with TTCN-3

Part 3: The Test Setup and the ResultsTest purposeUsing TTCN-3 distributed testingResultsExtension of TTCN-3 for Testing of communication in processautomation

Page 16 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Test purpose

BLOCK!!

The blocking signal has to betransmitted within 30 ms even if the it is stressed by max. 5 clients which connect “simultaneously” to the protection device B (server)

!

Test purpose

Simultaneousness means that all messages “connect” from all clients have to be transmitted within a time window of 10 ms.

Using TTCN-3 distributed testing where 3 clients are simulated and deployed on 3 PCs

Page 9: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

9

Page 17 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Challenges and Solution

Test adapters for communication protocol IEC 61850 not available

All Components of a distributed test system have to be timely synchronized

Synchronization of send operations at 3 Clients in TTCN-3 is not successful. Absolute time is needed

Real-Time behavior not available (Windows/JAVA )

Programming the Test adapters

Time Synchronisation with GPS

Extention of send operation in system adapter with synchronization methods. Absolute time of operation system

It‘s not good, but can be acceptablefor the given test purpose

Challenges: Solution:

Page 18 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Synchronization of the send operation at all 3 Clients

The thread excecution is stopped until the send-out time (GPS time) is reached

Page 10: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

10

Page 19 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

function DistributedConnect() runs on MTCType{

ConnectIECDevice( Connect: { IP_ADDRESS, 102, 55000 } ) ;

if( getverdict() == fail )

DisconnectIECDevice();

}

type component MTC{}

testcase distributed() runs on MTC system TestComponent{

var MTCType Component1, Component2, Component3;

Component1 := MTCType.create;

Component2 := MTCType.create;

Component3 := MTCType.create;

map(Component1: iec61850, system: iec61850);

map(Component2: iec61850, system: iec61850);

map(Component3: iec61850, system: iec61850);

Component1.start(DistributedConnect());

Component2.start(DistributedConnect());

Component3.start(DistributedConnect());

all component.done;

}

The code snippet demonstrates how the synchronization is programmed in TTCN-3

Page 22 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Distributed test system

Tektronix Protocol Analyser

Protection device

IEC61850 messageIEC61850 message

IEC61850 message

Test component 1 Test component 2 Test component 3

GPS antenna

GPS-signal distributor

Test description:

• At a determined time all three test computers send a message to the protection device

• The protocol analyzer records all three messages

In this test we measured the delaybetween:• The first and• The last arriving message

In another setup the delay between three synchronized test computers was measured

Page 11: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

11

Page 23 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Standard deviation ≈ 1,66 ms Arithmetic mean ≈ 2,63 ms

0

0,1

0,2

0,3

0 1 2 3 4 5 6 7 8 9 10

Time difference between first and last arriving message in milisecond

based on 609 measurements

Requirement

The measurements show that the synchronicity of the distributed tests meets our requirements

Result:

• The average difference between the arriving messages was 2,6 ms

• No test showed a difference of more than 8 ms

The synchronicity requirement“Within an interval of 10 ms”is fulfilled.

Page 25 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Requirements of distributed testing in energy automation (process automation)

• All test component can process absolute time which is needed forprocessing received informations (indication or measured valued)

• All test component and the SUT are time synchronized

• All operations of a test component are processed in real-time. That means they are processed in a deterministic time window

Page 12: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

12

Page 26 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Our Modification of TTCN-3 test system architecture

• Extension of the system adapter (SA) so that it can process absolute time which is retrieved from the GPS Adapter by using an API

• Extension of the system adapter (SA) with a synchronization operation

Page 27 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

What we expect from TTCN-3 distributed testing

• The Platform Adapter (PA) should offer operations for handling absolute time

• The Component Handler (CH) should support time synchronization or test system architecture should be extended by a time synchronization interface

• For high performance real-time distributed testing all operations of the TTCN-3 test system should have deterministic time behavior. This can be realized by using real-time operation system (e.g. Solaris SPARC) and real-time programming (e.g. JRTS) for developing TTCN-3 test system

Page 13: GPS Synchronized Distributed Tests using TTCN-3 Stockholm ...

13

Page 28 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Summary

Synchronization of three TTCN-3 test computers with GPS –Results

TTCN-3 distributed testing was successfully applied

The test application fulfills the requirements

TTCN-3 should support absolute time and time synchronization

Distributed test system

Tektronix Protocol Analyser

Protection device

IEC61850 messageIEC61850 message

IEC61850 message

Test component 1 Test component 2 Test component 3

GPS antenna

GPS-signal distributor

High performance real-time distributed testing doesn’t have to be standardized but it can be implemented if necessary

TTCN-3 test system architecture was modified for time synchronization and processing absolute time

Page 29 Apr-07

© Siemens AG 2007Power Transmission and DistributionSchwabe/Nguyen

Questions?

Thank you for your attention!


Recommended