Firstly, a DHCP server is needed which distributes the IP addresses. This machine will serve as a base for all DHCP requests and must also have a fixed IP address. Therefore, on a network there can only be one machine with a fixed IP address, the DHCP server.
The basic communication system is BOOTP (with UDP frame). When a machine is turned on, it has no information on its network configuration, and there is nothing special that the user needs to do to find an IP address. In order to do this, the technique used is the broadcast: to find and talk with a DHCP server, the machine will simply send a special broadcast packet (broadcast on 255.255.255.255 with other information such as the type of request, the connection ports, etc.) over the local network. When the DHCP receives the broadcast packet, it will send back another broadcast packet (do not forget that the client does not obviously have the IP address and that therefore cannot be connected to directly) containing all the information required for the client.
It could be believed that one single packet is enough for the protocol to work. In fact, there are several types of DHCP packets likely to be issued either by the client for the server(s), or by the servers to a client:
DHCPDISCOVER (to locate available DHCP servers)
DHCPOFFER (server response to a DHCPDISCOVER packet, which contains the initial parameters)
DHCPREQUEST (varied request from the client for example to extend its lease)
DHCPACK (server response which contains the parameters and IP address of the client)
DHCPNAK (server response to indicate to the client that its lease has expired or if the client announces a bad network configuration)
DHCPDECLINE (the client announces to the server that the address is already in use)
DHCPRELEASE (the client releases its IP address)
DHCPINFORM (the client requests local parameters, it already has its IP address)
The first packet issued by the client is a DHCPDISCOVER type packet. The server responds with a DHCPOFFER packet, particularly in order to submit an IP address to the client. The client establishes its configuration and then makes a DHCPREQUEST to validate its IP address (a broadcast request since DHCPOFFER does not contain the IP address). The server simply responds with a DHCPACK with the IP address for confirmation of the allocation. Normally, this is enough for the client to obtain an effective network configuration, but it can be longer or shorter according to whether the client accepts the IP address or not.
DORA
This process of assigning the IP addresses by the DHCP server also known as DORA (Discover Offer Request and Acknowledgement).
When a host computer connects to a network, it attempts to contact any DHCP servers available through a broadcast asking them for an available IP address. The DHCP servers then scan their pool of IP addresses and send one to the host along with info such as DNS server info, subnet mask, and default gateway. The host then sends a message back to the DHCP server to notify that it has accepted the IP address provided. Now you are connected to the network!
The client IP address, the clients host name, the port address to use during communication
The broadcast message is forwarded using an IP helper address, The client broadcasts to find the server
Inverse domain is used to map an address to a name. For instance, if a server receives a request from a client and this server has only the ip addresses of the clients in its list then the server needs to find out if this client is on its authorized client list. In order to determine if the client is on the authorized client list,server asks its resolver to query to the DNS server to map an address to name. And this type of querys are called inverse query(pointer query -PTR).
Inverse domain is used to map an address to a name. For instance, if a server receives a request from a client and this server has only the ip addresses of the clients in its list then the server needs to find out if this client is on its authorized client list. In order to determine if the client is on the authorized client list,server asks its resolver to query to the DNS server to map an address to name. And this type of querys are called inverse query(pointer query -PTR).
A DHCP server will privide a client with a valid IP address for the network for which the DHCP server is providing a service.Where there is no DHCP server the IP address for a client must be set manually. When doing this care must be taken to ensure that two IP addresses are not set the same on the network.
show mac address table
Client and server
When you enter a URL into your browser you are directing your computer to connect to a server that is listening at the corresponding ip address, which will then send you the HTML that makes up that web page. Your computer is a client connecting to a server.
The DHCP server (Dynamic Host Configuration Protocol)What is DHCP?Dynamic Host Configuration Protocol (DHCP) is a network protocol that enables a server to automatically assign an IP address to a computer from a defined range of numbers (i.e., a scope) configured for a given network. DHCP assigns an IP address when a system is started, for example:A user turns on a computer with a DHCP client.The client computer sends a broadcast request (called a DISCOVER or DHCPDISCOVER), looking for a DHCP server to answer.The router directs the DISCOVER packet to the correct DHCP server.The server receives the DISCOVER packet. Based on availability and usage policies set on the server, the server determines an appropriate address (if any) to give to the client. The server then temporarily reserves that address for the client and sends back to the client an OFFER (or DHCPOFFER) packet, with that address information. The server also configures the client's DNS servers, WINS servers, NTP servers, and sometimes other services as well.The client sends a REQUEST (or DHCPREQUEST) packet, letting the server know that it intends to use the address.The server sends an ACK (or DHCPACK) packet, confirming that the client has a been given a lease on the address for a server-specified period of time.
It's very simple. You just need to tell the client to connect to ip address 127.0.0.1, which is local host. You also define the port number for the client. On Server side, you just need to listen to that port. Then run both client and server programs on the same PC and it should work.
Simple anwser no. Imvu is client server not p2p
Pretty much a client server network is known as a client server network.