1 / 15

Linux Networking

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

alton
Download Presentation

Linux Networking

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  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. 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

  11. 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

  12. 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

  13. 谢谢大家!

More Related