From 3a70040df5e66347fad20a54dc21661cac2eda16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?20=E6=9C=B1=E7=8E=89=E6=95=8F?= <12332> Date: Tue, 2 Apr 2024 11:27:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 36 --------- README.md | 39 ---------- ...21\347\273\234\345\237\272\347\241\200.md" | 75 +++++++++++++++++++ 3 files changed, 75 insertions(+), 75 deletions(-) delete mode 100644 README.en.md delete mode 100644 README.md create mode 100644 "\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" diff --git a/README.en.md b/README.en.md deleted file mode 100644 index e60e6b7..0000000 --- a/README.en.md +++ /dev/null @@ -1,36 +0,0 @@ -# 计算机网络基础 - -#### Description -{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**} - -#### Software Architecture -Software architecture description - -#### Installation - -1. xxxx -2. xxxx -3. xxxx - -#### Instructions - -1. xxxx -2. xxxx -3. xxxx - -#### Contribution - -1. Fork the repository -2. Create Feat_xxx branch -3. Commit your code -4. Create Pull Request - - -#### Gitee Feature - -1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md -2. Gitee blog [blog.gitee.com](https://blog.gitee.com) -3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore) -4. The most valuable open source project [GVP](https://gitee.com/gvp) -5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help) -6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git a/README.md b/README.md deleted file mode 100644 index 5ba51f9..0000000 --- a/README.md +++ /dev/null @@ -1,39 +0,0 @@ -# 计算机网络基础 - -#### 介绍 -{**以下是 Gitee 平台说明,您可以替换此简介** -Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 -无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)} - -#### 软件架构 -软件架构说明 - - -#### 安装教程 - -1. xxxx -2. xxxx -3. xxxx - -#### 使用说明 - -1. xxxx -2. xxxx -3. xxxx - -#### 参与贡献 - -1. Fork 本仓库 -2. 新建 Feat_xxx 分支 -3. 提交代码 -4. 新建 Pull Request - - -#### 特技 - -1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md -2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) -3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 -4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 -5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) -6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/) diff --git "a/\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" "b/\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" new file mode 100644 index 0000000..89c2eaa --- /dev/null +++ "b/\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" @@ -0,0 +1,75 @@ +#### 计算机网络基础 + +##### 网络:两个终端,用一条能承载数据传输的物理介质(传输介质)连接起来 + +##### 网线:双绞线 + +​ a.光纤 + +​ b.无线 + +​ i.微波 + +​ ii.红外线 + +​ iii.蓝牙 + +##### 有网络之后 + +1. 传输数据 +2. 有源地址 +3. 有目的地址 +4. 数据会被封装 + +##### 当有三台终端相连时,一般启动交换机 + +##### 交换机(sw) + +1. 很多的网口,负责同一网络数据转发 +2. 交换机有端口编号 +3. 交换机可以学习MAC地址并维护一张表,这个表记录了端口号和MAC的关系 +4. 数据传输方式:(1)1对1 单播(2)1对部分组播(3)1对any 广播 a.当目的地址MAC全为F就表示广播 +5. 广播域(同一个交换机互发数据) +6. 局域网核心设备 +7. 通过MAC地址识别 +8. 交换机可以再接交换机(理论上是无限的) + +##### 集成线(已淘汰) + +1. 多终端相连,形成网络 +2. 某终端发给他的数据,会被无脑转发 +3. 网络中的终端通过MAC地址识别 + - 每台能上网的设备必须有MAC地址 + - MAC地址是上网设备一出厂就拥有的 + - MAC地址:物理地址、以太网地址 + - 全球唯一(类似人体的DNA) + +##### 广播域 + +1. 交换机:距离终端用户最近的设备,用于终端用户接入网络、对数据帧进行交换等。 +2. 终端设备(PC、服务器等)的网络接入。 +3. 二层交换 + +##### IP地址的构成 + +1. 网络号 +2. 主机号 +3. 每个上网设备都要有一个IP才可以跨网链接。 +4. 不同网络访问需要用到路由器。 +5. 通过IP的网络就可以识别是不是同一网络。 + +路由器(网关的一种) + +1. 隔离广播域(及连通广播域) +2. 维护路由表(记录ip的下一跳) +3. 这里用ip识别设备 + +##### 什么是ARP和RARP + +ARP是地址解析协议,用于将ip地址转换为MAC物理地址 + +ARP命令可用于查询本机ARP缓存中IP地址和MAC地址的对应关系、添加或删除静态对应关系等 + +RARP和ARP相反,用于将MAC物理地址转换为ip地址 + + RARP 可以使用于以太网、光纤分布式数据接口及令牌环 LAN等。 \ No newline at end of file -- Gitee From a86c0148f7fc1834afe3d7f95183c32517af6673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?20=E6=9C=B1=E7=8E=89=E6=95=8F?= <12332> Date: Tue, 2 Apr 2024 11:30:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...46\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" => "20\346\234\261\347\216\211\346\225\217/\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" (100%) diff --git "a/\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" "b/20\346\234\261\347\216\211\346\225\217/\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" similarity index 100% rename from "\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" rename to "20\346\234\261\347\216\211\346\225\217/\350\256\241\347\256\227\346\234\272\347\275\221\347\273\234\345\237\272\347\241\200.md" -- Gitee