public void TestReliablityAtomic()
        {
            base.SetupBaseTest();
            UInt16 interval  = 20;
            UInt16 dgramSize = 576;

            AIMDCongestionControl control1 = new AIMDCongestionControl(base.mPs1, interval, dgramSize);
            AIMDCongestionControl control2 = new AIMDCongestionControl(base.mPs2, interval, dgramSize);

            TunnelCongestionControllerMock t1 = new TunnelCongestionControllerMock(control1, base.mPs1);
            TunnelCongestionControllerMock t2 = new TunnelCongestionControllerMock(control2, base.mPs2);

            base.TestReliablityAtomic(t1, t2, 3 * interval);
        }
        public void TestReliability()
        {
            base.SetupBaseTest();
            UInt16 interval  = 20;
            UInt16 dgramSize = 576;

            TunnelSocketSendIntercept sock1 = new TunnelSocketSendIntercept();
            TunnelSocketSendIntercept sock2 = new TunnelSocketSendIntercept();

            AIMDCongestionControl control1 = new AIMDCongestionControl(sock1, interval, dgramSize);
            AIMDCongestionControl control2 = new AIMDCongestionControl(sock2, interval, dgramSize);

            TunnelCongestionControllerMock t1 = new TunnelCongestionControllerMock(control1, sock1);
            TunnelCongestionControllerMock t2 = new TunnelCongestionControllerMock(control2, sock2);

            base.TestReliability(t1, sock1, t2, sock2, 20, dgramSize);
        }
 public void Setup()
 {
     socketMock = new TunnelSocketMock();
     congestion = new AIMDCongestionControl(socketMock, 25, 576, 1, 25, 5);
 }