利用 ethtool 可以根据需要更改以太网卡的参数,包括自动协商、速度、双工和局域网唤醒等参数。
mii-tool(media-independent interface tool)查看、操作媒体无关的接口状态。
单工数据传输只支持数据在一个方向上传输;在同一时间只有一方能接受或发送信息,不能实现双向通信,举例:电视,广播。
使用概要: ethtool ethx //查询ethx网口基本设置,其中 x 是对应网卡的编号,如eth0、eth1等等 ethtool –h //显示ethtool的命令帮助(help) ethtool –i ethX //查询ethX网口的相关信息 ethtool –d ethX //查询ethX网口注册性信息 ethtool –r ethX //重置ethX网口到自适应模式 ethtool –S ethX //查询ethX网口收发包统计 ethtool –s ethX [speed 10|100|1000] [duplex half|full] [autoneg on|off] //设置网口速率10/100/1000M、设置网口半/全双工、设置网口是否自协商
工业以太网是基于IEEE802.3(Ethernet)的强大的区域和单元网络。利用工业以太网,SIMATICNET提供了一个无缝集成到新的多媒体世界的途径。继10M波特率以太网成功运行之后,具有交换功能,全双工和自适应的100M波特率快速以太网(FastEthernet,符合IEEE802.3u的标准)也已成功运行多年。工业以太网是电力通信和电网信息化不可或缺的网络平台,而工业以太网交换机在其中更是扮演了重要的角色,现在让大家了解一下工业以太网的结构和专业术语。 一、拓扑结构 拓扑是网络中电缆的布置
拓扑是网络中电缆的布置。众所周知,EIA-485或 CAN 采用总线型拓扑。但在工业以太网中,由于普遍使用集线器或交换机,拓扑结构为星型或分散星型。
早期的网络设备HUB(集线器)就是半双工,目前基本没有人用了,而现在用的SWITCH(交换机)就是全双工。
IEEE 802.3标准是一种基带总线形的局域网标准,它描述物理层和数据链路层的MAC子层的实现方法。
(Perf -- Linux下的系统性能调优工具,第 1 部分)[http://www.ibm.com/developerworks/cn/linux/l-cn-perf1/]
ethtool命令用于查询和控制网络设备驱动程序和硬件设置,尤其是有线以太网设备,devname网卡的名称。网卡就像是交换机的一个端口,正常使用我们只是配置网卡IP地址等信息,网卡的速率、双工模式等我们并不关心。通过ethtool命令我们可以像配置交换机网卡一样配置这些参数,这就是这个命令的魅力所在。
EISA网卡,在大流量负荷数据传输时,速度变得极慢,最后发现这款网卡不支持全双工。将交换机端口改为半双工以后,故障消失。这说明交换机的端口与网卡的速率和双工方式必须一致。目前有许多自适应的网卡和交换机,由于品牌的不一致,往往不能正确实现全双工方式,只有手工强制设定才能解决。
网络接口层的功能 OSI参考模型的物理层与数据链路层,在TCP/IP的网络中统称为网络接口层; 网络数据在数据链路层的单位是帧,在物理层是bit流; 网络接口层的作用就是负责将数据转换为数字信号在物理设备之间传输。 ---- 常见的网络设备 网卡(集成,独立) 交换机(和服务器一样,交换机分1U,2U,4U,8U大小) 服务器 无线路由器 ---- 网络设备的参数 接口类型:网线口(RJ45),光纤口;WiFi; 传输介质: 网线(双绞线);光纤;无线; 网络单位; 速率、双工模式; MAC
打开 https://www.ikuai8.com/component/download 并下载适用于虚拟机的镜像。
作为一名学通信的,居然对这个概念还是没搞清楚,简直就是丢了大脸了! 现在总结如下,理解比较浅,大部分网上查的,有不对的,请批评指正!
linux查看系统的硬件信息,并不像windows那么直观,这里我罗列了查看系统信息的实用命令,并做了分类,实例解说。
在日常使用中,经常会出现无法连通的情况,这个时候我们就需要找到问题出在哪里,这里面给各位提供一个生产环境排查网络故障的大体思路,一般情况下如果遇到网络故障,都是通过筛选的方式一点一点的确定问题所在,首先判断是本机的问题还是网络上其它设备的问题,如果同一网络环境中的其它主机正常的,要去其它网络设备(路由器)上查看一下是否对网络有问题的主机设置了限制,如果没有的话,问题出在本机,这里面我们主要看下下本机容易出现哪些问题导致页面无法访问
添加完上面的三个控制信息后,接下来就开始发送包了,发送包的方式有两种:一种是使用集线器的半双工模式,一种是使用交换机的全双工模式。
本次嗅探试验所使用到的工具有两个,ettercap和driftnet。 ettercap是一款现有流行的网络抓包软件,他利用计算机在局域网内进行通信的ARP协议的缺陷进行攻击,在目标与服务器之间充当中间人,嗅探两者之间的数据流量,从中窃取用户的数据资料。
linux查看系统的硬件信息,并不像windows那么直观,这里我罗列了查看系统信息的实用命令,并做了分类,实例解说。 查看系统信息 uname -a 显示系统名、节点名称、操作系统的发行版号、操作系统版本、运行系统的机器 ID 号 cpu lscpu命令,查看的是cpu的统计信息. blue@blue-pc:~$ lscpu Architecture: i686 #cpu架构 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian #小尾序 CPU(s): 4 #总共有4核 On-line CPU(s) list: 0-3 Thread(s) per core: 1 #每个cpu核,只能支持一个线程,即不支持超线程 Core(s) per socket: 4 #每个cpu,有4个核 Socket(s): 1 #总共有1一个cpu Vendor ID: GenuineIntel #cpu产商 intel CPU family: 6 Model: 42 Stepping: 7 CPU MHz: 1600.000 BogoMIPS: 5986.12 Virtualization: VT-x #支持cpu虚拟化技术 L1d cache: 32K L1i cache: 32K L2 cache: 256K L3 cache: 6144K 查看/proc/cpuinfo,可以知道每个cpu信息,如每个CPU的型号,主频等。 #cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 42 model name : Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz ..... 上面输出的是第一个cpu部分信息,还有3个cpu信息省略了。 内存 概要查看内存情况 free -m total used free shared buffers cached Mem: 3926 3651 274 0 12 404 -/+ buffers/cache: 3235 691 Swap: 9536 31 9505 这里的单位是MB,总共的内存是3926MB。 查看内存详细使用 # cat /proc/meminfo MemTotal: 4020868 kB MemFree: 230884 kB Buffers: 7600 kB Cached: 454772 kB SwapCached: 836 kB ..... 查看内存硬件信息 dmidecode -t memory # dmidecode 2.11 SMBIOS 2.7 present. Handle 0x0008, DMI type 16, 23 bytes Physical Memory Array Location: System Board Or Motherboard .... Maximum Capacity: 32 GB .... Handle 0x000A, DMI type 17, 34 bytes .... Memory Device Array Handle: 0x0008 Error Information Handle: Not Provided Total Width: 64 bits Data Width: 64 bits Size: 4096 MB ..... 磁盘 查看硬
近日有个需求,交换机有两台,做了堆叠,服务器双网卡,每个分别连到一台交换机上。这样就需要将服务器的网卡做成主备模式,以增加安全性,使得当其中一个交换机不通的时候网卡能够自动切换。 整体配置不难,网上也有相应的教程,可能有些是ubuntu的版本不同,所以配置以后没有达到应有的效果,最终通过51运维网的Ubuntu双网卡绑定的设置方法一文中的方法实现了该功能,本文简单记录之。 一、Bond的工作模式 Linux bonding驱动提供了一个把多个网络接口设备捆绑为单个的网络接口设置来使用,用于网络负载均衡及网络
注:最后有面试挑战,看看自己掌握了吗 文章目录 局域网LAN 决定局域网的要素 网络拓扑 传输介质 局域网的分类 以太网 令牌环网 FDDI网----Fiber Distributed Data Interface ATM网---Asynchronous Transfer Mode 无线局域网WLAN----Wireless Local Area Network MAC子层和LCC子层 以太网Ethernet Ethernet统治地位的原因 以太网两个标准 以太网提供无连接不可靠服务 传输介质拓扑结构 10
① 开发者 : 由 Xerox 公司创建 , 由 Xerox , Intel , DEC 联合开发的 “基带总线局域网规范” ;
最早的以太网都是10M 半双工的,所以需要CSMA/CD 等一系列机制保证系统的稳定性。随着技术的发展,出现了全双工,接着又出现了100M,以太网的性能大大改善。但是随之而来的问题是:如何保证原有以太网络和新以太网的兼容?
把多方链接在一起,进行数据传递; 网络编程就是,让不同电脑上的软件进行数据传递,即进程间通信;
前面讲解了一个网址访问中的通信过程,接下来几篇来把这个过程里面一些细节的地方讲解下,这些完毕后就开始正式进入路由交换的内容了。相信大家都玩过单机游戏,记得博主最早开始喜欢玩像CS、半条命、帝国时代、魔兽争霸3、英雄无敌这些单机游戏,后来选了计算机专业后,为了更好的学习在第二学期购买了台笔记本,中午跟晚上就喜欢跟宿舍的人一起玩这种联机游戏,下面就从这样的故事来进入今天的主题内容。
验证网口通信常见的方式就是通过ping测试。测试ping的话可以找一个以前验证过的上层程序。
过去的这些年里,SD-WAN、Wi-Fi 6和5G这类的创新技术,使得我们现在的网络可以做更多的事情,但也使网络的负担变大,变复杂。
网络编程之IO:说到IO不得不会想到NIO和BIO,说到这两个概念我们不得不看一下两个:
eth0: negotiated 100baseTx-FD, link ok 100M
当我们做一些性能测试或者性能分析时,想看看我们当网络带宽是否成为瓶颈,那么这个时候我们就有必要查看网卡带宽了。
ip模块中存储的是一堆数字信号,网卡内部会把数字信号转换成电信号或者光信号在网线中传输。
http://blog.csdn.net/tianshuai1111/article/details/8122043
为了解决在各类传输媒体上解决传输01比特的问题,物理层的主要任务: 1、机械特性。 2、电气特性。 3、功能特性。 4、过程特性。
封装成帧就是在一段数据的前后分别添加首部和尾部,然后就构成一个帧。首部和尾部的作用是进行帧定界。(首部是用来确定帧的数据部分是从哪里开始的,而尾部是用来确定数据部分什么时候结束)
Ettercap最初设计为交换网上的sniffer,但是随着发展,它获得了越来越多的功能,成为一款有效的、灵活的中介攻击工具。它支持主动及被动的协议解析并包含了许多网络和主机特性(如OS指纹等)分析。
首先我们需要知道,想要将设备连接到网络,有两种方式可供选择,那就是「有线和无线」。
全双工:是指在发送数据的同时也能够接收数据,两者同步进行,这好像我们平时打电话一样,说话的同时也能够听到对方的声音。
在迅为RK3568开发板上有一组GPIO,可以用来外接各种外设模块,从面实现一系列好玩的功能,一起来看看各个模块合集吧
那么,离开了计算机以后,互联网包又经历了什么,最终到达目的地的呢?本文,我们就来详细介绍网络中的三个最重要的组成设备 -- 集线器、交换机与路由器。
声明:此文来自于MOS(Doc ID 1674865.1),整理在此以便于大家阅读学习。
如果了解[[《网络是怎么样连接的》读书笔记 - ADSL]]和[[《网络是怎么样连接的》读书笔记 - FTTH]]两个部分的内容,应该清楚网络包在传输的过程中最终转化为电信号或者光信号传输,我们通常所说的TCP协议、IP协议、以太网等等实际上都已经被“屏蔽”的。
如果交换机的总带宽为14.4Gbps,它具有12个百兆的全双工端口,则其千兆的全双工端口数量最多为?
网络数据传输:数据帧传输,由网卡读取并放入设备缓冲区ring buffer,当网络数据包到达的速率快于内核处理的速率时,ring buffer很快会被填满,新来的数据包将被丢弃。
思科在本周的OCP全球峰会上发布了两款新的800G交换机系列及新的光模块,以支持超级数据中心运营商和电信运营商对更大的交换容量、灵活性和提升功效的要求。
以太网最早是指由DEC(Digital Equipment Corporation)、Intel和Xerox组成的DIX(DEC-Intel-Xerox)联盟开发并于1982年发布的标准。经过长期的发展,以太网已成为应用最为广泛的局域网,包括标准以太网(10 Mbit/s)、快速以太网(100 Mbit/s)、千兆以太网(1000 Mbit/s)和万兆以太网(10 Gbit/s)等。IEEE 802.3规范则是基于以太网的标准制定的,并与以太网标准相互兼容。
本文将给大家分享光纤收发器在安装使用过程中常遇到的问题及解决办法,在遇到这些故障问题时,我们该如何处理呢?现在易天光通信将通过本文章与您分享光纤收发器的安装和故障解决方法:
ethtool是用于查询和设置网卡参数的命令,它的功能非常强大,几乎网卡的收发数据的参数都可以在这里设置。
tcp/ip系列上一篇(tcp/ip基础知识):https://blog.csdn.net/qq_19968255/article/details/83547041
领取专属 10元无门槛券
手把手带您无忧上云