RFC3550_RTP中文版
- 格式:pdf
- 大小:99.10 KB
- 文档页数:21
3.1. RTP协议分析3.1.1. RTP是什么RTP全名是Real-time Transport Protocol(实时传输协议)。
它是IETF提出的一个标准,对应的RFC文档为RFC3550(RFC1889为其过期版本)。
RFC3550不仅定义了RTP,而且定义了配套的相关协议RTCP(Real-time Transport Control Protocol,即实时传输控制协议)。
RTP用来为IP网上的语音、图像、传真等多种需要实时传输的多媒体数据提供端到端的实时传输服务。
RTP为Internet上端到端的实时传输提供时间信息和流同步,但并不保证服务质量,服务质量由RTCP 来提供。
3.1.2. RTP的协议层次——传输层的子层RTP被划分在传输层,它建立在UDP上。
同UDP协议一样,为了实现其实时传输功能,RTP也有固定的封装形式。
RTP用来为端到端的实时传输提供时间信息和流同步,但并不保证服务质量。
服务质量由RTCP来提供。
3.1.3. RTP协议原理RTP协议原理比较简单,负责对流媒体数据进行封包并实现媒体流的实时传输,即它按照RPT数据包格式来封装流媒体数据,并利用与它绑定的协议进行数据包的传输,具体见本文2.2.1RTP数据格式;RTP本身只保证实时数据的传输,并不能为按顺序传送数据包提供可靠的传送机制,也不提供流量控制或拥塞控制,它依靠RTCP提供这些服务。
3.1.3.1. RTP的封装版本号(V):2比特,用来标志使用的RTP版本。
填充位(P):1比特,如果该位置位,则该RTP包的尾部就包含附加的填充字节。
扩展位(X):1比特,如果该位置位的话,RTP固定头部后面就跟有一个扩展头部。
CSRC计数器(CC):4比特,含有固定头部后面跟着的CSRC的数目。
标记位(M):1比特,该位的解释由配置文档(Profile)来承担。
载荷类型(PT):7比特,标识了RTP载荷的类型。
序列号(SN):16比特,发送方在每发送完一个RTP包后就将该域的值增加1,接收方可以由该域检测包的丢失及恢复包序列。
3550中文配置手册配置接口特性这一章详细说明交换机上的接口和描述这么配置他们。
这章有以下这些内容:z理解接口类型z使用接口命令z配置二层接口z监控和维护二层接口z配置三从接口注意:需要完整的有关该章的语法和应用信息,请参考Catalyst 3550 Multilayer Switch Command Reference和Cisco IOS Interface Command Reference for Release 12.1.理解接口类型这个部分描述了不同的接口类型,以及其它章节所包括的详细配置这些接口的一些参考内容。
其他章节描述了物理接口特性的配置过程。
这部分包括:•基于端口的VLAN (Port-Based VLANs)•交换端口 (Switch Ports)•以太网通道端口组 (EtherChannel Port Groups)•交换虚拟接口 (Switch Virtual Interfaces)•被路由端口 (Routed Ports)•连接接口 (Connecting Interfaces)基于端口的VLAN (Port-based Vlans)一个Vlan是一个按功能、组、或者应用被逻辑分段的交换网络,并不考虑使用者的物理位置。
要更多关于Vlan的信息请看“Configuring VLANS”。
一个端口上接受到的包被发往属于同一个Vlan的接收端口。
没有一个第三层的设备路由Vlan间的流量,不同Vlan的网络设备无法通讯。
为了配置普通范围(Normal-range) Vlan(Vlan IDs 1-1005),使用命令: config-vlan模式(global) vlan vlan-id或vlan-configuration模式(exec) vlan database针对Vlan ID 1-1005的vlan-configration模式被保存在vlan数据库中。
为配置扩展范围(extended-range) Vlans (Vlan ID 1006-4094),你必须使用config-vlan模式,并把VTP的模式设为transparent透明模式。
RTP协议中文版协议名称:RTP协议中文版一、引言RTP(Real-time Transport Protocol)是一种用于实时传输音频和视频数据的协议。
本协议旨在提供一种标准化的通信方式,以确保实时传输的数据能够在网络中以高效、可靠的方式传输。
本协议的中文版旨在为中文用户提供更便捷的参考和理解。
二、范围本协议适用于所有需要实时传输音频和视频数据的应用程序和系统。
三、术语定义1. RTP数据包(RTP Packet):包含音频或视频数据的最小传输单位,由RTP头部和有效载荷组成。
2. RTP头部(RTP Header):包含RTP数据包的相关信息,如序列号、时间戳等。
3. 有效载荷(Payload):RTP数据包中携带的音频或视频数据。
4. SSRC(Synchronization Source):用于唯一标识RTP数据流的32位标识符。
5. CSRC(Contributing Source):用于标识贡献该RTP数据包的参与者。
四、协议规范1. RTP数据包格式RTP数据包由RTP头部和有效载荷组成,其格式如下:```0 1 2 30 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P|X| CC |M| PT | Sequence number |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Timestamp |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | SSRC |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | CSRC |: :| |+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Payload ...+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ ```- V:协议版本号,占2位,当前版本为2。
ietfrfc3551—2003
RFC 3551是实时传输协议(RTP)的标准,它定义了互联网音频和视频传输的标准格式。
该标准主要应用于实时传输数据,例如音频、视频或仿真数据。
RTP本身不提供服务质量保证(QoS),也不提供资源预留功能,但可以通过一个控制协议(RTCP)进行扩展,对数据传输进行监测和控制。
RTCP 可以升级到大型的多点传送(多播)网络,并提供最小限度的控制和鉴别功能。
RTP和RTCP被设计成与下面的传输层和网络层无关,这意味着它们可以与不同的传输层协议(如TCP或UDP)和不同的网络层协议(如IPv4或IPv6)一起使用。
此外,RTP标准还支持RTP标准的转换器和混合器的使用。
以上内容仅供参考,如需了解更多信息,建议查阅RFC 3551的官方文档或咨询专业技术人员。
RTP协议的中文版协议名称:RTP协议的中文版一、引言RTP(Real-time Transport Protocol)是一种用于在互联网上传输实时数据的协议。
本协议的目的是为了确保音频和视频等实时媒体数据的传输能够具备实时性、可靠性和适应性。
本协议为RTP协议的中文版,旨在提供中文用户更便于理解和使用的文档。
二、范围本协议适用于在互联网上传输实时媒体数据的应用场景,包括但不限于音频、视频、实时游戏等领域。
三、术语定义1. RTP:Real-time Transport Protocol,即实时传输协议,用于在互联网上传输实时媒体数据。
2. RTCP:Real-time Transport Control Protocol,即实时传输控制协议,用于传输RTP会话的控制信息。
3. 媒体数据:指音频、视频等实时的媒体内容。
4. 会话:指RTP协议传输的一组相关的媒体数据。
5. 参与者:指参与RTP会话的发送方和接收方。
四、协议规范1. RTP数据包格式RTP数据包由RTP头部和有效载荷组成。
RTP头部包括版本号、填充位、扩展位、CSRC计数器、标记位、有效载荷类型、序列号、时间戳和同步源标识符等字段。
有效载荷部分用于承载媒体数据。
2. RTP会话的建立和终止RTP会话的建立和终止由参与者之间的协商和交互完成。
建立会话时,发送方和接收方需要交换媒体数据的格式、编码方式、传输协议等信息。
终止会话时,参与者需要发送终止信号并进行必要的清理工作。
3. RTP传输控制协议(RTCP)RTCP用于传输RTP会话的控制信息,包括参与者的统计信息、网络延迟、丢包率等。
RTCP在RTP会话中以一定的频率发送,用于监控和调整RTP传输的性能。
4. 媒体数据的编码和解码发送方需要对媒体数据进行编码,并将编码后的数据封装为RTP数据包进行传输。
接收方需要对接收到的RTP数据包进行解码,还原出原始的媒体数据。
5. 时钟同步RTP协议使用时间戳字段来实现参与者之间的时钟同步。
RTP协议中文版1. 引言本协议旨在定义实时传输协议(RTP)的中文版标准格式,以便于中文用户理解和使用。
RTP是一种用于音频和视频传输的协议,广泛应用于实时通信、流媒体和视频会议等领域。
2. 范围本协议适用于所有使用RTP协议进行音频和视频传输的应用程序和设备。
3. 规范参考本协议参考以下文档:- RFC 3550: RTP: A Transport Protocol for Real-Time Applications- RFC 3551: RTP Profile for Audio and Video Conferences with Minimal Control- RFC 4566: SDP: Session Description Protocol4. 术语定义在本协议中,以下术语的定义适用于所有章节:- RTP:实时传输协议,一种用于音频和视频传输的协议。
- SSRC:同步信源标识符,用于唯一标识RTP数据流中的同步信源。
- RTCP:实时传输控制协议,用于传输RTP会话的控制信息。
- SDP:会话描述协议,用于描述会话的媒体参数和网络地址等信息。
5. RTP数据包格式RTP数据包由固定长度的头部和可变长度的有效载荷组成。
头部包含以下字段:- 版本(V):协议版本号,占2位。
- 填充(P):指示数据包是否有填充字节,占1位。
- 扩展(X):指示数据包是否包含扩展头部,占1位。
- CSRC计数(CC):指示CSRC标识符的数量,占4位。
- 标记(M):用于指示数据包是否为关键帧,占1位。
- 负载类型(PT):指示有效载荷类型,占7位。
- 序列号(SN):用于标识RTP数据包的顺序,占16位。
- 时间戳(TS):用于同步RTP数据流的时间戳,占32位。
- 同步信源标识符(SSRC):用于唯一标识RTP数据流中的同步信源,占32位。
- CSRC标识符(CSRC):用于标识参与混合的源,每个CSRC标识符占32位。
3550交换机(EMI)简明配置维护手册中望商业机器公司2002-12-10目录说明 (3)产品特性 (3)配置端口 (4)配置一组端口 (4)配置二层端口 (6)配置端口速率及双工模式 (6)端口描述 (7)配置三层口 (8)监控及维护端口 (10)监控端口和控制器的状态 (10)刷新、重置端口及计数器 (12)关闭和打开端口 (13)配置VLAN (14)理解VLAN (14)可支持的VLAN (15)配置正常范围的VLAN (15)生成、修改以太网VLAN (15)删除VLAN (17)将端口分配给一个VLAN (18)配置VLAN Trunks (19)使用STP实现负载均衡 (22)说明本手册只包括日常使用的有关命令及特性,其它未涉及的命令及特性请参考英文的详细配置手册。
产品特性3550EMI是支持二层、三层功能(EMI)的交换机支持VLAN∙到1005 个VLAN∙支持VLAN ID从1到4094(IEEE 802.1Q 标准)∙支持ISL及IEEE 802.1Q封装安全∙支持IOS标准的密码保护∙静态MAC地址映射∙标准及扩展的访问列表支持,对于路由端口支持入出双向的访问列表,对于二层端口支持入的访问列表∙支持基于VLAN的访问列表3层支持(需要多层交换的IOS)∙HSRP∙IP路由协议o RIP versions 1 and 2o OSPFo IGRP及EIGRPo BGP Version 4监视∙交换机LED指示端口状态∙SPAN及远端SPAN (RSPAN) 可以监视任何端口或VLAN的流量∙内置支持四组的RMON监控功能(历史、统计、告警及事件)∙Syslog功能其它功能:支持以下的GBIC模块:∙1000BASE-T GBIC: 铜线最长100 m∙1000BASE-SX GBIC: 光纤最长1804 feet (550 m)∙1000BASE-LX/LH GBIC: 光纤最长32,808 feet (6 miles or 10 km)∙1000BASE-ZX GBIC: 光纤最长328,084 feet (62 miles or 100 km) 配置端口配置一组端口当使用interface range命令时有如下的规则:∙有效的组范围:o vlan从1 到4094o fastethernet槽位/{first port} - {last port}, 槽位为0o gigabitethernet槽位/{first port} - {last port},槽位为0o port-channel port-channel-number - port-channel-number, port-channel号从1到64∙端口号之间需要加入空格,如:interface range fastethernet 0/1 – 5是有效的,而interface range fastethernet 0/1-5是无效的.∙interface range命令只能配置已经存在的interface vlan∙所有在同一组的端口必须是相同类别的。
RTP协议中文版一、引言本协议旨在规范实时传输协议(RTP)的使用,以确保数据的实时传输和接收的可靠性。
RTP协议是一种应用层协议,用于在因特网上传输音频和视频数据。
本协议适用于各种实时应用,如语音通信、视频会议和流媒体。
二、范围本协议适用于使用RTP协议进行实时数据传输的所有相关实体,包括发送端、接收端和中间设备。
三、术语定义1. RTP(Real-time Transport Protocol):实时传输协议,用于在因特网上传输音频和视频数据。
2. SSRC(Synchronization Source):同步源标识符,用于唯一标识RTP数据流的源。
3. RTP数据包:包含音频或视频数据的RTP协议数据单元。
4. RTCP(RTP Control Protocol):RTP控制协议,用于传输RTP数据流的控制信息。
5. NTP(Network Time Protocol):网络时间协议,用于同步RTP数据流的时间戳。
四、协议规范1. RTP数据包格式1.1 RTP数据包由RTP头部和有效载荷组成。
1.2 RTP头部包含以下字段:- 版本号:指示RTP协议的版本。
- 填充位:用于填充RTP头部,以满足特定的传输要求。
- 扩展位:用于指示RTP头部是否包含扩展字段。
- CSRC计数器:指示CSRC列表的长度。
- 标识位:用于指示RTP数据包的类型。
- 序列号:用于标识RTP数据包的顺序。
- 时间戳:用于同步RTP数据流的时间。
- SSRC:用于唯一标识RTP数据流的源。
1.3 有效载荷可以是音频或视频数据。
2. RTP数据传输2.1 RTP数据包通过UDP协议进行传输。
2.2 发送端将RTP数据包封装为UDP数据包,并通过网络发送给接收端。
2.3 接收端接收UDP数据包,并将其解析为RTP数据包。
2.4 接收端根据RTP头部中的时间戳信息进行数据同步和播放。
3. RTCP控制3.1 RTCP协议用于传输RTP数据流的控制信息。
Cisco3550的配置命令手册为了使两个或多个交换机在同一个MST区域,你必须有相同的VLAN到实例映射,相同的配置修正号,和相同的名字。
从特权模式开始,跟着这些步骤指派MST区域配置和启用MSTP。
这个过程是必需的。
命令目的Step 1 configure terminal 进入全局配置模式Step 2 spanning-tree mst configuration 进入MST配置模式Step 3 instance instance-id vlan vlan-range 映射VLAN到一个MST实例对于instance-id, 范围从1到15。
对于vlan vlan-range, 范围从1到4094。
当你映射一个VLAN到MST实例, 映射增大, 并且被指定的VLAN 范围被增加或被移动到现有的一个实例当中。
为了指定一个范围, 使用一个连字号;例如, instance 1 vlan 1-63 映射VLAN1至63到MST实例1。
为指定一个系列, 使用一个逗号;例如, instance 1 vlan 10, 20, 30 映射VLAN10,20,和30到MST 实例1.Step 4 name name 指定配置名。
该name 字符串有最大32个字符串并区分大小写。
Step 5 revision version 指定配置修订号数字. 范围是0到65535.Step 6 show pending 显示等待配置来确认你的配置Step 7 exit 应用所有改变, 并返回到全局配置模式.Step 8 spanning-tree mode mst 起用MSTP。
RSTP 也被启用。
注意改变生成树模式会中断流量,因为所有以前的生成树实例被停止,并启用一个新的生成树实例。
在同一时间,你不能同时运行MSTP和PVSTStep 9 end 返回特权模式Step 10 show running-config 确认你的条目Step 11 copy running-config startup-config (可选)在配置文件中保存你的条目为了返回缺省MST区域配置,使用命令:(global) no spanning-tree mst configuration为了返回缺省VLAN实例映射,使用命令:(config-mst) no instance instance-id [vlan vlan-range]为了返回缺省名,使用命令:(config-mst) no name为了返回缺省修正号,使用命令:(config-mst) no revision为了重新启用PVST,使用命令:(config) spanning-tree mode pvst这个例子显示怎样进入MST配置模式,映射VLAN10-20进入MST实例1,命名区域region1,设置配置修正号1,显示挂起的配置,应用变化,并且返回全局配置模式:Switch(config)# spanning-tree mst configurationSwitch(config-mst)# instance 1 vlan 10-20Switch(config-mst)# name region1Switch(config-mst)# revision 1Switch(config-mst)# show pendingPending MST configurationName [region1]Revision 1Instance Vlans Mapped-------- ---------------------0 1-9,21-40941 10-20-------------------------------Switch(config-mst)# exitSwitch(config)#配置根交换机交换机为映射到他的VLANs保持一个生成树实例。
RFC 3550 中文文档翻译说明译者注:本文档提供给那些有一定英语基础的读者,所以文中涉及到的专有词汇均以英文原词给出,给读者带来的不便请凉解。
本文档知识产权声明部分仅供参考,如有涉及到与知识产权有关的地方请参看原文或询问相关法律人式。
由于工作量太大,附录部分没有列入译者翻译之列,请谅解。
感谢罗总及工程师gale 给予的支持和帮助。
由于译者水平有限和时间冲忙,文中一定有错译的地方,译者尽量将这种情况降到最小,但不排除译者本身就理解错误的情况,欢迎任何对本书有兴趣的读者提出任何质疑,邮箱:xingkongft@,QQ:601211088。
Network Working Group H。
Schulzrinne Request for Comments:3550 Columbia UniversityObsoletes:1889 S。
Casner Category: Standards Track Packet DesignR。
Frederick Blue Coat Systems Inc 。
V。
JacobsonPacket DesignJuly 2003 RTP :应用于实时应用的传输协议备忘录的状态:本文档讲述了一种Internet 社区的Internet 标准跟踪协议,它需要进一步进行讨论和建议以得到改进。
请参考最新版的“Internet 正式协议标准”(STD1)来获得本协议的标准化程度和状态。
本备忘录的发布不受任何限制。
版权声明:版权为The Internet Society (2003)所有。
所有权利保留。
摘要:本文档阐述了实时传输协议(RTP),RTP 提供了端到端的网络传输功能,适合于通过多播或单播网络服务的实时数据传输应用,例如:音频,视频等,RTP 不强调资源保留(does not address resource reservation) 而且并不保证实时服务QOS(quality-of-service),实时控制协议(RTCP)对数据进行监控和提供最小的控制和鉴别功能。
RTP协议中文版一、前言本协议旨在规范实时传输协议(Real-time Transport Protocol,简称RTP)的中文版本,以便在网络通信中实现实时音视频数据的传输。
本协议适用于各种网络环境和应用场景,包括但不限于音视频会议、流媒体传输、远程监控等。
二、术语定义1. RTP:实时传输协议,用于在互联网上传输实时音视频数据。
2. RTP报文:RTP协议定义的数据单元,包含音视频数据、时间戳、序列号等信息。
3. RTP会话:指一组参与者之间的音视频传输关系,包括发送方和接收方。
4. SSRC:同步信源标识符,用于唯一标识一个RTP会话中的发送方。
5. RTP流:一组具有相同SSRC的RTP报文序列。
6. RTP会话描述协议(Session Description Protocol,简称SDP):用于描述RTP会话参数的协议。
三、协议要求1. RTP报文格式1.1 RTP报文由固定长度的报头和可变长度的有效载荷组成。
1.2 报头包括版本号、填充位、扩展位、CSRC计数器、标志位等字段,详细格式参见附表1。
1.3 有效载荷可以是音频、视频、文本等任意类型的数据。
1.4 报头中的时间戳字段用于同步接收方的音视频数据。
1.5 报头中的序列号字段用于标识RTP报文的顺序。
2. RTP会话管理2.1 RTP会话的发起方应向接收方发送SDP报文,描述会话参数,包括参与者、编解码器、传输协议等。
2.2 接收方收到SDP报文后,解析其中的参数,并根据需要进行协商和调整。
2.3 RTP会话的发送方应维护一个唯一的SSRC标识符,用于区分不同的发送方。
2.4 接收方应根据SSRC标识符识别不同的发送方,并进行相应的处理。
3. RTP流传输3.1 RTP流可以通过UDP、TCP或其他传输协议进行传输。
3.2 UDP传输适用于实时性要求较高的音视频数据传输,但不保证可靠性。
3.3 TCP传输适用于对可靠性要求较高的音视频数据传输,但可能引入较大的延迟。
RTP协议的中文版协议名称:RTP协议的中文版一、引言RTP(Real-time Transport Protocol)是一种用于实时传输音频和视频数据的协议。
本协议的目的是为了支持实时应用程序的传输需求,如音频和视频会议、流媒体等。
本协议的中文版旨在提供给中文用户更便于理解和使用的文档。
二、定义和缩写2.1 定义RTP:实时传输协议(Real-time Transport Protocol)RTCP:实时传输控制协议(Real-time Transport Control Protocol)SSRC:同步信源(Synchronization Source)CNAME:同步信源名称(Canonical Name)SDES:同步信源描述(Source Description)NTP:网络时间协议(Network Time Protocol)UDP:用户数据报协议(User Datagram Protocol)IP:互联网协议(Internet Protocol)2.2 缩写RTP:Real-time Transport ProtocolRTCP:Real-time Transport Control ProtocolSSRC:Synchronization SourceCNAME:Canonical NameSDES:Source DescriptionNTP:Network Time ProtocolUDP:User Datagram ProtocolIP:Internet Protocol三、协议概述RTP协议是一种面向数据报的协议,用于传输实时音频和视频数据。
它提供了时间戳、序列号和同步信源标识等功能,以保证数据的实时性和完整性。
RTP协议使用UDP作为传输层协议,并与RTCP协议配合使用,实现流媒体数据的传输和控制。
四、协议要素4.1 RTP数据包格式RTP数据包由固定长度的头部和可变长度的有效载荷组成。
RTP协议分析一.RTP协议背景 (2)二.RTP协议原理及工作机制 (3)2.1 RTP协议原理 (4)2.1.1 RTP协议原理 (4)2.1.2 RTCP协议原理 (4)2.2 RTP数据包格式 (5)2.2.1 RTP数据包格式 (5)2.2.2 RTCP数据包格式 (8)2.3 RTP工作机制 (12)2.3.1 RTP工作机制 (12)2.3.2 RTCP工作机制 (12)三.RTP协议关键技术指标 (13)3.1 时间戳 (13)3.2时延 (14)3.3 抖动 (15)3.4丢包率 (15)3.5 会话和流两级分用 (16)3.6 多种流同步控制 (16)四.RTP协议应用方案 (17)4.1 RTP协议应用方案之单播 (17)4.2 RTP协议应用方案之广播 (17)4.3 RTP协议应用方案之组播 (17)4.3.1 RTP协议组播方案总体概述 (18)4.3.2 RTP协议组播方案服务器端实现 (19)4.3. 3RTP协议组播方案客户端实现 (20)4.3. 4RTP协议视频帧率和质量调整策略 (21)五.RTP协议移植计划 (22)六.RTP协议安全方面考虑 (22)一.RTP协议背景流(Streaming)是近年在Internet上出现的新概念,其定义非常广泛,主要是指通过网络传输多媒体数据的技术总称。
流媒体包含广义和狭义两种内涵:广义上的流媒体指的是使音频和视频形成稳定和连续的传输流和回放流的一系列技术、方法和协议的总称,即流媒体技术;狭义上的流媒体是相对于传统的下载-回放方式而言的,指的是一种从Internet上获取音频和视频等多媒体数据的新方法,它能够支持多媒体数据流的实时传输和实时播放。
通过运用流媒体技术,服务器能够向客户机发送稳定和连续的多媒体数据流,客户机在接收数据的同时以一个稳定的速率回放,而不用等数据全部下载完之后再进行回放。
流式传输有顺序流式传输(Progressive Streaming)和实时流式传输(Realtime Streaming)两种方式。
3550资料堆叠3550 配置向导定义主机名:cat2-3550(config)#hostname 登陆Banner:Cat1-3550(config)#banner login # Authorized Users elab Only #端口说明:cat2-3550(config)#int fa0/1cat2-3550(config-if)#description To 100M激活portfast:cat2-3550(config-if)#spanning cat2-3550(config-if)#spanning-tree portfast设置双工:cat2-3550(config)#int fa0/1cat2-3550(config-if)#duplex half设置端口速率:cat2-3550(config)#int fa0/1cat2-3550(config-if)#speed 10设置DNS:cat2-3550(config)#ip name-server 4.1.1.1设置 VTP Domaincat2-3550(config)#vtp domain hellocat2-3550(config)#vtp mode transparent创建VLAN:SW1(vlan)#vlan 10 name REDSW1(vlan)#vlan 20 name BLUESW1(vlan)#exit设置VLAN优先级:SW1#config tSW1(config)#interface vlan 20SW1(config)#spanning-tree vlan 20 priority 20SW1(config-subif)#ip addr 1.1.1.1 255.255.255.0TRUNK设置:interface FastEthernet0/24switchport trunk encapsulation isl switchport trunk allowed vlan 1,2,4,5,10,12-14,1002-1005 switchport mode trunk no ip address显示trunk信息:cat2-3550#show interface trunkSPAN-TREE配置:Cat1-3550(config)#spanning-tree vlan 101 priority 0定义网关:SW1(config)#ip default-gateway 1.1.1.2创建etherchannel:First Switch:SW1(config)#int port-channel 1SW1(config-if)#switchport trunk encapsulation isl SW1(config-if)#switchport mode trunkSW1(config)#int fa 0/23SW1(config-if)#switchport trunk encap isl SW1(config-if)#switchport mode trunk SW1(config-if)#channel-group 1 mode autoSW1(config)#int fa 0/24SW1(config-if)#switchport trunk encap isl SW1(config-if)#switchport mode trunk SW1(config-if)#channel-group 1 mode autoSecond Switch:SW2(config)#int port-channel 1SW2(config-if)#switchport trunk encapsulation isl SW2(config-if)#switchport mode trunkSW2(config)#int fa 0/23SW2(config-if)#switchport trunk encap islSW2(config-if)#switchport mode trunkSW2(config-if)#channel-group 1 mode autoSW2(config)#int fa 0/24SW2(config-if)#switchport trunk encap islSW2(config-if)#switchport mode trunkSW2(config-if)#channel-group 1 mode auto端口上划分VLAN:SW1(config)#int fastEthernet 0/2SW1(config-if)#switchport access vlan 20SW1(config-if)#no shutdownSW1(config)#interface fastEthernet 0/3SW1(config-if)#switchport access vlan 10SW1(config-if)#no shutdown封装TRUNK:SW1(config)#int fa 0/1SW1(config-if)#switchport trunk encap isl SW1(config-if)#switchport mode trunk分配Ether Channel 到接口:SW1(config)#interface fa0/23SW1(config-if)#switchport trunk encapsulation dot1qSW1(config-if)#switchport mode trunkSW1(config-if)#channel-group 1 mode auto (other side use desirable)SW1(config)#interface fa0/24SW1(config-if)#switchport trunk encapsulation dot1qSW1(config-if)#switchport mode trunkSW1(config-if)#channel-group 1 mode auto (other side use desirable)配置SPAN:SW2#config tSW2(config)#no monitor session 1SW2(config)#monitor session 1 source interface fa0/3SW2(config)#monitor session 1 destination interface fa0/11 SW2(config)#end在VLAN接口上配置SPAN:SW2#config tSW2(config)#no monitor session 1SW2(config)#monitor session 1 source vlan 10SW2(config)#monitor session 1 destination interface fa0/11 (any encap here) SW2(config)#endSW2#sh monitor session 1 Session 1---------Source Ports:RX Only: NoneTX Only: NoneBoth: Fa0/3Source VLANs:RX Only: NoneTX Only: NoneBoth: NoneDestination Ports: Fa0/11Encapsulation: NativeFilter VLANs: NoneTime Stamp Debug 和Log Messages with Absolute Time:service timestamps debug datetimeservice timestamps log datetime关闭 DNS Lookup:no ip domain-lookupDisable HTTP Server:no ip http server能够 Syslog:logging history informational (这里设置syslog级别logging facility local6logging source-interface Loopback0logging 150.50.111.100定义SNMP:snmp-server community hello RO 12snmp-server community hellorw RW 13access-list 12 permit 150.50.0.0 0.0.255.255access-list 13 permit 150.50.16.0 0.0.0.255access-list 13 permit 150.50.111.0 0.0.0.255禁止 TCP 和UDP small server:R1(config)#no service tcp-small-serversR1(config)#no service udp-small-servers在接口上打开 Storm Control on :cat1-3550(config)#int fa0/6cat1-3550(config-if)#storm-control broadcast level 50cat1-3550(config-if)#storm-control multicast level 25cat1-3550(config-if)#storm-control un3550 ACL配置举例Switch(config)# access-list 2 permit 36.48.0.3Switch(config)# access-list 2 deny 36.48.0.0 0.0.255.255Switch(config)# access-list 2 permit 36.0.0.0 0.255.255.255Switch(config)# interface gigabitethernet0/1Switch(config-if)# ip access-group 2 inSwitch(config)# access-list 102 permit tcp any host 128.88.1.2 eq 25 Switch(config)# access-list 102 permit icmp any anySwitch(config)# interface gigabitethernet0/1Switch(config-if)# ip access-group 102 in3550 配置 SSH举例首先确认crypto imagecrypto key generate rsa接下来设置SSHSwitch(config)# username bob password xxxSwitch(config)# line vty 0 4Switch(config)# login local (Required if you want to do local authentication) Switch(config)# transport input ssh (If you want to only allow SSH)3550 emi 配置DHCP SERVER相关配置命令:config)#ip dhcp pool [地址池名](config)#ip dhcp excluded-address [不分配的地址](dhcp-config)#network [要分配的地址] [掩码](dhcp-config)#lease [租约](dhcp-config)#default-router [默认网关](dhcp-config)#dns-server[dns 服务器]然后要对自动获取地址的vlan进行设置(config)#ip helper-address [交换机地址]再将端口划分到vlan 里show config:ip dhcp excluded-address 10.0.199.200 10.0.199.254!ip dhcp pool testnetwork 10.0.199.0 255.255.255.0default-router 10.0.199.1dns-server 10.0.199.252lease 0 0 5nterface Vlan199ip address 10.0.199.1 255.255.255.0ip helper-address 10.0.1.13550之DHCP服务器的详尽配置实例作DHCP服务器,因为当时在配置3550作为DHCP中继代理时顺便测试了一把将3550配置为DHCP服务器并获通过,因此这里将配置过程写出来,供大家参考.网络环境:一台3550EMI交换机,划分三个vlan,vlan2 为服务器所在网络,命名为server,IP地址段为192.168.2.0,子网掩码:255.255.255.0,网关:192.168.2.1,域服务器为windows 2000 advance server,同时兼作DNS服务器,IP地址为192.168.2.10,vlan3为客户机1所在网络,IP 地址段为192.168.3.0,子网掩码:255.255.255.0,网关:192.168.3.1命名为work01,vlan4为客户机2所在网络,命名为work02,IP地址段为192.168.4.0,子网掩码:255.255.255.0,网关:192.168.4.1,3550作DHCP服务器,端口1-8划到VLAN 2,端口9-16划分到VLAN 3,端口17-24划分到VLAN 4.DHCP服务器实现功能:各VLAN保留2-10的IP地址不分配置,例如:192.168.2.0的网段,保留192.168.2.2至192.168.2.10的IP地址段不分配.安全要求:VLAN 3和VLAN 4 不允许互相访问,但都可以访问服务器所在的VLAN 2, 默认访问控制列表的规则是拒绝所有包.配置命令及步骤如下:第一步:创建VLAN:Switch>enSwitch#Vlan DatabaseSwitch(Vlan)>Vlan 2 Name serverSwitch(Vlan)>Vlan 3 Name work01Switch(vlan)>Vlan 4 Name work02第二步:设置VLAN IP地址:Switch#Config TSwitch(Config)>Int Vlan 2Switch(Config-vlan)Ip Address 192.168.2.1 255.255.255.0Switch(Config-vlan)No ShutSwitch(Config-vlan)>Int Vlan 3Switch(Config-vlan)Ip Address 192.168.3.1 255.255.255.0Switch(Config-vlan)No ShutSwitch(Config-vlan)>Int Vlan 4Switch(Config-vlan)Ip Address 192.168.4.1 255.255.255.0Switch(Config-vlan)No ShutSwitch(Config-vlan)Exit/*注意:由于此时没有将端口分配置到VLAN2,3,4,所以各VLAN会DOWN 掉,待将端口分配到各VLAN后,VLAN会起来*/第三步:设置端口全局参数Switch(Config)Interface Range Fa 0/1 - 24Switch(Config-if-range)Switchport Mode AccessSwitch(Config-if-range)Spanning-tree Portfast第四步:将端口添加到VLAN2,3,4中/*将端口1-8添加到VLAN 2*/Switch(Config)Interface Range Fa 0/1 - 8Switch(Config-if-range)Switchport Access Vlan 2/*将端口9-16添加到VLAN 3*/Switch(Config)Interface Range Fa 0/9 - 16Switch(Config-if-range)Switchport Access Vlan 3/*将端口17-24添加到VLAN 4*/Switch(Config)Interface Range Fa 0/17 - 24Switch(Config-if-range)Switchport Access Vlan 4Switch(Config-if-range)Exit/*经过这一步后,各VLAN会起来*/第?*剑号渲?550作为DHCP服务器/*VLAN 2可用地址池和相应参数的配置,有几个VLAN要设几个地址池*/ Switch(Config)Ip Dhcp Pool Test01/*设置可分配的子网*/Switch(Config-pool)Network 192.168.2.0 255.255.255.0/*设置DNS服务器*/Switch(Config-pool)Dns-server 192.168.2.10/*设置该子网的网关*/Switch(Config-pool)Default-router 192.168.2.1/*配置VLAN 3所用的地址池和相应参数*/Switch(Config)Ip Dhcp Pool Test02Switch(Config-pool)Network 192.168.3.0 255.255.255.0Switch(Config-pool)Dns-server 192.168.2.10Switch(Config-pool)Default-router 192.168.3.1/*配置VLAN 4所用的地址池和相应参数*/Switch(Config)Ip Dhcp Pool Test03Switch(Config-pool)Network 192.168.4.0 255.255.255.0Switch(Config-pool)Dns-server 192.168.2.10Switch(Config-pool)Default-router 192.168.4.1第六步:设置DHCP保留不分配的地址Switch(Config)Ip Dhcp Excluded-address 192.168.2.2 192.168.2.10Switch(Config)Ip Dhcp Excluded-address 192.168.3.2 192.168.3.10Switch(Config)Ip Dhcp Excluded-address 192.168.4.2 192.168.4.10第七步:启用路由/*路由启用后,各VLAN间主机可互相访问*/Switch(Config)Ip Routing第八步:配置访问控制列表Switch(Config)access-list 103 permit ip 192.168.2.0 0.0.0.255 192.168.3.0 0.0.0.255Switch(Config)access-list 103 permit ip 192.168.3.0 0.0.0.255 192.168.2.0 0.0.0.255Switch(Config)access-list 103 permit udp any any eq bootpcSwitch(Config)access-list 103 permit udp any any eq tftpSwitch(Config)access-list 103 permit udp any eq bootpc anySwitch(Config)access-list 103 permit udp any eq tftp anySwitch(Config)access-list 104 permit ip 192.168.2.0 0.0.0.255 192.168.4.0 0.0.0.255Switch(Config)access-list 104 permit ip 192.168.4.0 0.0.0.255 192.168.2.0 0.0.0.255Switch(Config)access-list 104 permit udp any eq tftp anySwitch(Config)access-list 104 permit udp any eq bootpc anySwitch(Config)access-list 104 permit udp any eq bootpc anySwitch(Config)access-list 104 permit udp any eq tftp any第九步:应用访问控制列表/*将访问控制列表应用到VLAN 3和VLAN 4,VLAN 2不需要*/Switch(Config)Int Vlan 3Switch(Config-vlan)ip access-group 103 outSwitch(Config-vlan)Int Vlan 4Switch(Config-vlan)ip access-group 104 out第十步:结束并保存配置Switch(Config-vlan)EndSwitch#Copy Run Start3550 学习Basicsip address ip-address subnet-maskip default-gateway ip-addresshostname stringprompt string?CDPDefault CDP ConfigurationCDP global state EnabledCDP interface state EnabledCDP timer (packet update frequency) 60 secondsCDP holdtime (before discarding) 180 secondsCDP version-2 advertisements Enabledcdp timer seconds (Optional)Set the transmission frequency of CDP updates in seconds.The range is from 5 to 254; the default is 60 seconds.cdp holdtime seconds (Optional)Specify the amount of time a receiving device should hold the information sent byyour device before discarding it.The range is from 10 to 255 seconds; the default is 180 seconds.cdp advertise-v2 (Optional)Configure CDP to send version-2 advertisements. This is the default state.?DNSip name-server server-address1ip domain-name nameip domain-lookup?SNMPsnmp-server host host-addr {traps | informs} {version {1 | 2c}} community-string notification-typerecipient of the trap message.snmp-server enable traps mac-notificationsend MAC address traps tosnmp-server enable traps mac-notificationEnable the switch to send MAC address trapsmac-address-table notificationEnable the MAC address notification feature.mac-address-table notification [interval value] | [history-size value]Enter the trap interval time and the history table size.snmp trap mac-notification {added | removed}Enable the MAC address notification trap.Switch(config)# snmp-server host 172.20.10.10 traps privateSwitch(config)# snmp-server enable traps mac-notificationSwitch(config)# mac-address-table notificationSwitch(config)# mac-address-table notification interval 60Switch(config)# mac-address-table notification history-size 100Switch(config)# interface fastethernet0/4Switch(config-if)# snmp trap mac-notification addedmac-address-table static mac-addr vlan vlan-id interface interface-id Add a static address to the MAC address table.show mac-address-table addressDisplays MAC address table information for the specified MAC address.show mac-address-table aging-timeDisplays the aging time in all VLANs or the specified VLAN.show mac-address-table countDisplays the number of addresses present in all VLANs or the specified VLAN.show mac-address-table dynamicDisplays dynamic MAC address table entries only.show mac-address-table interfaceDisplays the MAC address table information for the specified interface.show mac-address-table multicastDisplays the Layer 2 multicast entries for all VLANs or the specified VLAN.show mac-address-table staticDisplays static MAC address table entries only.show mac-address-table vlanDisplays the MAC address table information for the specified VLAN.snmp-server community private RWsnmp-server community public ROsnmp-server community private@es0 RWsnmp-server community public@es0 ROsnmp-server chassis-id 0x12?NTPConfigure the switch to synchronize only to devices providing authentication key 42in the device抯 NTP packets:Switch(config)# ntp authenticateSwitch(config)# ntp authentication-key 42 md5 aNiceKeySwitch(config)# ntp trusted-key 42An NTP association can be a peer association (this switch can either synchronize tothe other device or allow the other device to synchronize to it), or it can be aserver association (meaning that only this switch synchronizes to the other device,and not the other way around).ntp peer ip-address [version number] [key keyid] [source interface] [prefer]ntp server ip-address [version number] [key keyid] [source interface] [prefer]ntp broadcast clientntp broadcastdelay microsecondsntp broadcast [version number] [key keyid] [destination-address]ntp access-group {query-only | serve-only | serve | peer} access-list-numberNTP services are enabled on all interfaces by default.ntp disablentp source type number?SDMBy using Switch Database Management (SDM) templates, you can configure memoryresources in the switch to optimize support for specific features, depending on howthe switch is used in your network.The four templates prioritize system memory to optimize support for these types of features:?QoS and security ACEshe access template might typically be used in an access switch at the network edge where the route table sizes might not be substantial. Filtering and QoS might be more important because an accessswitch is the entry to the whole network.?Routing he routing template maximizes system resources for unicast routing,typically required for a router or aggregator in the center of a network.VLANs he VLAN template disables routing and supports the maximum number ofunicast MAC addresses. It would typically be selected for a Catalyst 3550used as a Layer 2 switch.?Default桾he default template gives balance to all functionalities (QoS, ACLs, unicast routing, multicast routing, VLANs and MAC addresses).sdm prefer {access | routing | vlan}1.1. Vlan's?Normal VLAN'sTo configure normal-range VLANs (VLAN IDs 1 to 1005), use the vlan vlan-id globalconfiguration command to enter config-vlan mode or the vlan databaseprivileged EXEC command to enter VLAN configuration mode.Add ports to a VLAN by using the switchport interface configuration commands: Normal-range VLANs are identified with a number between 1 and 1001.vlan databasevlan vlan-id name vlan-nameAssign a port to a VLAN in the VLANinterface interface-idswitchport mode accessswitchport access vlan vlan-id?Extended VLAN'sThe VLAN configurations for VLAN IDs 1 to 1005 are saved in the VLAN database.To configure extended-range VLANs (VLAN IDs 1006 to 4094), you must use config-vlanmode with V3550的启动过程3550#reloadProceed with reload? [confirm]01:20:36: %SYS-5-RELOAD: Reload requestedBase ethernet MAC Address: 00:05:dd:c0:c7:00Xmodem file system is available.The password-recovery mechanism is enabled.Initializing Flash...flashfs[0]: 24 files, 6 directoriesflashfs[0]: 0 orphaned files, 0 orphaned directoriesflashfs[0]: Total bytes: 16128000flashfs[0]: Bytes used: 5199360flashfs[0]: Bytes available: 10928640flashfs[0]: flashfs fsck took 15 seconds....done Initializing Flash.Boot Sector Filesystem (bs installed, fsid: 3Loading"flash:/c3550-i5q3l2-mz.121-9.EA1/c3550-i5q3l2-mz.121-9.EA1.bin"...########################################################################## ################################################################################ ################################################################################ ################################################################################ ############################################################################# File "flash:/c3550-i5q3l2-mz.121-9.EA1/c3550-i5q3l2-mz.121-9.EA1.bin" uncompressed and installed, entry point: 0x3000executing...Restricted Rights LegendUse, duplication, or disclosure by the Government issubject to restrictions as set forth in subparagraph(c) of the Commercial Computer Software - RestrictedRights clause at FAR sec. 52.227-19 and subparagraph(c) (1) (ii) of the Rights in Technical Data and ComputerSoftware clause at DFARS sec. 252.227-7013.cisco Systems, Inc.170 West Tasman DriveSan Jose, California 95134-1706Cisco Internetwork Operating System SoftwareIOS (tm) C3550 Software (C3550-I5Q3L2-M), Version 12.1(9)EA1, RELEASE SOFTWARE (fc1)Copyright (c) 1986-2002 by cisco Systems, Inc.Compiled Wed 24-Apr-02 06:35 by antoninoImage text-base: 0x00003000, data-base: 0x006848F4Initializing flashfs...flashfs[1]: 24 files, 6 directoriesflashfs[1]: 0 orphaned files, 0 orphaned directoriesflashfs[1]: Total bytes: 16128000flashfs[1]: Bytes used: 5199360flashfs[1]: Bytes available: 10928640flashfs[1]: flashfs fsck took 8 seconds.flashfs[1]: Initialization complete....done Initializing flashfs.POST: CPU Buffer Tests : BeginPOST: CPU Buffer Tests : End, Status PassedPOST: CPU Interface Tests : BeginPOST: CPU Interface Tests : End, Status PassedPOST: Switch Core Tests : BeginPOST: Switch Core Tests : End, Status PassedPOST: CAM Subsystem Tests : BeginPOST: CAM Subsystem Tests : End, Status PassedPOST: Ethernet Controller Tests : BeginPOST: Ethernet Controller Tests : End, Status PassedPOST: Loopback Tests : BeginPOST: Loopback Tests : End, Status Passedcisco WS-C3550-12T (PowerPC) processor (revision 04) with 65526K/8192K bytes ofmemory.Processor board ID FAA0520G054Last reset from warm-resetBridging software.Running Layer2/3 Switching ImageEthernet-controller 1 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 2 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 3 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 4 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 5 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 6 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 7 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 8 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 9 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 10 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 11 has 1 Gigabit Ethernet/IEEE 802.3 interfaceEthernet-controller 12 has 1 Gigabit Ethernet/IEEE 802.3 interface12 Gigabit Ethernet/IEEE 802.3 interface(s)The password-recovery mechanism is enabled.384K bytes of flash-simulated non-volatile configuration memory.Base ethernet MAC Address: 00:05D:C0:C7:00Motherboard assembly number: 73-5527-08Power supply part number: NONEMotherboard serial number: FAA05190DABPower supply serial number: DAB0549038FModel revision number: 04Model number: WS-C3550-12TSystem serial number: FAA0520G054--- System Configuration Dialog ---Would you like to enter the initial configuration dialog? [yes/no]:00:01:02: %SPANTREE-5-EXTENDED_SYSID: Extended SysId enabled for type vlan00:01:07: %SYS-5-RESTART: System restarted --Cisco Internetwork Operating System SoftwareIOS (tm) C3550 Software (C3550-I5Q3L2-M), Version 12.1(9)EA1, RELEASE SOFTWARE (fc1)Copyright (c) 1986-2002 by cisco Systems, Inc.Compiled Wed 24-Apr-02 06:35 by antonino00:01:13: %GIGASTACK-6-LOOP_DETECTED: Gigastack GBIC in Gi0/11 is selected as Master Loop Breaker.Link 2 of the Gigastack GBIC is disabled to break the loop.00:01:16: %LINK-3-UPDOWN: Interface GigabitEthernet0/11, changed state to up00:01:17: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/11, changed state to up00:02:15: %LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to up3550smi升级到emi1、购买两台3550分别是smi、emi2、将emi中的rom芯片从主板上取下用专用的设备将rom中的信息读出并保存3、将smi中的rom芯片从主板上取下,用专用的设备将smi芯片的内容擦除并将emi的软件写入芯片4、焊接到主板接电测试所有的smi如法炮制难度:较难设备:到中关村的中发市场咨询一下就能买到(要花不少银子)有了设备读取rom中的软件就比较容易芯片:同样到中关村可以找到,和取下的芯片一致就ok啦焊接:难度较高,最好请专业人士做此工作,否则会浪费不少的芯片(谁在烧我的银子!!我打……)做这件事一定要谨慎、谨慎、再谨慎,损坏芯片是小事,如果焊到主板上加电后把主板烧了那就是大事啦!3550-24 EMI做限速internet----firewall----(port1)3550emi(port2)---vlan103(192.168.103.0) (port3)---vlan104(192.168.104.0)Internet总出口速率为1M,为vlan103分配200Kbit/s的带宽,为vlan104分配400Kbit/s的带宽.mls qosclass-map match-all ipclass103match access-group 103class-map match-all ipclass104match access-group 104!!policy-map flow_internetclass ipclass103police 200000 8000 exceed-action dropclass ipclass104police 400000 8000 exceed-action drop!!spanning-tree extend system-id!!!interface FastEthernet0/1switchport access vlan 200switchport mode accessno ip addressflowcontrol receive onservice-policy input flow_internetaccess-list 103 permit ip any 192.168.103.0 0.0.0.255 access-list 104 permit ip any 192.168.104.0 0.0.0.255补充:interface vlan103ip address 192.168.103.1 255.255.255.0interface vlan104ip address 192.168.104.1 255.255.255.0再ip routing即可.access-list103和104是针对qos,与安全过滤无关.3550 EMI 限速试验报告拓扑:pc1-------default vlan 1--3550-24-emi--f0/24-------pc2配置:pc1:192.168.1.7 255.255.255.0 192.168.1.222vlan 1:192.168.1.222 255.255.255.0f0/24:192.168.2.1 255.255.255.0pc2:192.168.2.20 255.255.255.0 192.168.2.1交换机的情况:IOS版本:12.1.8EA1c EMI版Switch#sh runBuilding configuration...Current configuration : 1835 bytes!version 12.1no service padservice timestamps debug uptimeservice timestamps log uptimeno service password-encryption!hostname Switch!!ip subnet-zeroip routingmls qos!class-map match-all 64kmatch access-group 110!!policy-map yikaiclass 64kpolice 512000 32000 exceed-action drop!!spanning-tree extend system-id !!!interface FastEthernet0/1 switchport mode accessno ip addressservice-policy input yikai!interface FastEthernet0/2no ip address!interface FastEthernet0/3no ip address!interface FastEthernet0/4no ip address!interface FastEthernet0/5no ip address!interface FastEthernet0/6no ip address!interface FastEthernet0/7no ip address!interface FastEthernet0/8no ip address!interface FastEthernet0/9no ip address!interface FastEthernet0/10no ip address!interface FastEthernet0/11no ip address!interface FastEthernet0/12no ip address!interface FastEthernet0/13no ip addressinterface FastEthernet0/14no ip address!interface FastEthernet0/15no ip address!interface FastEthernet0/16no ip address!interface FastEthernet0/17no ip address!interface FastEthernet0/18no ip address!interface FastEthernet0/19no ip address!interface FastEthernet0/20no ip address!interface FastEthernet0/21no ip address!interface FastEthernet0/22no ip address!interface FastEthernet0/23no ip address!interface FastEthernet0/24no switchportip address 192.168.2.1 255.255.255.0 service-policy input yikai!interface GigabitEthernet0/1no ip address!interface GigabitEthernet0/2no ip address!interface Vlan1ip address 192.168.1.222 255.255.255.0ip classlessip http server!access-list 110 permit ip host 192.168.2.20 anyaccess-list 110 permit ip any any!line con 0line vty 0 4loginline vty 5 15login!end此时在客户机pc2从pc1上拷贝文件,大约40M时间大约:12分钟Switch#sh mls qos interface f 0/1 staFastEthernet0/1Ingressdscp: incoming no_change classified policed dropped (in bytes) Others: 385021895 385021895 0 0 12197478Egressdscp: incoming no_change classified policed dropped (in bytes) Others: 9553871 n/a n/a 0 0Switch#sh mls qos interface f 0/1 staFastEthernet0/1Ingressdscp: incoming no_change classified policed dropped (in bytes) Others: 385369437 385369437 0 0 12259540Egressdscp: incoming no_change classified policed dropped (in bytes) Others: 9562103 n/a n/a 0 0从中发现有大量的dropped,且增加很快.如果在interface f 0/1no service-map input yikai则没有应用policy-map yikai ,此时同样的文件传速速度很快, 大约只需要3分钟.可见:{在3550emi上面可以实现端口限速,并且不局限在1M}关于Cat3550的接口类型路由接口:1 可路由物理接口——Switch# conf tSwitch(config)#int fa0/1Switch(config-if)# no switchportSwitch(config-if)# ip address 10.3.1.1 255.255.0.0Switch(config-if)#end如果需要运行某个路由协议ip routing全局命令是必须的,另外,你也必须同时输入你在路由器上面配置路由协议的时候所输入的那些命令,比如router ospf 64;net 10.0.0.0 0.0.0.255 area 0这些……2 可路由虚拟交换接口——要给某两个交换接口(二层接口)分配IP地址,你需要有一个独立的接口来扮演路由这两个交换接口的工作;这就是SVI的概念了。
RTP协议的中文版一、协议目的本协议旨在规定实时传输协议(RTP)的中文版标准格式,以便确保在多媒体通信中的实时数据传输的可靠性和高效性。
二、定义1. 实时传输协议(RTP):一种用于在互联网上传输实时数据的协议,包括音频、视频和其他即时媒体数据。
2. RTP数据包:RTP协议传输的数据单元,包括有效负载和头部信息。
3. RTP会话:一组具有相同同步源的RTP数据流。
4. RTP同步源:在RTP会话中,提供时钟同步和时间戳的源。
5. RTP参与者:参与RTP会话的实体,可以是发送者或接收者。
三、协议内容1. RTP数据包格式RTP数据包由头部信息和有效负载组成。
头部信息包括版本号、填充位、扩展位、CSRC计数、标记位、负载类型、序列号、时间戳和同步源标识符。
有效负载则是实时媒体数据。
2. RTP会话管理2.1 RTP会话的建立RTP会话的建立由RTP参与者之间的协商和交换信息完成。
包括同步源标识符的分配、时间戳的同步、传输模式的协商等。
2.2 RTP会话的终止RTP会话的终止可以由任何RTP参与者发起,通过发送终止消息或关闭连接等方式进行。
3. RTP同步源管理3.1 同步源标识符的分配在RTP会话中,同步源标识符用于区分不同的同步源。
分配同步源标识符的方法可以由参与者之间协商决定。
3.2 时间戳的同步RTP参与者应确保时间戳的同步,以便实现数据的正确排序和同步播放。
4. RTP参与者管理4.1 RTP参与者的身份验证RTP参与者在加入RTP会话前,应进行身份验证,以确保只有合法参与者可以加入。
4.2 RTP参与者的权限控制RTP参与者可以根据权限级别对RTP会话中的数据进行控制,包括读取、写入、修改等操作。
5. RTP数据传输5.1 RTP数据包的发送RTP参与者应按照RTP协议规定的格式和要求发送数据包,并确保数据的实时性和可靠性。
5.2 RTP数据包的接收RTP参与者应按照RTP协议规定的格式和要求接收数据包,并进行解析和处理。
RTP协议中文版一、引言本协议旨在规范实时传输协议(Real-time Transport Protocol,简称RTP)的使用和实施,以确保多媒体数据的实时传输和同步。
二、定义1. 实时传输协议(RTP):一种用于在互联网上传输音频、视频和其他实时数据的协议。
2. RTP会话:一组使用相同的传输协议和参数进行通信的参预者。
3. RTP数据包:包含实时媒体数据的协议数据单元。
4. RTP流:由一系列RTP数据包组成的数据流。
5. RTP负载类型:RTP数据包中携带的媒体数据类型,如音频、视频等。
三、协议要求1. RTP数据包格式:a. RTP数据包由固定长度的头部和可变长度的负载组成。
b. 头部包含版本号、填充位、扩展位、CSRC计数器、标志位、序列号、时间戳和同步源标识符(SSRC)等字段。
c. 负载部份用于携带媒体数据。
2. RTP会话管理:a. 参预者之间应建立RTP会话,以商议传输协议、负载类型和其他参数。
b. 参预者应定期发送RTP心跳包以维持会话活动状态。
c. 参预者可通过RTCP协议进行会话控制和监测。
3. RTP流同步:a. 参预者应使用时间戳字段确保RTP流的同步。
b. 参预者应根据时间戳对RTP数据包进行排序和处理。
4. RTP负载类型:a. RTP负载类型应符合相关的音频、视频或者其他媒体数据格式标准。
b. RTP负载类型可通过媒体类型字段进行标识。
5. RTP安全性:a. 参预者可使用加密和认证机制确保RTP数据的安全性。
b. 参预者可通过SRTP协议对RTP数据进行加密和认证。
6. RTP拓展性:a. RTP协议应具备良好的拓展性,以适应未来的需求和技术发展。
b. RTP拓展应遵循相关的标准和规范。
四、协议实施1. RTP协议的实施应符合相关的互联网工程任务组(IETF)标准文档。
2. RTP协议的实施应考虑网络带宽、延迟、颤动和丢包等因素。
3. RTP协议的实施应兼容不同的操作系统和网络设备。
RFC3550 RTP 中文RFC 3550 - RTP: A Transport Protocol for Real-Time ApplicationsRFC3550RTP:实时应用程序传输协议摘要本文描述RTP(real-time transport protocol),实时传输协议。
RTP在多点传送(多播)或单点传送(单播)的网络服务上,提供端对端的网络传输功能,适合应用程序传输实时数据,如:音频,视频或者仿真数据。
RTP没有为实时服务提供资源预留的功能,也不能保证QoS(服务质量)。
数据传输功能由一个控制协议(RTCP)来扩展,通过扩展,可以用一种方式对数据传输进行监测控制,该协议(RTCP)可以升级到大型的多点传送(多播)网络,并提供最小限度的控制和鉴别功能。
RTP和RTCP被设计成和下面的传输层和网络层无关。
协议支持RTP标准的转换器和混合器的使用。
本文的大多数内容和旧版的RFC1889相同。
在线路里传输的数据包格式没有改变,唯一的改变是使用协议的规则和控制算法。
为了最小化传输,发送RTCP数据包时超过了设定的速率,而在这时,很多的参与者同时加入了一个会话,在这样的情况下,一个新加入到(用于计算的可升级的)计时器算法中的元素是最大的改变。
目录(Table of Contents)1. 引言(Introduction)1 1 术语(Terminology)2 RTP使用场景(RTP Use Scenarios)2 1 简单多播音频会议(Simple Multicast Audio Conference)2 2 音频和视频会议(Audio and Video Conference)2 3 混频器和转换器(Mixers and Translators)2 4 分层编码(Layered Encodings)3 定义(Definitions)4 字节序,校正和时间格式(Byte Order, Alignment, and Time Format)5 RTP数据传输协议(RTP Data Transfer Protocol)5 1 RTP固定头域(RTP Fixed Header Fields)5 2 多路复用RTP会话(Multiplexing RTP Sessions)5 3 RTP头的配置文件详细变更(Profile-Specific Modifications to the RTP Header)5 3 1 RTP报头扩展(RTP Header Extension)6 RTP控制协议(RTP Control Protocol)-- RTCP6 1 RTCP包格式(RTCP Packet Format)6 2 RTCP传输间隔(RTCP Transmission Interval)6 2 1 维护会话成员数目(Maintaining the number of session members)6 3 RTCP包的发送与接收规则(RTCP Packet Send and Receive Rules)6 3 1 计算RTCP传输间隔(Computing the RTCP Transmission Interval)6 3 2 初始化(Initialization)6 3 3 接收RTP或RTCP(非BYE)包(Receiving an RTP or Non-BYE RTCP Packet)6 3 4 接收RTCP(BYE)包(Receiving an RTCP BYE Packet)6 3 5 SSRC计时失效(Timing Out an SSRC)6 3 6 关于传输计时器的到期(Expiration of Transmission Timer)6 37 传输一个BYE 包(Transmitting a BYE Packet)6 3 8 更新we_sent(Updating we_sent)6 3 9 分配源描述带宽(Allocation of Source Description Bandwidth)6 4 发送方和接收方报告(Sender and Receiver Reports)6 4 1 SR:发送方报告的RTCP包(SR: Sender report RTCP packet)6 4 2 RR:接收方报告的RTCP包(RR: Receiver Report RTCP Packet)6 4 3 扩展发送方和接收方报告(Extending the Sender and Receiver Reports )6 4 4 分析发送方和接收方报告(Analyzing Sender and Receiver Reports )6 5 SDES:源描述RTCP包(SDES: Source description RTCP packet)6 5 1 CNAME:规范终端标识符的SDES数据项(CNAME: Canonical End-Point Identifier SDES Item)6 5 2 NAME:用户名的SDES数据项(NAME: User name SDES item)6 5 3 EMAIL:电子邮件地址的SDES数据项(EMAIL: Electronic Mail Address SDES Item)6 5 4 PHONE:电话号码的SDES数据项(PHONE: Phone Number SDES Item)6 5 5 LOC:地理用户地址的SDES数据项(LOC: Geographic User Location SDES Item)6 5 6 TOOL:应用程序或工具名字的SDES数据项(TOOL: Application or Tool Name SDES Item)6 57 NOTE:通知/状态的SDES数据项(NOTE: Notice/Status SDES Item)6 5 8 PRIV:私有扩展的SDES数据项(PRIV: Private Extensions SDES Item)6 6 BYE:Goodbye RTCP包(BYE: Goodbye RTCP packet)6 7 APP:定义应用程序的RTCP包(APP: Application-Defined RTCP Packet)7 RTP转换器和混频器(RTP Translators and Mixers)7 1 概述(General Description )7 2 在转换器中的RTCP数据处理(RTCP Processing in Translators)7 3 在混频器中的RTCP数据处理(RTCP Processing in Mixers )7 4 级联混频器(Cascaded Mixers)8 SSRC标识符的分配和使用(SSRC Identifier Allocation and Use)8 1 冲突概率(Probability of Collision )8 2 冲突解决和循环检测(Collision Resolution and Loop Detection)8 3 在分层编码中使用(Use with Layered Encodings)9 安全(Security )9 1 机密性(Confidentiality)9 2 身份验证和消息完整性(Authentication and Message Integrity)10 拥塞控制(Congestion Control)11 网络和传输协议之上的RTP(RTP over Network and Transport Protocols)12 协议常量摘要(Summary of Protocol Constants)12 1 RTCP 包类型(RTCP Packet Types)12 2 SDES 类型(SDES Types)13 RTP概况和负载格式详细说明(RTP Profiles and Payload Format Specifications)14 安全考虑(Security Considerations)15 IANA考虑(IANA Considerations)16 知识产权声明(Intellectual Property Rights Statement)17 鸣谢(Acknowledgments)附录A 算法(Algorithms)附录A 1 RTP数据头有效性检查(RTP Data Header Validity Checks )附录A 2 RTCP数据头有效性检查(RTCP Header Validity Checks)附录A 3 确定RTP包预期数目和丢失数目(Determining Number of Packets Expected and Lost)附录A 4 生成SDES RTCP包(Generating RTCP SDES Packets)附录A 5 解析RTCP SDES包(Parsing RTCP SDES Packets)附录A 6 生成32位随机标识符(Generating a Random 32-bit Identifier附录A 7 计算RTCP传输间隔(Computing the RTCP Transmission Interval)附录A 8 估测两次到达间隔的抖动(Estimating the Interarrival Jitter)附录B 与RFC1889不同之外(Changes from RFC 1889)参考书目(References)标准化引用(Normative References )资料性引用(Informative References)作者地址完整的版权声明1.绪论本文详细的介绍实时传输协议RTP,RTP提供带有实时特性的端对端数据传输服务,传输的数据如:交互式的音频和视频。
C#实现RTP数据报传输参照RFC3550C#实现RTP数据报传输参照RFC3550闲暇时折腾IP网络视频监控系统,需要支持视频帧数据报在网络内的传输。
未采用H.264或MPEG4等编码压缩方式,直接使用Bitmap图片。
由于对帧的准确到达要求不好,所以采用UDP传输。
如果发生网络丢包现象则直接将帧丢弃。
为了记录数据报的传输顺序和帧的时间戳,所以研究了下RFC3550协议,采用RTP包封装视频帧。
并未全面深究,所以未使用SSRC和CSRC,因为不确切了解其用意。
不过目前的实现情况已经足够了。
1.///2./// RTP(RFC3550)协定数据报3.///4.///5./// The RTP header has the following format:6./// 0 1 2 37./// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 018./// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+9./// |V=2|P|X| CC |M| PT | sequence number|10./// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+11./// | timestamp|12./// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+13./// | synchronization source (SSRC) identifier|14.///+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+ =+=+=+=+=+=+=+=+=+=+=+=+15./// | contributing source (CSRC) identifiers|16./// | ....|17./// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+18.///19.public class RtpPacket20. {21.///22./// version (V): 2 bits23./// RTP版本标识,当前规范定义值为2.24./// This field identifies the version of RTP. The version definedby this specification is two (2).25./// (The value 1 is used by the first draft version of RTP and the value 0 is used by the protocol26./// initially implemented in the \vat" audio tool.)27.///28.public int Version { get { return 2; } }29.30.///31./// padding (P):1 bit32./// 如果设定padding,在报文的末端就会包含一个或者多个padding 字节,这不属于payload。
RFC3550RTP:实时应用程序传输协议摘要本文描述RTP(real-time transport protocol),实时传输协议。
RTP在多点传送(多播)或单点传送(单播)的网络服务上,提供端对端的网络传输功能,适合应用程序传输实时数据,如:音频,视频或者仿真数据。
RTP没有为实时服务提供资源预留的功能,也不能保证QoS(服务质量)。
数据传输功能由一个控制协议(RTCP)来扩展,通过扩展,可以用一种方式对数据传输进行监测控制,该协议(RTCP)可以升级到大型的多点传送(多播)网络,并提供最小限度的控制和鉴别功能。
RTP和RTCP被设计成和下面的传输层和网络层无关。
协议支持RTP标准的转换器和混合器的使用。
本文的大多数内容和旧版的RFC1889相同。
在线路里传输的数据包格式没有改变,唯一的改变是使用协议的规则和控制算法。
为了最小化传输,发送RTCP数据包时超过了设定的速率,而在这时,很多的参与者同时加入了一个会话,在这样的情况下,一个新加入到(用于计算的可升级的)计时器算法中的元素是最大的改变。
目录(Table of Contents)1. 引言 (Introduction)1 1 术语(Terminology)2 RTP使用场景(RTP Use Scenarios)2 1 简单多播音频会议( Simple Multicast Audio Conference)2 2 音频和视频会议(Audio and Video Conference)2 3 混频器和转换器(Mixers and Translators)2 4 分层编码(Layered Encodings)3 定义(Definitions)4 字节序,校正和时间格式(Byte Order, Alignment, and Time Format)5 RTP数据传输协议(RTP Data Transfer Protocol)5 1 RTP固定头域(RTP Fixed Header Fields)5 2 多路复用RTP会话(Multiplexing RTP Sessions)5 3 RTP头的配置文件详细变更(Profile-Specific Modifications to the RTP Header)5 3 1 RTP报头扩展(RTP Header Extension)6 RTP控制协议(RTP Control Protocol) -- RTCP6 1 RTCP包格式(RTCP Packet Format)6 2 RTCP传输间隔(RTCP Transmission Interval)6 2 1 维护会话成员数目(Maintaining the number of session members)6 3 RTCP包的发送与接收规则(RTCP Packet Send and Receive Rules)6 3 1 计算RTCP传输间隔(Computing the RTCP Transmission Interval)6 3 2 初始化(Initialization)6 3 3 接收RTP或RTCP(非BYE)包(Receiving an RTP or Non-BYE RTCP Packet)6 3 4 接收RTCP(BYE)包(Receiving an RTCP BYE Packet)6 3 5 SSRC计时失效(Timing Out an SSRC)6 3 6 关于传输计时器的到期(Expiration of Transmission Timer)6 37 传输一个 BYE 包(Transmitting a BYE Packet)6 3 8 更新we_sent(Updating we_sent)6 3 9 分配源描述带宽(Allocation of Source Description Bandwidth)6 4 发送方和接收方报告(Sender and Receiver Reports)6 4 1 SR:发送方报告的RTCP包(SR: Sender report RTCP packet)6 4 2 RR:接收方报告的RTCP包(RR: Receiver Report RTCP Packet)6 4 3 扩展发送方和接收方报告(Extending the Sender and Receiver Reports )6 4 4 分析发送方和接收方报告(Analyzing Sender and Receiver Reports )6 5 SDES:源描述RTCP包(SDES: Source description RTCP packet)6 5 1 CNAME:规范终端标识符的SDES数据项(CNAME: Canonical End-Point Identifier SDES Item)6 5 2 NAME:用户名的SDES数据项(NAME: User name SDES item)6 5 3 EMAIL:电子邮件地址的SDES数据项(EMAIL: Electronic Mail Address SDES Item) 6 5 4 PHONE:电话号码的SDES数据项(PHONE: Phone Number SDES Item)6 5 5 LOC:地理用户地址的SDES数据项(LOC: Geographic User Location SDES Item)6 5 6 TOOL:应用程序或工具名字的SDES数据项(TOOL: Application or Tool Name SDES Item) 6 57 NOTE:通知/状态的SDES数据项(NOTE: Notice/Status SDES Item)6 5 8 PRIV:私有扩展的SDES数据项(PRIV: Private Extensions SDES Item)6 6 BYE:Goodbye RTCP包(BYE: Goodbye RTCP packet)6 7 APP:定义应用程序的RTCP包(APP: Application-Defined RTCP Packet)7 RTP转换器和混频器(RTP Translators and Mixers)7 1 概述(General Description )7 2 在转换器中的RTCP数据处理(RTCP Processing in Translators)7 3 在混频器中的RTCP数据处理(RTCP Processing in Mixers )7 4 级联混频器(Cascaded Mixers)8 SSRC标识符的分配和使用(SSRC Identifier Allocation and Use)8 1 冲突概率(Probability of Collision )8 2 冲突解决和循环检测(Collision Resolution and Loop Detection)8 3 在分层编码中使用(Use with Layered Encodings)9 安全(Security )9 1 机密性(Confidentiality)9 2 身份验证和消息完整性(Authentication and Message Integrity)10 拥塞控制(Congestion Control)11 网络和传输协议之上的RTP(RTP over Network and Transport Protocols)12 协议常量摘要(Summary of Protocol Constants)12 1 RTCP 包类型(RTCP Packet Types)12 2 SDES 类型(SDES Types)13 RTP概况和负载格式详细说明(RTP Profiles and Payload Format Specifications)14 安全考虑(Security Considerations)15 IANA考虑(IANA Considerations)16 知识产权声明(Intellectual Property Rights Statement)17 鸣谢(Acknowledgments)附录 A 算法(Algorithms)附录 A 1 RTP数据头有效性检查(RTP Data Header Validity Checks )附录 A 2 RTCP数据头有效性检查(RTCP Header Validity Checks)附录 A 3 确定RTP包预期数目和丢失数目(Determining Number of Packets Expected and Lost) 附录 A 4 生成SDES RTCP包(Generating RTCP SDES Packets)附录 A 5 解析RTCP SDES包(Parsing RTCP SDES Packets)附录 A 6 生成32位随机标识符(Generating a Random 32-bit Identifier附录 A 7 计算RTCP传输间隔(Computing the RTCP Transmission Interval)附录 A 8 估测两次到达间隔的抖动(Estimating the Interarrival Jitter)附录 B 与RFC1889不同之外(Changes from RFC 1889)参考书目(References)标准化引用(Normative References )资料性引用(Informative References)作者地址完整的版权声明1.绪论本文详细的介绍实时传输协议RTP,RTP提供带有实时特性的端对端数据传输服务,传输的数据如:交互式的音频和视频。
那些服务包括有效载荷类型定义,序列号,时间戳和传输监测控制。
应用程序在UDP上运行RTP来使用它的多路技术和checksum服务。
2种协议都提供传输协议的部分功能。
不过,RTP可能被其他适当的下层网络和传输协议使用(见11节)。
如果下层网络支持,RTP支持数据使用多播分发机制转发到多个目的地。
注意RTP本身没有提供任何的机制来确保实时的传输或其他的服务质量保证,而是由低层的服务来完成。
它不保证传输或防止乱序传输,它不假定下层网络是否可靠,是否按顺序传送数据包。
RTP包含的序列号允许接受方重构发送方的数据包顺序,但序列号也用来确定一个数据包的正确位置,例如,在视频解码的时候不用按顺序的对数据包进行解码。
但是RTP原先的设计是用来满足多参与者的多媒体会议的需要,它没有限定于专门的应用。
连续数据的储存,交互分布式仿真,动态标记,以及控制和测量应用程序也可能会适合使用RTP。
该文档定义RTP,由2个密切联系的部分组成:○实时传输协议RTP,用于实时传输数据。