![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux.network
network
byd yes
这个作者很懒,什么都没留下…
展开
-
openwrt 数据帧如何从lan转到wan
前提条件1.lan pc已经获取了openwrt lan端的ip2.lan pc已经有openwrt lan的路由表3.lan pc已经学习到了openwrt lan的mac地址4.lan pc发送的数据是到互联网开始直接看__netif_receive_skb_core,前面的NAPI收包已经上一篇文章已经讲过了。static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc, ...原创 2021-12-27 21:35:44 · 1933 阅读 · 0 评论 -
linux 网络收包NAPI理解
网络驱动:1.初始化要DMA中断函数2.驱动提供int (*poll)(struct napi_struct *, int)回调函数用于接收数据帧3.驱动分配结构A,A中包括一个struct napi_struct结构体B5.驱动调用netif_napi_add()函数,此函数关键:5.1 B->poll = poll (poll为驱动接收数据帧回调函数)5.2 B->weight = weight 接收权重,默认由驱动设置为64,表示一个poll可以最多接收64...原创 2021-12-24 22:36:30 · 1191 阅读 · 0 评论 -
linux网络收包函数中对vlan操作的一点理解
在软中断中会调用__netif_receive_skb_core()函数来接收数据帧static int __netif_receive_skb_core(struct sk_buff *skb, bool pfmemalloc, struct packet_type **ppt_prev){ struct packet_type *ptype, *pt_prev; rx_handler_func_t *rx_handler; struct net_device *orig..原创 2021-12-23 21:20:59 · 2584 阅读 · 0 评论 -
9. TCP拥塞控制
章节 CUBIC拥塞控制基础 CUBIC慢启动门限阈值 慢启动 slow start 拥塞避免congestionavoid 快速重传和快速恢复 Linux提供了丰富的拥塞控制算法,这些算法包括vegas、reno、HSCTP、BIC、CUBIC等等。reno/BIC/CUBIC算法原理和对比参考:https://blog.csdn.net/dai_xiangjun/article/details/...原创 2021-08-04 13:55:19 · 1131 阅读 · 1 评论 -
TCP协议头和状态总结
高清PDF下载原创 2021-07-29 17:00:46 · 76 阅读 · 0 评论 -
ipv4网络中协议族/协议类型/协议关系图(linux5.0)
原创 2021-07-28 23:34:19 · 309 阅读 · 0 评论 -
TCP拥塞算法reno/bic/cubic概述与对比
TCP拥塞算法reno/bic/cubic概述与对比原创 2021-07-28 23:16:05 · 2627 阅读 · 0 评论 -
sendto 函数中的struct iov_iter结构 (linux-5.0)
在看linux-5.0 sendto 函数实现时,__sys_sendto函数中调用了import_single_range函数.[net/socket.c]int __sys_sendto(int fd, void __user *buff, size_t len, unsigned int flags, struct sockaddr __user *addr, int addr_len){ .... struct msghdr msg; struc原创 2021-07-20 11:07:45 · 741 阅读 · 0 评论