In: Electrical Engineering
1a) In your own words, what is the difference between Transport Control Protocol (TCP) and User Datagram Protocol (UDP)? Also give some examples of services that use TCP and UDP.
b) PC1 is assigned the IP address 192.168.13.8 with a subnet mask of 255.255.255.224. PC1 sends a packet to PC2 which has an IP address of 192.168.13.65. Is PC1 (192.168.13.8) and PC2 (192.168.13.65) in the same subnet based on the subnet mask of PC1 (255.255.255.224)?
1 a) Difference between Transport Control Protocol (TCP) and User Datagram Protocol (UDP)
The TCP/IP is the Transmission Control Protocol/Internet Protocol which is a convention suite for interfacing with gadgets on the Internet. Therefore the convention is utilized by any systems administration gadgets that need to interconnect another PC and the convention can likewise be utilized as a correspondence convention in the system. TCP/IP confirms that how the data is traded over the Internet and how can it give the conclusion to-end interchanges by breaking transmission into bundles, and tended to, at that point transmitted and directed and got at the goal. TCP/IP makes systems solid and accordingly we can recoup messages and bundles that we have lost in the transmission.
Messages are transmitted as parcels in the TCP/IP convention by breaking a message into a few bundles, and after that they are re-collected at the goal. The IP address is an interesting location in the TCP/IP convention which particularly characterizes every PC or systems administration gadget in the system, consequently IP will characterize how to address and course the parcel to the goal, in this way the message is sent to the goal IP address as it were. TCP/IP is hence a customer server model of correspondence where a customer is served by a server on the system. TCP/IP is additionally a stateless convention which implies every customer ask for is viewed as new and irrelevant to the old solicitations.
UDP is User Datagram Protocol where it empowers the procedure to-process correspondence. UDP is a connectionless convention though TCP is an association arranged convention. TCP takes into consideration the host-to-have correspondence and is in this manner solid than UDP. UDP sends messages, called datagrams though in TCP it sends messages as parcels. TCP permits stream and blunder control however UDP doesn't have any such. UDP can send bundles with significantly lesser data transmission overhead and dormancy. Along these lines with UDP parcels may take distinctive ways among sender and collector and in this manner can be lost or be gotten out of request.
UDP is primarily utilized in applications and interchanges in systems administration where inertness is basic, for example, in gaming, VoIP calls, video correspondences, and so forth. These administrations utilizing UDP can stand to endure a few information misfortune without influencing quality. TCP applications are, for example, SMTP for sending letters, IMAP/POP to get mail, SSH, FTP, telnet, and so forth where dependable host-to-have conveyance of messages is required and arrange is extremely fundamental.
1 b) Given That
PC1 is assigned the IP address 192.168.13.8 subnet mask of 255.255.255.224
PC2 which has an IP address of 192.168.13.65.
Network Subnet ID for PC1
= 192.168.13.8 and 255.255.255.224
= 192.168.13.0
192.168.13.0 is the PC1 network ID
Now the ID of PC2 is 192.168.13.65
First 3 bits of last octal are 001
whereas first 3 bits of last octal in PC1 network is 000
Therefore the PC1 and PC2 both belongs to different subnet ID's