Coder Social home page Coder Social logo

traceutils's People

Contributors

alexmarder avatar amarder89 avatar pgigis avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

pgigis razzzzee

traceutils's Issues

'hdropts' has incorrect type (expected dict, got list)

Hi, first of all, thank you for making the code publicly available.

When I parse the following Atlas traceroute

{
"af": 4,
"dst_addr": "104.16.63.210",
"dst_name": "104.16.63.210",
"endtime": 1496607139,
"from": "130.125.97.233",
"fw": 4770,
"group_id": 8803752,
"lts": 108,
"msm_id": 8803752,
"msm_name": "Traceroute",
"paris_id": 1,
"prb_id": 2973,
"proto": "TCP",
"result": [
{
"hop": 1,
"result": [
{
"from": "130.125.97.3",
"rtt": 266.144,
"size": 28,
"ttl": 255
},
{
"from": "130.125.97.3",
"rtt": 35.224,
"size": 28,
"ttl": 255
},
{
"from": "130.125.97.3",
"rtt": 14.186,
"size": 28,
"ttl": 255
}
]
},
{
"hop": 2,
"result": [
{
"from": "192.42.42.18",
"rtt": 26.83,
"size": 28,
"ttl": 254
},
{
"from": "192.42.42.18",
"rtt": 10.241,
"size": 28,
"ttl": 254
},
{
"from": "192.42.42.18",
"rtt": 14.034,
"size": 28,
"ttl": 254
}
]
},
{
"hop": 3,
"result": [
{
"from": "192.42.42.33",
"rtt": 14.913,
"size": 68,
"ttl": 253
},
{
"from": "192.42.42.33",
"rtt": 8.921,
"size": 68,
"ttl": 253
},
{
"from": "192.42.42.33",
"rtt": 3.174,
"size": 68,
"ttl": 253
}
]
},
{
"hop": 4,
"result": [
{
"from": "130.59.37.166",
"rtt": 39.292,
"size": 28,
"ttl": 252
},
{
"from": "130.59.37.166",
"rtt": 33.952,
"size": 28,
"ttl": 252
},
{
"from": "130.59.37.166",
"rtt": 66.116,
"size": 28,
"ttl": 252
}
]
},
{
"hop": 5,
"result": [
{
"from": "130.59.36.70",
"rtt": 34.905,
"size": 68,
"ttl": 251
},
{
"from": "130.59.36.70",
"rtt": 11.748,
"size": 68,
"ttl": 251
},
{
"from": "130.59.36.70",
"rtt": 35.136,
"size": 68,
"ttl": 251
}
]
},
{
"hop": 6,
"result": [
{
"from": "130.59.38.193",
"rtt": 32.035,
"size": 68,
"ttl": 250
},
{
"from": "130.59.38.193",
"rtt": 39.948,
"size": 68,
"ttl": 250
},
{
"from": "130.59.38.193",
"rtt": 41.864,
"size": 68,
"ttl": 250
}
]
},
{
"hop": 7,
"result": [
{
"from": "130.59.38.82",
"rtt": 13.114,
"size": 28,
"ttl": 249
},
{
"from": "130.59.38.82",
"rtt": 76.499,
"size": 28,
"ttl": 249
},
{
"from": "130.59.38.82",
"rtt": 35.71,
"size": 28,
"ttl": 249
}
]
},
{
"hop": 8,
"result": [
{
"from": "80.249.211.140",
"rtt": 28.333,
"size": 28,
"ttl": 248
},
{
"from": "80.249.211.140",
"rtt": 47.505,
"size": 28,
"ttl": 248
},
{
"from": "80.249.211.140",
"rtt": 51.679,
"size": 28,
"ttl": 248
}
]
},
{
"hop": 9,
"result": [
{
"flags": "SA",
"from": "104.16.63.210",
"hdropts": [
{
"mss": 1460
}
],
"rtt": 39.155,
"size": 4,
"ttl": 56
},
{
"flags": "SA",
"from": "104.16.63.210",
"hdropts": [
{
"mss": 1460
}
],
"rtt": 19.671,
"size": 4,
"ttl": 56
},
{
"flags": "SA",
"from": "104.16.63.210",
"hdropts": [
{
"mss": 1460
}
],
"rtt": 19.608,
"size": 4,
"ttl": 56
}
]
}
],
"size": 48,
"src_addr": "130.125.97.233",
"timestamp": 1496607136,
"type": "traceroute"
}

I have the following error:
TypeError: Argument 'hdropts' has incorrect type (expected dict, got list) ?

It seems that hdropts is list instead of dict

can you guide me what is the use of icmp_q_ttl in traceparser

Dear Dr. Marder:
Maybe it is not appropriate to ask here, but I was confused about icmp_q_ttl when studying BdrmapIt. When will the "icmp_q_ttl" greater than one and when will it be zero? Has it something to do with MPLS? I saw when icmp_q_ttl equals zero then the distance between two hops will be increased by one. Why?
In traceparse.py, line 124-128:

_ if y.type == ICMPType.spoofing and y.icmp_q_ttl > 1:
break
distance = y.probe_ttl - x.probe_ttl
if y.icmp_q_ttl == 0:
distance += 1_

Thank you very much if you have time to give me any advice. Thank you.

Best wishes,
Sun

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.