Data Networking/Spring 2015/GROUP4/Algorithm

Algorithm
The algorithm for the project is as follows:

1.The client tries to connect to the network. If   valid client Connect successfully to the network Else Restart the connection or contact the network administrator for troubleshooting.

2. Client must obtain IP address.

If static allocation IP address is given manually by user Else DHCP allocation The client sends a request to DHCP for IP allocation. 3. Client sends request to DHCP.

If request is successful DHCP replies with IP address Else DHCP replies with request failed. Restart the connection or contact the network administrator for troubleshooting. 4.Client wants to access webserver.

If domain name entered is correct Forward request to DNS for resolving IP address. DNS replies with IP address of webserver. Else If  DNS reply fails Webserver cannot be accessed. Retry Else if  URL is entered wrong Access to server fails Retry 5.Client accesses the web server. If client received IP of webserver from DNS Send HTTP request to webserver Else If HTTP request is successful Webpage is loaded Else if HTTP request fails Webpage is not loaded