IPv6 measurement by JavaScript

This is a test harness for the new .cgi controlled javascript. Three sub-instances can be run from here, to test different configurations.

These test harness calls are examples of how to embed this meaaurement in HTML. The CGI takes arguments to identify the experiment, and select options such as use of cookies and use of google analytics.

testnotes
index-simple.htmltests invocation, with advertID, no google analytics and cookies disabled.
index-gaq.htmltests invocation, with advertID, google analytics enabled and cookies disabled.
flagmeaning
advertID=<string>the experiment id in the vXXXX field. by default, 99z. Should always be specified.
nocookiesif set true, then the tests do not run cookies.
days=nlimit cookie lifetime to n days (default 30)
blocklist=prefix/len[,prefix/len...]list of prefix/len to block
GAQif set then google analytics is included in the .js

By default, cookies are enabled. This prevents over-sampling. Google analytics is disabled, to reduce the .js size. tests are ordered, and always run (subject to cookie timer) instead of samping a sub-rate. The cookie timer is set to 30 days.

	
        <script type='text/javascript' src='http://labs.apnic.net/measureipv6js.cgi?advertID=1212&nocookies'></script>
        
  

To be assigned an advertID please contact research@apnic.net. Be warned that random advertID will have unexpected outcomes for your users: some advertID invoke DNSSEC or debugging tests. Calls without advertID map to advertID=99z

The head-end .cgi runs a block list. This is because some specific networks behind proxies appear to have problems with dual-stack or IPv6 literal fetches in the web, and we have to ensure we can prevent serving the experiment. In these cases, you get a javascript comment block served back instead of the code. If you lie behind one of these networks and wish to remove the block, please speak to us.

You can add specific prefixes to the blocklist by using the blocklist=prefix/len notation, which is a list of additonal prefixes (comma-separated) to block. A specific IP can be blocked by specifying it as a /32 eg blocklist=203.133.248.7/32.

Acknowledgements

This measurement activity is being undertaken by APNIC, the Asia Pacific Network Information Centre, as a service to the Internet community at large.

We would like to acknowledge the generous support that has been provided by Google, the Internet Society, the Internet Software Consortium and the RIPE Network Coordination Centre in undertaking this activity.

Contact Us

If you have any questions about this measurement activity please contact us at: research (a) apnic.net

Additional Resources