Page 1
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
1
Basisdienste II:Telnet, FTP, Chat, ICQ
Basis-, Mehrwert-und MetainformationsdiensteKurs 21.6.2001 (Konstanz) / 23.6.2001 (Berlin)Dozent: Dr. Bernard Bekavac
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
2
Merkmale/Optionen
Merkmale/Optionen
Übersicht: TelnetBasisdienste II: Telnet, FTP, Chat, ICQ
EigenschaftenEigenschaften
ProtokollProtokoll NVTNVT
TelnetTelnet
ASCII-ÜbertragungASCII-Übertragung
SteuercodesSteuercodes
Page 2
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
3EigenschaftenTelnet
î Textbasiert (ASCII)Telnet 23
Telnet x
î Einfacher, jedoch sehr mächtiger Dienst im Internetî Dient dem Zugriff auf entfernte Rechner:
• Verbindungsherstellung zu einemanderen Port
• Login über Telnet
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
4Telnet
KommunikationDarstellungAnwendung
BitübertragungSicherung
VermittlungTransport
Subnetzwerk
IPTCP, UDP
Telnet (23)
Aufteilung im TCP/IP-Protokoll
KommunikationDarstellung
Telnet x
Page 3
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
5Merkmale / OptionenTelnet
î Terminal-Standard:• Belegung der Tasten• Interpretation von Kommandozeichen
î Protokollaufzeichnungî Optionen
î Ausführung einerBetriebssystemkonsole (Shell)
î Benutzerkontrolleî Sicherheitsmaßnahmen
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
6Telnet-ProtokollTelnet
î Nicht kommandoorientiertî Im Prinzip nur ein Bidirektionaler Austausch von
ASCII-Zeichen zwischen Client und Server beliebigerPlattformen über TCP
î Zu verwendende Zeichensätze, vor allem Steuercodes,sind standardisiert - NVT (Network Virtual Terminal)
î Einstellungen / Optionen werden über Steuercodesgeregelt
î Symmetrisch
Page 4
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
7NVTTelnet
ASCIIiso-xyz NVT
ASCIIiso-abcNVT
ASCI
I
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
8ASCII-ÜbertragungTelnet
î TCP überträgt Daten Byte-weise (8-Bit)î Telnet stellt Anwendungen jedoch nur 7-Bit zur
Verfügung (NVT - Code 0-127)î Codes 128-255 sind für Steuercodes reserviert
(bisher belegt: 240-254)î Jedem Steuercode geht der Code 255 (IAC-Zeichen -
Interpret As Command) voraus
Page 5
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
9Steuercodes (Auswahl)Telnet
Code BedeutungOut-Of-Band Signal242 - Data MarkCtrl-C244 - InterruptIst Client bzw. Server noch da?246 - Are You There
Anfrage / Bestätigung für eine Option251 - WILLOption wird abgelehnt252 - WON`TAufforderung f. Gegens. eine Option zu nutzen253 - DOAblehnung, daß Gegenseite Option nutzen darf254 - DON`T
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
10
EigenschaftenEigenschaften FTPFTP Client-BefehleClient-Befehle
Server-ArtenServer-Arten FunktionenFunktionen ArchitekturArchitektur ProtokollProtokoll
Übersicht: FTPBasisdienste II: Telnet, FTP, Chat, ICQ
Page 6
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
11EigenschaftenFTP
î Zugang zu Dateiverzeichnissen / -archiven imInternet
î Wesentliche Leistungen:• Daten/Files von einem entfernten Computer auf
den eigenen herunterladen (Downloading)• Daten/Files von dem eigenen Computer auf einen
entfernten übertragen (Uploading)î Es wird eine Zugangsberechtigung benötigt
File Transfer Protocol (FTP):
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
12Server-ArtenFTP
Öffentliche FTP-ServerÖffentliche FTP-Server
Private Dateien / Archive auf dem eigenen Computer
Private Dateien / Archive auf dem eigenen Computer
Angebot diverser Software / Daten zum Downloading
Downloading/Uploading von Dateien und Verzeichnissen
• Programme, Utilities, Tools • Grafiken, Video, Sound • Datenbanken, Archive • verschiedene Dienste
Login (anonymous FTP):Name: anonymous,ftp,guestPasswort: Email-Adresse
Login über Benutzername und Passwort (Benutzerberechtigung)
Page 7
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
13FunktionenFTP
î Zugangskontrolle (login)î Grundlegende Dateioperationen:
• Übertragen (bidirektional)• Löschen, Anfügen• Verzeichnisoperationen (wechseln usw.)
î Einstellung von Übertragungsparametern (ASCII, binär)
ASCIITexdateienProgramm-QuellcodesPostscript-DateienASCII-basierte Dateien
binärAusführbare ProgrammeGrafiken/Sound-DateienKomprimierte DateienTextverarbeitung/Tabellenkalkul.
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
14ArchitekturFTP
Daten-verbindung20
Daten-verbindung d
InternetDaten
Datei-system
Datei-system
Kontroll-verbindung21
Kontroll-verbindung k Kommando
Port
Port
Port
Port
Page 8
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
15Architektur (1 Client - 2 Server)FTP
Daten-verbindung
Kontroll-verbindung
21
20
k1
Internet
Daten-verbindung
Kontroll-verbindung 21
20
Datei-systemk2
Kommando Kommando
Daten
Datei-system
Server 1 Server 2Kontroll-
verbindung
Port
Port
Port
Port
Port Port
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
16ProtokollFTP
î Client sendet Befehle, Server quittiert jeden Befehl mit einemStatuscode und Kommentar
î Befehle (max. 4 Zeichen + Parameter) werden im ASCII-Format(NVT-Zeichensatz) gesendet
î Client und Server verfügen jeweils über zwei Prozesse:
ProtocolInterpreter
Data Transfer Process
ProtocolInterpreter
Data Transfer Process
Kommando
Daten
Page 9
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
17Protokoll-Kommandos (Auswahl)FTP
î Anmeldung
Client-Befehl BedeutungBenutzername oder anonymoususer Benutzername
Passwort oder Email-Adressepass PasswortBei Bedarf Accountbezeichnungacct Accountname
Statuscode BedeutungBenutzername, Passwort, Account OK / fehlerhaft230 / 501Benutzername OK, erwarte Passwort331Syntaxfehler500
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
18Protokoll-Kommandos (Auswahl)FTP
î Übertragungsbefehle
Client-Befehl BedeutungHost und Port für Datenkanal angebenport Host,PortDatei Downloadretr Dateipfad
Repräsentation: ASCII | EBCDIC | image | localtype Code
Statuscode BedeutungDatenkanal geöffnet...Dateioperation ausgeführt225...250Kommando OK200
Transfermodus: Stream, Block, Compressedmode Code
Datei Uploadstor Dateipfad
Page 10
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
19Protokoll-Kommandos (Auswahl)FTP
î Verzeichnisoperationen
Client-Befehl BedeutungAktuelles Verzeichnis erfragenpwdVerzeichnis setzencwd PfadVerzeichnisinhalt auflisten (vorher Portangabe)list [ Pfad ]
Statuscode BedeutungDatenkanal geöffnet...Dateioperation ausgeführt225...250Verzeichnis erzeugt257
Verzeichnis löschenrmd PfadVerzeichnis anlegenmkd Pfad
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
20Protokoll-Kommandos (Auswahl)FTP
î Dateioperationen
Client-Befehl BedeutungAnfügen der übertragenen Daten an eine Dateiappe DateinameDatei löschendele DateinameZu ändernder DateinameNeuer Dateiname
rnfr DateinAltrnto DateinNeu
Statuscode BedeutungDatenkanal geöffnet...Dateioperation ausgeführt225...250Datei angelegt-Bekanntgabe des Dateinamens bei stou257
Ü-Daten unter eindeutigen Dateinamen speichernstou
Page 11
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
21Client-Befehle (einfaches FTP-Tool)
FTP
Die klassischen FTP-Befehle (unter UNIX leicht anders) sind:append get mkdir remotehelpascii glob mls renamebell hash mput rmdirbinary help open sendbye lcd prompt statuscd literal put tracedebug ls pwd typedelete mdelete quit userdir mdir quote verbosedisconnect mget rcv
ASCII istStandard-Text-Filetyp im FTP
Dateien enthaltenauch nonalpha-numeric data
Download einerDatei
StelltVerbindung zu
externemRechner her
Upload einerDatei
Downloadmehrerer
spezifizierterDateien
FTP-Programme sindallerdings heute meist(GUI-) menüorientiert
nützlich beimanchen
Servern derBefehl „tar on
the fly“(überträgt alleDateien eines
Verzeichnissesin einen tar-
file)
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
22
IRC-Protokoll
IRC-Protokoll
InternetRelay ChatInternet
Relay ChatCTCP-
ProtokollCTCP-
Protokoll
ChatChat
DCC-ProtokollDCC-Protokoll
Java-basierteChat-SystemeJava-basierteChat-Systeme
Übersicht: ChatBasisdienste II: Telnet, FTP, Chat, ICQ
Page 12
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
23Chat
KommunikationDarstellungAnwendung
BitübertragungSicherung
VermittlungTransport
Subnetzwerk
IPTCP, UDP
Chat (IRC)
Aufteilung im TCP/IP-Protokoll
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
24IRC (Internet Relay Chat)
î Textbasierte synchroneKommunikation (1:n)
î Optionale direkte Kommunikationî Diskussionsthemen (Channels)î Anonymisierung (Nicknames)
Kommunikations-ebene
Kommunikations-ebene
TechnischeEbene
TechnischeEbeneî IRC-Netzwerke
î IRC
Chat
Page 13
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
25Protokolle des IRCî IRC-Protokoll: Client-Server / Server-Server
IRC-Protokoll
IRC-Protokoll
IRC-Protokoll
Chat
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
26IRC Protokoll
• IRC-Clients und IRC-Servernzur Kommunikation in den einzelnen Chat-Themen
• IRC-Servern untereinanderzum Verteilen von Lasten bzw. Aufbau von IRC-Netzwerken
î Regelt die Kommunikation zwischen
IRC-
Protocol (6667) IRC-Protocol (6667)
Chat
Page 14
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
27Chat
IRC Protokoll-Kommandos (Auswahl)
î Anmelden / Abmelden
Kommando BedeutungPasswort für Server (meist Server-Server)pass p
Benutzerangabenuser u h s r
p=Passwort, d=Destination, u=Username, h=Host, s=Server, r=Realnamem=Message
Nickname (Entfernung zum Client-Server)nick n [d]
Abmelden eines Clients / Serversquit m
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
28Chat
IRC Protokoll-Kommandos (Auswahl)
î Channel-Operationen
Kommando BedeutungAuswählen einer Chat-Rubrikjoin c[,c]...[p[,p]]...
Verlassen einer Chat-Rubrikpart c[,c]...Abfragen/Setzen eines Themastopic c [t]
c=Channel, p=Passwort, t=Topic, s=Server, n=Nickname, u=Username
Alle/Bestimmte Rubriken bzw. deren Teilnehmernames [c[,c]...]Alle/Bestimmte Rubriken bzw. deren Themenlist [c[,c]...][s]
Benutzer zur Teilnahme an einer Rubrik einladeninvite n c
Benutzer aus einer Rubrik entfernenkick c u
Page 15
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
29Chat
IRC Protokoll-Kommandos (Auswahl)
î Nachrichten
Kommando BedeutungSenden einer Nachrichtprivmsg r tSenden einer non-autoreply Nachrichtnotice n t
* r=Receiver (n | c[,c]...), t=Text, n=Nickname, c=Channel
Message-Of-The-Daymotd
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
30Chat
Protokolle des IRC
î Client-to-Client Protokoll (CTCP): Client-Client -Zusatzinformationen (Erweiterung des IRC-Protokolls)
î IRC-Protokoll: Client-Server / Server-Server
IRC-Protokoll
IRC-Protokoll
IRC-Protokoll
CTCPCTCP
Page 16
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
31Chat
CTCP
î Erweiterung des IRC-Protokolls (Huckepack-Protokoll)î Ermöglicht IRC-Clients (Benutzern) zusätzliche Informationen
auszutauschen:• Transferzeiten• Client-Version• Benutzerinformationen
î CTCP-Kommandos und -Antworten werden an die BefehlePRIVMSG und NOTICE angehängt
IRC-
Protocol (6667) IRC-Protocol (6667)
CTCPCTCP
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
32Chat
CTCP-Kommandos
Komm./Antwort BedeutungName des IRC-Clients und dieVersionsnummer
versionversion i
i=Information, s=Systemzeit (sec, msec), k=CTCP-Kommando, t=Text
Spezielle Nachricht (ohne Antwort)action t
Ping-Zeit = neue_Systemzeit - alte_SystemzeitTransferzeit = Ping-Zeit / 2
ping sping s
Welche CTCP-Kommandos werden vom IRC-Client unterstützt
clientinfoclientinfo k[,k]...
Page 17
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
33Chat
CTCP-Kommandos
Komm./Antwort BedeutungInformationen zu dem Benutzer eines IRC-Clients (Name, Rechnername, Benutzer-Zeiten)
fingerfinger i
i=Information, s=Systemzeit (sec, msec), k=CTCP-Kommando, t=Text
Anfrage für eine DCC-VerbindungDCC Parameter
Zeit auf einem IRC-Client abfragentimetime s
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
34Chat
Protokolle des IRC
î IRC-Protokoll: Client-Server / Server-Serverî Client-to-Client Protokoll (CTCP): Client-Client -
Zusatzinformationen (Erweiterung des IRC-Protokolls)î Direct Client-to-Client Protokoll (DCC):
Client-Client direkt
DCC
IRC-Protokoll
IRC-Protokoll
IRC-Protokoll
CTCPCTCP
Page 18
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
35Chat
DCC
î Über den CTCP-Befehl dcc wird ein Empfänger-Clientaufgefordert eine direkte Verbindung zum Sender-Clientaufzunehmen
î Die hierfür notwendigen Verbindungsinformationen (IP-Adresse,Portnummer) werden als Parameter an den CTCP-Befehl dccangehängt
î Bei DCC werden drei mögliche Verbindungsarten unterschieden:• DCC-Chat• DCC-Send• DCC-Mime
IRC-
Protocol (6667) IRC-Protocol (6667)
dcc dcc
DCC
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
36Chat
DCC-Protokolle
DCC CHAT IP-number port
DCC SEND filename IP-number port filesize
Kommunikationzweier Benutzer
(ähnlich PRIVMSG)
Senden vonDateien
DCC mimetype IP-number Portnumber [filesize]
Senden von Dateien überMIME-Steuerung
Page 19
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
37Java-Basierte Chat-SystemeChat
CGI oderServlet
Web-Server
Applet
HTTP
AppletHTTP
AppletHTTP
AppletHTTP
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
38
ProtokollProtokoll NutzungNutzung
ICQICQ AufbauAufbau
EinführungEinführung
Übersicht: ICQBasisdienste II: Telnet, FTP, Chat, ICQ
Page 20
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
39ICQ
KommunikationDarstellung
Benutzer-information
BitübertragungSicherung
VermittlungTransport
Subnetzwerk
IPTCP, UDP
ICQ
Aufteilung im TCP/IP-Protokoll
Chat Mail /Notizen
Datei-transfer ...
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
40ICQ
ICQ („I Seek You“) - icq.com
î Frei zugänglicher Multifunktions-Dienst im Internet(ICQ Inc. bzw. Mirabilis Inc.)
î Basiert auf einem Benutzer bzw. Client-Netzwerkî Ermöglicht verschiedene Dienste innerhalb des ICQ-
Netzwerks:• Diverse Benutzerinformationen abfragen• Verschicken von Kurzmitteilungen/Emails/Dateien• Chat-Funktionalität (auch Benutzer einladen...)• u.v.m.
î Für „alle“ Plattformen verfügbarî Weitgehende Integration in Desktop-Betriebssystemen
Page 21
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
41ICQ-AufbauICQ
Internet
ICQ:20932059
ICQ:34087035
ICQ:14089867
ICQ:39034478
ICQ:55960863
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
42ICQ
ICQ-Protokoll
î Nicht standardisiert (wird von ICQ Inc. entwickelt)î Binärzeichen-orientiertes Protokollî Nur zum Teil veröffentlicht:
• http://du.altawixa.de/icq/• http://www.algonet.se/~henisak/icq/
î Wird in einer Mailingliste dokumentiert unddiskutiert: [email protected] (Anmeldung: ohne Subject, im Body "subscribe icq-devel“)
Page 22
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
43ICQ
ICQ-Nutzung
î Ein ICQ-Benutzer kann Gruppen mit bekanntenanderen Benutzern definieren (kontrolliert)
î Innerhalb dieser Gruppen werden zugehörigeBenutzerinformationen preisgegeben
• Wer ist momentan online / am Rechner / will ungestörtsein usw.
• Diverse Zusatzinformationen (Email, Adressen,Telefonnummern usw.)
î Es kann aber auch Kontakt zu weiteren Benutzerninnerhalb der ICQ-Welt aufgenommen werden(hierfür gibt es Suchtools)
Internetdienste SS 2001 Prof.Kuhlen; Dr.Bekavac
Institute of Library Science – Humboldt University BerlinDepartment of Computer and Information Science at the University of Constance
44
Telnet(ASCII)
WWWCGI/Java
Anwendungen
BitübertragungSicherung
VermittlungTransport
Subnetzwerk
IPTCP, UDP
Entwicklung von Internet-Anwendungen
Zielanwendung
ProtokollDarstellung
Server-prozess
Client-tool