IP address vs. Ports

Difference Between IP address and Ports

With the latest development that the information and communication technologies (ICT) have seen, each and every part of the world is now connected. The base of this magnificent victory is largely due to rapidly evolving communication technologies and networking. The basic units of structure of these miraculous creations are based on the concepts of IP addresses and ports.

For IP addresses and ports, there are millions of servers and clients through which the Internet communicates with each other.

IP address

The IP address is an address of 32 bits logic that is used to determine the destination of a packet (datagram). The IP address identifies the source and destination networks that allow the datagram accordingly to flow in the path indicated. Each host and router on the Internet has an IP address, as all phones have a unique number for identification purposes. This IP addressing concept was standardized in the year 1981.

Basically IP addressing makes use of the dotted decimal notation. An IP address normally is made up of two parts viz. the network and the host. The arrangement of an ordinary IP address is as follows:

Each 4-byte (8 bits = 1 byte) consists of the values ​​at the limits of 0-255. IP addresses are grouped into classes as (A, B, C and D) depending on the size of the network identifier and host identifier. When this approach is used in determining the IP addresses, it is identified as the class is to address the full. Depending on the type of network to be created, one must choose a project with a suitable address.

Eg. : Organize a => for some networks, each with many hosts.

Class C => for many networks, each with few hosts.

Especially in a network identified LAN environment this need to be well thought as the IP address remains the same, where as the party host ranges.

One of the major disadvantages caused by the class address in full is that it makes a waste of the IP addresses. And engineers have moved into the new approach to addressing less class. Unlike the classroom address the size of the network identifier remains variable. In this approach, the concept of masking the subnet is used to determine the size of the network identifier.

The case for an ordinary IP address 207.115.10.64

Ports

Ports are represented by numbers 16 pieces. Now the ports range from 0 to 65.525. The port numbers 0-1023 are restricted because they are reserved for the use of well-known protocol services such as HTTP and FTP.

In a network and the end point, only two hosts communicate with each other and are identified as ports. Most ports are allocated a task to be performed efficiently. These ports are identified by the port number as discussed earlier.

So the functional behavior of the IP address and port is as follows. Prior to sending the Packet Data from the machine serving as the source, destination and source IP addresses having their respective port numbers are fed to the datagram. With the help of the IP address, the datagram tracks the target machine and transfers the datagram. After the package is unveiled, with the help of port numbers OS directs the data to the correct application. If the number of port is badly placed, OS will be unaware of that data and cannot recognize for which application the data was sent.

The following can summarized as, the IP address is the great task of directing data to the destination, while the number of port determines that the application be fed with the received data accurately. Finally the number of respective port determines efficiency and the application recognizes the data allocated by the reserved port.

 

Category: VS  |  Tags: