Posts

Showing posts with the label networking

TCP vs UDP

Image
✅ TCP is Connection Oriented while UDP is connection less. ✅ Udp small header size.(8 bytes) where in TCP is 20 bytes. So udp is faster. ✅ Both has Error detection . ✅ Udp has No Error recovery. so in most cases of UDP, the packet is just discarded . While TCP has a error recovery mechanism. ✅ Packets may arrive or out of order in UDP. ✅ No congestion control in UDP. Congestion control is handled in TCP when ever network is congested the the transmission is delayed. ✅ No acks or retransmissions in UDP ✅ Flow control in TCP not present in UDP flow control means if reciver is slow the transmitter must act accordingly. ⭐In conclusion UDP may be light weight but it is not reliable. TCP and UDP are Used in: SMTP -TCP(sending mail) IMAP/POP -TCP(reciveing mail) FTP -TCP SSH(secure shell) -TCP HTTP -TCP Telnet...

BOOTP and DHCP

Image
BOOTP: BOOTP     -  Bootstrap protocol DHCP       -  Dynamic Host Configuration Protocol. ⇒Both of these protocols are used for assigning IP Address to clients who wants to connect to Network. ⇒ Four pieces of information needed by computers in  order to communicate. ↳ Ip Adress of Computer. ↳ Subnet Mask of Computer. ↳ Ip address of Router. ↳ Ip address of Name Server. ⇒All four info is not available for manufacturer. ROM cannot store these information ⇒ BOOTP is client/server protocol (Application layer program) designed to provide the four pieces of information for a computer that is booted for first time. ⇒ The Bootstrap Protocol (BOOTP) is a client/server protocol that configures a diskless computer or a computer that is booted for the first time . BOOTP provides the IP address, net mask, the address of a default router, and the address of a name server ⇒BOOTP is a static configuration protocol. When client reque...

How DNS Works?

Image
DNS- (domain name service ): The Internet's system for converting alphabetic names into numeric IP addresses. For example, when a Web address (URL) is typed into a browser,  DNS servers return the IP address of the Web server associated with that name. ->DNS uses UDP.-(Because as DNS need to be fast TCP is not prefered as TCP has a large                               overhead). ->DNS servers bind to UDP port no 53. HOW IT WORKS ❓❓❓❓ Terms you should know: Resolving Name Server. Root Server TLD Server. Authoritati ve Name Server.