On two measurement problems: Inferring autonomous system relationships and computing network traffic