From patchwork Mon May 21 11:48:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexey Kodanev X-Patchwork-Id: 917563 X-Patchwork-Delegate: akodanev@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=lists.linux.it (client-ip=2001:1418:10:5::2; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=oracle.com header.i=@oracle.com header.b="dgZDY6jc"; dkim-atps=neutral Received: from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 40qGyn6Z3Bz9s1w for ; Mon, 21 May 2018 21:39:29 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 8846D3E7736 for ; Mon, 21 May 2018 13:39:26 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [IPv6:2001:4b78:1:20::4]) by picard.linux.it (Postfix) with ESMTP id B42533E6403 for ; Mon, 21 May 2018 13:39:07 +0200 (CEST) Received: from userp2120.oracle.com (userp2120.oracle.com [156.151.31.85]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id A3F9E1000CD0 for ; Mon, 21 May 2018 13:39:06 +0200 (CEST) Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4LBUb20157156 for ; Mon, 21 May 2018 11:39:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=EiJ7HNkNBdZkLIjMe7Q/W2Kj5SZ45kYY/yselJTVJS0=; b=dgZDY6jcNuQrEPKkk7a7qhRiMIYtbKDgPDde+DV+BQ809kUCo0HzdWLwE19/kGnJqh3a 31EBsvwXYRrZKMgsr+4gJG+NAjLIE35DiLY/ZbWu62UcQzkOIcE/fepAuHLEPqVg9mRB Vmyo/hPcH6L6uVHEU771VE0cW1gBKh4zI3rmzWozy7qY23l21gieO+jsoU2+ZohjNfMa QEhegeNmouH53YX7Zzsz04bk9SxSXTA+K2YpfGw3aIa0lZk40Ph2e9p9kqf+GbgjJ3lS hgHUk1aDyqkcH3pBALCFDzHTR9EnUadYJV26GcxpDRsIxz59EndmpbCWz4WBEejfV1is 7w== Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by userp2120.oracle.com with ESMTP id 2j2ck9bsvc-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 21 May 2018 11:39:04 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w4LBd4D3028606 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 21 May 2018 11:39:04 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w4LBd3pY011985 for ; Mon, 21 May 2018 11:39:03 GMT Received: from ak.ru.oracle.com (/10.162.80.29) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 May 2018 04:39:03 -0700 From: Alexey Kodanev To: ltp@lists.linux.it Date: Mon, 21 May 2018 14:48:30 +0300 Message-Id: <1526903310-2833-7-git-send-email-alexey.kodanev@oracle.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1526903310-2833-1-git-send-email-alexey.kodanev@oracle.com> References: <1526903310-2833-1-git-send-email-alexey.kodanev@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8899 signatures=668700 X-Proofpoint-Spam-Details: rule=notspam policy=default score=3 suspectscore=1 malwarescore=0 phishscore=0 bulkscore=0 spamscore=3 mlxscore=3 mlxlogscore=156 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805210139 X-Virus-Scanned: clamav-milter 0.99.2 at in-4.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, SPF_PASS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on in-4.smtp.seeweb.it Subject: [LTP] [PATCH 6/6] network/tcp_cc: add new test bbr02 X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.18 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" Difference, comparing to bbr01: * Uses different (not default) qdisc: pfifo_fast, codel, pfifo, fq, hfsc, hhf, htb, pie, prio, sfb and sfq. * Emulates congestion not only with packet loss but with delay, corrupt and reorder. The test expects that 'bbr' congestion-control algorithm not significantly worse than 'cubic'. Signed-off-by: Alexey Kodanev Acked-by: Petr Vorel Acked-by: Petr Vorel --- runtest/net.features | 3 ++ testcases/network/tcp_cc/bbr02.sh | 45 +++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 0 deletions(-) create mode 100755 testcases/network/tcp_cc/bbr02.sh diff --git a/runtest/net.features b/runtest/net.features index 732c053..eac1b2b 100644 --- a/runtest/net.features +++ b/runtest/net.features @@ -4,6 +4,9 @@ bbr01 bbr01.sh bbr01_ipv6 bbr01.sh -6 +bbr02 bbr02.sh +bbr02_ipv6 bbr02.sh -6 + bind_noport01 bind_noport01.sh bind_noport01_ipv6 bind_noport01.sh -6 diff --git a/testcases/network/tcp_cc/bbr02.sh b/testcases/network/tcp_cc/bbr02.sh new file mode 100755 index 0000000..ca3a9b4 --- /dev/null +++ b/testcases/network/tcp_cc/bbr02.sh @@ -0,0 +1,45 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0-or-later +# Copyright (c) 2018 Oracle and/or its affiliates. All Rights Reserved. + +TST_SETUP="setup" +TST_TESTFUNC="do_test" +TST_CLEANUP="cleanup" +TST_MIN_KVER="4.13" + +. tcp_cc_lib.sh + +TST_CLEANUP="cleanup" + +cleanup() +{ + tc qdisc del dev $(tst_iface) root netem + + tcp_cc_cleanup +} + +setup() +{ + tcp_cc_setup + + local emu_opts="delay 5ms 1ms 20% loss 0.3% ecn corrupt \ +0.1% reorder 93% 50% limit 10000" + + tst_res TINFO "emulate congestion with packet $emu_opts" + ROD tc qdisc add dev $(tst_iface) root netem $emu_opts +} + +do_test() +{ + for q in $qdisc_list; do + if tc qdisc add $q >/dev/null 2>&1; then + tst_res TCONF "$q qdisc not supported" + continue + fi + + tcp_cc_set_qdisc $q + tcp_cc_test01 bbr -50 + done +} + +tst_run