English

Counting preimages of TCP reordering patterns

Data Structures and Algorithms 2008-11-04 v1 Discrete Mathematics Combinatorics

Abstract

Packet reordering is an important property of network traffic that should be captured by analytical models of the Transmission Control Protocol (TCP). We study a combinatorial problem motivated by RESTORED, a TCP modeling methodology that incorporates information about packet dynamics. A significant component of this model is a many-to-one mapping B that transforms sequences of packet IDs into buffer sequences, in a manner that is compatible with TCP semantics. We show that the following hold: 1. There exists a linear time algorithm that, given a buffer sequence W of length n, decides whether there exists a permutation A of 1,2,..., n such that AB1(W)A\in B^{-1}(W) (and constructs such a permutation, when it exists). 2. The problem of counting the number of permutations in B1(W)B^{-1}(W) has a polynomial time algorithm. We also show how to extend these results to sequences of IDs that contain repeated packets.

Keywords

Cite

@article{arxiv.cs/0703020,
  title  = {Counting preimages of TCP reordering patterns},
  author = {Anders Hansson and Gabriel Istrate},
  journal= {arXiv preprint arXiv:cs/0703020},
  year   = {2008}
}
R2 v1 2026-07-22T12:28:12.542Z