def run_oneofftrace(src_probes, dst_prefix):
    if not src_probes:
        print "Send me a source probe, yo"
        return None
    print "Launching traceroute:", len(src_probes), dst_prefix
    try:
        msm_id = Measure.oneofftrace(
            src_probes, dst_prefix, af=4, paris=1,
            description="RS ALGO %s to %s" % (dest_typ, dst_prefix ))
        return msm_id
    except:
        return None
Beispiel #2
0
def run_oneofftrace(src, dst_prefix):
    src_probe = get_probes_in_asn(src)
    if not src_probe:
        return None
    print "Launching traceroute:", len(src_probe), dst_prefix
    src_probe = src_probe[0]['id']
    try:
        msm_id = Measure.oneofftrace(
            src_probe,
            dst_prefix,
            af=4,
            paris=1,
            description="ACCURACY_STATIC_PC_POSTER3 traceroute to %s" %
            dst_prefix)
        return msm_id
    except:
        time.sleep(150)
        return None
Beispiel #3
0
                v4dst.append( p['address_v4'] )
            if 'address_v6' in p and p['address_v6'] != None and 'system-ipv6-works' in tags:
                v6dst.append( p['address_v6'] )
    elif mtype in ('traceroute','http-traceroute','https-traceroute'):
        v4dst += basedata['targets']
        v6dst += basedata['targets']

v4src_string = ','.join( map(str,v4src) )
v6src_string = ','.join( map(str,v6src) )

msms={'v4':[], 'v6':[]}
for mtype in basedata['measurement-types']:
    if mtype == 'probe-mesh':
        for v4target in v4dst:
            #TODO remove probe itself from list?
            msm_id = Measure.oneofftrace(v4src, v4target, af=4, paris=1, description="ixp-country-jedi to %s (IPv4)" % ( v4target ) )
            msms['v4'].append({
                'msm_id': msm_id,
                'dst': v4target,
                'type': 'probe-mesh'
            })
            print >>sys.stderr,"dst:%s msm_id:%s (probe-mesh)" % ( v4target, msm_id )
            time.sleep(2)

        for v6target in v6dst:
            msm_id = Measure.oneofftrace(v6src, v6target, af=6, paris=1, description="ixp-country-jedi to %s (IPv6)" % ( v6target ) )
            msms['v6'].append({
                'msm_id': msm_id,
                'dst': v6target,
                'type': 'probe-mesh'
            })
for p in probes:
   if 'address_v4' in p and p['address_v4'] != None:
      v4src.append( p['probe_id'] )
      v4dst.append( p['address_v4'] )
   if 'address_v6' in p and p['address_v6'] != None:
      v6src.append( p['probe_id'] )
      v6dst.append( p['address_v6'] )

v4src_string = ','.join( map(str,v4src) )
v6src_string = ','.join( map(str,v6src) )

msms={'v4':[], 'v6':[]}
for v4target in v4dst:
   #TODO remove probe itself from list?
   msm_id = Measure.oneofftrace(v4src, v4target, af=4, paris=1, description="ixp-country-jedi to %s (IPv4)" % ( v4target ) )
   msms['v4'].append({
      'msm_id': msm_id,
      'dst': v4target
   })
   print >>sys.stderr,"dst:%s msm_id:%s" % ( v4target, msm_id )
   time.sleep(2)

v6msms=[]
for v6target in v6dst:
   msm_id = Measure.oneofftrace(v6src, v6target, af=6, paris=1, description="ixp-country-jedi to %s (IPv6)" % ( v6target ) )
   msms['v6'].append({
      'msm_id': msm_id,
      'dst': v6target
   })
   print >>sys.stderr,"dst:%s msm_id:%s" % ( v6target, msm_id )
Beispiel #5
0
                v6dst.append(p['address_v6'])
    elif mtype in ('traceroute', 'http-traceroute', 'https-traceroute'):
        v4dst += basedata['targets']
        v6dst += basedata['targets']

v4src_string = ','.join(map(str, v4src))
v6src_string = ','.join(map(str, v6src))

msms = {'v4': [], 'v6': []}
for mtype in basedata['measurement-types']:
    if mtype == 'probe-mesh':
        for v4target in v4dst:
            #TODO remove probe itself from list?
            msm_id = Measure.oneofftrace(
                v4src,
                v4target,
                af=4,
                paris=1,
                description="ixp-country-jedi to %s (IPv4)" % (v4target))
            msms['v4'].append({
                'msm_id': msm_id,
                'dst': v4target,
                'type': 'probe-mesh'
            })
            print >> sys.stderr, "dst:%s msm_id:%s (probe-mesh)" % (v4target,
                                                                    msm_id)
            time.sleep(2)

        for v6target in v6dst:
            msm_id = Measure.oneofftrace(
                v6src,
                v6target,
Beispiel #6
0
    if 'address_v4' in p and p['address_v4'] != None:
        v4src.append(p['probe_id'])
        v4dst.append(p['address_v4'])
    if 'address_v6' in p and p['address_v6'] != None:
        v6src.append(p['probe_id'])
        v6dst.append(p['address_v6'])

v4src_string = ','.join(map(str, v4src))
v6src_string = ','.join(map(str, v6src))

msms = {'v4': [], 'v6': []}
for v4target in v4dst:
    #TODO remove probe itself from list?
    msm_id = Measure.oneofftrace(v4src,
                                 v4target,
                                 af=4,
                                 paris=1,
                                 description="ixp-country-jedi to %s (IPv4)" %
                                 (v4target))
    msms['v4'].append({'msm_id': msm_id, 'dst': v4target})
    print >> sys.stderr, "dst:%s msm_id:%s" % (v4target, msm_id)
    time.sleep(2)

v6msms = []
for v6target in v6dst:
    msm_id = Measure.oneofftrace(v6src,
                                 v6target,
                                 af=6,
                                 paris=1,
                                 description="ixp-country-jedi to %s (IPv6)" %
                                 (v6target))
    msms['v6'].append({'msm_id': msm_id, 'dst': v6target})