Document Details

SpeedyTrumpet

Uploaded by SpeedyTrumpet

Tags

computer networking network protocols osi model computer science

Summary

This document provides a comprehensive overview of computer networking basics, exploring concepts such as network types, components, protocols, and essential services. It details network topologies, the OSI model, and common network protocols.

Full Transcript

# Basics of Computer Networking Computer networking is a cornerstone of modern technology, enabling the interconnected systems that power the internet, business communications, and everyday digital interactions. Understanding the fundamentals of computer networking is essential for anyone involved...

# Basics of Computer Networking Computer networking is a cornerstone of modern technology, enabling the interconnected systems that power the internet, business communications, and everyday digital interactions. Understanding the fundamentals of computer networking is essential for anyone involved in technology, from enthusiasts to professionals. This article will explore the basics of computer networking, including network types, components, protocols, and essential services like the Domain Name System (DNS). ## What is a Computer Network? A computer network is a collection of interconnected devices that share resources and information. These devices can include computers, servers, printers, and other hardware. Networks allow for the efficient exchange of data, enabling various applications such as email, file sharing, and internet browsing. ## How Does a Computer Network Work? Basics building blocks of a computer network are nodes and links. A network node can be illustrated as equipment for data communication like a modem, router, etc., or equipment of a data terminal like connecting two computers or more. Link in computer networks can be defined as wires or cables or free space of wireless networks. The working of computer networks can be simply defined as rules or protocols which help in sending and receiving data via the links which allow computer networks to communicate. Each device has an IP address, that helps in identifying a device. ## Basic Terminologies of Computer Networks * **Network:** A network is a collection of computers and devices that are connected together to enable communication and data exchange. * **Nodes:** Nodes are devices that are connected to a network. These can include computers, servers, printers, routers, switches, and other devices. * **Protocol:** A protocol is a set of rules and standards that govern how data is transmitted over a network. Examples of protocols include TCP/IP, HTTP, and FTP. * **Topology:** Network topology refers to the physical and logical arrangement of nodes on a network. The common network topologies include bus, star, ring, mesh, and tree. * **Service Provider Networks:** These types of networks give permission to take network capacity and functionality on lease from the provider. Service provider networks include wireless communications, data carriers, etc. * **IP Address:** An IP address is a unique numerical identifier that is assigned to every device on a network. IP addresses are used to identify devices and enable communication between them. * **DNS:** The Domain Name System (DNS) is a protocol that is used to translate human-readable domain names (such as www.google.com) into IP addresses that computers can understand. * **Firewall:** A firewall is a security device that is used to monitor and control incoming and outgoing network traffic. Firewalls are used to protect networks from unauthorized access and other security threats. ## Types of Enterprise Computer Networks * **LAN:** A Local Area Network (LAN) is a network that covers a small area, such as an office or a home. LANs are typically used to connect computers and other devices within a building or a campus. * **WAN:** A Wide Area Network (WAN) is a network that covers a large geographic area, such as a city, country, or even the entire world. WANs are used to connect LANs together and are typically used for long-distance communication. * **Cloud Networks:** Cloud networks can be visualized with a wide area network (WAN) as they can be hosted on public or private cloud service providers and cloud networks are available if there is a demand. Cloud networks consist of virtual routers, firewalls, etc.. These are just a few basic concepts of computer networking. Networking is a vast and complex field, and there are many more concepts and technologies involved in building and maintaining networks. Now we are going to discuss some more concepts on computer networking. ## Open system A system that is connected to the network and is ready for communication. ## Close system A system that is not connected to the network and can't be communicated with. ## Types of Computer Network Architecture Computer network falls under these broad categories: * **Client-Server Architecture:** Client-Server Architecture is a type of Computer Network Architecture in which nodes can be servers or clients. Here, the server node can manage the client node behavior. * **Peer-to-Peer Architecture:** In P2P (Peer-to-Peer) Architecture, there is not any concept of a Central Server. Each device is free for working as either client or server. ## Network Devices An interconnection of multiple devices, also known as hosts, that are connected using multiple paths for the purpose of sending/receiving data or media. Computer networks can also include multiple devices/mediums which help in the communication between two different devices; these are known as network devices and include things such as routers, switches, hubs, and bridges. ## Network Topology The network topology is the layout arrangement of the different devices in a network. Common examples include bus, star, mesh, ring, and daisy chain. ## OSI Model OSI stands for Open Systems Interconnection. It is a reference model that specifies standards for communications protocols and also the functionalities of each layer. The OSI has been developed by the International Organization For Standardization and it is 7 layer architecture. Each layer of OSI has different functions and each layer has to follow different protocols. The 7 layers are as follows: * **Physical Layer** * **Data link Layer** * **Network Layer** * **Transport Layer** * **Session Layer** * **Presentation Layer** * **Application Layer** ## Network Protocols A protocol is a set of rules or algorithms which define the way how two entities can communicate across the network and there exists a different protocol defined at each layer of the OSI model. A few such protocols are TCP, IP, UDP, ARP, DHCP, FTP, and so on. ## Transmission Control Protocol / Internet Protocol (TCP / IP) * **Function:** The foundational protocol suite of the internet, enabling reliable communication. * **Components:** * **TCP:** Ensures data is delivered reliably and in order. * **IP:** Routes data packets to their destination based on IP addresses. ## Hypertext Transfer Protocol (HTTP) and HTTPS * **Function:** The protocols used for transmitting web pages. * **HTTP:** Unsecured communication. * **HTTPS:** Secured communication using SSL/TLS encryption. ## Simple Mail Transfer Protocol (SMTP) * **Function:** Protocol for sending email. * **Components:** Works with other protocols like POP3 and IMAP for email retrieval. ## File Transfer Protocol (FTP) * **Function:** Protocol for transferring files between computers. * **Components:** Includes commands for uploading, downloading, and managing files on a remote server. ## Dynamic Host Configuration Protocol (DHCP) * **Function:** Automatically assigns IP addresses to devices on a network. * **Components:** Reduces manual configuration and IP address conflicts. ## Domain Name System (DNS) * **Function:** Translates human-friendly domain names into IP addresses. * **Components:** Ensures seamless navigation on the internet. ## Unique Identifiers of Network * **Hostname:** Each device in the network is associated with a unique device name known as Hostname. Type "hostname" in the command prompt (Administrator Mode) and press 'Enter', this displays the hostname of your machine. * **IP Address:** (Internet Protocol address): Also known as the Logical Address, the IP Address is the network address of the system across the network. To identify each device in the world-wide-web, the Internet Assigned Numbers Authority (IANA) assigns an IPV4 (Version 4) address as a unique identifier to each device on the internet. The length of an IPv4 address is 32 bits, hence, we have 232 IP addresses available. The length of an IPv6 address is 128 bits. In Windows Type "ipconfig" in the command prompt and press 'Enter', this gives us the IP address of the device. For Linux, Type "ifconfig" in the terminal and press 'Enter' this gives us the IP address of the device. * **MAC Address:** (Media Access Control address): Also known as physical address, the MAC Address is the unique identifier of each host and is associated with its NIC (Network Interface Card). A MAC address is assigned to the NIC at the time of manufacturing. The length of the MAC address is: 12-nibble/ 6 bytes/ 48 bits Type "ipconfig/all" in the command prompt and press 'Enter', this gives us the MAC address. * **Port:** A port can be referred to as a logical channel through which data can be sent/received to an application. Any host may have multiple applications running, and each of these applications is identified using the port number on which they are running. A port number is a 16-bit integer, hence, we have 2^1^6^ ports available which are categorized as shown below: * **Port Types:** * **Well known Ports:** 0 - 1023 * **Registered Ports:** 1024 - 49151 * **Ephemeral Ports:** 49152 - 65535 * **Number of ports:** 65,536 * **Range:** 0 - 65535 Type "netstat -a" in the command prompt and press 'Enter', this lists all the ports being used. * **Socket:** The unique combination of IP address and port number together is termed a Socket. ## Other Related Concepts * **DNS Server:** DNS stands for Domain Name System. DNS is basically a server that translates web addresses or URLs (ex: www.google.com) into their corresponding IP addresses. We don't have to remember all the IP addresses of each and every website. The command 'nslookup' gives you the IP address of the domain you are looking for. This also provides information on our DNS Server. * **ARP:** ARP stands for Address Resolution Protocol. It is used to convert an IP address to its corresponding physical address(i.e., MAC Address). ARP is used by the Data Link Layer to identify the MAC address of the receiver's machine. * **RARP:** RARP stands for Reverse Address Resolution Protocol. As the name suggests, it provides the IP address of the device given a physical address as input. But RARP has become obsolete since the time DHCP has come into the picture. * **The Domain Name System (DNS) is a critical component of computer networking. It converts easily recognizable domain names, such as www.example.com, into numerical IP addresses that computers use to identify each other on the network.** ## How DNS Works? * **User Input:** When a user enters a domain name in a browser, the system needs to find its IP address. * **DNS Query:** The user's device sends a DNS query to the DNS resolver. * **Resolver Request:** The DNS resolver checks its cache for the IP address. If not found, it forwards the request to the root DNS server.

Use Quizgecko on...
Browser
Browser