ubuntu路由器联网_路由器及其协议简介| 联网

ubuntu路由器联网

路由器简介 (Introduction to Router)

Routers are network layer devices. Data on the network layer is known as packets. Routers work to forward packets from one network to another. Routers also maintain the address table.

路由器是网络层设备。 网络层上的数据称为数据包。 路由器负责将数据包从一个网络转发到另一个网络。 路由器还维护地址表。

One thing you should always keep in mind is that the Router does not send a packet to the destination host but rather to the destination network.

您应始终牢记的一件事是,路由器不会将数据包发送到目标主机,而是发送到目标网络。

For example, a host is sending data to another host that is in another network. Router's only situation in this is that it receives data from a network and sends it to another network. After this, the responsibility of switching the data to the host is to switch.

例如,一台主机正在将数据发送到另一个网络中的另一个主机。 路由器唯一的情况是它从网络接收数据并将其发送到另一个网络。 此后,将数据切换到主机的责任就是切换。

As we told you earlier, routers routing tables maintain. In a simple routing table, the IP address of the final destination network of a packet is the IP address of the next network, and the routing is maintained.

如前所述,路由器路由表得以维护。 在一个简单的路由表中,数据包的最终目标网络的IP地址是下一个网络的IP地址,并且路由被维护。

Final destination network is the network in which destination host is sent for which data has been sent. Next network is a network that is between the source network and the destination network. Such networks are also called next hop. And the routing metrics are used to find the shortest path to the final network.

最终目标网络是在其中发送了数据的目标主机的网络。 下一个网络是源网络和目标网络之间的网络。 这样的网络也称为下一跳。 路由度量用于查找通往最终网络的最短路径。

路由器的工作 (Working of Routers)

The router is a Hardware Networking Device. It is used in the network. Whenever there is a data that travels from one network to another in the form of a Packet then the Router receives the Packet data and forwards the Destination Device after analyzing any hidden information in the Data Packet. This Networking Device is used to add different Networks via Wire or Wirelessly in Upsa. However, it is also used at home, which we call the Wireless Router with which you access the Internet.

路由器是硬件网络设备。 在网络中使用。 每当有数据以数据包的形式从一个网络传播到另一个网络时,路由器都会在分析数据数据包中的任何隐藏信息之后接收数据包数据并转发目标设备。 此网络设备用于在Upsa中通过有线或无线方式添加不同的网络。 但是,它也可以在家庭中使用,我们称之为无线路由器,您可以使用该路由器访问Internet。

As you would know, Computer network follows the OSI Model. The router works on the Network Layer from the 7 Layer of the OSI Model. This device is made from Hardware and Software. It has an Operating System, CPU, Memory Storage and some I / O Ports. This Operating System is not like Windows or MAC. Routing Algorithm and Routing Table are stored in Storage Memory.

如您所知,计算机网络遵循OSI模型。 路由器从OSI模型的7层在网络层上工作。 该设备由硬件和软件制成。 它具有操作系统,CPU,内存存储和一些I / O端口。 该操作系统不同于Windows或MAC。 路由算法和路由表存储在存储存储器中。

It is found through the Routing Algorithm and Routing Table that the input packet has been received. To send that packet to which network or to the corner device which analyses it.

通过路由算法和路由表可以发现已收到输入数据包。 将数据包发送到哪个网络或分析它的角落设备。

For example, let's consider a courier boy as a router. Courier boy receives the courier from the courier office. After this, he notes the address and name on Parcel. After which he decides which place and where to give Parcel. After that, he sends the Parcel to the receiver's address. Now let’s understand this example through routers’ perspective.

例如,让我们考虑一个快递男孩作为路由器。 快递员男孩从快递员办公室接收快递员。 此后,他在包裹上注明了地址和名字。 之后,他决定在哪个地方寄包裹。 之后,他将包裹发送到收件人的地址。 现在让我们通过路由器的角度来理解这个例子。

According to the above example, "Parcel" is your data packet. Like the courier, boy finds the address. Similarly, Router also selects the Shortest Path to detect the Receiver Address of Packets by the Routing Table after which it is sent. As there is a list of an address near the courier boy, there is also a description in the Routing Table.

根据以上示例,“包裹”是您的数据包。 像快递员一样,男孩找到了地址。 类似地,路由器还选择最短路径以通过路由表检测数据包的接收方地址,然后发送该最短路径。 由于快递员附近有一个地址列表,因此路由表中也有描述。

路由器使用的协议 (Protocols used with Routers)

Routers use 2 types of protocols to forward data to a network:

路由器使用两种类型的协议将数据转发到网络:

  • Routed protocols

    路由协议

    Every device in such protocols is given an IP address manually. Only then devices know each other's location. An example of this type of protocol is the IP (Internet Protocol). Data is sent through such protocols.

    此类协议中的每个设备都会手动获得一个IP地址。 只有这样,设备才能知道彼此的位置。 此类协议的一个示例是IP(Internet协议)。 数据通过此类协议发送。

  • Routing protocols

    路由协议

    Such protocols are used between routers. With the help of these, routers update their routing tables. When a router receives information from a new network, it updates it in its routing table and this information updates with other routers automatically with the help of routing protocols. In the example of routing protocols, the main name is EIGRP, RIP, and OSPF.

    这些协议在路由器之间使用。 借助这些,路由器可以更新其路由表。 当路由器从新网络接收信息时,它将在其路由表中对其进行更新,并且该信息将在路由协议的帮助下与其他路由器自动更新。 在路由协议示例中,主要名称为EIGRP,RIP和OSPF。

翻译自: https://www.includehelp.com/computer-networks/routers-and-its-protocols.aspx

ubuntu路由器联网

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/379545.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

XPath学习:轴(5)——descendant-or-self

XPath 是一门在 XML 文档中查找信息的语言。XPath 可用来在 XML 文档中对元素和属性进行遍历。 XPath 是 W3C XSLT 标准的主要元素,并且 XQuery 和 XPointer 同时被构建于 XPath 表达之上。 推荐一个挺不错的网站:http://www.zvon.org/xxl/XPathTutorial…

linux设备驱动开发---平台设备驱动程序

文章目录1 平台驱动程序2 平台设备2.1 资源和平台数据1 设备配置---废弃的旧方法资源平台数据声明平台设备2 设备配置---推荐的新方法3 设备、驱动程序和总线匹配OF风格ACPIID表匹配匹配平台设备的名字和平台驱动的名字平台设备和平台驱动程序如何匹配4 Platfrom架构驱动程序有…

标题:乘积尾零

标题:乘积尾零 如下的10行数据,每行有10个整数,请你求出它们的乘积的末尾有多少个零? 5650 4542 3554 473 946 4114 3871 9073 90 4329 2758 7949 6113 5659 5245 7432 3051 4434 6704 3594 9937 1173 6866 3397 4759 7557 3070…

Robots.txt指南

Robots.txt指南当搜索引擎访问一个网站时,它首先会检查该网站的根域下是否有一个叫做robots.txt的纯文本文件。Robots.txt文件用于限定搜索引擎对其 网站的访问范围,即告诉搜索引擎网站中哪些文件是允许它进行检索(下载)的。这就是大家在网络上常看到的“…

fwrite函数的用法示例_C语言中的fwrite()函数(带有示例)

fwrite函数的用法示例C中的fwrite()函数 (fwrite() function in C) Prototype: 原型: size_t fwrite(void *buffer, size_t length, size_t count, FILE *filename);Parameters: 参数: void *buffer, size_t length, size_t count, FILE *filenameRetu…

标题:递增三元组

标题&#xff1a;递增三元组 给定三个整数数组 A [A1, A2, … AN], B [B1, B2, … BN], C [C1, C2, … CN]&#xff0c; 请你统计有多少个三元组(i, j, k) 满足&#xff1a; 1 < i, j, k < NAi < Bj < Ck 【输入格式】 第一行包含一个整数N。 第二行包含N个整…

伙伴算法、slab机制、内存管理函数

文章目录1 伙伴算法页框操作alloc_pages()2 slabslab机制要解决的问题使用高速缓存3 内存管理函数kmallockzallocvmallocvzalloc区别参考文章内核使用struct page结构体描述每个物理页&#xff0c;也叫页框。内核在很多情况下&#xff0c;需要申请连续的页框&#xff0c;而且数…

eval 函数 代替函数_eval()函数以及JavaScript中的示例

eval 函数 代替函数eval()函数 (eval() function) eval() function is a predefined global function in JavaScript and it is used to evaluate (execute) an expression, which is passed to the function as a parameter. It can also evaluate any JavaScript code. eval(…

F# ≥ C#(活动模式 和枚举)

F#提供了一个叫"活动模式"的有趣功能。它把输入的数据转换成其他不同的东西。 一个有趣的使用实例就是代替枚举。但我编程枚举的时候&#xff0c;我总不高兴去链接枚举项到它的定义。例如&#xff0c;下面的枚举定义了 数字枚举&#xff0c; enum Numbers{Odd,Even,}…

关于java的classpath设置

今天晚上实验室的另一个人在编译一个java程序&#xff0c;需要用到一个jar文件&#xff0c;所以在命令行编译的时候需要添加jar的路径&#xff0c;例如&#xff1a; java -classpath demo.jar hello 但是设置了path之后java就不会搜索当前目录&#xff0c;也就是所如果hello在当…

C语言uthash的用法

文章目录1 定义一个哈希表键值UT_hash_handle2 哈希操作声明添加查找删除获取哈希表中元素个数迭代排序3 案例键的使用官网解释&#xff1a;https://troydhanson.github.io/uthash/userguide.html 在使用之前&#xff0c;我们必须包含uthash.h的头文件&#xff0c;你需要将该头…

Javascript Paste Keyboard Shortcuts Hijack

author : kj021320 team : I.S.T.O 这样的攻击手段也算是极其无耻 猥琐之极! 所以防御措施一定要做好 首先说一下通过Javascript Paste Keyboard Shortcuts Hijack能做什么???能够读取你本地机器任何文件! 没错!也就是说 你中了任何一个XSS 加上你按了粘贴快捷键后,你就有可…

python 生成器表达式_Python中的列表理解与生成器表达式

python 生成器表达式The list is a collection of different types of elements and there are many ways of creating a list in Python. 该列表是不同类型元素的集合&#xff0c;并且有许多方法可以在Python中创建列表。 清单理解 (List Comprehension) List comprehension…

Javaweb---监听器

1.什么是监听器 监听器就是监听某个对象的状态变化的组件。 事件源&#xff1a;被监听的对象 ----- 三个域对象 request session servletContext 监听器&#xff1a;监听事件源对象 事件源对象的状态的变化都会触发监听器 ---- 62 注册监听器&#xff1a;将监听器与事件源进行…

Linux中的Ramdisk和Initrd

Ramdisk简介先简单介绍一下ramdisk&#xff0c;Ramdisk是虚拟于RAM中的盘(Disk)。对于用户来说&#xff0c;能把RAM disk和通常的硬盘分区&#xff08;如/dev/hda1&#xff09;同等对待来使用&#xff0c;例如&#xff1a;redice # mkfs.ext2 /dev/ram0mke2fs 1.38 (30-Jun-200…

slab下kmalloc内核函数实现

文章目录kmalloc的整体实现获取高速缓存高速缓存获取index总结https://blog.csdn.net/qq_41683305/article/details/124554490&#xff0c;在这篇文章中&#xff0c;我们介绍了伙伴算法、slab机制和常见的内存管理函数&#xff0c;接下来&#xff0c;我们看看kmalloc内核函数的…

PHP array_merge_recursive()函数与示例

PHP array_merge_recursive()函数 (PHP array_merge_recursive() function) array_merge_recursive() function is used to merge two or more arrays, it returns a new array with merged elements. The only difference between array_merge() and array_merge_recursive() …

标题:三羊献瑞

标题&#xff1a;观察下面的加法算式&#xff1a; 其中&#xff0c;相同的汉字代表相同的数字&#xff0c;不同的汉字代表不同的数字。 请你填写“三羊献瑞”所代表的4位数字&#xff08;答案唯一&#xff09;&#xff0c;不要填写任何多余内容。 思路分析&#xff1a; 首先…

hdu 1069

地址&#xff1a;http://acm.hdu.edu.cn/showproblem.php?pid1069 题意&#xff1a;给定若干个木块长宽高&#xff0c;长宽高可以自己调整&#xff0c;求堆积起来最高的高度。 mark&#xff1a;枚举所有木块长宽高可能情况&#xff0c;简单dp。 代码&#xff1a; #include <…

简明 Python 编程规范

简明 Python 编程规范编码 所有的 Python 脚本文件都应在文件头标上 # -*- coding:utf-8 -*- 。设置编辑器&#xff0c;默认保存为 utf-8 格式。注释 业界普遍认同 Python 的注释分为两种的概念&#xff0c;一种是由 # 开头的“真正的”注释&#xff0c;另一种是 docstri…