Docsity

Networking notes a level, Summaries of Computer science

Toggle sidebar
bg1
Networking
Networking in computer science refers to the practice of connecting
computers and other devices to share resources and information. It
encompasses a wide range of technologies, protocols, and architectures that
enable communication between devices over various types of networks.
Here are some key concepts and components related to networking:
▎1. Types of Networks
• Local Area Network (LAN): A network that connects computers within a
limited area, such as a home, school, or office building.
• Wide Area Network (WAN): A network that covers a broad area, often
connecting multiple LANs. The Internet is the largest WAN.
• Metropolitan Area Network (MAN): A network that spans a city or a large
campus.
• Personal Area Network (PAN): A small network, typically within a range of
a few meters, used for connecting personal devices.
▎2. Networking Protocols
Protocols are standardized rules that define how data is transmitted across
networks. Some important protocols include:
• Transmission Control Protocol (TCP): Ensures reliable communication by
establishing a connection and ensuring data integrity.
• Internet Protocol (IP): Responsible for addressing and routing packets of
data across networks.
• User Datagram Protocol (UDP): A simpler, connectionless protocol used
for applications where speed is critical and reliability can be compromised
(e.g., streaming).
• Hypertext Transfer Protocol (HTTP/HTTPS): Used for transferring web
pages over the Internet.
▎3. Network Topologies
The arrangement of different elements (links, nodes) in a computer network
is called topology. Common topologies include:
• Star Topology: All nodes are connected to a central hub or switch.
• Bus Topology: All devices share a single communication line.
• Ring Topology: Each device is connected to two other devices, forming a
circular pathway for signals.
• Mesh Topology: Every device is interconnected, providing multiple
pathways for data.
▎4. Network Devices
• Router: Connects different networks and directs data packets between
them.
• Switch: Connects devices within the same network and uses MAC
addresses to forward data to the correct destination.
• Hub: A basic networking device that connects multiple Ethernet devices,
making them act as a single network segment.
• Access Point: Allows wireless devices to connect to a wired network using
Wi-Fi.
pf3
pf4
pf5
pf8
pf9
pfa
pfd

Partial preview of the text

Download Networking notes a level and more Summaries Computer science in PDF only on Docsity!

Networking Networking in computer science refers to the practice of connecting computers and other devices to share resources and information. It encompasses a wide range of technologies, protocols, and architectures that enable communication between devices over various types of networks. Here are some key concepts and components related to networking: ▎1. Types of Networks

  • Local Area Network (LAN): A network that connects computers within a limited area, such as a home, school, or office building.
  • Wide Area Network (WAN): A network that covers a broad area, often connecting multiple LANs. The Internet is the largest WAN.
  • Metropolitan Area Network (MAN): A network that spans a city or a large campus.
  • Personal Area Network (PAN): A small network, typically within a range of a few meters, used for connecting personal devices. ▎2. Networking Protocols Protocols are standardized rules that define how data is transmitted across networks. Some important protocols include:
  • Transmission Control Protocol (TCP): Ensures reliable communication by establishing a connection and ensuring data integrity.
  • Internet Protocol (IP): Responsible for addressing and routing packets of data across networks.
  • User Datagram Protocol (UDP): A simpler, connectionless protocol used for applications where speed is critical and reliability can be compromised (e.g., streaming).
  • Hypertext Transfer Protocol (HTTP/HTTPS): Used for transferring web pages over the Internet. ▎3. Network Topologies The arrangement of different elements (links, nodes) in a computer network is called topology. Common topologies include:
  • Star Topology: All nodes are connected to a central hub or switch.
  • Bus Topology: All devices share a single communication line.
  • Ring Topology: Each device is connected to two other devices, forming a circular pathway for signals.
  • Mesh Topology: Every device is interconnected, providing multiple pathways for data. ▎4. Network Devices
  • Router: Connects different networks and directs data packets between them.
  • Switch: Connects devices within the same network and uses MAC addresses to forward data to the correct destination.
  • Hub: A basic networking device that connects multiple Ethernet devices, making them act as a single network segment.
  • Access Point: Allows wireless devices to connect to a wired network using Wi-Fi.

▎5. IP Addressing Every device on a network requires a unique identifier called an IP address. There are two main versions:

  • IPv4: Uses 32-bit addresses, allowing for about 4.3 billion unique addresses.
  • IPv6: Uses 128-bit addresses, allowing for a vastly larger number of unique addresses to accommodate the growing number of devices. ▎6. Network Security Security measures are crucial to protect data transmitted over networks. Key concepts include:
  • Firewalls: Systems that monitor and control incoming and outgoing network traffic based on security rules.
  • Encryption: The process of encoding data to prevent unauthorized access.
  • Virtual Private Network (VPN): A secure connection over the Internet that encrypts data and masks the user's IP address. ▎7. Wireless Networking Wireless networking allows devices to connect without physical cables. Key technologies include:
  • Wi-Fi: A popular technology that allows devices to connect to a local area network wirelessly.
  • Bluetooth: A short-range wireless technology used for connecting personal devices. ▎8. Network Management Managing a network involves monitoring performance, troubleshooting issues, and ensuring security. Tools and practices include:
  • Network Monitoring Tools: Software that tracks network performance and alerts administrators to issues.
  • Configuration Management: Keeping track of network device configurations to ensure consistency and compliance. ▎Conclusion Networking is fundamental to modern computing, enabling communication and resource sharing across diverse environments. Understanding networking principles is essential for anyone pursuing a career in computer science or information technology. The OSI (Open Systems Interconnection) model The OSI (Open Systems Interconnection) model is a conceptual framework used to understand and implement network communications between different systems. It divides the networking process into seven distinct layers, each with specific functions and protocols. The OSI model helps standardize interactions and allows for interoperability between diverse networking systems.
  • Function: Provides reliable or unreliable delivery of data segments between systems. It ensures complete data transfer and manages error recovery and flow control.
  • Protocols: ▪ TCP (Transmission Control Protocol): Provides reliable, connection- oriented communication. ▪ UDP (User Datagram Protocol): Offers connectionless communication without guaranteed delivery. 5. Session Layer (Layer 5)
  • Function: Manages sessions or connections between applications. It establishes, maintains, and terminates communication sessions.
  • Features: Session establishment, maintenance, and termination; synchronization; dialog control.
  • Protocols/Standards: NetBIOS, RPC (Remote Procedure Call). 6. Presentation Layer (Layer 6)
  • Function: Translates data between the application layer and the network. It is responsible for data formatting, encryption, and compression.
  • Features: Data translation, encryption/decryption, and compression/decompression.
  • Protocols/Standards: JPEG, GIF, ASCII, EBCDIC. 7. Application Layer (Layer 7)
  • Function: Closest to the end user, it provides network services directly to applications. It enables users to interact with the network through software applications.
  • Components: Web browsers, email clients, file transfer programs.
  • Protocols/Standards: HTTP/HTTPS, FTP, SMTP, SNMP. ▎Importance of the OSI Model
  • Standardization: The OSI model provides a universal language for understanding network interactions, facilitating communication between different vendors and technologies.
  • Troubleshooting: By breaking down networking processes into layers, it helps identify where issues may arise in the communication process.
  • Interoperability: The model promotes compatibility between various networking products and protocols. Advantages of the OSI Model Here, are major benefits/pros of using the OSI model :

 It helps you to standardize router, switch, motherboard, and other hardware  Reduces complexity and standardizes interfaces  Facilitates modular engineering  Helps you to ensure interoperable technology  Helps you to accelerate the evolution  Protocols can be replaced by new protocols when technology changes.  Provide support for connection-oriented services as well as connectionless service.  It is a standard model in computer networking.  Supports connectionless and connection-oriented services.  Offers flexibility to adapt to various types of protocols Disadvantages of the OSI Model Here are some cons/ drawbacks of using OSI Model:  Fitting of protocols is a tedious task.  You can only use it as a reference model.  Doesn’t define any specific protocol.  In the OSI network layer model, some services are duplicated in many layers such as the transport and data link layers  Layers can’t work in parallel as each layer need to wait to obtain data from the previous layer.

▪ DNS (Domain Name System) ▪ SNMP (Simple Network Management Protocol) 2. Transport Layer

  • Function: Responsible for end-to-end communication, flow control, and error recovery. It ensures that data is transmitted reliably or unreliably, depending on the protocol used.
  • Protocols: ▪ TCP (Transmission Control Protocol): Provides reliable, connection- oriented communication with error recovery and flow control. ▪ UDP (User Datagram Protocol): Offers connectionless communication without guarantees of delivery, suitable for real-time applications like video streaming. 3. Internet Layer
  • Function: Manages the routing of packets across multiple networks. It handles logical addressing and determines the best path for data transmission.
  • Protocols: ▪ IP (Internet Protocol): Responsible for addressing and routing packets. It has two main versions: › IPv4 (Internet Protocol version 4) › IPv6 (Internet Protocol version 6) ▪ ICMP (Internet Control Message Protocol): Used for error messages and operational information. ▪ ARP (Address Resolution Protocol): Resolves IP addresses to MAC addresses. 4. Link Layer (Network Interface Layer)
  • Function: Handles the physical transmission of data over a specific medium. It includes protocols that manage how data is physically sent through the network.
  • Components: Network interface cards, switches, and cabling.
  • Protocols/Standards: Ethernet, Wi-Fi (IEEE 802.11), PPP (Point-to-Point Protocol), and others. Advantages of the TCP/IP model Here, are pros/benefits of using the TCP/IP model:  It helps you to establish/set up a connection between different types of computers.  It operates independently of the operating system.  It supports many routing-protocols.  It enables the internetworking between the organizations.  TCP/IP model has a highly scalable client-server architecture.  It can be operated independently.

 Supports a number of routing protocols.  It can be used to establish a connection between two computers. Disadvantages of the TCP/IP model Here, are few drawbacks of using the TCP/IP model:  TCP/IP is a complicated model to set up and manage.  The shallow/overhead of TCP/IP is higher-than IPX (Internetwork Packet Exchange).  In this, model the transport layer does not guarantee delivery of packets.  Replacing protocol in TCP/IP is not easy.  It has no clear separation from its services, interfaces, and protocols. ▎ Key Differences Between TCP/IP and OSI Models

  • Number of Layers: The TCP/IP model has four layers, while the OSI model has seven layers.
  • Layer Functions: Some layers in the OSI model are combined in the TCP/IP model. For example, the Application layer in TCP/IP encompasses functionalities of both the Session and Presentation layers in OSI.
  1. Layer Functions
    • OSI Model: Each layer has distinct functions, and the model is more granular, allowing for clear separation of responsibilities.
    • TCP/IP Model: Combines certain layers; for example, the Application layer encompasses the functions of the OSI’s Application, Presentation, and Session layers. ▎Development and Purpose
  2. Development
    • OSI Model: Developed by the International Organization for Standardization (ISO) as a theoretical framework to standardize networking protocols and promote interoperability.
    • TCP/IP Model: Developed by the U.S. Department of Defense based on practical implementations and real-world protocols, specifically for the ARPANET and later the internet.
  3. Purpose
    • OSI Model: Aimed at providing a comprehensive framework for understanding and designing network protocols, emphasizing a structured approach.
    • TCP/IP Model: Focused on enabling effective communication over the internet, prioritizing practical application and real-world usability. ▎Protocols
  4. Protocol Specification
    • OSI Model: Does not specify any particular protocols; instead, it provides a conceptual framework that can be implemented with various protocols.
    • TCP/IP Model: Defines specific protocols for each layer, such as: ▪ Application Layer: HTTP, FTP, SMTP ▪ Transport Layer: TCP, UDP ▪ Internet Layer: IP, ICMP ▪ Link Layer: Ethernet, Wi-Fi ▎Communication Process
  5. Communication Approach
    • OSI Model: Follows a more theoretical approach with a focus on the interactions between layers through well-defined interfaces.
    • TCP/IP Model: More pragmatic, emphasizing end-to-end communication and how data is transmitted across networks. ▎Real-World Usage
  1. Adoption
    • OSI Model: More commonly used as a reference tool for understanding networking concepts rather than in actual implementations.
    • TCP/IP Model: The foundation of the internet and widely used in real- world applications; most modern networking relies on TCP/IP protocols. ▎Summary of Key Differences | Feature | OSI Model | TCP/IP Model | |-------------------------|----------------------------------|---------------------------------| | Layers | 7 Layers | 4 Layers | | Development | Theoretical framework | Practical implementation | | Protocol Specification | No specific protocols defined | Specific protocols defined | | Communication Approach | Structured, theoretical | Pragmatic, real-world focus | | Adoption | Reference tool | Foundation of the internet | ▎Conclusion Both the OSI and TCP/IP models are essential for understanding network communications. The OSI model provides a detailed theoretical framework, while the TCP/IP model offers a more practical approach that has been successfully implemented in real-world networking scenarios. Understanding both models enhances comprehension of network design, implementation, and troubleshooting. The OSI (Open Systems Interconnection) model and the TCP/IP (Transmission Control Protocol/Internet Protocol) model are both frameworks used to understand and implement networking protocols. Here’s a concise comparison highlighting their key differences: ▎1. Number of Layers
  • OSI Model: Consists of seven layers:
    1. Application
    2. Presentation
    3. Session
    4. Transport
    5. Network
    6. Data Link
    7. Physical
  • TCP/IP Model: Consists of four layers:
  • OSI Model: Primarily used as a reference tool for understanding networking concepts rather than in actual implementations.
  • TCP/IP Model: The foundation of the internet and widely used in real- world applications; most modern networking relies on TCP/IP protocols. ▎Summary Table | Feature | OSI Model | TCP/IP Model | |-------------------------|----------------------------------|---------------------------------| | Layers | 7 Layers | 4 Layers | | Development | Theoretical framework | Practical implementation | | Layer Functions | Distinct and modular | Combined functionalities | | Protocol Specification | No specific protocols defined | Specific protocols defined | | Communication Approach | Structured and theoretical | Pragmatic and practical | | Real-World Usage | Reference tool | Foundation of the internet | ▎Conclusion Both models are essential for understanding network communications, with the OSI model providing a comprehensive theoretical framework and the TCP/IP model offering practical guidelines that have been successfully implemented in modern networking. Understanding both enhances comprehension of network design and troubleshooting.