11.01.2013 Views

Workshop

Workshop

Workshop

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This is reasonably easy with TCP (Transmission Control Protocol) sockets. A TCP connection is a<br />

connection-oriented call—like a true phone call, where someone dials someone else and establishes a<br />

two-way link.<br />

A UDP (User Datagram Protocol) conversation, on the other hand, is basically like when I throw you a<br />

crumpled-up piece of paper containing a message, and you throw one back at me. This is called a<br />

connectionless session. You can think of the difference between TCP and UDP as the difference between<br />

you and me using two tin cans and a string (TCP) to communicate versus you and me passing notes in<br />

class (UDP). Keep in mind that a note can be easily misdirected.<br />

It’s fairly trivial for TCP connections to be limited, because the reply to the connection is basically<br />

within the same connection. It’s a lot harder to do this with UDP sockets. A UDP connection throws out<br />

a packet and then waits for the reply. Because no connection exists, the firewall must be configured to<br />

accept random UDP packets, any of which might be a reply. Typically, a range of UDP ports has to be<br />

allowed in through the firewall, which implies a lot of trust.<br />

Some administrators (depending on their site security policies) disallow UDP through the<br />

firewall—period. Others rely on SMLI (Stateful Multi-Level Inspection) firewalls, which “remember”<br />

the packets that have passed through them and accept responses appropriately.<br />

Previous Table of Contents Next

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!