Presentation is loading. Please wait.

Presentation is loading. Please wait.

Linux Networking 2012 年 5 月 主讲:孟宁 电话: 0512-68839302 : 主页: 地址:苏州工业园区独墅湖高等教育区仁爱路 166 号明德楼.

Similar presentations


Presentation on theme: "Linux Networking 2012 年 5 月 主讲:孟宁 电话: 0512-68839302 : 主页: 地址:苏州工业园区独墅湖高等教育区仁爱路 166 号明德楼."— Presentation transcript:

1 Linux Networking 2012 年 5 月 主讲:孟宁 电话: 0512-68839302 E-mail : mengning@ustc.edu.cn 主页: http://staff.ustc.edu.cn/~mengning 地址:苏州工业园区独墅湖高等教育区仁爱路 166 号明德楼 A302 室

2 Structure of the Linux kernel

3 IEEE 802 in the Linux network architecture

4 Packet queues in the Linux kernel

5 the packet buffers across the protocol hierarchy

6 The structure of a network device interface

7 A network adapter uses an interrupt to send messages

8 Linking net_device structures

9 Activity forms in the Linux network architecture

10

11

12 recvfrom ♦recvfrom 、 sock_recvmsg... sock->ops- >recvmsg/socket.c ♦inet_recvmsg 、 sk->sk_prot- >recvmsg/af_inet.c(struct proto_ops inet_dgram_ops) ♦udp_recvmsg/udp.c(struct proto udp_prot) ♦__skb_recv_datagram 、 wait_for_packet/datagram.c

13 interrupt rx ♦el3_interrupt 、 el3_rx 、 dev_alloc_skb+insl(ioaddr+RX_FIFO, skb_put(skb, pkt_len)...);+netif_rx(enqueue_to_backlog) /3c589_cs.c

14 softirq rx ♦net_rx_action ♦napi_complete 、 napi_gro_flush 、 napi_gro_complete 、 netif_receive_skb 、 pt_prev->func/dev.c ♦ip_rcv 、 ip_rcv_finish 、 ipprot- >handler(skb)/ip_input.c ♦udp_rcv 、 __udp_queue_rcv_skb/udp.c 、 ip_queue_rcv_skb/ip_sockglue.c 、 sock_queue_rcv_skb 、 sk- >sk_data_ready(sk, skb_len);/sock.c

15 谢谢大家!


Download ppt "Linux Networking 2012 年 5 月 主讲:孟宁 电话: 0512-68839302 : 主页: 地址:苏州工业园区独墅湖高等教育区仁爱路 166 号明德楼."

Similar presentations


Ads by Google