全中文的網際網路用環境

Download Report

Transcript 全中文的網際網路用環境

全中文的網際網路使用環境
中文域名系統及相關發展
Outline
•
•
•
•
•
•
•
•
•
網域名稱系統
中文域名的需求
中文域名發展概況
IDN-WG 的成果
Mdnkit – mdnsproxy
Mapper 的架構
Octopus
仍存在的問題
未來可能的發展
網域名稱系統
(1/2)
• 什麼是域名系統
– 供網路應用程式做主機名稱與 IP 位址的對應
– 可以說是一套樹狀架構的分散式資料庫
使用者輸入
主機名稱
用IP連線
遠端主機
應用程式
取得IP
查詢主機名稱
resolver
DNS
Server
網域名稱系統
(2/2)
.
arpa
com
in-addr
edu
net
berkeley
root
org ...
com
tw
edu
cn
gov
berkeley.edu
140
sinica
109
iis
109.140.in-addr.arpa
iis.sinica.edu.tw
jp ...
TLD
org ...
SLD
中文域名的需求
• 親和性、方便性與易記性
• 政治問題、國家尊顏、民族意識?
• 與入口網站、搜尋引擎的差異
– 集中式與分散式架構
– 與 AP 間的關係
– Authority 的問題
• 註冊商標與網址
中文域名發展概況
(1/2)
• 原有的系統部分
– bind8 提供部分 8-bit enable 形態的支援
– MS-windows 的 resolver 亦為 8-bit enable resolver
– bind8 及 windows 均支援 UTF-8 的型態
• 修改 DNS server & resolver
– 中研院
• 修改 bind 成為可正確處理 big5 (native code)
• 修改系統 resolver 使能接受任意字元
– i-DNS 提出 client side solution – a simple ACE – UTF5
– CNNIC 亦提出 client side solution 來修正 windows 的問題
中文域名發展概況
(2/2)
• 相關 AP 的修改
– apache httpd, squid: 去除對 hostname 字元範圍檢查
– sendmail: 使能正確處理中文,設定檔亦需修改
– 攔截 www browser 及 mail client 的訊息處理
• 漢語拼音式的域名
• 多種 charset 存在及 roaming 問題處理
– Off-line convert
– On-line convert
– BIG-5、GB、UTF-8
IDN-WG 的成果
• 1999.11 起成立 IDN-WG
• Draft:
– draft-ietf-idn-idna-07
• client solution、ACE
– draft-hoffman-stringprep-01
• international strings
– draft-ietf-idn-nameprep-08
• a stringprep profile for idn
– draft-ietf-idn-punycode-01
• An ACE
• IETF 對 IDN 的結果不滿意
User input、AP
(Unicode)
IDNA
NAMEPREP
ACE
To resolver
(Punycode)
mDNkit – mdnsproxy
• 由 JPNIC 於 2000.07 發表
– 目前最新 v2.3.1
• mdnsproxy feature
–
–
–
–
提供 client to server 查詢中介
假定 client 用某種 native code
prefer DNS server 不做更動
prefer 以 ACE 送出查詢
• mDNkit 其它元件
– mdnconv, runmdn
– libmdn
– mDN-wrapper
client
unix client / windows client
runmdn, libmdn / wrapper
mdnsproxy
libmdn
master file
DNS server
mdnconv
libmdn
master file
mapper 的架構
• 由曾黎明老師提出
– 構想可能是由 mDNkit 啟發?
• 與 mdnsproxy 的不同點
–
–
–
–
–
可提供 server to server 查詢
仍可供 client to server 查詢
Authority – SOA 及 NS 要改寫
真實網域、虛擬網域
分流機制
mapper
中華
com
中華
tnt
abc
台中
台中
台中
台中
E1
E2
E1
E2
xyz
Octopus
• Octopus v0.x
– 實作 mapper 機制
• Octopus v1.x
– Core rewrite, support UDP/TCP both
– Modularize, config file
– 由 config file 定義 real domain / virtual domain / encoding
• Octopus v2.x
– 改善 Scalability 問題
– 增加 guess encoding – 加強版的 mapper
– 可讓 real DN / virtual DN 共存於同一 domain
仍待解決的問題
• 異體字的處理問題
–
–
–
–
Unicode 的爛攤子?
Context free / sensitive
Language independent / dependent
用 regular expression 解決的可行性?
• 如何讓域名系統用來更方便?
– 關鍵字域名搜尋?
– 安全性/保密性 的考量?
未來可能的發展
• CNRP?
• Common Name Resolution Protocol
• IRNSS?
• Internet Resource Name Search Service
–
–
–
–
–
Referral Database
Fuzziness vs. Uniqueness
Protocol requirement
Data Field
Client vs. Server