|
TIMES Trace-based Inference of Models for Emulation and Simulation Overview
Currently, continuous-time hidden Markov model (CT-HMM) is used to model a network. A CT-HMM is inferred from delay and loss observations seen by a sequence of probes sent from one end host to another end host. This CT-HMM can then be incorporated into a simulator or an emulator to drive the simulation of a network protocol or application by providing losses and delays to packets in the network at arbitrary points of time. By collecting probe traces in a wide variety of network settings, one can construct a library of CT-HMMs, with each model representing a particular network setting. A model can then be selected to simulate a network protocol or application under a particular network environment. This simulation method can thus provide users with a simulation environment representing a wide range of real network scenarios. The datagram for the whole process is shown below:
Trace
Periodic or geometric probing is used to send packet from the probe sender to the probe receiver. At the same time, a TCP connection is set up from the probe ender to the probe receiver for validation purpose. The following are two traces from University of Massachusetts (UMass) to University of Southern California (USC). The method of probing and probing interval are shown in the following table.
The loss rate and throughput of the TCP connection is shown in the following table:
Model Inference
There are two steps in the model inference. The discrete-time hidden Markov model P is infered from the trace by using an EM(Expectation Maximization) algorithm. M is the number of discritized delay. N is the number of hidden states. Matrix P is transition matrix of the discrete-time hidden Markov model. pi is the initial distribution of the Markov model. S is the vecotr of the loss probabilities of each discritized delay. 2. Obtaining the continuous-time model from the discrete-time model. The continuous-time hidden Markov model Q is obtain from the discrete-time hidden Markov model using a matrix transformation. Here Q is the rate matrix of the conitnuous-time hidden Markov model. Simulation
The simulator take the continuous-time model Q and the simulation script to do a simulation. The delay and loss of packets sent at any time point are governed by the continuous-time model Q. The basic idea of the simulation is simulating a continuous-time Markov chain. The simulator is implemented in ns. A link object called EmulPathQ is defined. This EmulPathQ object gives delay and loss to a packet according to the continuous-time model Q. Here is the link for the implementation. One example of the input file to the simulator. One example of the simulation scripts. |
Papers
· Continuous-time Hidden Markov Models for Network Performance Evaluation |