基金项目:云南省重点项目“云南强震活动与动力学研究”资助.
(1.四川大学 电子信息学院,成都 610065; 2.云南省地震局,昆明 650224)
(1.School of Electronics and Information Engineering,Sichuan University,Chengdu 610065,Sichuan,China)(2.Earthquake Administration of Yunnan Province,Kunming 650224,Yunnan,China)
Application-Layer Multicast,video conference system,tree construction,earthquake disaster emergency
备注
基金项目:云南省重点项目“云南强震活动与动力学研究”资助.
根据应用层多播技术,通过网络多对多传送声音及视频讯号的原理,用应用层多播中的树优先建立方法,进行了网络多播通信方面的研究,实现了一种可以在地震应急中使用的网络视频会议系统。网络仿真实验证明,该系统在地震应急工作中较为实用。
The video conference system which adopts Application-Layer Multicast technology can transmit data between different nodes.With tree-first method,we study the quick transfer of the earthquake information with modern digital technology.In this paper,we design a kind of video conference system.The simulation test proves that this system can transfer the sound and video signal in a convenient way,so it will be very practical in earthquake emergency.
引言
我国是多地震的国家,也是地震灾害最为深重的国家之一。2008年5月12日四川省汶川县MS8.0大地震,给国家和人民造成了无法估量的损失。地震发生后,汶川县曾长时间与外界失去联系。因此,如何利用震后受损或有限的通信条件,建立有效的通信连接手段,是今后地震信息化研究的重要课题。
随着信息技术在我国各行各业中的不断深入发展,地震观测、地震预测预报、地震应急等技术也开始向网络化、数字化迈进。“九五”期间,各级地震部门通过一系列的重大信息化工程建设,已使我国防震减灾能力向前跨了一大步。经过“九五”及“十五”的数字化改造,我国的地震信息化建设已初见成效,各个地震部门间都有专门的网络电缆进行信息传输,其中,主干网络的带宽达到了6 Mbps,地方台站间的网络带宽也达到了3 Mbps,基本具备了完善快捷的网络运行条件(李永强等,2007)。但是,在实际运行过程中,网络主要设备缺少备份,如主服务器、路由器、交换机、集线器和UPS一般只配备一套,一旦设备出现问题,网络就可能全部或部分瘫痪,并且网络带宽有待进一步加大。考虑到今后的子系统建成后也将利用该信道交换数据,特别是大量的基于网络的应用将普遍使用,目前的信道带宽将难以满足需要(赵恒等,2007)。
早期的以IP组多播为基础的网络视频会议系统由于需要路由器的支持,且对网络条件要求较高,因此在地震应急救援中将很难保证有效的信息传送,可靠性也难以保证。为解决这一问题,我们通过对网络视频会议系统的组播方式及算法进行改进,引入应用层多播技术(Application-Layer Multicast,简称ALM)建立新型的网络视频会议系统,使得在网络条件较为有限的情况下仍能进行有效的信息传送。
我们将对网络视频会议的工作原理及其所采用的应用层多播技术进行详细介绍,并通过实验,分析和对比算法的传播性能,最终选定一种ALM算法来指导网络视频会议系统进行信息的接收及传送。
1 地震信息化建设的现状及下一步计划
目前,全国地震系统采用的网络服务器包括Sun、SGI、IBM等多种类型。网络中心企业级服务器采用IBM RS/6000产品系列中最先进的IBM RS/6000 H50为主、辅服务器,在其上运行AIX操作系统和DB2大型数据库及Tivoli网管软件。
软件平台:全国地震通信网络系统的软件平台包括网络操作系统、服务器操作系统、客户机操作系统的选择与配置。整个网络系统服务器操作系统以Unix为主,Win NT和Netware为辅。由于各个网络中心的主要网络服务器采用的设备来自不同的计算机供应商,因此各家的主要操作系统也是五花八门,包括IBM公司的AIX,Sun公司的Solaris,SCO公司的SCO Unix,SGI公司的IRIS及自由软件Linux等等。
网络上的重要服务如域名服务器、邮件服务器、文件传输服务器、WWW服务器大都采用Unix系统,以增强整个网络系统的坚固性和安全性。各个网络中心的文件服务器和打印服务器多采用WinNT或Netware系统,以方便管理。客户端软件大多采用微软公司的产品。
地震系统的信息化成果在运行过程中取得了明显的效益,在设备和网络条件正常的情况下,早期的网络视频会议系统虽对网络条件要求较高,但经过地震信息化建设后的网络条件已经可以满足其运行的要求。但是,四川汶川大地震不仅使震中区光缆断裂,通信基站倒塌,手机、固定电话、网络等现代化通信联络方式全部失灵,而且使附近理县、黑水、茂县、青川、北川、平武、绵竹7个县通讯全无,影响范围达10万km2。面对突发的严重灾情,中国网通、中国电信、中国卫通等一批信息服务企业通力协作,保证了灾后信息交换的畅通。这就说明在“十一五”期间,继续加强我国信息化建设的重要性。我国已明确将在“十一五”期间加强农村信息基础设施建设,扩大信息网络的覆盖面,推进农村地区通信、广播电视和互联网发展。这就意味着广大农村将和城市一样分享信息化的成果。可见,随着信息化建设在我国各行各业的深入开展,将保证我国在遇到诸如地震灾害时的信息交流通畅性得到保证,从而为开展快速有效的抗震救灾工作创造条件。
2 网络视频会议系统
视频会议系统实时传输视频与音频信息,使协作成员可以远距离进行直观、真实的视、音频交流。另一方面,利用多媒体技术的支持,视频会议系统可以帮助用户对工作中的各种信息进行处理,如共享数据、共享应用程序等,从而构造出一个多人共享的工作空间。最初的视频会议系统主要由每个会场安装1套视频会议终端,接上电视机、摄像头、麦克风等附件,再接入相应的宽带网络如IP,ISDN,E1/T1等,即可实现视频、音频、数据的实时传送。目前普遍使用的网络视频会议系统中,有很大一部分都是通过IP组多播技术来实时传送声音及视频讯号,但是由于IP组多播的局限性,如可扩展性,收费问题及拥塞控制等,这个计划虽进行了10年有余,但是IP组多播技术还是未能普及。此外,使用IP组多播技术的网络视频会议系统需要交换机充当路由器进行路由支持,因此,不同型号的交换机相连时,需要协调好彼此的配置,否则会影响组播数据的传输。例如,其中1个监测台站的汇接层交换机是Big Iron 4000,如果视频会议终端与它直接相连,则系统能正常工作,如果在Big Iron 4000与视频会议终端之间加入1台接入层交换机,型号为Intel 530,图像就传输不正常,有严重丢帧现象。经过仔细分析,发现是两台交换机的配置没有协调好,后来开通了Intel 530交换机的双工功能,图像传输才能恢复正常。这就说明使用IP多播技术的网络视频会议系统,在网络条件交换良好的情况下,如果没有配置好彼此间的协议或是没有协调好彼此的配置,在网络交换条件良好的情况下,仍然会存在着丢失数据包较多的现象。最近,有相关研究机构得出的数据表明IP层不一定就是执行多播路由相关功能的合适的网络分层。有更多的研究人员相信应用层能够更好地完成相关的多播功能。由于所有的多播功能包括群组控制和包裹复制都是在端系统中得以实施的,所以,相比IP多播技术,应用层多播技术更值得网络多人视频系统使用,在应用层多播技术中,端系统加入1个由多播组用1个完整的分发协议自动组建的覆盖结构。此外,端系统还尝试改善网络系统的覆盖效率并监视应用层的表现。
我国地震系统的网络条件已经可以满足早期的网络视频会议系统对于网络的带宽及延迟等方面的要求,但是,正如上文提到的,应用IP多播的网络视频系统即使在网络条件完善的情况下仍然不能保证较高的稳定性。而且,如果某个地区发生了地震,当地的网络硬件设备极有可能受到破坏。网络硬件设施的破坏对于网络条件的影响直接表现在以下两个方面:① 导致网络链路中的带宽变小。② 由于硬件的破坏,部分链路已被断开,完成连接时需改变原先的路由,这就造成了在进行网络连接时延迟时间的增长。在这种情况下,震前可以正常工作的网络视频会议系统由于对网络条件要求较高,在震后极有可能因为带宽的不足及网络延迟时间的增长而不能正常工作。因此,在网络条件受损及有限的条件下选择一种新型的网络视频会议系统,使它具备在受灾地区传送视频和音频信号的能力,将会使震后的救援各方能够更加方便快捷地联系,从而极大地推动震后的抗震救灾工作。本文所研究的多人视频会议系统是典型的P2P网络视频会议系统,为了避免在P2P应用中出现过的管理和安全问题,该系统在设计时采用了一种混合的系统结构,该结构在公共区域设置了1个服务器,用于完成用户的注册和会议的设置。在服务器无法连通的情况下,可以通过应用层多播技术在无路由器支持的情况下进行数据的传送和接收,从而完成用户的注册和会议的设置。由于采用了应用层多播技术,该网络视频会议系统可以不受网络路由器的限制,并且在应用层多播树的建树过程中,是以带宽为条件通过连接序列的指导进行数据源细节树的建立。以上特点,保证了网络视频会议系统能够在实时稳定地建立网络连接的同时,消耗较少的网络资源(Chu,et al,2000)。与早期的网络视频会议系统相比,该系统可以在震后较为有限的网络条件下,保证更高的稳定性和可靠性,从而为震后的信息联络和交换发挥作用。
3 应用层多播技术及其建树算法
近年来随着Peer-to-Peer Network和Overlay Network等技术的提出,且由于IP组播的局限性直接导致了IP组播的大规模部署变得困难而缓慢,出现了“应用层组播”(ALM),以改善这种局限性。ALM的主要思想是:保持Internet原有的“单播,尽力发送”模型,尽量维持原有的网络体系结构,而主要通过增加端系统的功能来实现组播的功能(李永强等,2007)。由于对网络本身改变较少,ALM相对IP组播具有较好的灵活性。ALM的终端系统通过重叠网进行通信,由终端节点来进行分组的复制和转发(即组播)功能,其底层网络只提供单播功能(Yeo et al,2004)。
ALM的效率和所建立的ALM树的优劣有直接关系,现已有一些关于ALM建树算法方面的报道,例如曹佳和鲁士文(2005)对基于最小延迟的几种ALM建树算法的有效性进行了研究。可见,ALM建树算法的研究是ALM研究领域的一个重要课题。
目前的ALM可以分为3大类,分别是Mesh-first方法,Tree-first方法和Implicit方法(Liljenstam et al,2001)。在本文所研究的网络视频会议系统中,我们采用Tree-first的ALM建树算法,所建立的树为数据源细节树(Source-specific tree)。在典型的ALM数据源细节树的建树过程中,如果一个新的节点n想要从源节点s接收数据,它将向汇合点(Rendezvous Point)发送请求,在收到请求后,如果源节点s到节点n之间的带宽满足连接所要求的比特率(bitrate),汇合点将会把n加入到s所建立的ALM多播树中。有两种操作方式可以将一个新节点加入到已经建立好的多播树中(图1),这两种操作分别是附加(attach)和插入(insert)。
这两种操作中,附加操作最为直接,插入操作的执行则需要具备一定的条件:如果ALM多播树中的现存节点都没有足够的带宽将数据传送给新加入的节点n,但是n具备足够的带宽将数据传递给其中的一些节点,那么节点n将被插入到已有的连接中。但如果优先执行附加操作,并在只有附加操作失败的情况下才执行插入操作的话,插入操作将不会被执行,这是因为RP节点只有端到端的带宽信息,节点n如果不能通过附加操作被连接到源节点s,说明s到n之间的带宽小于连接所要求的比特率,这样,即使s到b的连接被移除,RP节点并不知道该操作对s到n带宽的影响,只能维持不变,s到n仍然不能建立链接。为了让插入操作得以执行,当源节点s到节点b和到节点n出现带宽瓶颈时,可以参照以下标准执行插入操作:① 源节点s到其他所有节点的带宽都小于连接所要求的比特率; ② 存在1个节点i满足节点i到节点n的带宽大于连接所要求的比特率。
基于上述建树算法,在本文第4部分所做的实验中,笔者采用两种不同的ALM建树算法来组建ALM多播树,这两种算法的特点分别是:① 在没有带宽的情况下执行插入操作; ②在即使带宽足够的情况下,也可以尝试使用插入操作。
图1 两种将节点加入ALM多播树的方法(a)和(b)采用的操作是附加,(c)采用的操作为插入
Fig.1 Two possible operations to add node n to an existing ALM tree:(a)and(b)demonstrate the attach operation and(c)demonstrates the insert operation采用此种建树算法的目的,就是为了在保证稳定性的前提下最大限度地利用网络拓扑中带宽,从而保证了以此种建树算法建立的网络视频会议系统相对早期的系统对网络带宽有较小的要求。当然,最大限度地使用网络中的带宽势必会造成所建立的ALM多播树的不稳定,因此,在本文所研究的网络视频会议系统中,当系统所追求的是达到最大连接成员数时,可采用建树算法2来建立ALM多播树。而当系统所追求的是保证已建立的ALM多播树的结构的稳定时,那么网络视频会议系统在建立多播树时可以只选择附加操作来建树,而不再使用插入操作。这样就使得ALM算法采用了保守的带宽判断手段来建树,从而得子节点数在带宽用完后就不再增加,保证了树结构的稳定。
本文所研究的视频会议系统在对多台电脑建立连接时,并不需要路由器进行路由支持。互联网中的多台计算机在彼此连接通信的过程中,需要参与的成员按照一定的顺序相连接。我们将由此产生的连接顺序称为连接请求序列。如果网络中有n个节点需要相互连通,则有如下典型的连接顺序:
{1->2,2->1,3->1,3->2,1->3,2->3,>1,4->2,4->3,……n-2->n,n-1->n}.
该连接序列的物理意义是:起初网络中只存在节点1和节点2,节点1向节点2发送连接请求,节点2收到后,随即也向节点1发送连接请求,从而建立起双向连接; 之后节点3加入,向节点1和节点2发送连接请求,节点1和节点2在收到后也分别向节点3发送连接请求; 按照这个步骤,在第n个节点加入网络之后,节点n向已存在于网络中的n-1个节点发送连接请求,这第n-1个节点在收到并接受请求后,也向节点n发送连接请求。最后,n个节点间就建立起了相互连接。这就意味着跳过了路由器的支持,各个计算机之间通过连接序列的指导,已经可以建立相互连接。汶川大地震发生后,当地的通信设备遭到严重损毁,但经过早期的抢修后,一部分灾区的电脑与电脑间还是可以通过有限的网络条件相互连接,但在这种网络条件下,想要通过路由器的路由支持运行早期的网络视频会议系统已变得不可能。由于本文中所研究的网络视频会议系统能够通过连接序列的指导自行连接,这就使得震区的电脑只要能通过震后有限的网络条件进行互相连接,就可以使用这种网络视频会议系统。
当然,在震后不稳定的网络条件下,还应该考虑节点成员的意外离开或者失效造成拓扑结构的突变对传输可靠性的影响。这类影响比较集中地表现在由于节点的失效或网络链路的断开而引起的网络拓扑中的带宽变化方面。因此,当ALM多播树中的1个节点突然失效或者意外离开时,就意味着网络拓扑中和这个节点连接的1条或多条链路已经断开,为了保证网络拓扑中剩下的节点间还能正常连接,在本文所研究的网络视频会议系统中,比如l为节点s到节点t之间的链路,当1个传输链路被移除后,节点t突然失效,那么该链路l可使用的带宽将会增加,增加的值等于该链路传输视频信号时所使用的比特率。由于我们并不知道该链路被移除后对其它链路的影响会有多大,因此,为保证网络视频会议系统仍能正常工作,我们只会去更新被移除的链路的带宽,更新后的带宽BW[s->t]=BW[s->t]+rate。
4 实验和结果分析
为了验证本文所研究的ALM建树算法的有效性,我们将通过真实的网络环境来模拟数据的传输过程。本文的实验数据来自于真实的互联网数据——Jason Liu的互联网数据工程。该工程中采集的实际网络拓扑信息能够产生大量的网络结构数据来作为仿真实验的输入数据。每次实验都能获得路由信息和节点间链路的带宽和延迟等数据,并以此为依据进行仿真和测试。
仿真实验的流程如下:① 从网络结构工程(http://www.crhc.uiuc.edu/~jasonliu/projects/topo/)提供的数据中得到拓扑; ② 对每个测试用例,从拓扑中随机选取n个节点作为路由器节点,通过Dijkstra计算出它们之间的最短路径; ③ 将这n个节点分离,去掉其他所有节点和链路信息; ④ 向每个路由器节点附加1个终端; ⑤ 随机设定终端的连接类型,所包括的连接类型为90%比例的ADSL用户和10%比例的LAN用户; ⑥ 随机地加入末端带宽以模拟终端和路由器节点间链路的带宽:ADSL用户上行带宽200~300 kbps,下行带宽500~700 kbps,LAN用户上、下行带宽均为10 M; ⑦ 假设流量是100 kbps,执行ALM算法得到结果; ⑧ 分析实验数据。
5 结论
通过实验结果分析可见,在采用ALM算法对多个节点建立ALM多播树的过程中,采用连接请求序列来连接各个节点,在最大程度利用网络带宽的前提下,还能避免重复使用带宽较小的链路,从而降低错误发生的机率。因此,采用应用层多播的网络视频会议系统比早期的采用IP组播的系统具有更高优越性,其错误率较小的特点保证了在震后网络条件较为有限时的运行稳定性。此外,由于ALM算法的带宽判断标准能够比较从容地应付诸如节点突然失效等网络中突然发生的变化,并保证了所建立的ALM多播树的结构稳定性,从而可以保证在灾区举行网络视频会议时,视频及音频信号的传送。
- 曹佳,鲁士文.2005.应用层组播的最小延迟生成树算法[J].软件学报,16(10):114-119.
- 李永强,曹刻,赵恒,等.2007.云南地震应急卫星通讯技术的系统集成与应用[J].地震研究,30(1):93-98.
- 赵恒,周兰江,曹刻,等.2007.云南地震局地震应急通信系统在2007年宁洱6.4级地震中的应用及发展[J].地震研究,30(4):395-399.
- Chu Y,Rao S,Zhang H.2000.A case for end system multicast[C]//Proceedings of ACM SIGMETRICS'00:1-12.
- Liljenstam M,Liu J,Nicol D M.2001.Development of an Internet backbone topology for large-scale network simulations[C]//Proceedings of the 3rd Usenix Symposium on Internet Technologies & Systems.
- Yeo C K,Lee B S,Er M H.2004.A survey of application level multicast techniques[J].Computer Communications,27:1547-1568.