Beispiel #1
0
    def mptcp_roundrobin(self):
        print('-' * 25)
        print('\nMPTCP (Round robin scheduling)')
        MPTCP.enable()
        MPTCP.scheduler_roundrobin()

        net, client, server = TestUtils.start_network(self.experiment_dir)

        sleep(2)  # If no sleep, multiple are not used
        bwmng_process = TestUtils.run_bwmng()
        TestUtils.run_tcp_server(server)
        time_taken = TestUtils.run_tcp_client(client, self.block_size,
                                              self.delay_time, self.iterations)
        print('Transfer complete')

        sleep(2)
        print('Stopping bwmng...', end='')
        bwmng_process.terminate()
        print('DONE!')

        print('Stopping mininet network...', end='')
        net.stop()
        print('DONE!')

        print('Test complete. Preparing result...')
        TestUtils.dump_result(self.result_dir, 'mptcp_roundrobin', time_taken,
                              self.block_size, self.iterations)
Beispiel #2
0
    def quic(self):
        print('-' * 25)
        print("\nQUIC (Multipath off)")

        net, client, server = TestUtils.start_network(self.experiment_dir)

        bwmng_process = TestUtils.run_bwmng()
        TestUtils.run_mpquic_server(server)
        time_taken = TestUtils.run_quic_client(client, self.block_size,
                                               self.delay_time,
                                               self.iterations)
        print('Transfer complete')

        sleep(2)
        print('Stopping bwmng...', end='')
        bwmng_process.terminate()
        print('DONE!')

        print('Stopping mininet network...', end='')
        net.stop()
        print('DONE!')

        print('Test complete. Preparing results...')
        TestUtils.dump_result(
            self.result_dir,
            'quic',  # Subtest name
            time_taken,
            self.block_size,
            self.iterations)
Beispiel #3
0
    def mpquic_lowest_rtt(self):
        print('-' * 25)
        print("\nMPQUIC (Lowest RTT Scheduling)")
        MPQUIC.scheduler_lowest_rtt()
        net, client, server = TestUtils.start_network(self.experiment_dir)

        bwmng_process = TestUtils.run_bwmng()
        TestUtils.run_mpquic_server(server)
        time_taken = TestUtils.run_mpquic_client(client, self.block_size,
                                                 self.delay_time,
                                                 self.iterations)
        print('Transfer complete')

        sleep(2)
        print('Stopping bwmng...', end='')
        bwmng_process.terminate()
        print('DONE!')

        print('Stopping mininet network...', end='')
        net.stop()
        print('DONE!')

        print('Test complete. Preparing results...')
        TestUtils.dump_result(
            self.result_dir,
            'mpquic_lowestrtt',  # Subtest name
            time_taken,
            self.block_size,
            self.iterations)
Beispiel #4
0
    def tcp(self):
        print('-' * 25)
        print('\nTCP (Multipath off)')
        MPTCP.disable()

        net, client, server = TestUtils.start_network(self.experiment_dir)

        bwmng_process = TestUtils.run_bwmng()
        TestUtils.run_tcp_server(server)
        time_taken = TestUtils.run_tcp_client(client, self.block_size,
                                              self.delay_time, self.iterations)
        print('Transfer complete')

        sleep(2)
        print('Stopping bwmng...', end='')
        bwmng_process.terminate()
        print('DONE!')

        print('Stopping mininet network...', end='')
        net.stop()
        print('DONE!')

        print('Test complete. Preparing result...')
        TestUtils.dump_result(self.result_dir, 'tcp', time_taken,
                              self.block_size, self.iterations)