
TCP
文章平均质量分 73
安静呆一会儿
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
TCP
位置:net/ipv4/tcp_off.c在网卡驱动中,当支持NAPI时,在中断中接收到数据后,最后通过调用napi_gro_receive,将数据交给上层协议,而在此过程中,会在每层协议中调用不同的回调函数,下面来看IP层的情况。首先要申明一个结构:原创 2014-09-16 14:56:15 · 732 阅读 · 0 评论 -
I/O Models
There are five I/O models under Unix: 1. blocking I/O 2. nonblocking I/O 3. I/O multiplexing (select and poll) 4. signal driven I/O (SIGIO) 5. asynchronous I/O (the POSIX aio_functions) the原创 2015-04-10 10:12:12 · 566 阅读 · 0 评论 -
socket-2
xx原创 2015-04-10 10:36:48 · 393 阅读 · 0 评论 -
tcp-ip : tcp接收数据
在ip层进行初始化时,对每种协议都会定义一个结构,并将其注册到全局列表。在IP层收到数据,要将其提交到上一层,这时,根据上层协议的类型从全局列表中找到对应的结构,然后调用其中的函数对数据进行处理:[ net/ipv4/af_inet.c ]static const struct net_protocol tcp_protocol = { .early_demux = tcp_v4_ear原创 2015-01-30 10:19:47 · 713 阅读 · 0 评论 -
tcp-ip TCP
The primary purpose of the TCP is to provide reliable, securable logical circuit or connection service between pairs of processes. To provide this service on top of a less reliable internet communicat原创 2015-01-23 10:11:05 · 777 阅读 · 0 评论 -
tcp-ip : snmp
linux内核没有实现SNMP(SimpleNetwork Management Protocol,简单网络管理协议),只是收集一些MIB(管理信息基)并把它们输出到/proc去。[ include/uapi/linux/snmp.h ]/* tcp mib definitions *//* * RFC 1213: MIB-II TCP group * RFC 2012 (up原创 2015-03-03 10:28:03 · 1068 阅读 · 0 评论 -
tcp-ip Port Numbers
TCP and UDP identify applications using 16-bit port numbers.Servers are normally known by their well-known port number.Those services that can be provided by any implementation of TCP/IP have well-k原创 2014-12-25 14:44:52 · 658 阅读 · 0 评论 -
tcp 实现
include/uapi/linux/tcp.hstruct tcphdr { __be16 source; __be16 dest; __be32 seq; __be32 ack_seq;#if defined(__LITTLE_ENDIAN_BITFIELD) __u16 res1:4, doff:4, fin:1, syn:1, rst:1, psh:1,原创 2014-07-17 10:43:01 · 615 阅读 · 0 评论 -
TCP概念
TCP:Transmission Control ProtocolTCP 在一个client和server间建立一个连接,在此连接上交换数据,然后终断这个连接。TCP提供可靠性,每发送一份数据到对方,都要等待对方一个回应,如果回应没有到达,将重传数据并等待更长的一个时间,当试过多次后,TCP才放弃,然后返回一个错误给发送方,所有这些时间从4分钟到10分钟(根据实现)。TCP不保证对方能原创 2014-04-01 16:12:48 · 1107 阅读 · 0 评论 -
TCP Client/Server 要考虑的问题
ibA signal is a notification to a process that an event has occurred. Signals are sometimes called software interrupts. Signals usually occur asynchronously. By this we mean that a process doesn't原创 2014-06-23 11:12:12 · 613 阅读 · 0 评论 -
socket
在内核中,对socket实现了一种虚拟的文件系统(VFS):socketfs。和其它一般文件系统不同,它不能被mount,没有挂载点,而是通过一个静态变量来引用: [ net/socket.c ] static struct vfsmount *sock_mnt __read_mostly; 按照内核要求,定义一个结构来描述文件系统类型,然后在初始化时进行注册。 * 包含文件系统名字:sock原创 2015-04-08 10:48:13 · 1256 阅读 · 0 评论