1 ÒýÑÔ
Êý×ÖÊÓƵ¹ã²¥DVB(Digital Video Broadcasting)ÌṩÃæÏòµçÊӺͻú¶¥ºÐµÄÎÞÏ߹㲥Êý×ÖµçÊÓ·þÎñ£¬¶¨ÒåÁËÒ»Ì×»ùÓÚ¶¯Ì¬Ó°ÏñѹËõ±ê×¼MEPG-2(Moving pictures Experts Group)´«ÊäÁ÷µÄÊý¾Ý°üÄÚ·â×°Êý¾ÝµÄ·½·¨£¬¸ù¾ÝÎÀÐÇ¡¢ÓÐÏߺ͵ØÃæµÈ²»Í¬´«Êäý½é£¬DVB±ê×¼ÏàÓ¦µÄ·ÖΪDVB-S¡¢DVB-CºÍDVB-TµÈ¡£
IP over TS¼¼ÊõÊÇͨ¹ýÊý×ÖµØÃæµçÊÓÍøÂç´«ÊäIPÊý¾ÝÒµÎñµÄ¹Ø¼ü¼¼Êõ£¬Ëü²ÉÓÃÒÑÓеĻùÓÚDVB-TµÄ·¢ÉäºÍ½ÓÊÕ×°ÖÃÌṩÎÞÏßIP·ÃÎÊÒµÎñ¡£IP over TS¿ÉΪÓû§Ìṩ¸ßËÙÒƶ¯(<200 krn£¯h)״̬ϵÄÔ¶³Ì(<50 km)ÍøÂç·ÃÎʽӿڡ£ÒÔÏà¶ÔµÍÁ®µÄ³É±¾½â¾ö·Ç¹Ì¶¨ÒÔÌ«Íø·ÃÎʵĽÓÈëÎÊÌâ¡£
IP over TSϵͳ±ØÐëÌṩIPÊý¾Ý°üºÍTSÊý¾Ý°üµÄ·â×°ÄÜÁ¦ºÍµØÖ·½âÎöÄÜÁ¦¡£Í¬Íø¶ÎÄÚµØÖ·À©Õ¹¼¼ÊõÖ÷ҪΪҪÇó»¥ÁªµÄË«·½ÔÚͬһÍø¶ÎÄÚµÄÌØÊâÉ豸ÌṩµØÖ·½âÎö·½°¸¡£ËüÊÇIP over TSϵͳͬÍø¶ÎÄÚÓ¦ÓõĹؼü¼¼Êõ¡£
2 ÎÊÌâµÄÒýÈë
ͼ1ΪʹÓÃIP overTSϵͳµÄÍøÂç¹¹¼Ü¡£ÆäÖУ¬A¶Ë½ÓÈëÒÔÌ«Íø£¬ÎªB¶ËÌṩ·ÃÎʽӿڣ»Í¬Ê±A¶ËºÍB¶Ë½ÓÈëA1ºÍB1£¬A1ºÍB1·Ö±ðΪҪÇó½ÓÈëͬһÍø¶ÎÄÚÏ໥ͨѶµÄÍøÂçÉ豸¡£Í¬Íø¶ÎÄڵĵØÖ·À©Õ¹¼¼ÊõÔòÌṩA£¬BÍøÂçµÄÎÞ·ìÁ¬½Ó¡£
3 Á´Â·À©Õ¹·¨
¶ÔÓÚÉÏÊöÄ£ÐÍ£¬ÔÚÒÔÌ«ÍøÖÐͨ³£²ÉÓÃÁ´Â·À©Õ¹·¨½â¾öA¶ËºÍB¶ËÍøÂçµÄÁ¬½ÓÎÊÌâ¡£³£ÓõÄÉ豸Óм¯ÏßÆ÷ºÍ½»»»»ú¡£ÔÚÎÞÏßϵͳÖпÉÌṩ¶Ôµ×²ãÁ´Â·µÄÖ§³ÖÀ´ÊµÏÖÒÔÌ«ÍøÁ¬½Ó¡£Òò´Ë£¬Á´Â·À©Õ¹·¨Í¬ÑùÊÊÓÃÓÚÎÞÏßÐŵÀ¡£
3£®1 Á´Â·À©Õ¹·¨ÔÀí
Á´Â·À©Õ¹·¨µÄÔÀíÊÇͨ¹ýÔÚMAC²ã½ØÈ¡Êý¾Ý°ü²¢×ª·¢ÒÔÌ«Íøµ×²ãËùÓÐÊý¾Ý°ü¡£Í¨¹ý¶Ôµ×²ãÁ´Â·µÄÖ§³ÖʵÏÖͬһÍø¶ÎÄÚµØÖ·µÄÀ©Õ¹¡£
3£®2 Á´Â·À©Õ¹·¨µÄʵÏÖ
·ÃÎÊÊý¾ÝÁ´Â·²ãͨ³£ÓÐ3ÖÖ·½·¨£º»ùÓÚBSDµÄ·Ö×é¹ýÂËÆ÷(BPF)¡¢»ùÓÚSVR4µÄÊý¾ÝÁ´Â·½Ó¿Ú(DLPI)ºÍ»ùÓÚLinuxµÄSOCKET_PACKET½Ó¿Ú¡£ÓÉÓÚ¸Ãϵͳ²ÉÓÃǶÈëʽLinux²Ù×÷ϵͳ£¬ËùÒÔ²ÉÓÃSOCKET_PACKET½Ó¿Ú·ÃÎÊÊý¾ÝÁ´Â·²ã¡£ÊµÏÖ¹ý³ÌΪͨ¹ý´´½¨Êý¾ÝÁ´Â·²ãsocket½øÐÐÊý¾ÝÁ´Â·²ãµÄ·ÃÎÊ¡£ËùÓÐÊý¾ÝÁ´Â·²ãµÄÊý¾Ý½øÐÐTS·â×°²¢Í¨¹ýTSÎÞÏßÐŵÀ´«ÊäÖÁ¶Ô¶Ë£¬¶Ô½ÓÊÕµ½µÄÐźŽøÐнâµ÷¡¢½â·â×°£¬½«Êý¾Ýͨ¹ýSOCKET PACKET½Ó¿Ú·¢Ë͵½½»»»»ú£¬ÔÙÓɽ»»»»úת·¢¡£Æä³ÌÐòÖ÷ÒªÓï¾äΪ£º
3£®3 Á´Â·À©Õ¹·¨µÄ²âÊÔ
²âÊÔÉÏÊö·½·¨£ºIP over TSϵͳ²ÉÓÃ2 Mb£¯sµÄÎÞÏßÐŵÀ£¬ÆäÖÐA¶Ë½ÓÈë½ÌÓýÍøÄÚÈÎÒâ½»»»»ú²¢É趨ÆäIPµØַΪͬÍø¶ÎÄÚ¿ÉÓÃIPµØÖ·£¬ÎÞÏßB¶Ëͨ¹ýIP over TSϵͳ½ÓÈëÔ¶³Ì½»»»»úÇÒIPµØÖ·ºÍA¶ËÍøÂç´¦ÓÚͬһÍø¶Î£¬½»»»»ú¶ËÁ¬½Ó²âÊÔÖ÷»úB1¡£A¶ËÖ÷»úA1ÿÃë·¢ËÍ300 KBUDPÊý¾ÝÖÁÖ÷»úB1£¬B1Ö÷»úͬʱÿÃë·¢ËÍ300 KB UDPÊý¾ÝÖÁÖ÷»úA1¡£ÔÚB¶ËIP over TSϵͳ´¦Í³¼Æ½ÓÊÕµ½µÄÓÐЧÊý¾Ý×ÜÁ¿(UDPÐÒé·¢Ë͵ÄÊý¾Ý)ºÍÐŵÀ´«ÊäÊý¾Ý×ÜÁ¿¡£²âÊÔ½á¹ûÈçͼ2Ëùʾ¡£
3£®4 Á´Â·À©Õ¹·¨²âÊÔ·ÖÎö
´Óͼ2µÄ²âÊÔ½á¹û¿´³ö£¬Á´Â·À©Õ¹·¨µÄÖ÷ÒªÎÊÌ⣺ÎÞÏßÐŵÀµÄÓÐЧÊý¾ÝÕ¼ÓÐÂʲ»ÎÈÇÒÔÚ²¿·Öʱ¶ÎÃ÷ÏÔϽµ£¬µ¼ÖÂÂëÂʽӽüÐŵÀÈÝÁ¿µÄʵʱͼÏñ´«Êä³öÏÖ¿¨Í¼»òÂíÈü¿Ë¡£¼ÙÈçËù²ÉÓõÄIP over TSϵͳµÄÎÞÏß´ø¿íΪ2 Mb£¯s£¬ÔÚÁ´Â·²ã½øÐÐÊý¾Ý°ü»ñÈ¡ºÍת·¢Í¨³£»áÓöµ½ARPÊý¾Ý°ü¡¢¸÷ÖֵĹ㲥ÒÔ¼°ÆäËû·ÇÔغÉÊý¾Ý¡£¶ÔÓÚ2 Mb£¯sµÄÎÞÏßͨÐÅÁ´Â·£¬ÕâЩ¶îÍâÊý¾Ý»áÕ¼Óò¿·Ö´«Êä´ø¿í¶øµ¼ÖÂϵͳÓÐЧÊý¾Ý´«ÊäËÙÂÊϽµ¡£
4 ÁÚ½Ó±í·¨
4£®1 ÁÚ½Ó±í·¨ÔÀí
ÁÚ½Ó±í·¨»ùÓÚÁ´Â·À©Õ¹·¨²¢¶ÔÆä½øÐиĽø£¬ÁÚ½Ó±í·¨¹ýÂËÁËÁ´Â·²ãµÄ ARPÊý¾Ý°üºÍÆäËû¹ã²¥Êý¾Ý£¬´Ó¶øÌáÉýÁËÎÞÏßÐŵÀµÄ´«ÊäЧÂÊ¡£ARPÄÏIP²ã¸´Ó㬿ɽâÎö¾ÖÓòÍøÄÚÈÎÒâºÏ·¨µÚÈý²ãÐÒéºÍµÚ¶þ²ãÓ²¼þµØÖ·Ö®¼äµÄÓ³Éä¹Øϵ¡£µ± A¶ËÉ豸·ÃÎÊB¶ËÉ豸ʱ£¬ÓÉÓÚ¹ýÂËARPÊý¾Ý°ü£¬Ê¹µÃA¶ËÉ豸ÈÏΪB¶ËÉ豸δÔÚÏß»òͨ¹ýÍø¹Øת·¢£¬µ¼ÖÂͨѶ²»ÄÜÕý³£½øÐС£Èç¹û½«A¶ËIP over TSϵͳÉ趨ΪĬÈÏÍø¹Ø£¬»áµ¼ÖÂA¶ËµÄÆäËûÉ豸²»ÄÜ·ÃÎÊÉϲãÒÔÌ«Íø¡£¿É²ÉÓÃαÔìARPÐÒé½øÐÐͬÍø¶ÎÄÚµØÖ·À©Õ¹½â¾ö´ËÎÊÌâ¡£ÓÉÓÚARPÐÒéÊǽ¨Á¢ÔÚÓѺÃͨÐÅ¡¢³ä·ÖÐÅÈλù´¡ÉϵÄÐÒ飬Òò´ËºÜÈÝÒ×ͨ¹ýÆÛƵÄÊֶλñÈ¡·¢Ë͵½ÆäËûÖ÷»úµÄIPÊý¾Ý°ü¡£ÆÛƵÄÕû¸öÁ÷³ÌΪ£º(1)ͳ¼ÆIP over TSϵͳÁ½¶Ë·Ö±ðÁ¬½ÓÉ豸µÄIPµØÖ·£¬·Ö±ð¼Ç¼µ½¶Ô·½µÄÁÚ½Ó±íÖУ»(2)½«ÁÚ½Ó±íÓ³Éäµ½Hash±íÖУ¬Hash±í¼Ç¼ÊÇ·ñÖ÷»úÔÚÏߣ»(3)µ±ÎÞÏßµÄÈÎÒâÒ»¶ËÇëÇóÊý¾Ý·¢ËÍʱ·¢ËÍARPÐÒ飬²éÕÒHash±í£¬Èç¹û´ËIPµØÖ·´æÔÚÓÚÁÚ½Ó±íÖУ¬»Ø¸´ARPÐÒé½øÐÐÊý¾Ý·¢ËÍÆÛÆ¡£ÓÉÓÚÕû¸öÍøÂç±»ÎÞÏßÁ´Â·¸ô¿ª£¬ËùÒÔÆÛÆÒ»¶¨³É¹¦£»(4)»ñÈ¡·¢Ë͵½¶Ô¶ËµÄIPÊý¾Ý£¬½øÐÐÊý¾ÝµÄTS·â×°ºÍת·¢£»(5)¶ªÆú½ÓÊÕµ½µÄÆäËû¹ã²¥Êý¾Ý¡£
×÷ÕߣººÎËÕÇÚ£¬Ã«ÊÀÎÄ ±±¾©»¯¹¤´óѧ À´Ô´£º¹úÍâµç×ÓÔªÆ÷¼þ