15.08.2013 Views

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

General Computer Science 320201 GenCS I & II Lecture ... - Kwarc

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

the telnet protocol for remote terminal emulation which we do not discuss here.<br />

telnet is one of the oldest protocols, which uses TCP directly to send text-based messages between<br />

a terminal client (on the local host) and a terminal server (on the remote host). The operation<br />

of a remote terminal is the following: the terminal server on the remote host receives commands<br />

from the terminal client on the local host, executes them on the remote host and sends back the<br />

results to the client on the local host.<br />

A Protocol Example: SMTP over telnet<br />

We call up the telnet service on the Jacobs mail server<br />

telnet exchange.jacobs-university.de 25<br />

it identifies itself (have some patience, it is very busy)<br />

Trying 10.70.0.128...<br />

Connected to exchange.jacobs-university.de.<br />

Escape character is ’^]’.<br />

220 SHUBCAS01.jacobs.jacobs-university.de<br />

Microsoft ESMTP MAIL Service ready at Tue, 3 May 2011 13:51:23 +0200<br />

We introduce ourselves politely (but we lie about our identity)<br />

helo mailhost.domain.tld<br />

It is really very polite.<br />

250 SHUBCAS04.jacobs.jacobs-university.de Hello [10.222.1.5]<br />

We start addressing an e-mail (again, we lie about our identity)<br />

mail from: user@domain.tld<br />

this is acknowledged<br />

250 2.1.0 Sender OK<br />

We set the recipient (the real one, so that we really get the e-mail)<br />

rcpt to: m.kohlhase@jacobs-university.de<br />

this is acknowledged<br />

250 2.1.0 Recipient OK<br />

we tell the mail server that the mail data comes next<br />

data<br />

this is acknowledged<br />

354 Start mail input; end with .<br />

Now we can just type the a-mail, optionally with Subject, date,...<br />

Subject: Test via SMTP<br />

and now the mail body itself<br />

.<br />

And a dot on a line by itself sends the e-mail off<br />

250 2.6.0 <br />

[InternalId=965770] Queued mail for delivery<br />

199

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

Saved successfully!

Ooh no, something went wrong!