- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
接口栈
SUMMER
理解接口栈的概念,了解接口如何创建,接口之间如何嫁
接等等,这对理解MX作为BRAS如何部署业务,如何管理
接入用户起着至关重要的作用。本文从三个方面加以阐述:
接口的类别、属性
各种典型业务情况下接口栈如何嫁接
各种典型配置和验证。
备注:为简化,本文只是为了讲述接口栈,没有涉及到接口上复杂的特性,比
如接口上的filter, QOS等等。
IFX
IFD - The Interface Device contains the physical interface config.
IFL - The Logical Interfaces. It contains the L2 protocol config
and is the interfaces for forwarding and routing
IFF - The Interface Family is used to configure Layer3 protocol
configuration.
IFA - The Interface Address is used to configure Layer3
addresses on families.
3 Copyright © 2012 Juniper Networks, Inc.
INTERFACE HIERARCHY (IFD)
ifdev (aka IFD)
–One for each piece of network hardware in the system
(almost)
Not all IFD’s have an associated physical hardware (e.g. lo0,
ae0, dsc, gre, ipip, .local.. Etc.)
– Holds most procedure handles for the device driver and
device specific information
–Added as part of device discovery
Autoconfig time for RE devices
Chassisd added for PFE devices
– Layer 1 data structure
4 Copyright © 2012 Juniper Networks, Inc.
INTERFACE HIERARCHY (IFD) …
How do we identify IFDs in the system?
– By name (ge-x/y/z)
x – FPC slot
y – PIC slot
z – Port on the PIC
The kernel maintains a patricia tree based on the IFD name
– By ifd index
Assigned by the kernel when an IFD is created
– By snmp Id
5 Copyright © 2012 Juniper Networks, Inc.
INTERFACE HIERARCHY (IFD) …
Procedure handles for device driver
– ifd_devoutput
Routine to send packet out of this interface
– ifd_iflinput
Routine to receive packets from this interface
– ifd_ifdconfig
Routine to configure this interface
– ifd_ifdstat
Stats collection routine
– ifd_iflconfig
ADD/DEL/CHG IFLs (e.g. ether_ifconfig)
– ifd_pfe_iflconfig
PFE specific work (e.g. stats memory allocation, etc.)
– i
文档评论(0)