上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 70 下一页
摘要: 由于:linux 新内核tcp/ip协议栈中添加了 TCP_NEW_SYN_RECV; 所以 在判断sk是否为transparent 时 需要考虑其状态; static bool tproxy_sk_is_transparent(struct sock *sk) { switch (sk->sk_s 阅读全文
posted @ 2021-02-24 20:34 codestacklinuxer 阅读(363) 评论(0) 推荐(0)
摘要: 问题: IPv6 cps一旦超过100cps,tproxy 代理失效!问题有点严重!! 先来看代码吧!!貌似也看不了多少, 还有10分钟就放假了 马上就是 春节14.5天的假期了 继续看看!!! 对于驱动接口分析如下: 驱动收包进入hook;hook处理分析进入协议栈, ipv6_rcv >tcpv 阅读全文
posted @ 2021-02-07 11:49 codestacklinuxer 阅读(354) 评论(0) 推荐(0)
摘要: 问题如下: 目前能想到的工具有: netstat -antp lsof -i:port sar -n SOCK 查看tcp创建的连接数 tcpdump 由于是 本地回环接口上出现这个情况,认为排除网络抖动情况,ping lo 接口 网络延时稳定; ifconfig 接口没有丢包; 查看 somaxc 阅读全文
posted @ 2021-02-02 18:16 codestacklinuxer 阅读(500) 评论(0) 推荐(0)
摘要: sar -d Cannot open /var/log/sa/sa02: No such file or directory Please check if data collecting is enabled 今天有人问起这个东西怎么解决!!! 按道理说 应该不是问题; 但是还是让人去google 阅读全文
posted @ 2021-02-02 17:47 codestacklinuxer 阅读(166) 评论(0) 推荐(0)
摘要: 目前准备通过 netstat -s ethtool -S cat /proc/net/dev cat /proc/net/snmp cat /sys/class/net/<NIC>/statistics/ 查看drop 统计 同时通过sar -n DEV 1 5 查看流量 tcpdump 抓包分析  阅读全文
posted @ 2021-01-29 18:17 codestacklinuxer 阅读(1814) 评论(3) 推荐(0)
摘要: 今天处理bug的时候遇到一个问题如下:网卡收包时 DMA突然失效了, 地址有问题,看代码发现也没有什么问题, 由于是最新的10g网口驱动,不知道是不是有bug还是啥的,就和正常的igb驱动对比了一下大概思路;突然发现10g网卡驱动有个位置没有同步导致指针异常;解决办法就是加入:smp_mb;所以现在 阅读全文
posted @ 2021-01-26 11:58 codestacklinuxer 阅读(577) 评论(0) 推荐(0)
摘要: 今天遇到一个问题:对 10g 光口 执行“ifconfig ethx down” 时 发现内核接口down了;ethtool ethx 时 发现 link detect 为 no;但是其协商速率为10000Mb/s; 同时查看盒子面板,发现link 指示灯是亮的。 问题就是:“down 端口结果 端 阅读全文
posted @ 2021-01-25 18:19 codestacklinuxer 阅读(290) 评论(0) 推荐(0)
摘要: 问题现象:ping xxxx 提示 # ping 121.10.41.62PING 121.10.41.62 (121.10.41.62) 56(84) bytes of data.From 14.116.225.5: icmp_seq=2 Destination Host Unreachable 阅读全文
posted @ 2021-01-22 18:17 codestacklinuxer 阅读(9944) 评论(0) 推荐(1)
摘要: 收集整理质料如下: 1:网卡硬件-->2 内核缓存队列-->3协议层 >4用户recv使用的buff 转载:https://zhuanlan.zhihu.com/p/52397230 net.core.optmem_max = 20480 net.core.rmem_default = 229376 阅读全文
posted @ 2021-01-18 16:49 codestacklinuxer 阅读(207) 评论(0) 推荐(0)
摘要: alloc_skb:分配一个数据长度为size的network buffer {skb+data_buffer} 1 /** 2 * __alloc_skb - allocate a network buffer 3 * @size: size to allocate 4 * @gfp_mask: 阅读全文
posted @ 2021-01-18 12:04 codestacklinuxer 阅读(2292) 评论(0) 推荐(0)
上一页 1 ··· 42 43 44 45 46 47 48 49 50 ··· 70 下一页