1 / 18

KERNEL HACKING Data Transport in Wireless Ad Hoc Networks Implementation of a New Wireless Ad Hoc

KERNEL HACKING Data Transport in Wireless Ad Hoc Networks Implementation of a New Wireless Ad Hoc Networking Protocol In Linux Kernel. ULA Ş ÜNLÜ. Overview. Wireless Ad Hoc Networks Linux Kernel Networking Network Devices Packet transmission and receiving - Testbed. Goal.

javen
Télécharger la présentation

KERNEL HACKING Data Transport in Wireless Ad Hoc Networks Implementation of a New Wireless Ad Hoc

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. KERNEL HACKING Data Transport in Wireless Ad Hoc Networks Implementation of a New Wireless Ad Hoc Networking Protocol In Linux Kernel ULAŞ ÜNLÜ

  2. Overview • Wireless Ad Hoc Networks • Linux Kernel Networking • Network Devices • Packet transmission and receiving • - Testbed Data Transport in Wireless Ad Hoc Networks

  3. Goal • Send and receive ethernet frames in • wireless environment - Use wireless ethernet interfaces • The basis of wireless ad hoc networks Data Transport in Wireless Ad Hoc Networks

  4. Send then catch and pass to the • protocol layer • New protocol added into the kernel • - Must know kernel data structures Data Transport in Wireless Ad Hoc Networks

  5. Wireless Ad Hoc Networks - Uses 802.11 FC ID Addr1 Addr2 Addr3 Seq Addr4 data CRC IP header TCP header user data Data Transport in Wireless Ad Hoc Networks

  6. - Normal ethernet frame format preamble source mac dest mac proto data CRC IP header TCP header user data Data Transport in Wireless Ad Hoc Networks

  7. - Infrastructured Data Transport in Wireless Ad Hoc Networks

  8. - Ad Hoc Data Transport in Wireless Ad Hoc Networks

  9. Linux kernel protocol support • Various protocols • IP - IPX - X25 - AX25 • ECONET-DECNET • BSD Socket Interface • Network devices Data Transport in Wireless Ad Hoc Networks

  10. Layered Implementation User processes user kernel BSD Sockets protocol layer INET Sockets Protocol Multiplexing hardware Network Devices Data Transport in Wireless Ad Hoc Networks

  11. Linux kernel networking initialization • Boot time system setup functions Memory management File systems etc. • Initialize the networking subsystem sock_init() • init functions for protocols Data Transport in Wireless Ad Hoc Networks

  12. protocols list inet, inet_proto_init x25, x25_proto_init ax25, ax25_proto_init … econet, econet_proto_init netlink, netlink_proto_init • init functions register protocols • unique protocol number • add protocol number and receive routine Data Transport in Wireless Ad Hoc Networks

  13. sk_buff structure struct sk_buff data • Keeps user data • More fields for IP protocol Data Transport in Wireless Ad Hoc Networks

  14. net_device struct • Unique name • eth0 eth1 eth2 etc… sk_buffs sk_buffs sk_buffs eth0 eth1 eth2 net_device net_device net_device Data Transport in Wireless Ad Hoc Networks

  15. Packet Transmission • Allocate an sk_buff • Put data • Put protocol type • Get the net_device for ethn • Put MACs • Transmit sk_buff protocol MACs data Data Transport in Wireless Ad Hoc Networks

  16. Packet Receiving Protocol receive functions x25_rcv() ip_rcv() ax25_rcv() .... .... Protocol Multiplexing (Bottom half handling) Network Devices Data Transport in Wireless Ad Hoc Networks

  17. Network Interface Drivers - eth frame -> driver -> kernel data structure driver ethernet frame sk_buff driver ethernet frame sk_buff Data Transport in Wireless Ad Hoc Networks

  18. Implementation & Testing Data Transport in Wireless Ad Hoc Networks

More Related