[Notes] Computer Network - Overwiew

news/2024/10/5 1:51:32 标签: 计算机网络

What is the Internet?

The Internet is a global network of interconnected computers that communicate using standard protocols (rules). It’s not a single entity but a network of networks that allows millions of devices worldwide to exchange data.

In simpler terms, the Internet is like a huge web connecting different smaller networks, allowing information to flow from one part of the world to another.


Layers of the Internet Structure

The Internet is organized into several layers, each with specific responsibilities. These layers form the Internet protocol stack (also called the TCP/IP model), which enables data transmission.

Here’s a simplified view of these layers:

  1. Physical Layer: The actual hardware that carries data (e.g., cables, fiber optics, Wi-Fi).
  2. Link Layer: Manages communication between directly connected devices. Examples: Ethernet, Wi-Fi.
  3. Network Layer: Routes data from the source to the destination across multiple networks. The most common protocol used here is the Internet Protocol (IP).
  4. Transport Layer: Ensures reliable data transfer between two systems. Common protocols: Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).
  5. Application Layer: Consists of the applications and protocols that users interact with, like HTTP (for web browsing), FTP (for file transfer), and SMTP (for email).

Key Components of the Internet

The Internet is made up of several key components that allow it to function efficiently:

1. End Systems (Hosts)

These are the devices at the “edges” of the network, like your computer, smartphone, or tablet. They can be classified into:

  • Clients: Devices that request services (e.g., web browsers).
  • Servers: Devices that provide services (e.g., web servers, file servers).
2. Routers

Routers are devices that forward data between networks. They make sure data gets from its source to its destination by choosing the best path across the Internet, even if multiple networks are involved.

3. Communication Links

These are the physical and wireless connections that carry data between devices. Links can be:

  • Wired Links: Ethernet cables, fiber optics.
  • Wireless Links: Wi-Fi, LTE, 5G.
4. Internet Service Providers (ISPs)

ISPs provide access to the Internet for end systems. They can be categorized into three tiers:

  • Tier 1 ISPs: Large global networks that connect to each other and provide access to the whole Internet without paying anyone else. They form the backbone of the Internet.
  • Tier 2 ISPs: Regional networks that connect to Tier 1 ISPs.
  • Tier 3 ISPs: Local ISPs that provide Internet access to homes, businesses, and smaller regions.
5. Protocols

Protocols are sets of rules that define how data is transferred over the Internet. Some of the most important protocols are:

  • IP (Internet Protocol): Defines how data is broken into packets and routed across networks.
  • TCP (Transmission Control Protocol): Ensures reliable transmission of data.
  • UDP (User Datagram Protocol): Provides faster, but less reliable, data transmission.
  • DNS (Domain Name System): Translates human-readable domain names (like google.com) into IP addresses.

How Data Travels on the Internet

When you send data (like loading a webpage), this is how it travels through the Internet:

  1. Your Device (End System): You enter a URL in your browser. Your computer sends a request for the webpage to the web server.

  2. DNS Lookup: Your computer doesn’t know where google.com is, so it uses the Domain Name System (DNS) to find the IP address of the server hosting the webpage.

  3. Transport Layer: The data is broken into smaller pieces called packets. The TCP protocol ensures all packets are sent in the right order and none are lost.

  4. Network Layer: Each packet is given an IP address to specify its source and destination. Routers forward these packets across different networks.

  5. Link Layer: The physical communication links (wired or wireless) carry the packets between routers and devices.

  6. Web Server: The packets reach the web server, and the server sends the requested webpage back to your computer in the same way.


A Real-World Example

Let’s consider what happens when you access www.google.com:

  1. Request: Your browser sends a request to the DNS server to get the IP address of www.google.com.
  2. Routing: Once the IP address is found, your request is broken into packets and sent via routers through various networks until it reaches Google’s web server.
  3. Response: Google’s server processes the request and sends the webpage back in the form of packets.
  4. Reassembly: Your browser reassembles the packets to display the webpage you requested.

The Role of IP Addresses and Domain Names

  • IP Address: Every device on the Internet has a unique IP address (e.g., 192.168.0.1), much like a postal address for sending data.
  • Domain Name: Since IP addresses are hard to memorize, human-readable domain names (e.g., www.google.com) are used. The DNS translates these domain names into IP addresses.

Internet Architecture Summary

  • End Systems (clients and servers) communicate with each other using routers to forward data.
  • ISPs connect different networks together, forming the backbone of the Internet.
  • Protocols like IP, TCP, UDP, and DNS ensure data is transmitted correctly and efficiently.
  • Data is broken into packets, routed through multiple networks, and reassembled at the destination.

http://www.niftyadmin.cn/n/5690572.html

相关文章

动态规划最长上升子序列问题讲解和【题解】——最长上升子序列

动态规划最长上升子序列讲解和题解——最长上升子序列 最长上升子序列问题讲解1.概念解析2.举例了解3.示例程序 最长上升子序列题目描述输入格式输出格式输入输出样例输入 #1输出 #1 提示思路解析 最长上升子序列问题讲解 1.概念解析 最长上升子序列 ( L o n g e s…

C++ 多态:重塑编程效率与灵活性

目录 多态的概念 多态的定义及实现 多态的构成条件 虚函数 虚函数的重写 虚函数重写的两个例外: 1. 协变(基类与派生类虚函数返回值类型不同) 2. 析构函数的重写(基类与派生类析构函数的名字不同) 析构函数要不要定义成虚函数?&…

Java--IO基本流

IO流 概述 生活中,你肯定经历过这样的场景。当你编辑一个文本文件,忘记了ctrls ,可能文件就白白编辑了。当你电脑上插入一个U盘,可以把一个视频,拷贝到你的电脑硬盘里。那么数据都是在哪些设备上的呢?键盘…

第二十一章 (动态内存管理)

1. 为什么要有动态内存分配 2. malloc和free 3. calloc和realloc 4. 常⻅的动态内存的错误 5. 动态内存经典笔试题分析 6. 总结C/C中程序内存区域划分 1.为什么要有动态内存管理 我们目前已经掌握的内存开辟方式有 int main() {int num 0; //开辟4个字节int arr[10] …

基于vue框架的大学生四六级学习网站设计与实现i8o8z(程序+源码+数据库+调试部署+开发环境)系统界面在最后面。

系统程序文件列表 项目功能:学生,训练听力,学习单词,单词分类,阅读文章,文章类型,学习课程 开题报告内容 基于Vue框架的大学生四六级学习网站设计与实现开题报告 一、研究背景与意义 随着全球化进程的加速和国际交流的日益频繁,英语作为国际通用语言…

rabbitmq消费者应答模式

1.应答模式 RabbitMQ 中的消息应答模式主要包括两种:自动应答(Automatic Acknowledgement)和手动应答(Manual Acknowledgement)。 自动应答: 不在乎消费者对消息处理是否成功,都会告诉队列删…

简单易懂的springboot整合Camunda 7工作流入门教程

简单易懂的Spring Boot整合Camunda7入门教程 因为关于Spring Boot结合Camunda7的教程在网上比较少,而且很多都写得有点乱,很多概念写得太散乱,讲解不清晰,导致看不懂,本人通过研究学习之后就写出了这篇教学文档。 介…

Netty:高性能异步网络编程框架全解析

Netty作为一个基于Java NIO技术的开源异步事件驱动网络编程框架,已经成为开发高性能、高可靠性网络应用的首选工具之一。本文将全面介绍Netty的核心特性、架构原理以及使用方法,帮助你快速掌握这个强大的框架。 Netty的主要特点 异步事件驱动模型 Netty采用异步非阻塞的IO模型…