News for hackers. Stuff that matters.
Re:Intro to Yada Project - An Open Source p2p Social Network... by dinedal on Tuesday February 01, 2011 @03:13PM (#2167138)
How do you intend to tackle NAT, dynamic IP addresses, and devices that aren't always on, or devices only accessible to some machines but not others?

How do you intend to solve the chicken and the egg problem this network will encounter?

Re:Intro to Yada Project - An Open Source p2p Social Network... by pdxwebdev on Tuesday February 01, 2011 @03:19PM (#2167165)
IPv6 is already being deployed from top tier mobile carriers and that allows globally rout-able addresses even behind NATs.

If you have no social graph on yada, then your very first connection to a friend may have to be unencrypted, but not in every case.

Re:Intro to Yada Project - An Open Source p2p Social Network... by dinedal on Tuesday February 01, 2011 @03:37PM (#2167251)
> IPv6 is already being deployed from top tier mobile carriers and that allows globally rout-able addresses even behind NATs.

You're making a lot of assumptions:

1) That IPv6 will assign a unique and constant IP to every device. Many ISPs provide this as an up-sell feature, not the default, and I don't expect them to change their behavior even if the cost of it approaches 0.

2) That IPv6 will solve all your network problems. It doesn't solve the issue of a bad link or a restrictive firewall. Consider Hosts [A,B,C] and Firewall F. F will block all connections from B. How will yada connect A and B in this arrangement: A <-F-> [B,C] ? Will is use C to route the connection? How will it determine that C can act as an intermediary, and how will it protect A's data such that C can not be used as a MTM (Man in The Middle) attack vector?

Re:Intro to Yada Project - An Open Source p2p Social Network... by pdxwebdev on Tuesday February 01, 2011 @03:53PM (#2167331)
1) Each client checks for internal and external IPs and saves them. That list is transmitted to your friends every time you update them with other data. It automatically manages this list of possible places to reach you.

2) There will be indexers for these cases which can be used as relay points. C would merely be a match-maker, telling each host which IP address and port is currently open. No data is sent through C.

Skype does this.

Re:Intro to Yada Project - An Open Source p2p Social Network... by dinedal on Tuesday February 01, 2011 @04:04PM (#2167384)
Skype doesn't do this. Please read: http://www.mjalali.com/blog/?p=10

>1) Each client checks for internal and external IPs and saves them. That list is transmitted to your friends every time you update them with other data. It automatically manages this list of possible places to reach you.

According to the link, "supernodes" route connections and provide matchmaking between Skype callers. How do you find the "supernodes"? "If this file is not present, SC tries to establish a TCP connection with each of the seven Skype maintained default SNs IP address on port 33033."

>2) There will be indexers for these cases which can be used as relay points. C would merely be a match-maker, telling each host which IP address and port is currently open. No data is sent through C.

"If caller and receiver are behind a UDP-restricted firewall they will need a relay (node) in between to establish TCP connection to and then the traffic (including media) will go through from one side to the other."

Skype's protocol would use host C as an intermediary.

Re:Intro to Yada Project - An Open Source p2p Social Network... by pdxwebdev on Tuesday February 01, 2011 @04:25PM (#2167479)
That's true, its not exactly the same as your example. But the method I have developed does work.
Re:Intro to Yada Project - An Open Source p2p Social Network... by dinedal on Tuesday February 01, 2011 @04:38PM (#2167530)
You didn't address my point about initial discovery being maintained by Skype.

Also, could you please point out to me the method you have developed for initial discovery? I've yet to see it in your source code. This is a very tough nut to crack and if you've got it done already then I'm impressed.

Re:Intro to Yada Project - An Open Source p2p Social Network... by pdxwebdev on Tuesday February 01, 2011 @05:27PM (#2167725)
And if you're impressed, what happens? Do you help me? Because I'll fight tooth and nail to impress you if you'll help me.

Seriously.

Re:Intro to Yada Project - An Open Source p2p Social Network... by dinedal on Tuesday February 01, 2011 @06:07PM (#2167898)
Show me one place in your code right now where you have done something innovative with peer discovery, that no network engineer, or researcher has tried before, doesn't use a central meeting point, and is successful at discovering peers in a reasonable amount of time. I'll start work immediately. I'm pretty sure more people will join in on it too if this is the case.
Re:Intro to Yada Project - An Open Source p2p Social Network... by pdxwebdev on Tuesday February 01, 2011 @08:09PM (#2168345)
That is not coded at this time but you shall see, sir.