Recent Posts
- November 2014 (1)
- January 2014 (1)
- October 2013 (1)
- May 2013 (1)
- February 2013 (2)
- October 2012 (1)
- August 2012 (1)
- July 2012 (4)
- June 2012 (13)
Blog Stats
- 36,360 hits
Write your code smartly
HTTP is a foundation of communication on internet considering a client-server model. It is used to transfer or exchange hypertext by building network using links called hyperlinks.
Client may be a browser and the website can be a server. The client request through a message using HTTP to the server which uses HTML and provides a response in the form of status of the request and it can be a content with a message or data.
A HTTP client sends a request by building a TCP connection and HTTP waits for a request, after receiving the request a response from the server is made to the client by which the request-response clock starts which make up a HTTP session. Unless a clock of request-response is not stopped a session is alive else it is killed.
A response can be a HTML web page which is displayed on the client browser.
DNS is a system which is used by the computers and devices using internet to assign the IP addresses to the domain names. The Internet is based on the IP addresses therefore it requires that a domain name must me translated into IP address so it is easily located.
DNS works like a phone book as it assigns a IP address to a domain name so that computer can communicate to the domain selected. But unlike phone book it updates it self without effecting the end user.
When a system is connected to home network (ISP) it sends the information to router which assigns the network address which also includes the DNS information so that it can acknowledge when to translate the domain name to IP address.
It is easy to remember the alphabetical names of the domain such as http://www.example.com rather than the IP address such as 70.42.251.42.
You can avoid the look up process performed by the browser when you put in a domain name e.g http://www.google.com (try it) by directly providing the IP address of that domain.
DNS translates these domain names using a huge database also assigning the time allocated for the domain name hence there are multiple addresses are assigned to a single domain name.
FTP is used to transfer files and web pages to server over a TCP based network such as internet. FTP is used to upload and download files from the server to the simple client development machine. It has separate controls and connections using user name and password authentication to connect to server and upload and download files.
There are some FTPs which allows to enter the server without authentication of any username and password valid, therefore might verify for the email address but it makes un-secure way of connecting to the server.
DHCP is an automated method of assigning the addresses i.e IP addresses to the devices connected in a network which decreases the overhead of the manual work done by the network administrator. It has a central database of devices attached to the network and helps to avoid replica of the resource assignment to the devices.
The hosts that does not use DHCP for address assigning can still use DHCP to obtain other configuration information.
It is very useful even in small networks as it can easily add new machines to the network. When the computer or device tries to attach to a network the DHCP sends a query to the DHCP server to get the information of the client system such as default gateway, domain name, name servers. After receiving the valid information DHCP assigns the computer a address and the time it will be valid till including subnet mask.
It uses two ports , port 67 to send data to servers and port 68 to receive data to client. Its communication is connectionless in nature.