what is a rx ring/tx ring in router?

below image describes a process router routes/switches a packet.

first router receives a packet

interface processor stores the packet private buffer or public buffer.

above step.

what’s a role of RX ring?

ring is a shared memory(buffer) or a dedicated memory(buffer) for interface?

is there anyone what is a rx ring(tx ring)?

Reply-1

Hi,I would like to add a little more.Along with public and private interface pools,  Cisco IOS creates special buffer control structures called rings. Cisco  IOS and interface controllers use these rings to control which buffers  are used to receive and transmit packets to the media. The rings  themselves consist of media-controller-specific elements that point to  individual packet buffers elsewhere in I/O memory.Each interface has a pair of rings - a receive ring for receiving  packets and a transmit ring for transmitting packets. The size of the  rings can vary with the interface controller. In general, the size of  the transmit ring is based on bandwidth of the interface or VC and is a  power of two (Cisco Bug ID CSCdk17210).Regards,KevinView solution in original post

Reply-2

Hello,In addition to all answers by other friends here, the term ring in general describes a circular buffer, i.e. a formerly linear list of entries in which each entry has a pointer to the next element in the list, and the "last" element points back to the "first" element in the list, thereby making it circular.Hence, a ring has a finite space - it can contain a limited number of entries. In addition, entries are added sequentially into a ring, and if the ring has the maximum size of N elements, adding the (N+1)th element will place it on the 1st place, essentially replacing the former 1st entry. In other words, a ring of size N always holds at most N most recent entries. This is especially interesting for congestive applications like interface buffers, in which a transient burst may cause the interface buffers to overfill. In such case, these buffers will keep at most N most recently received frames.Also, the Tx/Rx rings are often implemented in hardware, as a part of an interface controller. These controllers have buffers to store excessive received or transmitted frames, and the buffers are circular in nature - with limited space, and if overfilled, the most recent entry overwrites the least recen. What you are seeing in your exhibit are most probably the HW rings implemented inside a particular interface type.Best regards,PeterView solution in original post

Relay-3

DisclaimerThe  Author of this posting offers the information contained within this  posting without consideration and with the reader's understanding that  there's no implied or expressed suitability or fitness for any purpose.  Information provided is for informational purposes only and should not  be construed as rendering professional advice of any kind. Usage of this  posting's information is solely at reader's own risk.Liability DisclaimerIn  no event shall Author be liable for any damages whatsoever (including,  without limitation, damages for loss of use, data or profit) arising out  of the use or inability to use the posting's information even if Author  has been advised of the possibility of such damage.PostingJust to add a bit to what the other posters have already noted.  What's "special" about the ring buffers they are designed to try to keep up with the interface traffic requirements, especially when receiving.  Usually they are tied to hardware interrupts.  The reason they are "circular" is because often they use an address block and modulus address offsets, often binary.  For example, if you allocated 3 bits for an address offset you would have 8 offsets, zero to seven.  All you need to do is increment the offset.  When it overflows it wraps back to the beginning, hence its a circular or ring buffer.View solution in original post

Reply-4

Hi!Well .. Im not very expert about this thing.. but I Know that..RX = Receive TrafficTX = Transmit trafficI think that the "ring" is a simbol to refer about series of tasks inside a queue...Im not pretty sure... Experts... what are your opinions?

Reply-5

Thanks for your replyi guess ring is a kind of buffer or memory.but i don't know which type of buffer?i think that is one of above twoRing is1. buffer asigned for only h/w interfae(it means that only the H/W interface can use the buffer)2. buffer asigned among a shared buffer by scheduling of ios

Reply-6

In addition to all answers by other friends here, the term ring in general describes a circular buffer, i.e. a formerly linear list of entries in which each entry has a pointer to the next element in the list, and the "last" element points back to the "first" element in the list, thereby making it circular.Hence, a ring has a finite space - it can contain a limited number of entries. In addition, entries are added sequentially into a ring, and if the ring has the maximum size of N elements, adding the (N+1)th element will place it on the 1st place, essentially replacing the former 1st entry. In other words, a ring of size N always holds at most N most recent entries. This is especially interesting for congestive applications like interface buffers, in which a transient burst may cause the interface buffers to overfill. In such case, these buffers will keep at most N most recently received frames.Also, the Tx/Rx rings are often implemented in hardware, as a part of an interface controller. These controllers have buffers to store excessive received or transmitted frames, and the buffers are circular in nature - with limited space, and if overfilled, the most recent entry overwrites the least recen. What you are seeing in your exhibit are most probably the HW rings implemented inside a particular interface type.Best regards,Peter

what is a rx ring/tx ring in router?相关推荐

  1. TJA1050只能RX不能TX

    今天新换的TJA1050发现只能RX不能TX,芯片上面有个小圆点角标 换回旧的TJA1050没有角标的芯片,一切正常 所以推测市面上带角标的一批TJA1050是假货. 仅供大家参考

  2. 关于rx,tx或I2C串口不够的问题

    最近在搞一些项目,想把很多传感器什么的放到一个开发板上,结果发现开发板的rx,tx口和I2C口不够,十分难受,然后我在网上找了找总结了一些方法. 目录 RX和TX: 下载库文件 1.实例化一个对象 2 ...

  3. Arduino Rx、Tx硬串口通信Serial屡败屡战记录-将数值重新转换成字符串-重复多次读怎么办??

    介绍 Arduino最简单的串口通信之TTL协议,转RS485的后面再写,还有SPI,IIC的慢慢学习.... Rx.Tx硬串口基本在一些模块上都能用到,比如DHT温湿度模块... FAQ 发出去的无 ...

  4. 转载为什么USART的RX和TX和SPI的MISO、MOSI都被配置成推挽输出,他们还能正常工作

    读取其他ARM芯片(如NXP)一般很容易看出芯片的设置是否正确.不过对于STM32就容易让人迷惑了.例如,我们在使用SPI总线进行通信时,可以这样设置: GPIO_InitStructure.GPIO ...

  5. Linux网卡驱动pcnet32.c的注释(AM79C9*系列网卡的驱动)

    很久之前读的网卡驱动源码,很多东西已经忘记了,最近面试被问道了网卡收数据包的全过程,只能答出一个很简单的过程,NAPI这种非常优秀的机制都没有想起来,很惭愧,重新复习了一下收包的过程,顺便把当时注释的 ...

  6. 【WIFI】mtk7621驱动

    mtk7621驱动 无线驱动在完成驱动注册的同时,需要进行 cfg80211接口注册(提供命令支持). 1. 驱动 mtk wifi驱动基于pci进行扩展,第一个文件:/os/linux/pci_ma ...

  7. 网卡的 Ring Buffer 详解

    网卡的 Ring Buffer 详解 1. 网卡处理数据包流程 网卡处理网络数据流程图: 图片来自参考链接1 上图中虚线步骤的解释: DMA 将 NIC 接收的数据包逐个写入 sk_buff ,一个数 ...

  8. 网卡中的Ring buffer -- 解决 rx_resource_errors 丢包

    1.软硬件环境 硬件: 飞腾E2000Q 平台 软件: linux 4.19.246 2.问题现象 网卡在高速收包的过程中,出现 rx error , 细查是 rx_resource_errors  ...

  9. DPDK vhost-user之packed ring(六)

    virtio1.1已经在新的kernel和dpdk pmd中陆续支持,但是网上关于这一块的介绍却比较少,唯一描述多一点的就是这个ppt:https://www.dpdk.org/wp-content/ ...

  10. nyist 132Prime Ring Problem

    rime Ring Problem A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., ...

最新文章

  1. 洛谷P4053 [JSOI2007]建筑抢修
  2. leetcode-225 队列实现栈
  3. 都 2020 年了,这些 OKR 的坑你还要踩吗?
  4. 关于CCRANDOM_0_1
  5. javascript 制作的美化select,利用cookie保存选择
  6. html中前台布局特点,HTML5弹性布局有什么优点
  7. java ready()_Java.io.BufferedReader.ready()方法实例
  8. 英语----专业单词
  9. python 下的数据结构与算法---6:6大排序算法
  10. 社区团购还是两看,从消极这个角度
  11. 深入研读Cache存储的计算
  12. 丝杠螺母传动机构设计
  13. 生活中的逻辑谬误02.稻草人谬误
  14. itest(爱测试) 4.1.1 发布,开源BUG 跟踪管理 敏捷测试管理软件
  15. 【计算机基础】五笔字根分解图
  16. 达内java月考试题_达内java1512第二次月考(附答案)doc.doc
  17. 【懒懒的Python学习笔记一】
  18. 用html做相册需要什么,如何快速有效的生成HTML相册?
  19. 量子力学(4) 全同粒子
  20. 广东省计算机二级c语言真题,广东省计算机二级考试题及答案

热门文章

  1. 华硕笔记本电脑重装系统教程,华硕笔记本系统重装教程
  2. matlab 画qpsk眼图,MATLABQPSK在AWGN信道下的仿真
  3. [经验教程]谷歌浏览器google chrome如何设置默认百度搜索引擎?
  4. SpringBoot 发送电子邮件
  5. 软件设计——模块管理
  6. 去商场淘打折商品时,计算打折以后的价钱是件颇费脑子的事情。例如原价 ¥988,标明打 7 折,则折扣价应该是 ¥988 x 70% = ¥691.60。本题就请你写个程序替客户计算折扣价。
  7. Maven创建一个Servlet项目(五)
  8. 聊聊Java中代码优化的30个小技巧
  9. 注册表编辑器,任务管理器,己被系统管理员停用----应急响应
  10. 爆强的一些文句, 太经典了