Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid using 130.192.91.x for most netemx addresses #1219

Merged
merged 1 commit into from
Sep 4, 2023

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Sep 4, 2023

As we learned in #1216, using the 130.192.91.x namespace for every IP address in netemx breaks mapping domain names to IP addresess in Web Connectivity. No IP address would ever, in fact, be inconsistent, because they all belong to AS137.

Initially, I thought about overriding the code that maps IP addresses to ASNs, to provide a custom implementation. But then I realized it was a more thorough test to use the default implementation (relying on maxminddb files) and using the correct IP addresses in the correct address space.

My original thought for using 130.192.91.x addresses was that they were not the right addresses for the domains we're testing, thus, in the event in which netem was not WAI, all tests would have failed. However, we have many tests checking that netem is WAI already, so probably I was being excessively paranoid.

As a result, this patch modifies the code to use the correct addresses. We're still using some 130.192.91.x addresses where it makes sense to do so (user's IP address and default user's resolver).

Part of ooni/probe#1803.

Checklist

  • I have read the contribution guidelines
  • reference issue for this pull request: see above
  • if you changed anything related to how experiments work and you need to reflect these changes in the ooni/spec repository, please link to the related ooni/spec pull request: N/A
  • if you changed code inside an experiment, make sure you bump its version number: N/A

As we learned in #1216, using the
130.192.91.x namespace for every IP address in netemx breaks mapping domain
names to IP addresess in Web Connectivity. No IP address would ever, in
fact, be inconsistent, because they all belong to AS137.

Initially, I thought about overriding the code that maps IP addresses to
ASNs, to provide a custom implementation. But then I realized it was a
more thorough test to use the default implementation (relying on maxminddb
files) and using the correct IP addresses in the correct address space.

My original thought for using 130.192.91.x addresses was that they were
not the right addresses for the domains we're testing, thus, in the event
in which netem was not WAI, all tests would have failed. However, we
have many tests checking that netem is WAI already, so probably I was
being excessively paranoid.

As a result, this patch modifies the code to use the correct addresses.

Part of ooni/probe#1803.
@bassosimone bassosimone changed the title fix(netemx): limit using the 130.192.91.x address space fix: avoid using 130.192.91.x for most netemx addresses Sep 4, 2023
@bassosimone bassosimone merged commit 7109b14 into master Sep 4, 2023
8 checks passed
@bassosimone bassosimone deleted the issue/1803b branch September 4, 2023 13:05
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
As we learned in ooni#1216, using the
130.192.91.x namespace for every IP address in netemx breaks mapping
domain names to IP addresess in Web Connectivity. No IP address would
ever, in fact, be inconsistent, because they all belong to AS137.

Initially, I thought about overriding the code that maps IP addresses to
ASNs, to provide a custom implementation. But then I realized it was a
more thorough test to use the default implementation (relying on
maxminddb files) and using the correct IP addresses in the correct
address space.

My original thought for using 130.192.91.x addresses was that they were
not the right addresses for the domains we're testing, thus, in the
event in which netem was not WAI, all tests would have failed. However,
we have many tests checking that netem is WAI already, so probably I was
being excessively paranoid.

As a result, this patch modifies the code to use the correct addresses.
We're still using some 130.192.91.x addresses where it makes sense to do
so (user's IP address and default user's resolver).

Part of ooni/probe#1803.

## Checklist

- [x] I have read the [contribution
guidelines](https://github.com/ooni/probe-cli/blob/master/CONTRIBUTING.md)
- [x] reference issue for this pull request: see above
- [x] if you changed anything related to how experiments work and you
need to reflect these changes in the ooni/spec repository, please link
to the related ooni/spec pull request: N/A
- [x] if you changed code inside an experiment, make sure you bump its
version number: N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant