Академический Документы
Профессиональный Документы
Культура Документы
Roll # 032
Assignment:
Characteristics
Connection oriented: An application requests a “connection” to
destination and uses connection to transfer data
Stream Data transfer: It is the duty of TCP to pack this byte stream to
packets, known as TCP segments, which are passed to the IP layer for
transmission to the destination device.
Reliable: It recovers data from Network layer if data is damaged,
duplicated or corrupted.
Point to Point: TCP connection provides end to end delivery.
Interoperability: It eliminates the cross-platform boundaries.
Error and flow control: error-checking, flow-control, and
acknowledgement functions.
Name resolution: It helps in solving human readable name into IP
address.
Routability : TCP/IP is a routable protocol,
It helps in resolving logical address.
Full Duplex: It provides connection in both the directions
2. User Datagram Protocol (UDP) – On the other hand does not provide
any such features. It is the go-to protocol if your application does not
require reliable transport as it is very cost-effective. Unlike TCP, which is
connection-oriented protocol, UDP is connectionless.
3. UDP header
UDP header is 8-bytes fixed and simple header, while for TCP it may
vary from 20 bytes to 60 bytes. First 8 Bytes contains all necessary
header information and remaining part consist of data. UDP port number
fields are each 16 bits long, therefore range for port numbers defined
from 0 to 65535; port number 0 is reserved. Port numbers help to
distinguish different user requests or process.
Source Port: Source Port is 2 Byte long field used to identify port
number of source.
Destination Port: It is 2 Byte long field, used to identify the port of
destined packet.
Length: Length is the length of UDP including header and the data. It is
16-bits field.
Checksum: Checksum is 2 Bytes long field. It is the 16-bit one’s
complement of the one’s complement sum of the UDP header, pseudo
header of information from the IP header and the data, padded with zero
octets at the end (if necessary) to make a multiple of two octets.
1: UDP is the Datagram oriented protocol. This is because there is no
overhead for opening a connection, maintaining a connection, and
terminating a connection. UDP is efficient for broadcast and multicast
type of network transmission.
2: The delivery of data to the destination cannot be guaranteed in UDP.
3: UDP has only the basic error checking mechanism using checksums.
4: There is no sequencing of data in UDP. If ordering is required, it has to
be managed by the application layer.
5: UDP is faster, simpler and more efficient than TCP.
6: There is no retransmission of lost packets in User Datagram Protocol
(UDP).
7: UDP Header size is 8 bytes.
8: UDP is lightweight.
9: UDP is used by DNS, DHCP, TFTP, SNMP, RIP, and VoIP.
Q2: What is the difference between groups shared tree and source based tree
in context of multicast routings?
Answer:
Source-based tree: A non-shared multicast distribution tree
(forwarding/replication state on intermediate routers) is built for every
SOURCE, GROUP pair. Source-based tree is unidirectional.
Shared tree: A per-group multicast distribution tree is built on routers, shared
by all group's senders and receivers. The shared tree might be bidirectional.
Differences between the Group-shared tree and Source-based tree:
Group-shared tree is a multicast group includes all the edge routers and
hosts.
Group-shared tree shares a single tree for all the hosts and initiate the
multicast join.
Source based tree is maintain all these trees to a multicast group. It
contains multiple individual trees.
Source based tree is used multicast packets without hosts.