-
| The Best from DevelopMentor | MORE |
- P2P and WCF: The PeerName Tool
Tags: WCF
www.leastprivilege.com - Tuesday, May 13, 2008 - P2P, PNRP, Teredo.the Motivation
There is also a peer channel in WCF that sits on top of these core components. So what features is the P2P infrastructure supposed to give you? Invitation/activation of P2P enabled applications. More importantly I really think that P2P communication patterns will be a "big" thing and will also change the way we have to think about network/perimeter security. Tags: WCF Since I started playing around with computers, communication of machines over a "wire" has been fascinating to me. This is probably why I ended up in the distributed applications space.
www.leastprivilege.com - Tuesday, April 29, 2008 - P2P and WCF: Registering a Service
To make a service discoverable using the P2P infrastructure, you first have to do a so called peer name registration. This is done by doing a 'netsh p2p pnrp cloud show list'. The next posts will deal with peer name resolution and how to host a WCF service over this infrastructure. Tags: WCF peer name registration has the following properties: a name (there are two different flavours: secured and unsecured - more on that later). one or more IP addresses and scope. port number. comment (optional). up to 4KB of binary data (optional). Peer Name. IP addresses and scope.
www.leastprivilege.com - Wednesday, April 30, 2008 - P2P and WCF: Finding a Service
with ping or any other application that does DNS name resolution), Windows will use the P2P APIs internally to return the corresponding IP address). Tags: WCF After you have registered a service, the next step is to find it again. The System.Net.PeerToPeer API includes a PeerNameResolver class which does that. You input the peer name and get back the registration details (IP addresses, port, comment and data): static void Resolve( string name). {. Console.WriteLine( "No records found." ); return ; }. int count = 1; foreach ( PeerNameRecord record in results). {. count++; }. }.
www.leastprivilege.com - Wednesday, April 30, 2008 - P2P and WCF: Exposing a Service
What else do you have to do for e.g. exposing a WCF service over the P2P infrastructure? If the WCF service listens on all NICs (the default), a client can do a resolution via the peer DNS name and connect to it. See screenshot: So to recap - these are the prereqs for a globally reachable service: P2P (PNRP and Teredo) must work properly. Typical P2P scenarios don't necessarily involve publicly known peer names, so you maybe only have a limited exposure. Tags: WCF The last post explained how to find a PNRP registered service. Code-wise nothing.
www.leastprivilege.com - Thursday, May 1, 2008 - P2P and WCF: Some Resources
If you want to know more about P2P and its related protocols and components, here's a list of online resource I found useful while researching: P2P team blog. P2P on TechNet. Peer-to-Peer Programming with WCF and.NET Framework 3.5" Tags: For Your Favourites;WCF Peer Channel blog. Peer Channel protocol specification. Teredo. The Teredo Protocol: Tunneling Past Network Security and other Security Implications" whitepaper. Get Connected with.NET 3.5" MSDN article. MSDN article. Have fun!
www.leastprivilege.com - Thursday, May 1, 2008 - P2P and WCF: Some Troubleshooting Resources
These are helpful resource when troubleshooting P2P: Checking cloud status: netsh p2p pnrp cloud show list. Enabling ping over P2P. P2P Traceroute. Tags: WCF Checking Teredo status: netsh int teredo show state. PNRP Debugging Guide. PNRP and WICN on Server 2008.
www.leastprivilege.com - Saturday, August 16, 2008