Showing posts with label Difference. Show all posts
Showing posts with label Difference. Show all posts

Thursday, June 21, 2012

Difference Between Unicasting and Multicasting


Unicasting vs Multicasting 
In computer networking, unicast refers to transmitting information from one sender to a one receiver. So unicasting involves only two nodes in a network. The single receiver in unicasting is identified by a unique address. On the other hand, Multicasting refers to transmitting information in a single transmission to a group of receivers. Multicasting is commonly implemented as IP (internet Protocol) Multicasting.
What is Unicasting?
When it comes to computer networking, unicasting refers to transmitting information from a single sender to a single receiver. Unicasting uses session based IP delivery protocols such as Transmission Control Protocol (TCP) and User Datagram Protocol (UDP). In unicasting, each receiver or client connects to the server consuming additional bandwidth. The client has a direct relationship with the server. For example, consider a situation where you request the URL http://www.cnn.com from your computer. This request should be received only by the CNN server else the network will be filled with unwanted requests sent to other computers in the network. Therefore unicast transmission is essential to networks and is supported by Ethernet and IP networks. Some examples of unicast transmissions are http, smtp, telnet, ssh and pop3. Unicasting is used when a private or unique resource is requested by a client. But unicasting is not suitable when transmitting information to lot of clients since the sender has to make separate connections with every receiver. This will consume computing resources in the sender and will consume a large bandwidth in the network.
What is Multicasting?
As mentioned earlier, multicasting refers to transmitting information to a group of receivers in a single transmission. In multicasting, source is required to transmit a data packet only once. The nodes in the network such as routers make the necessary copies of the transmitted data packet, so that it could be received by multiple receivers. The intermediate routers send the packets to receivers who have registered with them indicating the interest to receive data from that particular sender. IP multicasting is one of the commonly used multicasting implementations. Furthermore, the source does not need to know the addresses of the receivers that it is going to multicast and there is no direct relationship between the sender and the receivers. Multicasting is not suitable for bulk data transferring and not generally used in a large scale on the internet since only small sections of the Internet are multicast-enabled.
What is the difference between Unicasting and Multicasting?
The main difference between unicasting and multicasting is on how they communicate with receiver. In unicasting, information is transmitted to a single receiver by a single sender and the receiver has a direct relationship with the sender. In multicasting, information is sent to multiple receivers in a single transmission and there is no direct relationship between the senders and receivers. Unicasting is used when a private resource is requested by a client and it is not suitable for transmitting information to lot of clients since it will consume a large bandwidth of the network. On the other hand, multicasting does not make direct connections with the receivers, hence does not consume network bandwidth as unicasting.

Difference Between IP and Port


IP vs Port 
With the latest developments of information and communication technologies (ICT) every nook and corner of the vast globe is interconnected. The basis of this wonderful victory is mainly due to rapidly evolving communication and networking technologies. The building blocks of these miracle creations are based upon the concepts of IP addressing and ports.
Through IP addresses and ports,   millions of servers and clients on the internet are communicating with each other.
IP address
IP address is a logical 32 bit address which is used to determine the destination of a data packet (datagram). IP address identifies the source and destination networks which allow the datagram to flow accordingly in the specified route. Every host and router on the internet has an IP address, just like all telephones have a unique number for the identification purpose. The concept of IP addressing was standardized in 1981.
Basically dotted decimal notation is being used in IP addressing. Normally an IP address consists of two parts as network portion and the host portion. Ordinary arrangement of an IP address is as follows:
Each of the 4 bytes (8 bits = 1byte) consists of values ranging from 0-255. IP addresses are grouped into classes as (A, B, C and D) depending on the size of the network identifier and the host identifier. When this approach is being used in determining the IP addresses, it is identified as class full addressing. Depending on the type of the network to be created, have to select a suitable address scheme.
E.g.: Class A=> For few networks , each with many hosts.
Class C=> For many networks, each with few hosts.
Mostly, within a considered LAN environment network identifier of the IP address remains same, where as host part is varying.
One of the big disadvantages caused by class full addressing is wastage of IP addresses. So, engineers moved into the new approach of class less addressing. Unlike in the class full addressing, here, size of the network identifier is variable. In this approach, the concept of subnet masking is used to determine the size of the network identifier.
Example for an ordinary IP address is 207.115.10.64
Ports
Ports are represented by 16-bit numbers. Hence ports range from 0-65,525. The port numbers from 0 -1023 are restricted, because they are reserved for the use of well known protocol services such as HTTP and FTP.
In a network, the end point, which two hosts communicate with each other are identified as ports. Most of the ports are assigned with an allocated task. These ports are identified by the port number as discussed earlier.
So the functional behavior of the IP address and the port is as follows. Before sending the data packet from the source machine, source and destination IP addresses along with the respective port numbers are fed to the datagram. With the help of the IP address, datagram tracks the destination machine and reaches it. After the packet is unveiled,  with the help of the port numbers OS is directing the data to the correct application. If the port number is misplaced, OS is unaware which data to be sent to which application.
So as a summary, IP address does the big task of directing the data to the intended destination, whereas port numbers determine which application to be fed with the data received. Eventually with the respective port number, allocated application admits the data through the reserved port