示例#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)
示例#2
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)