PHPackages                             tourze/quic-congestion - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. tourze/quic-congestion

ActiveLibrary[HTTP &amp; Networking](/categories/http)

tourze/quic-congestion
======================

QUIC协议拥塞控制算法实现 - 支持NewReno和BBR算法

0.0.1(11mo ago)00MITPHPPHP ^8.1CI failing

Since Jun 3Pushed 6mo agoCompare

[ Source](https://github.com/tourze/quic-congestion)[ Packagist](https://packagist.org/packages/tourze/quic-congestion)[ RSS](/packages/tourze-quic-congestion/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

QUIC Congestion Control Package
===============================

[](#quic-congestion-control-package)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/8dffddd1590822c74d678d7ceeba359858a7ec174087b352861b2a32a69de29f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f717569632d636f6e67657374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/quic-congestion)[![Total Downloads](https://camo.githubusercontent.com/82aacf201c9461a7af5c4473d51b416e7715ee0f7a70282eb84238f5afb8cb60/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f717569632d636f6e67657374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/quic-congestion)[![PHP Version Require](https://camo.githubusercontent.com/09be8fa8e0bc6faff87f4d95000a16e70977fccbc0aac08f865c8fce3a433b49/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f717569632d636f6e67657374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/quic-congestion)[![License](https://camo.githubusercontent.com/02bcb36ac44011bda3b476fadf27a4c168446fbc51e4ab4e020711e66330c10f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f717569632d636f6e67657374696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/quic-congestion)[![Code Coverage](https://camo.githubusercontent.com/994d68acb2aadf1c3c7711ddcb3b30429246a6c05da9e601f62c3f932ac795a8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d3130302532352d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](#testing)

A PHP implementation of QUIC protocol congestion control algorithms, supporting NewReno and BBR algorithms for high-performance network communication.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [Testing](#testing)
- [Performance Features](#performance-features)
- [API Documentation](#api-documentation)
- [Dependencies](#dependencies)
- [Contributing](#contributing)
- [License](#license)
- [Development Status](#development-status)

Features
--------

[](#features)

### Supported Congestion Control Algorithms

[](#supported-congestion-control-algorithms)

1. **NewReno Algorithm**

    - Traditional loss-based congestion control
    - Slow start and congestion avoidance mechanisms
    - Fast retransmit and fast recovery
    - Ideal for stable network environments
2. **BBR Algorithm**

    - Google's model-based congestion control
    - Bandwidth estimation and RTT measurement
    - Four states: startup, drain, probe\_bw, probe\_rtt
    - Optimized for high-bandwidth networks

### Core Components

[](#core-components)

- **CongestionControlInterface**: Standard interface for congestion control algorithms
- **CongestionWindow**: Congestion window management class
- **CongestionController**: Congestion control coordinator
- **NewReno**: NewReno algorithm implementation
- **BBR**: BBR algorithm implementation

Installation
------------

[](#installation)

### Requirements

[](#requirements)

- PHP 8.1 or higher
- `tourze/quic-core` package
- `tourze/quic-recovery` package

### Using Composer

[](#using-composer)

```
composer require tourze/quic-congestion
```

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
