Aplicatii Client-Server BOOTP, DHCP, TELNET

Aplicatii Client-Server BOOTP, DHCP, TELNET

BOOTP, DHCP TELNET: TErminaL NETwork Aplicatii Client-Server BOOTP, DHCP, TELNET Gabriel Ciobanu Facultatea de Informatic˘a Universitatea A.I. Cuza, Ia¸si [email protected] Nivel Aplicatie Dorin Huzum ([email protected]) Sinic˘aAlboaie ([email protected]) Cristian P^aslaru ([email protected] http://www.info.uaic.ro/∼dorin.huzum/rc Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 1 / 42 BOOTP, DHCP TELNET: TErminaL NETwork Protocoale binecunoscute la nivelul aplicatie Nivelul aplicatie pune la dispozitie o serie de servicii Internet standard: Configurare retea (BOOTP, DHCP) Terminal la distanta (TELNET, SSH, :::) Posta electronica (SMTP, IMAP, POP,:::) Transferul de fisiere (TFTP, FTP) World-Wide Web (HTTP, WWW) Conversatii instantanee (IRC, ICQ, Jabber, :::) Protocoale pentru rezolvarea unor sarcini de sistem - /etc/services, /etc/protocols Sistemul de fisiere in retea (NFS) Conectivitate cu alte sisteme de fisiere (SMB) Servicii de baze de date (MySQL, PostgreSQL, :::) Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 2 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP Cuprins 1 BOOTP, DHCP Static configuration: BOOTP Dynamic configuration: DHCP 2 TELNET: TErminaL NETwork Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 3 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP BOOTP: Bootstrap Protocol client-server paradigm is applied to bootstrapping A host connected to an internetwork needs to know its IP address before it can send or receive datagrams Overall, a host needs to know at least the following: its IP address its subnet mask the IP address of a router the IP address of a domain name server BOOTP and DHCP make it possible to boot a machine through an IP network without using RARP both are based on UDP, and use specific formats Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 4 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP BOOTP: BOOTstrap Protocol At startup, a diskless workstation has an initialization routine stored in ROM, which is the same for all machines (then its specific IP address cannot be stored in the ROM) Using RARP has at least three draw-backs: RARP is low-level network-dependent protocol, therefore using it requires access to the physical network interface The efficiency of RARP is low, the minimum-size Ethernet- message is 512-bit long but only contains 32 bits of useful information (the IP address) Because RARP is based on the physical network address, it cannot be used in networks, where the address is assigned dynamically BOOTP and its extension DHCP address these problems Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 5 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP BOOTP BOOTP is based on UDP, and it can be implemented without access to the hardware level BOOTP is more efficient than RARP (more information than the IP address is transferred in the message) BOOTP includes a field that makes it possible to transfer vendor-dependent information using the protocol IP address 255.255.255.255 defines a limited broadcast and it can be used without knowing ones own IP address (it can use "0.0.0.0" as its sender address) assume that work station A sends a BOOTP request to server B, which chooses an IP address for A but cannot yet use ARP to update its own routing table In practice, B either broadcast its reply or derive the MAC address of A from the BOOTREQUEST message Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 6 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP BOOTP packet Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 7 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP BOOTP option Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 8 / 42 Table 16.1 Options for BOOTP TCP/IP Protocol Suite 8 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP BOOTP client-server Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 9 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP Two-Step Bootstrap Procedure BOOTP does not provide clients with a memory image; it only provides a file name. The client then uses a second protocol (tftp) to obtain the memory image. client can fill BOOT FILE NAME a generic name like \uni; t. The server consults it configuration database to map the generic name into a specific file name for client. If client fills zeros in the BOOT FILE NAME field, BOOTP selects a memory image of the machine. Clients use port 68 instead of an ephemeral port. This is because the reply from the server can be broadcast (received by all hosts). | Relay agent... Error control... Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 10 / 42 Figure 16.2 Client and server on two different networks TCP/IP Protocol Suite 4 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP DHCP: Dynamic Host Configuration Protocol BOOTP was designed for a static environment BOOTP does not apply well to portable workstations, because it only provides a static mapping from the identification of a workstation to its parameters The parameters need to be defined and stored to the config. file of the BOOTP server separately for each host If the hosts often change locations or the number of hosts exceeds the number of available IP addresses, this leads into difficulties To facilitate automatic address allocation, the IETF has defined DHCP, which extends BOOTP in two ways: The host gets all configuration information in one message The host receives its IP address fast and dynamically Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 11 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP DHCP: Dynamic Host Configuration Protocol DHCP makes it possible to allocate an IP address in three ways, out of which the administrator can choose the one that best suits each network or host: Like BOOTP, DHCP allows manual configuration Automatic configuration means, that DHCP assigns a permanent IP address for a new host Dynamic configuration means, that the host leases its IP address from a common address pool when it starts Dynamic configuration is the most interesting one of these alternatives because (it allows any computer to be connected to the network without prior arrangements) If the host is attached to several networks, it has to perform DHCP separately for each network interfaces BOOTP and DHCP facilitate the booting from another network by using a relay agent Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 12 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP DHCP packet Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 13 / 42 Table 16.2 Options for DHCP TCP/IP Protocol Suite 12 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP DHCP A host becomes a DHCP client when it broadcasts the DHCPDISCOVER message to all DHCP servers of the local network Each DHCP server replies with an offer, containing configuration information and the IP address the server is offering to lease to the client, sent in a DHCPOFFER message The host chooses one of the offers and sends a DHCPREQUEST message to the respective server The server confirms the lease with a DHCPACK message A machine may terminate the lease by sending a DHCPRELEASE message The protocol logic of DHCP is presented as a state transition diagram Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 14 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP DHCP Transition Diagram Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 15 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP DHCP Exchanging Messages Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 16 / 42 BOOTP, DHCP Static configuration: BOOTP TELNET: TErminaL NETwork Dynamic configuration: DHCP DHCP Exchanging Messages Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 17 / 42 BOOTP, DHCP Telnet TELNET: TErminaL NETwork Cuprins 1 BOOTP, DHCP 2 TELNET: TErminaL NETwork Telnet Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 18 / 42 BOOTP, DHCP Telnet TELNET: TErminaL NETwork Telnet a general-purpose client-server program for virtual terminal connection to a remote system such that the local terminal appears to be a terminal at the remote system Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 19 / 42 BOOTP, DHCP Telnet TELNET: TErminaL NETwork Time-sharing environment a large computer supports multiple users interaction user-computer is given by a terminal users have login names, passwords, and access rights to resources Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 20 / 42 BOOTP, DHCP Telnet TELNET: TErminaL NETwork Time-sharing Environment (local login) Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 21 / 42 BOOTP, DHCP Telnet TELNET: TErminaL NETwork Time-sharing Environment (remote login) Aplicatii Client-Server BOOTP, DHCP, TELNET noiembrie 2007 22 / 42 BOOTP, DHCP Telnet TELNET: TErminaL NETwork Telnet telnet client overrides the local interpretation the keys, allowing a user to interact with a remote machine exactly as one would from a locally connected

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    45 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us