rfc3993.Subscriber-ID Suboption for the Dynamic Host Configuration Protocol (DHCP) Relay Agent Optio
linux下实现3G模块收发短信、拨号上网

linux下实现3G模块收发短信、拨号上网一、开发环境内核版本:linux-3.0开发板:FL2440(nandflash:K9F1G08 128M)编译器:arm-linux-gcc 4.3.23G模块信息:中兴的MF626模块,生产厂家ID为0x19d2,设备ID为0x0031 。
二、配置内核:DeviceDrivers---→USBsupport---→USB SerialConverter support--→[*]USBGeneric Serial DriverUSBdriver for GSM and CDMA modemsDeviceDrivers--→Network devicesupport---→PPP (point-to-point protocol) support[*] PPP multilink support (EXPERIMENTAL)PPP support for async serial portsPPP support for sync tty portsPPP Deflate compressionPPP BSD-Compress compression添加设备ID(如果有就不用添加):vim drivers/usb/serial/option.c#define ZTE_VENDOR_ID 0x19d2m drivers/usb/serial/option.c#define ZTE_PRODUCT_MF626 0x0031编译内核,下载到开发板重新启动,注意如果用不是ubifs文件系统,记得在启动时把ubifs文件系统挂在上,应为后面使用usb_modeswitch工具时必须挂在ubifs文件系统。
三、制作usb转串口工具因为我们的3G模块是插在usb串口上的,所以需要制作usb转串口工具mkdir usb-modeswitchcd usb-modeswitchwget /repo/pkgs/libusb1/libusb-1.0.0.tar.bz2/df2447c23750ef2b4a314200feacc2ee/libusb-1.0.0.tar.bz2wget/project/libusb/libusb-compat-0.1/libusb-compat-0.1.5/libusb-compat-0.1.5.tar.bz2wget/repo/pkgs/usb_modeswitch/usb-modeswitch-1.2.4.tar.bz2/dbd4ce7966d7b4a5a0604a8280f7164d/usb-modeswitch-1.2.4.tar.bz2wget/usb_modeswitch/usb-modeswitch-data-20130607.tar.bz2以上这些下载地址如果有失效的,搜索相应的文件下载,即可下载再解压即可。
电信SIP规范(协议细则)

1 范围......................................................... 3 2 编制说明 ..................................................... 3 3 SIP 及其扩展规范 .............................................. 4
中国电信 SIP规范
用户终端 代理服务 SIP-ISUP B2BUA
UA
器
互通单元
---
---
---
---
注册服务 器 --- 1.
2.
说明
本章主要描述 User Agent 的行为,但由于实现 proxy 功能的实体在处理消息时 可能转而承担 UAC 或 UAS 的角色,因此 16 章 中有些内容的描述也参照 了本章。但本章中的某些 细节性规定并不适合 UAC 或 UAS 在第 16 章中 的应用场合。 根据第 1 点的说明,本章 中对 Proxy 的要求实质上 是对实现 Proxy 功能的实 体在转而承担 UAC 或 UAS 角色时的要求,因此 本章内容对此种应用场合 下的 UAC 或 UAS 而言可 能都是部分要求。为了说 明上的方便,本章内容对 于“Proxy”只存在“要求” 或“不适用”,如果有特 殊考虑将在“说明”一栏 中进行解释
5.1 invite 消息................................................................................................................ 66 5.2 ACK........................................................................................................................67 5.3 BYE ........................................................................................................................ 67 5.4 CANCEL ................................................................................................................. 69 5.5 REGISTER............................................................................................................... 69 5.6 OPTIONS................................................................................................................. 70 5.7 INFO....................................................................................................................... 71 5.8 PRACK.................................................................................................................... 72
RFC2868

14 Banyan Vines
15 E.164 with NSAP format subaddress
3.3. Tunnel-Client-Endpoint
描述
该属性包含了创建端的地址。它可以被包含在Access-Request和Access-Accept报文中,
类型,则它按照收到一个Access-Reject报文处理。
如果一个隧道终结者发送的Access-Request报文中包含了Tunnel-Type属性,则该属性应该
是表示当前正在使用的隧道协议。这中情况下,如果RADIUS服务器认为该协议没有被授权,
它会返回一个Access-Reject报。如果一个隧道终结者收到包含有一个或者是多个
3.1. Tunnel-Type
描述
该属性描述了将被使用的隧道协议(隧道创建者[tunnel initiator])或者是已经被使用的
隧道协议(隧道终结者[tunnel terminator])。该属性可以被包含在Access-Request,
Access-Accept 和 Accounting-Request报文中。如果该属性是被包含在隧道创建者发送
Category: Informational A. Rubens
Ascend Communications
J. Shriver
支持隧道协议的RADIUS属性
(RFC2868-RADIUS Attributes for Tunnel Protocol Support)
摘要
该文档定义了一组Radius属性,用于支持拨号网络中的强制隧道。
需要定义一些用于从RADIUS服务器传送隧道信息到隧道另一端的新的RADIUS属性。
PON-MAC芯片BL2000介绍

PON MAC芯片(DS-BL2000)介绍1、主要接口1.1数字接口●Dual Fast Ethernet 10/100 (IEEE 802.3/802.3u)●Gigabit Ethernet 10/100/1000 (IEEE 802.3ab/802.3z)●Native TDM GEM Interface●Peripheral Bus Interface (PBI) for glueless interface to common industry1.2光接口⏹Integrated 2488/1244Mbps CDR⏹Glueless interface to BPON and GPON Multi-Source Agreement (MSA) Small FormFactor (SFF) transceivers1.3 TDM接口⏹TDM Interface⏹Native TDM over GEM via an companion FPGA2、以太网MAC2.1配置以太网接口●Fast Ethernet 10/100 (IEEE 802.3/802.3u)MII or dual RMII MAC InterfaceHalf and full duplex support●Gigabit Ethernet 10/100/1000 (IEEE 802.3ab/802.3z)GMII MAC Interface●Configurable 802.3x hardware flow control●IEEE 802.1q VLAN tagging2.2、GPON MAC●The GPON MAC supports Ethernet packet and TDM payload transport over the PONinterface through GPON Encapsulation Mode (GEM). It supports ITU-T G.984.x set ofstandards with extended functionalities●Compliant to G.984.x●Multiple data rates●Configurable AES encryption on DS payload●Configurable FEC on US and DS payload●Dedicated connections for In-band management can be directed to CPU2.3、BPON MACBroadLight’s ITU-T G.983 MAC is industry proven and FSAN interoperable.●G.983.1 compliant●G.983.2 (OMCI) compliant●G.983.4 (DBA) compliant●Multiple data rates●Queue manager●32 VP/VC group filters●ATM cell processing with end-to-end OAM per I.610●Derives clock from recovered network clock2.4、CDR, SerDes●PCML TX and LVPECL RX interface levels●Variable Data rates●Selectable reference clock frequency 78 MHz or 155 MHz●Integrated on-chip 50Ω termination resistor in the transmitter and in the receiver3、Cell/Packet Processor信源、包处理引蟼是为了优化GPON或者BPON数据平台流处理器。
VOS3000操作手册

2.2
操作入口
在费率组管理内选择行后,使用右键《打开》
在费率组管理内双击《费率数量》的数字.
表格说明
费率前缀:被叫号码以费率前缀号码+地区前缀号码开始则使用此费率计费(★费率前缀的匹配按照最长匹配原则,例:存在费率前缀0与01两个费率则用户拨打号码01117则按照费率前缀01使用费率进行计费)
地区前缀:被叫号码匹配费率的一部分;同时根据此地区前缀号码在地区名称栏显示出《号码管理》-》《地区信息》记录的具体地区名称
2
2.1
操作入口
双击《导航》《费率管理》
表格说明
费率组名称:费率组的名称,将在创建账户选择费率时使用该名称(★费率组名称尽可能表达费率信息)
费率数量:费率组内实际包含的费率数量
电话卡60秒等效时长:电话卡计费60秒对应的实际通话时长
备注:费率组的补充说明
使用账户数:当前使用此费率组的账户数量
创建用户:创建此费率的用户登录名称。
第二章:操作补充说明,对功能操作的补充
第三章:服务器维护,简单介绍服务的启动重启和关闭。
第四章:产品安装,VOS3000虚拟运营支撑系统客户端概述第五章:系统需求,VOS3000客户端运行平台需求手册符号
符号《》客户端界面可见文字或可操作元素
手册图例
图例★提示信息,仅供用户参考
图例★★一般信息,协助用户完成特定操作
操作说明
付款方式:用户采取的付款方式,若选择充值卡方式则需要输入卡号和密码
缴费类型:《缴费》对账户进行缴费《冲正》将金额从账户中扣除。《归零》将账户的当前余额清零
金额:缴费的金额
备注:缴费的备注信息将作为历史记录保留
(★对账户的缴费操作将在系统的缴费记录中可以查询)
中国电信SIP规范第一部分_总体要求

中国电信SIP协议规范——总体要求(试行)2004年4月发布 2004年4月试行中国电信集团公司发布前言SIP协议是下一代网络中的接口协议之一,属于应用控制协议。
本标准是以IETF和ITU-T的相关标准为基础,结合中国电信网络的实际情况,并综合中国电信集团公司对下一代网络的实验成果制定的。
它是中国电信在下一代网络建设中引进、测试和研发软交换设备、SIP终端设备以及其他基于SIP协议相关设备的规范和依据。
鉴于SIP协议应用范围广泛,项目组在编写时将整个协议规范分为3个分册:第一分册:《总体要求》第二分册:《协议细则》第三分册:《信令流程》本分册为《总体要求》分册本标准由中国电信集团公司提出。
本标准由中国电信集团公司归口。
本标准2004年4月首次发布。
本标准由中国电信集团公司负责解释。
目录1范围 (1)2术语说明 (1)3参考标准 (2)4符号及缩写 (5)5SIP网络系统结构 (6)5.1 系统框架 (6)5.2 实体说明 (7)5.3 接口说明 (7)5.3.1 NNI接口 (7)5.3.2 UNI接口 (8)5.3.3 其它接口 (8)6实体能力要求 (8)6.1 用户终端(User Terminal UA) (8)6.1.1 协议支持 (9)6.2 代理服务器(Proxy) (10)6.2.1 协议支持 (10)6.2.2 路由 (11)6.2.3 安全性 (12)6.3 注册服务器(Registrar) (13)6.3.1 协议支持 (13)6.3.2 功能要求 (13)6.3.3 注册及更新 (13)6.3.4 注销 (14)6.3.5 其他要求 (14)6.4 重定向服务器(Redirect Server) (14)6.5 SIP-ISUP互通单元 (15)7SIP网络与PSTN的互通 (15)7.1 网络互通模型 (15)7.1.1 PSTN用户-SIP用户 (16)7.1.2 SIP用户-PSTN用户 (17)7.1.3 PSTN用户-SIP网络-PSTN用户 (18)7.2 SIP-ISUP互通单元能力要求 (21)8业务和应用 (21)8.1 B2BUA (21)8.1.1 定义及实现 (21)8.1.2 呼叫和业务控制 (22)8.2 即时消息 (23)8.2.1 业务体系 (23)8.2.2 协议支持 (23)8.3 Presence (23)8.3.1 业务体系 (23)8.3.2 协议支持 (25)8.3.3 与其他业务相结合 (26)8.4 并行、串行寻址 (26)8.4.1 串行寻址: (26)8.4.2 并行寻址 (27)8.5 SIP用户的呼叫等待业务 (27)8.6 应用服务器和软交换之间的SIP接口 (28)8.7 SIP协议在业务控制方面的应用 (28)8.8 跨域智能业务的考虑 (28)8.9 软交换控制下的IAD用户对局间信令的要求 (29)8.10 语音提示音的播放 (29)8.11 媒体端口打开与计费点启动的考虑 (30)图表目录图 5-1 SIP网络系统逻辑结构示意 (7)图 7-1 PSTN用户-SIP用户 (16)图 7-2 SIP用户-PSTN用户 (17)图 7-3 PSTN用户-SIP网络-PSTN用户 (18)图 8-1基于SIP 的Presence 业务体系 (23)1范围本分册主要对SIP网络系统结构做出规定,对其中涉及到的接口以及相关实体的功能作出简要说明和要求。
osip协议栈
正文第一章SIP协议SIP协议是用于发起、控制和终结多媒体会话的信令协议。
它被IETF( )以rfc2543发表。
SIP是IETF致力于将电话服务带入IP网络众多协议的一个组成部分(它与SDP、RTP、RTCP、RTSP、RSVP、TRIP等众多协议构成SIP系统协议栈)。
其将要变成正在发展的IP电话——这个朝气蓬勃的电信工业——的标准之一。
正如同电子邮件协议一样,SIP将会变得越来越普及和大众化… …SIP独立与媒体传统电话使用一种媒体编码个师通讯(正如被我所熟知的时隙和PCM概念)。
现在,这种方式将被终结。
我们的电话可以以不同的质量保证和不同的编码方法连接电视、连接摄像机、连接其他电话进行通信。
SIP具有媒体协商等功能。
任何多媒体应用(例如:游戏、远程教学)都可以使用SIP来建立会话。
SIP独立于传输层SIP并不和任何的传输层紧密结合。
这一构思将使得SIP在第三代网络中受到最小的互操作影响。
无线电话的要求(例如漫游功能)同样被关心。
SIP完美的构思,使得其适合作为新蜂窝电话时代的信令协议。
SIP有很好的扩展性在rfc2543中定义了6种类型的事务(INVITE,BYE,CANCEL… …)。
这些事务被用于媒体协商、创建、修改和终结呼叫。
许多其它的服务已经提供这些方式(例如H.323系统),但SIP以其为扩展性为目的设计和事务模型重用(对于服务器是透明的,被用于使用新类型事务创建辅助服务)。
下面是可能的服务列表,其中的一些已经被实现。
短信,用于实时信息预定或通告,用于会议管理委托,用于呼叫转移等管理SIP和最终用户服务“SIP透明支持名字映射和重定向服务,提供ISDN和智能网络电话服务同样的一些功能。
这些特性也使得个人移动成为可能。
”参考阅读:rfc2543.txt(章节1.1)SIP服务器被用于定位用户和分发请求的用户定位信息。
这些途径,使得最终用户代理发起很少的请求,并能获得多种多样的服务。
RFC1213
第四次课讲义管理信息库(RFC 1213)目的:SNMP PDU中如何指定VarBind中的OID部分参考:相关RFC,以及RFC中的一些语法理解重点:MIB文件中如何描述MIB变量难点:向量对象(变量)的OID如何得到?POSSIBLE PROJECT:??MIB文件的解析,得到一个树状数据结构---常规MIBBROWSER中的一项主要工作。
??SNMP API的开发1. 目的:SNMP PDU中如何指定VarBind中的OID部分??阅读相关MIB文件,根据管理功能获取要读取的MIB变量??获取该MIB变量的OID和实例OID标识2. MIB:对特定被管设备的特定管理内容的形式化描述(TXT文件)3. 参考:RFC 1213,主要是如何读懂RFC 1213这个文本文件RFC1213-MIB DEFINITIONS ::= BEGIN -----模块定义IMPORTS ------输入类型等:本定义中用到的外部引用类型等 mgmt, NetworkAddress, IpAddress, Counter, Gauge,TimeTicksFROM RFC1155-SMI ---从RFC 1155中引用的类型OBJECT-TYPEFROM RFC-1212; ----从RFC 1212中引用的宏------------------------------------------------------------------------------------------------------------以下为RFC 1212节选,主要是定义了RFC 1213中引用的部分IMPORTSObjectNameFROM RFC1155-SMIDisplayStringFROM RFC1158-MIB;以下为OBJECT-TYPE宏的定义,相当于变量定义模板:OBJECT-TYPE MACRO ::=BEGINTYPE NOTATION ::=-- must conform to-- RFC1155's ObjectSyntax"SYNTAX" type(ObjectSyntax)"ACCESS" Access"STATUS" StatusDescrPartReferPartIndexPartDefValPartVALUE NOTATION ::= value (VALUE ObjectName)Access ::= "read-only"| "read-write"| "write-only"| "not-accessible"Status ::= "mandatory"| "optional"| "obsolete"| "deprecated"DescrPart ::="DESCRIPTION" value (description DisplayString) | emptyReferPart ::="REFERENCE" value (reference DisplayString)| emptyIndexPart ::="INDEX" "{" IndexTypes "}"| emptyIndexTypes ::=IndexType | IndexTypes "," IndexTypeIndexType ::=-- if indexobject, use the SYNTAX-- value of the correspondent-- OBJECT-TYPE invocationvalue (indexobject ObjectName)-- otherwise use named SMI type-- must conform to IndexSyntax below | type (indextype)DefValPart ::="DEFVAL" "{" value (defvalue ObjectSyntax) "}" | emptyENDIndexSyntax ::=CHOICE {numberINTEGER (0..MAX),stringOCTET STRING,objectOBJECT IDENTIFIER,addressNetworkAddress,ipAddressIpAddress}---------------------------------------------------------------------------------------------------------------以下为OID树的定义,用形式化的方法定义,并贯穿于所有MIB变量的定义之中。
Radius计费
RFC2866 - RADIUS记账(1)RFC2866 - RADIUS Accounting摘要本文描述在网络访问服务器和记账服务器之间传递记账信息协议。
注意本文描述RADIUS记账协议。
早期的RADIUS记账报文使用UDP1646端口,这和“sa-msg-port”服务冲突。
RADIUS记账协议的正式端口是1813。
1.概述管理大量用户的分散的串行线路和modem池为管理支持创建了大量需求。
因为modem池定义和外界联系的方式,必须仔细关注安全,授权和记账问题。
通过管理一个用户数据库,允许用户认证(确认用户名和密码),同时配置为用户传递数据的服务类型,是一种最佳的实现方式。
RADIUS协议用来进行认证和授权。
本文扩展了RADIUS协议,将记账报文通过NAS传递到RADIUS记账服务器。
本文废弃了RFC 2139。
RADIUS记账的特点如下:●C/S模式网络访问服务器(NAS)作为客户端与RADIUS记账服务器进行交互。
客户端需要将记账报文发向指定的记账服务器。
RADIUS记账服务器的职责是接收记账请求,并且向客户端应答报文表示记账成功。
RADIUS记账服务器可以作为代理将请求转发到其他记账服务器。
●网络安全客户端和RADIUS记账服务器之间的事务使用一个从来不在网络中传递的共享密钥进行认证。
●可扩展协议所有的事务都由(属性,长度,值)三部分组成。
实现时添加新的属性不会影响已有属性。
1.1. 需求描述以下关键字在RFC 2119中描述。
"MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL"。
ISUP消息中常见rel原因值
ISUP消息中常见rel原因值:1 Unassiagned number(未分配的号码(空号))3 No route to destination(无至目的地的路由)6 Channel unacceptable(不可接受的信道)16 Normal clearing(正常清除)17 User busy(用户忙)18 No user responding(无用户响应)19 User alerting,no answer(已有用户提醒,但无应答)21 Call rejected(呼叫拒绝)22 Number changed(号码改变)26 Non selected user clearing(清除未选择的用户)27 Destination out of order(终点故障)28 Incomplete number(无效号码格式(不完全的号码))29 Facility rejected(设施被拒绝)30 Response to status enquiry(对状态询问的响应)31 Normal,unspecified(正常,未规定)34 No circuit/channel available(无电路/信道可用)38 Network out of order(网络故障)41 Temporary failure(临时故障)42 Switching equipment congestion(交换设备拥塞)43 Access information discarded(接入信息被丢弃)44 Requested circuit/channel not available(请求的电路/信道不可用)47 Resources unavailable,unspecified(资源不可用,未规定)49 Quality of service unavailable(服务质量不可用)50 Requested facility not subscribed(未预订所请求的设施)55 Incoming calls barred within the CUG57 Bearer capability not authorized(承载能力未认可)58 Bearer capability not presently available(承载能力目前不可用)63 Service or option not available,unspecified(无适用的业务或任选项目,未规定)65 Bearer service not implemented(承载业务不能实现)68 ACM equal to or greater than ACMmax69 Requested facility not implemented(所请求的设施不能实现)70 Only restricted digital information bearer(仅能获得受限数字信息承载能力)79 Service or option not implemented(业务不能实现,未规定)81 Invalid transaction identrfier value(无效处理识别码)87 User not member of CUG88 Incompatible destination(非兼容目的地址)91 Invalid mandatory information(无效过渡网选择)95 Semantically incorrect message(无效消息,未规定)96 Invalid mandatory information(必选消息单元差错)97 Message type non-existent or not implemented(消息类型不存在或不能实现)98 Message type not compatible with protocol state(消息与控制状态不兼容,消息类型不存在或不能实现)99 Information element non-existent or not implemented(信息单元不存在或不能实现)100 Conditional IE error(无效信息单元内容)101 Message not compatible with protocol state(消息与呼叫状态不兼容)102 Recovery on timer expiry(定时器超时恢复)111 Protocol error,unspecified(协议差错,未规定)127 Interworking,unspecified(互通,未规定)解释:原因NO.1:未分配的(未确定的)号码"unassigned (unallocaled) number"该原因表示不能到达主叫用户所请求的终点,因为虽然号码格式有效,但该号码目前尚未分配(未确定)。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Network Working Group R. Johnson Request for Comments: 3993 T. Palaniappan Category: Standards Track M. Stapp Cisco Systems, Inc. March 2005 Subscriber-ID Suboption for theDynamic Host Configuration Protocol (DHCP) Relay Agent OptionStatus of This MemoThis document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions forimprovements. Please refer to the current edition of the "InternetOfficial Protocol Standards" (STD 1) for the standardization stateand status of this protocol. Distribution of this memo is unlimited. Copyright NoticeCopyright (C) The Internet Society (2005).AbstractThis memo defines a new Subscriber-ID suboption for the Dynamic Host Configuration Protocol’s (DHCP) relay agent information option. The suboption allows a DHCP relay agent to associate a stable"Subscriber-ID" with DHCP client messages in a way that isindependent of the client and of the underlying physical networkinfrastructure.Table of Contents1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 22. Requirements Terminology . . . . . . . . . . . . . . . . . . . 23. The Subscriber-ID Suboption . . . . . . . . . . . . . . . . . 23.1. Suboption Format . . . . . . . . . . . . . . . . . . . . 34. Relay Agent Behavior . . . . . . . . . . . . . . . . . . . . . 35. DHCP Server Behavior . . . . . . . . . . . . . . . . . . . . . 46. Security Considerations . . . . . . . . . . . . . . . . . . . 47. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 58. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . . 59. References . . . . . . . . . . . . . . . . . . . . . . . . . . 5 9.1. Normative References . . . . . . . . . . . . . . . . . . 5 9.2. Informative References . . . . . . . . . . . . . . . . . 5 Authors’ Addresses . . . . . . . . . . . . . . . . . . . . . . . . 6 Full Copyright Statement . . . . . . . . . . . . . . . . . . . . . 7 Johnson, et al. Standards Track [Page 1]1. IntroductionDHCP (RFC 2131 [2]) provides IP addresses and configurationinformation for IPv4 clients. It includes a relay agent capabilityin which processes within the network infrastructure receivebroadcast messages from clients and forward them to DHCP servers asunicast messages. In network environments such as DOCSIS data-over- cable and xDSL, it has proven useful for the relay agent to addinformation to the DHCP message before forwarding it, by using therelay agent information option (RFC 3046 [3]).Servers that recognize the relay agent option echo it back in theirreplies, and some of the information that relays add may be used tohelp an edge device efficiently return replies to clients. Theinformation that relays supply can also be used in the server’sdecision making about the addresses and configuration parameters that the client should receive.In many service provider environments, it is desirable to associatesome provider-specific information with clients’ DHCP messages. This is often done by using the relay agent information option. RFC 3046 defines Remote-ID and Circuit-ID suboptions that are used to carrysuch information. The values of those suboptions, however, areusually based on a network resource such as an IP address of anetwork access device, an ATM Virtual Circuit identifier, or a DOCSIS cable-modem identifier. As a result, the values carried in thesesuboptions are dependent on the physical network configuration. If a client connects to the service provider network through differentpaths, different values are carried in network-dependent suboptions.2. Requirements TerminologyThe key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT","SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [1].3. The Subscriber-ID SuboptionIn complex service provider environments, connecting a customer’sDHCP configuration and administrative information is necessary. The Subscriber-ID suboption carries a value that can be independent ofthe physical network configuration through which the subscriber isconnected. This value complements, and might well be used inaddition to, the network-based relay agent option suboptionsdiscussed in Section 2. The "subscriber-id" assigned by the provider is intended to be stable as customers connect through differentpaths, and as network changes occur.Johnson, et al. Standards Track [Page 2]The Subscriber-ID information allows the service provider toassign/activate subscriber-specific actions; e.g., assignment of host IP address and subnet mask, DNS configuration, or trigger accounting. This suboption is de-coupled from the access network’s physicalstructure, so subscriber moves from one access-point to another, for example, would not require reconfiguration at the service provider’s DHCP servers.The Subscriber-ID is an ASCII string; the encoding of the string isdefined in Section 3.1. The semantic contents of the Subscriber-IDstring are, of course, provider-specific. This specification doesnot establish any semantic requirements on the data in the string.3.1. Suboption FormatThis memo defines a new DHCP relay agent option suboption thatcarries a "Subscriber-ID" value. The value is an ASCII string. The suboption takes a form similar to that of many other relayinformation option suboptions:0 1 2 3 4 5+-----+-----+-----+-----+-----+----+--|Code | Len | Subscriber-ID string ...+-----+-----+-----+-----+-----+----+--The Code for the suboption is 6.The one-octet Len field is the length of the ID string, in octets.The minimum length of the ID string is 1 octet.The "Subscriber-ID" is an NVT ASCII [4] string. The string MUST NOT be NULL terminated, as the length is specified in the "Len" field.4. Relay Agent BehaviorDHCP relay agents MAY be configured to include a Subscriber-IDsuboption if they include a relay agent information option in relayed DHCP messages. The subscriber-id strings themselves are assigned and configured through mechanisms that are outside the scope of thismemo.Johnson, et al. Standards Track [Page 3]5. DHCP Server BehaviorThis suboption provides additional information to the DHCP server.If it is configured to support this option, the DHCP server may usethis information in addition to other relay agent option data andother options included in the DHCP client messages in order to assign an IP address and/or other configuration parameters to the client.There is no special additional processing for this suboption.6. Security ConsiderationsMessage authentication in DHCP for intradomain use where the out-of- band exchange of a shared secret is feasible is defined in RFC 3118[5]. Potential exposures to attacks are discussed in section 7 ofthe DHCP protocol specification in RFC 2131 [2].The DHCP relay agent option depends on a trusted relationship between the DHCP relay agent and the server, as described in section 5 of RFC 3046. Fraudulent relay agent option data could potentially lead totheft-of-service or exhaustion of limited resources (like IPaddresses) by unauthorized clients. A host that tampered with relay agent data associated with another host’s DHCP messages could denyservice to that host, or interfere with its operation by leading the DHCP server to assign it inappropriate configuration parameters.While the introduction of fraudulent relay agent options can beprevented by a perimeter defense that blocks these options unless the relay agent is trusted, a deeper defense using authentication forrelay agent options via the Authentication Suboption [6] or IPSec [7] SHOULD be deployed as well.There are several data fields in a DHCP message conveying information that may identify an individual host on the network. These includethe chaddr, the client-id option, and the hostname and client-fqdnoptions. Depending on the type of identifier selected, theSubscriber-ID suboption may also convey information that identifies a specific host or a specific user on the network. In practice, thisinformation isn’t exposed outside the internal service-providernetwork, where DHCP messages are usually confined. Administratorswho configure data that’s going to be used in DHCP Subscriber-IDsuboptions should be careful to use identifiers that are appropriate for the types of networks they administer. If DHCP messages traveloutside the service-provider’s own network, or if the suboptionvalues may become visible to other users, that may raise privacyconcerns for the access provider or service provider.Johnson, et al. Standards Track [Page 4]7. IANA ConsiderationsIANA has assigned a value of 6 from the DHCP Relay Agent Information Option [3] suboption codes for the Subscriber-ID Suboption described in this document.8. AcknowledgementsThis document is the result of work done within Cisco Systems.Thanks especially to Andy Sudduth for his review comments.9. References9.1. Normative References[1] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997.[2] Droms, R., "Dynamic Host Configuration Protocol", RFC 2131,March 1997.[3] Patrick, M., "DHCP Relay Agent Information Option", RFC 3046,January 2001.[4] Postel, J. and J. Reynolds, "Telnet Protocol Specification", STD 8, RFC 854, May 1983.9.2. Informative References[5] Droms, R. and W. Arbaugh, "Authentication for DHCP Messages",RFC 3118, June 2001.[6] Stapp, M., "The Authentication Suboption for the DHCP RelayAgent Option", Work in Progress.[7] Droms, R., "Authentication of Relay Agent Options Using IPSec", Work in Progress.Johnson, et al. Standards Track [Page 5]Authors’ AddressesRichard JohnsonCisco Systems, Inc.170 W. Tasman Dr.San Jose, CA 95134USAPhone: 408.526.4000EMail: raj@Theyn PalaniappanCisco Systems, Inc.170 W. Tasman Dr.San Jose, CA 95134USAPhone: 408.526.4000EMail: athenmoz@Mark StappCisco Systems, Inc.1414 Massachusetts Ave.Boxborough, MA 01719USAPhone: 978.936.0000EMail: mjs@Johnson, et al. Standards Track [Page 6]Full Copyright StatementCopyright (C) The Internet Society (2005).This document is subject to the rights, licenses and restrictionscontained in BCP 78, and except as set forth therein, the authorsretain all their rights.This document and the information contained herein are provided on an "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNETENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THEINFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIEDWARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Intellectual PropertyThe IETF takes no position regarding the validity or scope of anyIntellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described inthis document or the extent to which any license under such rightsmight or might not be available; nor does it represent that it hasmade any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can befound in BCP 78 and BCP 79.Copies of IPR disclosures made to the IETF Secretariat and anyassurances of licenses to be made available, or the result of anattempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of thisspecification can be obtained from the IETF on-line IPR repository at /ipr.The IETF invites any interested party to bring to its attention anycopyrights, patents or patent applications, or other proprietaryrights that may cover technology that may be required to implementthis standard. Please address the information to the IETF at ietf-ipr@.AcknowledgementFunding for the RFC Editor function is currently provided by theInternet Society.Johnson, et al. Standards Track [Page 7]。