没有合适的资源?快使用搜索试试~ 我知道了~
freebsd netgraph tutorial 有这方面的需求的可以看看
资源推荐
资源详情
资源评论
Introduction
to
NETGRAPH
on
FreeBSD
Systems
Extended Abstract
Tutorial Slides
ʻAll About Netgraphʼ
man 8 ngctl
man 8 nghook
man 4 netgraph
March 22 – 23, 2012 at AsiaBSDCon
Tokyo University of Science, Japan
Dr. Adrian Steinmann <ast@marabu.ch>
Introduction to NETGRAPH on FreeBSD Systems
Summary
FreeBSD’s NETGRAPH infrastructure can be understood as customizable “network plumbing”.
Its flexibility and the fact that this infrastructure runs in the kernel makes it an attractive enabling
technology where time-to-market, agility, and performance are important.
The goal of the tutorial is to become familiar with FreeBSD’s NETGRAPH framework and the
available NETGRAPH kernel modules. The participants will gain insight and understanding for
which projects lend themselves well to NETGRAPH solutions. A number of examples are shown
which can be used as a starting point for new NETGRAPH projects.
In the first part of the tutorial, the NETGRAPH nodes, hooks, and control messages are described
and the command syntax is explained via demonstrations on simple examples. Participants learn
how they can describe a network connection in terms of its underlying protocols and how to express
a solution using NETGRAPH terminology.
The second part of the tutorial investigates frequently used NETGRAPH nodes and shows how they
interconnect to create network protocols. More complex NETGRAPH examples including VLAN
bridges, UDP tunnels, and the Multi-link Point-to-Point daemon are described. Guidelines and
resources for developing custom NETGRAPH modules are surveyed.
Tutorial Outline
Since its introduction to FreeBSD 3.x over a decade ago, the NETGRAPH system is being
continuously maintained and developed by the community as can be seen by the constant addition
of new ng_* kernel modules supporting additional networking features. The tutorial is structured
along the following outline:
•
History and motivation
•
From TTY device driver to System V STREAMS
•
Transport Protocol Multiplexors and Graphs
•
NETGRAPH Platforms, Software Licensing
•
Evolution on FreeBSD
•
Important Reading Resources
•
How to build a NETGRAPH
•
Prerequisites
•
Creating Nodes
•
Connecting Nodes and Creating Edges
Extended abstract of tutorial and lecturer biography! Introduction to NETGRAPH on FreeBSD Systems
AsiaBSDCon on March 22-23, 2012 in Tokyo, Japan" Page 1 / 3
Dr. Adrian Steinmann, <ast@marabu.ch>! Version 2.5, February 2012
•
Where does NETGRAPH live?
•
How does NETGRAPH interface with FreeBSD user space?
•
Working with NETGRAPH
•
Nodes and Hooks
•
Control Messages
•
The ngctl(8) command in action
•
Visualizing NETGRAPH systems
•
Details of frequently used NETGRAPH nodes
•
ng_ether, ng_eiface
•
ng_socket, ng_ksocket
•
ng_bridge, ng_vlan, ng_tee
•
ng_etf, ng_one2many
•
Examples of how to use NETGRAPH nodes as building blocks
•
Interface (snooping) example
•
Ethernet filter example
•
Interface bonding example
•
Investigating more sophisticated examples
•
IP Content filtering using ng_ipfw, ng_tag, and ng_bpf
•
WAN Bridge using ng_bridge, ng_eiface, ng_ksocket, and OpenVPN or IPSEC
•
mpd5: NETGRAPH based implementation of the multi-link PPP protocol for FreeBSD
•
Guidelines for implementing one’s own NETGRAPH node
•
Understanding mbuf’s
•
Essential node type methods
•
ng_sample
•
Debugging a NETGRAPH type
A question and answer session concludes the tutorial.
Extended abstract of tutorial and lecturer biography! Introduction to NETGRAPH on FreeBSD Systems
AsiaBSDCon on March 22-23, 2012 in Tokyo, Japan" Page 2 / 3
Dr. Adrian Steinmann, <ast@marabu.ch>! Version 2.5, February 2012
Lecturer Biography
Adrian Steinmann earned a Ph.D. in Mathematical Physics from Swiss Federal Institute of
Technology in Zürich, Switzerland, and has over 20 years experience as an IT consultant and
software developer. He is founder of Webgroup Consulting AG, a Swiss consulting company.
He has been working with FreeBSD since 1993 and became NetBSD committer in December 2011.
He develops and maintains the STYX system based on BSD to offer remote managed services and
to build custom systems on small x86 based platforms. This enabling technology has also been used
to build secure encryption appliances on commodity hardware for the Swiss IT industry.
He is fluent in Perl, C, English, German, Italian, and has passion and flair for finding
straightforward solutions to intricate problems.
During his free time he likes to play Go, to hike, and to sculpt.
Extended abstract of tutorial and lecturer biography! Introduction to NETGRAPH on FreeBSD Systems
AsiaBSDCon on March 22-23, 2012 in Tokyo, Japan" Page 3 / 3
Dr. Adrian Steinmann, <ast@marabu.ch>! Version 2.5, February 2012
Introduction to
NETGRAPH
on FreeBSD Systems
Dr. Adrian Steinmann <ast@marabu.ch>
AsiaBSDCon 2012
Tokyo University of Science, Tokyo, Japan
22 – 25 March, 2012
<unnamed>:
ksocket [11]:
inet/dgram/udp
<unnamed>:
l2tp [f]:
lower ctrl
<unnamed>:
socket [e]:
ctrl
mpd304-L1-lt:
tee [d]:
left2right
ngctl306:
socket [13]:
mpd304-cso:
socket [b]:
mpd304-eso:
socket [c]:
mpd294-cso:
socket [4]:
mpd304-lso:
socket [a]:
l0
mpd294-eso:
socket [5]:
mpd294-lso:
socket [3]:
Extended Abstract
Tutorial Slides
‘All About Netgraph’
man 8 ngctl
man 8 nghook
man 4 netgraph
Tutorial Materials
剩余65页未读,继续阅读
资源评论
whenloce
- 粉丝: 99
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功