blob: eaee573d213134eb7ddde32f3913dfd875ee10d4 [file] [log] [blame]
Klaus Schneider9e5122b2019-03-19 17:03:25 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2016-2019, Regents of the University of California,
4 * Colorado State University,
5 * University Pierre & Marie Curie, Sorbonne University.
6 *
7 * This file is part of ndn-tools (Named Data Networking Essential Tools).
8 * See AUTHORS.md for complete list of ndn-tools authors and contributors.
9 *
10 * ndn-tools is free software: you can redistribute it and/or modify it under the terms
11 * of the GNU General Public License as published by the Free Software Foundation,
12 * either version 3 of the License, or (at your option) any later version.
13 *
14 * ndn-tools is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
15 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 * PURPOSE. See the GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License along with
19 * ndn-tools, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
20 *
21 * See AUTHORS.md for complete list of ndn-cxx authors and contributors.
22 *
23 * @author Shuo Yang
24 * @author Weiwei Liu
25 * @author Chavoosh Ghasemi
26 * @author Klaus Schneider
27 */
28
29#ifndef NDN_TOOLS_CHUNKS_CATCHUNKS_PIPELINE_INTERESTS_AIMD_HPP
30#define NDN_TOOLS_CHUNKS_CATCHUNKS_PIPELINE_INTERESTS_AIMD_HPP
31
32#include "pipeline-interests-adaptive.hpp"
33
34namespace ndn {
35namespace chunks {
36
37/**
38 * @brief Implements AIMD window increase and decrease.
39 */
40class PipelineInterestsAimd : public PipelineInterestsAdaptive
41{
42public:
Davide Pesavento5e3773d2019-08-22 15:35:08 -040043 PipelineInterestsAimd(Face& face, RttEstimatorWithStats& rttEstimator,
Klaus Schneider9e5122b2019-03-19 17:03:25 -070044 const Options& options = Options());
45
46private:
47 void
48 increaseWindow() final;
49
50 void
51 decreaseWindow() final;
52};
53
54} // namespace chunks
55} // namespace ndn
56
57#endif // NDN_TOOLS_CHUNKS_CATCHUNKS_PIPELINE_INTERESTS_AIMD_HPP