1239171 玖、發明說明: 一、 發明所屬之技術領域 本發明係關於一種會議初始協定(Session Initiation Protocol ; SIP)之註冊封包資訊之更新方法,特別是關於一 種可供行動通訊用戶來更新目前SIP之註冊封包資訊,以 使其他通訊用戶可以和該行動通訊用戶重新進行通訊。 二、 先前技術 SIP是由網際網路工程工作小組(IETF)於1999年所制定 的一個通訊標準,特別是針對網路電話(VoIP)之通訊技術 所制訂。 除了 SIP外,國際間還有幾個組織各自定義了不同的網 路電話標準,茲舉例如下:H.323是於1996年由國際電信 標準部門(ITU-T)所提出的標準,原本是以區域網路為基礎 做視訊會議上的應用,後來卻被廣泛的使用於網路電話; 媒體閘道控制協定(Media Gateway Control Protocol; MGCP) 亦是由網際網路工程工作小組所提出之通訊標準,不同於 H.323採點對點(peer-to-peer)之通訊方式,MGCP係屬於主 僕(master-slave)式之通訊標準。 SIP係直接採用文字方式之通訊標準,能在兩兩或更多 傳送參與者間發展及控制多媒體會議,另外也規範通話建 立與結束所需使用之指令與訊號傳輸規格的協商機制。簡 言之,SIP是為改進H.323協定結構過於複雜、呼叫建立 的速度慢及擴充性低的缺點而提出來,透過閘道器 (gateway)達成與公眾交換電信網路(PSTN)互通的目的。1239171 (1) Description of the invention: 1. Technical field to which the invention belongs The present invention relates to a method for updating registered packet information of a Session Initiation Protocol (SIP), and in particular to a method for mobile communication users to update the current SIP Register the packet information so that other communication users can communicate with the mobile communication user again. 2. Prior Technology SIP is a communication standard formulated by the Internet Engineering Task Force (IETF) in 1999, especially for VoIP communication technology. In addition to SIP, several international organizations have customized different Internet telephony standards. Here are some examples: H.323 was a standard proposed by the International Telecommunications Standards Sector (ITU-T) in 1996. The LAN is used as a video conference application, but it has been widely used in Internet telephony. The Media Gateway Control Protocol (MGCP) is also a communication standard proposed by the Internet Engineering Working Group. Unlike the H.323 peer-to-peer communication method, MGCP is a master-slave communication standard. SIP is a text-based communication standard that can develop and control multimedia conferences among two or more transmission participants. It also regulates the negotiation mechanism for the instructions and signal transmission specifications required for call establishment and termination. In short, SIP is proposed to improve the shortcomings of the H.323 protocol structure, which is too complex, slow call establishment, and low extensibility. Gateways are used to achieve interoperability with the public switched telecommunications network (PSTN). purpose.
H:\HU\LGC\瀚霖科技\瀚霖科技台灣專利\86104.DOC 1239171 為又而a ’ SIP協定使用於點對點的通訊(peer to peer), 且以HTML或DNS的方式呈現。目前市面上的NAT路由 為所連接之通訊用戶若僅具有私有位址,而未申請或另有 廣域位址’則因不具有DNS或動態DNS(DDNS)的功能, 而並無法使用SIP協定傳輸。 圖1係一習知之SIp之通訊環境之示意圖。有一通訊用 戶14係擁有私有網路124之一私有位址,並在該私有網路 124之SIP註冊伺服器122内有註冊資料,且該私有網路 已申叫廣域仅址和網域名稱(d〇main name)。因此位在網際 網路11遠端之通訊用戶15可以透過NAT路由器121與該 通訊用戶14進行網路電話通話。另通訊用戶I*可向dhcp 伺服器123取得IP、網路遮罩(netmask)及預設閘道位址等 設定資料。 但是當屬於該私有網路124之通訊用戶14移動至另一私 有網路134時,其透過NAT路由器131、SIp註冊伺服器 132及DHCP伺服器133與網際網路n相連,因其所屬之 私有位址僅是在私有網路124下使用之私有位址,也就無 法跟著通訊用戶14而移動。因此若通訊用戶14仍使用原 先設定的網域和網址(URI),則通訊用戶15將無法透過原 有之路彼與通訊用戶14進行網路通訊。 三、發明内容 本發明之主要目的係提供一種Slp之註冊封包資訊之更 新万法,可提供行動通訊用戶暫時移至另一私有網路後完 成相關註冊封包資訊之更新,並仍能由另一通訊用戶和該 Η鞭〇<:_科_霖科技台灣專早_嶋c 1239171 行動通訊用戶進行通訊。 本發明之SIP之註冊封包資訊之更新方法適於在一私有 網路下新連線的行動通訊用戶使用,其可以通過網際網路 與其他通訊用戶雙向啟始視訊會議或網路電話。本發明之 方法包含下列步驟:先利用動態主機設定協定之欄位來獲 得通訊用戶所在私有網路之NAT路由器的廣域位址;並在 SIP註冊封包資料内的接觸欄位内,將路由器之廣域位址 取代通訊用戶所在之當地位址;最後由通訊用戶送出一註 冊封包資訊,其中IP表頭内的目的位址被改為通訊用戶之 預設閘道位址。 四、實施方式 圖2係本發明之SIP之通訊環境之示意圖。一通訊用戶 26使用 SIP之網路電話或電腦到一尚未註冊之私有網路 254欲進行網路連線,且該私有網路254係藉由一 NAT路 由器251通向一網際網路21。該私有網路254尚包含一 SIP 註冊伺服器252及DHCP伺服器253,其負責管理整個私 有網路254之架構,包括私有網路254下使用者之SIP註 冊資訊及相關硬體設定資訊。一遠端之SIP註冊伺服器 24、一動態網域名稱系統(Dynamic Domain Name System ; DDNS)伺服器 22及一廣域網址查詢(lookup WAN IP address)伺服器23與網際網路21相連接。 假設SIP註冊伺服器24之網址(URL)為sip.acme.com, 動態網域名稱系統伺服器22之網址為ddns.com,NAT路 由器251具有一登記之廣域位址177.1.1.1及一預設閘道位H: \ HU \ LGC \ HANLIN TECHNOLOGY \ HANLIN TECHNOLOGY TAIWAN PATENT \ 86104.DOC 1239171 is another a ’SIP protocol used for peer-to-peer communication and presented in HTML or DNS. At present, the NAT route on the market is that if the connected communication user only has a private address, but has not applied for or has a wide-area address, then the SIP protocol cannot be used because it does not have the function of DNS or dynamic DNS (DDNS). transmission. Figure 1 is a schematic diagram of a conventional SIp communication environment. A communication user 14 has a private address of a private network 124, and has registration information in the SIP registration server 122 of the private network 124, and the private network has been called a wide area address and a domain name (D〇main name). Therefore, the communication user 15 located at the far end of the Internet 11 can make an Internet telephone call with the communication user 14 through the NAT router 121. In addition, the communication user I * can obtain the setting data such as IP, netmask, and default gateway address from the dhcp server 123. However, when the communication user 14 belonging to the private network 124 moves to another private network 134, it is connected to the Internet n through the NAT router 131, the SIp registration server 132, and the DHCP server 133. The address is only a private address used under the private network 124 and cannot be moved with the communication user 14. Therefore, if the communication user 14 still uses the previously set domain and URL (URI), the communication user 15 will not be able to communicate with the communication user 14 via the original route. 3. Summary of the Invention The main purpose of the present invention is to provide a method for updating the registered packet information of Slp, which can provide mobile communication users to temporarily update to another private network to complete the related registered packet information, and still be able to be updated by another The communication user communicates with the whistle 0 <: _ 科 _ 霖 科技 台 专 专 早 _c 1239171 Mobile communication user communicates. The method for updating the registered packet information of the SIP of the present invention is suitable for use by newly connected mobile communication users in a private network. It can initiate a video conference or an Internet call with other communication users through the Internet in both directions. The method of the present invention includes the following steps: first, use the field of the dynamic host setting protocol to obtain the wide-area address of the NAT router of the private network where the communication user is located; and in the contact field in the SIP registration packet data, The wide-area address replaces the local address of the communication user. Finally, the communication user sends a registration packet information, in which the destination address in the IP header is changed to the default gateway address of the communication user. 4. Implementation Figure 2 is a schematic diagram of the SIP communication environment of the present invention. A communication user 26 uses a SIP internet phone or computer to connect to a private network 254 that has not yet been registered, and the private network 254 is connected to an Internet 21 through a NAT router 251. The private network 254 also includes a SIP registration server 252 and a DHCP server 253, which are responsible for managing the structure of the entire private network 254, including SIP registration information and related hardware setting information of users under the private network 254. A remote SIP registration server 24, a dynamic domain name system (DDNS) server 22, and a wide area lookup WAN IP address server 23 are connected to the Internet 21. Assume that the URL (URL) of the SIP registration server 24 is sip.acme.com, the URL of the dynamic domain name system server 22 is ddns.com, and the NAT router 251 has a registered wide-area address 177.1.1.1 and a Gateway
H:\HU\LGC\瀚霖科技\瀚霖科技台灣專利\86104.DOC 1239171 址 192.168.50.1。 若通訊用戶26原本已在SIP註冊伺服器24下完成註 冊’因此當通訊用戶26移至另一未註冊之私有網路254 内’則其他通訊用戶將無法以原先之網址 sip.acme.com 或 SIP位址Pl@sip acme c〇m(假設P1為該通訊用戶26自訂 <名稱)與該通訊用戶26取得聯繫。為解決此一問題,本 發明提出第一較佳實施例之流程圖,如圖3所示。首先通 Λ用戶26會自動向遠端之sip註冊伺服器24傳送一註冊 封包資訊’如步驟3 1所示。該註冊封包資訊會先經過NAT 路由器251,該NAT路由器251接著進行步驟32檢查該 註冊封包資訊中的目的埠與遠端SIP註冊伺服器24之位址 疋否相同。若不是則直接結束傳送註冊封包資訊之動作。 當孩兩位址相同時則進行步驟33,NAT路由器25 1會把 sip狂冊封包表頭中接觸(contact)欄位之位址以其廣域位 址177.1.1.1(如圖2所示)取代,亦即以NAT路由器25ι之 廣域位址覆蓋寫入接觸欄位内之當地位址(1〇cal ιρ addreSS)192.168.50.6(如圖2所示)。最後,向遠端之SIp 狂冊伺服器24傳送已更新内容之SIP註冊封包資訊,如步 驟3 4所示。 圖4係本發明第:較佳實施例之流程圖。假設通訊用戶 27(如圖2所示)本身並無專屬之廣域位址,也未具有遠端 SIP广冊伺服器24之位址,因此需要如圖4所示之流程以 το成A冊動作,俾使其他通訊用戶可以連接至該通訊用戶 h:\hu\lgc\瀚霖科技\瀚霖科技台灣専称861〇4D〇c 1239171 首先,該通訊用戶27藉由DHCP之方式自NAT路由器 251取得動態私有位址192.168.5 0.5,如步驟41所示。接 著進行步驟42,DHCP伺服器253會檢查由通訊用戶27 送來的DHCP需求(request)之封包資訊中的製造廠商名稱 是否存在。在送給DHCP伺服器253之封包資訊内有一個 選項(option)欄位,該欄位已被網際網路工程工作小組在 RFC2 132協定中所定義,其中『option 60』内有一個供應 商身份識別(Vendor class identifier ; VCI)的欄位,該供應 商身份識別可被寫入公司名稱或產品名稱。當DHCP伺服 器253收到來自通訊用戶26的DHCP封包資訊時,它會檢 查此封包的『option 60』欄位是否含有公司名稱。若有, DHCP伺服器253會回送一個回應的封包資訊給通訊用戶 26,其中一欄『option 43』内有NAT路由器25 1之廣域位 址177.1.1.1,如步驟43所示。若『option 60』欄位為空白, 則進行步驟46之動作,DHCP伺服器253會僅回送私有位 址給通訊用戶27,並向廣域網址查詢伺服器23送出一查 詢需求,並得到NAT路由器25 1之廣域位址。 當通訊用戶26得知NAT路由器251之廣域位址後,通 訊用戶 26就要向 DDNS伺服器 22註冊網域名稱 A.d dns.com,並以NAT路由器25 1之廣域位址為目前所在 之位址(Local IP Address)。最後,通訊用戶26向近端之 SIP註冊伺服器252送出一註冊封包資訊以完成註冊動 作,如步驟45所示。圖5為圖4之步驟45所送出之註冊 封包資訊,其中包含IP表頭501、UDP(User Datagram H:\HU\LGCM翰霖科技\瀚霖科技台灣專利\86104.DOC -9- 1239171H: \ HU \ LGC \ Hanlin Technology \ Hanlin Technology Taiwan Patent \ 86104.DOC 1239171 Address 192.168.50.1. If the communication user 26 had originally registered under the SIP registration server 24 'so when the communication user 26 moves to another unregistered private network 254', other communication users will not be able to use the original URL sip.acme.com or The SIP address Pl @ sip acme cm (assuming that P1 is a custom < name of the communication user 26) to contact the communication user 26. To solve this problem, the present invention provides a flowchart of the first preferred embodiment, as shown in FIG. 3. First, the user 26 will automatically send a registered packet information to the remote sip registration server 24 as shown in step 31. The registration packet information will first pass through the NAT router 251, and the NAT router 251 then proceeds to step 32 to check whether the destination port in the registration packet information is the same as the address of the remote SIP registration server 24. If it is not, the action of sending the registered packet information is directly ended. When the two addresses are the same, go to step 33. The NAT router 25 1 will change the address of the contact field in the packet header of the sip crazy book to its wide-area address 177.1.1.1 (as shown in Figure 2). Replace, that is, write the local address (10cal addreSS) 192.168.50.6 in the contact field with the wide-area address of the 25-NAT router (see Figure 2). Finally, the SIP registration packet information of the updated content is transmitted to the remote SIp booklet server 24, as shown in step 34. FIG. 4 is a flowchart of the first: preferred embodiment of the present invention. Assume that the communication user 27 (as shown in FIG. 2) does not have a dedicated wide area address itself, nor does it have the address of the remote SIP booklet server 24. Therefore, the process shown in FIG. Action, so that other communication users can connect to the communication user h: \ hu \ lgc \ HANLIN TECHNOLOGY \ HANLIN TECHNOLOGY TAIWAN CALLS 861〇4D〇c 1239171 First, the communication user 27 uses NAT router 251 from DHCP Obtain the dynamic private address 192.168.5 0.5, as shown in step 41. Next, step 42 is performed, the DHCP server 253 checks whether the manufacturer name in the packet information of the DHCP request sent by the communication user 27 exists. There is an option field in the packet information sent to the DHCP server 253. This field has been defined in the RFC2 132 agreement by the Internet Engineering Working Group. Among them, "option 60" has a vendor identity. Vendor class identifier (VCI) field, the vendor identity can be written into the company name or product name. When the DHCP server 253 receives the DHCP packet information from the communication user 26, it will check whether the "option 60" field of the packet contains the company name. If there is, the DHCP server 253 will return a response packet information to the communication user 26, and one of the columns of "option 43" has the wide area address 177.1.1.1 of the NAT router 25 1, as shown in step 43. If the "option 60" field is blank, then proceed to step 46, the DHCP server 253 will only return the private address to the communication user 27, and send a query request to the wide area URL query server 23, and get the NAT router 25 Wide area address of 1. When the communication user 26 learns the wide-area address of the NAT router 251, the communication user 26 must register the domain name Ad dns.com with the DDNS server 22, and use the wide-area address of the NAT router 25 1 as the current location. Address (Local IP Address). Finally, the communication user 26 sends a registration packet information to the near-end SIP registration server 252 to complete the registration operation, as shown in step 45. Figure 5 is the registration packet information sent in step 45 of Figure 4, which includes IP header 501, UDP (User Datagram H: \ HU \ LGCM Hanlin Technology \ Hanlin Technology Taiwan Patent \ 86104.DOC -9-1239171
Protocol)502及SIP資料503等三大欄位。 本發明除了可以應用DHCP伺服器253取得NAT路由器 251之廣域位址外,尚可以其他習知之硬體及軟體之方式 取得該廣域位址,本發明對此並未作任何限制。 但有些情形下通訊用戶26並無法得知NAT路由器25 1 之廣域位址,因此向近端之SIP註冊伺服器252送出之註 冊封包資訊可以用NAT路由器25 1之預設閘道位址來完成 註冊。換言之,並不一定需要NAT路由器251之廣域位址 才能向SIP註冊伺服器252進行註冊,反而NAT路由器 25 1之預設閘道位址較容易被通訊用戶26取得,並且也能 夠完成相同之SIP註冊程序。 本發明技術内容及技術特點巳揭示如上,然而熟悉本項 技術之人士仍可能基於本發明之教示及揭示而作種種不背 離本發明精神之替換及修飾。因此,本發明之保護範圍應 不限於實施例所揭示者,而應包括各種不背離本發明之替 換及修飾,並為以下之申請專利範圍所涵蓋。 五、 圖式簡要說明 圖1係一習知之SIP之通訊環境之示意圖; 圖2係本發明之SIP之通訊環境之示意圖; 圖3係本發明之第一較佳實施例之流程圖; 圖4係本發明之第二較佳實施例之流程圖;及 圖5為圖4之步驟45所送出之SIP註冊封包資訊之内容 示意圖。 六、 元件符號說明 H:\HU\LGC\瀚霖科技\瀚霖科技台灣專称86104.DOC -10- 1239171 11 網際網路 121 NAT路由器 122 SIP註冊伺服器 123 DHCP伺月艮器 124 私有網路 131 NAT路由器 132 SIP註冊伺服器 133 DHCP飼服器 134 私有網路 14 通訊用戶 21 網際網路 22 DDNS伺月艮器 23 廣域網址查詢伺服器 24 SIP註冊伺服器 251 NAT路由器 252 SIP註冊伺服器 253 DHCP祠服器 254 私有網路 26 ^ 27 通訊用戶 501 IP表頭 502 UDP 503 SIP資料 H:\HU\LGC\激霖科技滿霖科技台灣専利\86104.DOC - 11 -Protocol) 502 and SIP data 503. In addition to using the DHCP server 253 to obtain the wide-area address of the NAT router 251, the present invention can also obtain the wide-area address by other known hardware and software methods, and the present invention does not limit this. However, in some cases, the communication user 26 cannot know the wide-area address of the NAT router 25 1. Therefore, the registration packet information sent to the near-end SIP registration server 252 can use the default gateway address of the NAT router 25 1. Complete registration. In other words, the wide-area address of the NAT router 251 is not necessarily required to register with the SIP registration server 252, but the default gateway address of the NAT router 25 1 is easier to obtain by the communication user 26, and can also accomplish the same SIP registration procedure. The technical content and technical features of the present invention are disclosed as above. However, those skilled in the art may still make various substitutions and modifications based on the teaching and disclosure of the present invention without departing from the spirit of the present invention. Therefore, the protection scope of the present invention should not be limited to those disclosed in the embodiments, but should include various substitutions and modifications that do not depart from the present invention, and are covered by the following patent application scope. V. Brief Description of the Drawings Figure 1 is a schematic diagram of a conventional SIP communication environment; Figure 2 is a schematic diagram of a SIP communication environment of the present invention; Figure 3 is a flowchart of a first preferred embodiment of the present invention; Figure 4 FIG. 5 is a flowchart of the second preferred embodiment of the present invention; and FIG. 5 is a schematic diagram of the content of the SIP registration packet information sent in step 45 of FIG. 4. 6. Symbol description of components H: \ HU \ LGC \ HANLIN TECHNOLOGY \ HANLIN TECHNOLOGY TAIWAN 86104.DOC -10- 1239171 11 Internet 121 NAT router 122 SIP registration server 123 DHCP server 124 Private network Route 131 NAT router 132 SIP registration server 133 DHCP server 134 Private network 14 Communication user 21 Internet 22 DDNS server 23 WAN query server 24 SIP registration server 251 NAT router 252 SIP registration server 253 DHCP server 254 Private network 26 ^ 27 Communication user 501 IP header 502 UDP 503 SIP data H: \ HU \ LGC \ Jinlin Technology Manlin Technology Taiwan 専 利 \ 86104.DOC-11-