I used traceroute in windows like below. How do I find if the one is in the same ISP or not? Please help me find how many ISPs I have passed.
C:\WINDOWS\system32>tracert www.google.com
www.google.com [172.217.31.164]:
1 2 ms 2 ms 1 ms 172.30.1.254
2 4 ms 5 ms 3 ms 221.158.118.1
3 5 ms 4 ms 5 ms 59.27.94.93
4 5 ms 8 ms 6 ms 61.78.45.77
5 5 ms 6 ms 5 ms 112.188.145.69
6 * * *
7 8 ms 8 ms 8 ms 112.174.47.178
8 35 ms 36 ms 36 ms 74.125.52.16
9 35 ms 35 ms 36 ms 108.170.242.129
10 38 ms 38 ms 39 ms 209.85.253.109
11 37 ms 37 ms 38 ms nrt12s22-in-f4.1e100.net [172.217.31.164]
Consider using something like mtr instead of traceroute. You can use a parameter to show ASNs traversed, which is basically what you're looking for.
-z, --aslookup display AS number