[BitTorrent] IPv6 and compact tracker response

Paulo S Silva Jr mstrcontrol at yahoo.com
Sun Feb 13 18:57:36 EST 2005



Greetings Programs,

A few days ago, I read about the problem that is sending an IPv6 
address in a compact form. I've made some digging and I think I 
found a way to send an IPv6 address in a compact manner.

According to RFC 2553 the IPv6 address is an unique 16 bytes address.

So if we create an "peers_ipv6" only in conjunction with a "compact" 
request that would have all the IPv6 peers addresses in the same way 
we use "peers" in IPv4.

Further more, we could use the same "peers_ipv6" as the same RPF 
2553 states how an IPv4 address sould be represented as an IPv6 
address.

An example:

assuming the ficticious IPv6 address 
1002:1035:4527:3546:7854:1237:3247:3217 and port 6881 we'd have 
a "peers_ipv6" with 18 bytes length value of "0x10 0x02 0x10 0x35 
0x45 0x27 0x35 0x46 0x78 0x54 0x12 0x37 0x32 0x47 0x32 0x17 0x1A 
0xE1"

The IPv4 10.10.10.5 in this sintax is represented with the prefix 
0:0:0:0:0:FFFF thus the address will be 0:0:0:0:0:FFFF:0A0A:0A05. 
And represented likely in the "peers_ipv6"

Comments?

Paulo





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/BitTorrent/

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 





More information about the BitTorrent mailing list