Project

General

Profile

Actions

Bug #3849

open

race condition problem in rtp flow tests of the ttcn3 testsuite

Added by dexter about 5 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/18/2019
Due date:
% Done:

0%

Spec Reference:

Description

The TTCN3 tests that test actual RTP flow behavior through the MGW are prone to fail due to a race condition. The problem occurs when the RTP receiver in the test suite is switched off while at least one packet is still in the loop. When the packet eventually arrives the follwing error is generated:

RTP packets received while RX was disabled
      MGCP_Test.ttcn:1424 MGCP_Test control part
      MGCP_Test.ttcn:1364 TC_ts101318_rfc5993_rtp_conversion testcase

The problem is presumably more likely to occur when the test slave is under high load. Since all RTP tests are using the same API and work by the same principle all of those tests are prone to fail from time to time:

TC_one_crcx_loopback_rtp
TC_one_crcx_receive_only_rtp
TC_rtpem_selftest
TC_ts101318_rfc5993_rtp_conversion
TC_two_crcx_and_one_mdcx_rtp_ho
TC_two_crcx_and_rtp
TC_two_crcx_and_rtp_bidir
TC_two_crcx_and_unsolicited_rtp
TC_two_crcx_diff_pt_and_rtp
TC_two_crcx_diff_pt_and_rtp_bidir
TC_two_crcx_mdcx_and_rtp

Actions #1

Updated by dexter almost 5 years ago

  • Assignee set to dexter
Actions #2

Updated by laforge almost 5 years ago

On Tue, May 28, 2019 at 12:04:55PM +0000, dexter [REDMINE] wrote:

The TTCN3 tests that test actual RTP flow behavior through the MGW are prone to fail due to a race condition. The problem occurs when the RTP receiver in the test suite is switched off while at least one packet is still in the loop.

Shouldn't it be sufficient to implement the following sequence?
  • first disable the transmitter
  • wait for some time
  • then disable the receiver
Actions #3

Updated by laforge over 4 years ago

  • Assignee deleted (dexter)
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)