def METHOD_NAME (duration = 10, frame_size = 9000, speed = '1gbps'):
    if (frame_size < 60):
        frame_size = 60
    pkt_dir_0 = create_pkt (frame_size, 0) 
    pkt_dir_1 = create_pkt (frame_size, 1) 
    # create client
    c = STLClient(server = t_global.args.ip)
    passed = True
    try:
        # turn this on for some information
        #c.set_verbose("debug")
        # create two streams
        s1 = STLStream(packet = pkt_dir_0,
                       mode = STLTXCont(pps = 100))
        # second stream with a phase of 1ms (inter stream gap)
        s2 = STLStream(packet = pkt_dir_1,
                       isg = 1000,
                       mode = STLTXCont(pps = 100))
        if t_global.args.debug:
            STLStream.dump_to_yaml ("example.yaml", [s1,s2]) # export to YAML so you can run it on simulator ./stl-sim -f example.yaml -o o.pcap 
        # connect to server
        c.connect()
        # prepare our ports (my machine has 0 <--> 1 with static route)
        c.reset(ports = [0, 1])
        # add both streams to ports
        c.add_streams(s1, ports = [0])
        c.add_streams(s2, ports = [1])
        # clear the stats before injecting
        c.clear_stats()
        # choose rate and start traffic for 10 seconds on 5 mpps
        print("Running {0} on ports 0, 1 for 10 seconds, UDP {1}...".format(speed,frame_size+4))
        c.start(ports = [0, 1], mult = speed, duration = duration)
        # block until done
        c.wait_on_traffic(ports = [0, 1])
        # read the stats after the test
        stats = c.get_stats()
        #print stats
        print(json.dumps(stats[0], indent = 4, separators=(',', ': '), sort_keys = True))
        print(json.dumps(stats[1], indent = 4, separators=(',', ': '), sort_keys = True))
        lost_a = stats[0]["opackets"] - stats[1]["ipackets"]
        lost_b = stats[1]["opackets"] - stats[0]["ipackets"]
        print("\npackets lost from 0 --> 1:   {0} pkts".format(lost_a))
        print("packets lost from 1 --> 0:   {0} pkts".format(lost_b))
        if (lost_a == 0) and (lost_b == 0):
            passed = True
        else:
            passed = False
    except STLError as e:
        passed = False
        print(e)
    finally:
        c.disconnect()
    if passed:
        print("\nPASSED\n")
    else:
        print("\nFAILED\n")