WO2014187123A1 - 一种基于网络编码的自适应dns区文件传输方法和*** - Google Patents

一种基于网络编码的自适应dns区文件传输方法和*** Download PDF

Info

Publication number
WO2014187123A1
WO2014187123A1 PCT/CN2013/089845 CN2013089845W WO2014187123A1 WO 2014187123 A1 WO2014187123 A1 WO 2014187123A1 CN 2013089845 W CN2013089845 W CN 2013089845W WO 2014187123 A1 WO2014187123 A1 WO 2014187123A1
Authority
WO
WIPO (PCT)
Prior art keywords
dns
file
zone file
coding
module
Prior art date
Application number
PCT/CN2013/089845
Other languages
English (en)
French (fr)
Inventor
邓光青
王胜开
孔宁
沈烁
Original Assignee
中国科学院计算机网络信息中心
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中国科学院计算机网络信息中心 filed Critical 中国科学院计算机网络信息中心
Publication of WO2014187123A1 publication Critical patent/WO2014187123A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • the present invention relates to a DNS zone file transmission method, and more particularly to an adaptive DNS zone file transmission method and system based on network coding, which belongs to the field of DNS system transmission. Background technique
  • the DNS system is one of the most important Internet infrastructures. It consists of authoritative servers, recursive servers, and clients.
  • the authoritative server is responsible for storage area files for recursive server and client queries. It is the source of DNS information.
  • the recursive server is responsible for receiving the request sent by the client (parser), and then issuing a query request to the authoritative server at each level to obtain the query result required by the user, and finally returning to the parser of the client.
  • the client can request the resource record directly from the authoritative server, but generally queries the various resource records through the recursive server to improve the response speed.
  • a zone typically deploys multiple authoritative servers, which involves zone file synchronization and update issues between multiple authoritative servers.
  • the master server and the rest are the slave servers.
  • the master authority server generates the zone file according to the information submitted by the user when registering the domain name, and periodically sends the newly generated zone file to the slave authority server. .
  • the slave server in order to ensure the reliability of the zone file transmission, the slave server first establishes a TCP connection with the master server, and then downloads the latest zone file from the master server. For top-level domains such as “.cn” and “.China", the number of queries from abroad has exceeded the number of domestic queries. In order to improve the query experience of foreign users (ie, reduce the query delay), it is generally abroad. Deploy the secondary server to bring the secondary server closer to the user (including the resolution server and client), thereby reducing user query latency. This involves the issue of zone file synchronization between the primary server and the foreign secondary server.
  • the existing zone file synchronization mechanism has the following major drawbacks:
  • the present invention proposes to encode a DNS zone file based on the basic principle of network coding, and adaptively adjust the coding coefficient according to the degree of network congestion between the DNS primary server and the secondary server, so as to improve the DNS zone file transmission as much as possible. Success rate, reduced zone file transfer delay.
  • the invention needs to add four modules to the existing DNS main server: link status monitoring module, area file segmentation module, coding coefficient generation module, area file re-encoding module; adding a module to the DNS slave server: Code module.
  • the core idea of the present invention is to: utilize the characteristics of network coding, increase the success rate of zone file transmission by adding redundant information, and avoid repeated retransmission due to poor link conditions during zone file transmission.
  • the main steps of the invention include:
  • the original DNS zone file is divided into a plurality of file sub-blocks on the DNS master server, and the link status of the master-slave server is detected in real time to obtain detection index data;
  • the encoded data blocks are added with the coding coefficients and transmitted to the DNS slave server; after receiving the different data blocks from the server, the received sub-blocks are decoded to obtain the original DNS zone file.
  • the detected indicator data includes, but is not limited to, a packet loss rate and a round trip delay.
  • the constructed method of the M coding coefficient matrix includes, but is not limited to, the following methods:
  • the rank is N, where the size of P is determined by the packet loss rate and round-trip delay data provided by the link condition monitoring module.
  • the link condition is better than a set threshold, the value of ⁇ is small or the value of P can be N. If the link condition is worse than a set threshold, the P value is larger or the P value can be M. .
  • the PxN encoding method is:
  • the section file splitting module generates N file sub-blocks, and the vector consisting of the N file sub-blocks is: - h]- 2) Start encoding, the encoding process is as follows:
  • the block of the original data that is, the file sub-block; C1 , C2 , ..., C P is the calculated data;
  • the encoded data block becomes a P block, where N ⁇ P ⁇ M, and the encoded data block
  • the matrix of the coding coefficients of the N file sub-blocks is:
  • the original data block ib 2 ... can be obtained by the following method:
  • the invention also provides an adaptive DNS zone file transmission system based on network coding, which comprises a DNS primary server, and a plurality of DNS slave servers, wherein the link primary monitoring server and the zone file are loaded on the DNS primary server. a segmentation module, a coding coefficient generation module, and a zone file re-encoding module, wherein the zone file decoding module is added to the DNS slave server;
  • Link condition monitoring module Real-time detection of the link status between the master and slave servers.
  • the detected indicators include but are not limited to the packet loss rate (see S. Kal idindi, M. Zekauskas, etc. A One-way Packet) Loss Metric for IPPM. IETF RFC 2680.) Round trip delay (see S. Kal idindi, M. Zekauskas, etc. A Round-trip Delay Metric for IPPM. IETF RFC 2681.).
  • Coding coefficient generation module According to the data provided by the link condition monitoring module, an appropriate coding coefficient is selected, and the function of the coding coefficient is to calculate new data with the data to be transmitted.
  • the coding coefficients involved in the present invention are actually a matrix over a finite field. The characteristics of this matrix are: The rows of the matrix are linearly independent.
  • Area file segmentation module The original DNS zone file is divided into several file sub-blocks, and the size of each file sub-block can be 1 megabyte to reduce the granularity of file transmission and improve the success rate of transmission.
  • the specific segmentation method is as follows:
  • the zone file segmentation module divides the original DNS zone file into N file sub-blocks, and the coding coefficient generation module first generates a coding coefficient matrix of ⁇ > ⁇ ⁇ , where M > N.
  • the characteristics of the coding coefficient matrix are:
  • the matrix is based on a finite field (ie, Galois field), (see, for example, Chen Zhijiang, Dong Wen, Jia Zhongyun. Software implementation of Galois domain operations. Journal of Hangzhou Normal University (Natural Science) Edition) .
  • ⁇ , ⁇ 1 power of the number of rows and columns of the matrix denoted ⁇ ;
  • ⁇ ⁇ - 1 fl N represents the number 3 ⁇ 4-average power from a finite field, ai ⁇ aj, if i ⁇ j.
  • the operations described below are operations on a finite field to reduce the amount of computation. According to Van der Monster's inequality (see Huang Zhaoxia. The promotion of Vandermonde's determinant.
  • Coding coefficient generation module according to the packet loss rate and round-trip delay data provided by the link condition monitoring module, randomly extracting rows from the MxN coding coefficient matrix, and the number of randomly extracted rows is related to the link status, and constitutes a A new matrix of PxN, where N ⁇ corpus ⁇ M. Corpse xN
  • the rank of the matrix is N, where the size of P is determined by the packet loss rate and round-trip delay data provided by the link condition monitoring module. If the link status is good, the value of 5 is small, and vice versa. If the link status is good, the value of ⁇ can be N. Conversely, if the link status is very poor, the value of 5 can be.
  • the zone file segmentation module generates N file sub-blocks, and the vector consisting of the N file sub-blocks is:
  • the block of the original data that is, the file sub-block, ; , ⁇ is the data block after the operation of the data c , and the block becomes a block, where N ⁇ P ⁇ M.
  • the coefficient, a i2 , ... , « ⁇ is the encoding coefficient of the encoded data block c.
  • each data block needs to be appended with its encoding coefficient and transmitted to the DNS slave server.
  • the data block c needs to be sent to the DNS slave server by attaching its encoding coefficient to the header, tail or other specified location of its data.
  • Area file re-encoding module The above-mentioned encoded 5 data blocks are sequentially or simultaneously sent to the DNS slave server, and the DNS file decoding module of the DNS slave server is responsible for receiving the data sent by the DNS main server area file re-encoding module. Piece.
  • the DNS file decoding module of the DNS slave server does not need to receive all the P data blocks sent by the DNS master server, and then decodes, as long as the DNS receives W different data blocks from the server file decoding module of the server, it can be started. Decode, and restore the original information 3 ⁇ 4 K ... ].
  • the DNS file decoding module of the server can still recover the original information without repeated retransmission, thereby reducing the transmission delay. Improve the transmission success rate of the DNS zone file.
  • the decoding process of the zone file decoding module of the DNS slave server is as follows:
  • the N file sub-blocks received by the zone file decoding module are:
  • the region file decoding module first finds the inverse matrix of the matrix (7):
  • the zone file decoding module combines the obtained file sub-blocks b 2 ... b w ] to obtain the original DNS zone file.
  • FIG. 1 is a schematic diagram of an adaptive DNS zone file transmission system based on network coding according to the present invention. detailed description
  • FIG. 1 is a schematic diagram of an adaptive DNS zone file transmission system based on network coding according to the present invention.
  • the selected finite field is GF(2), that is, there are only eight numbers from 0 to 7 in the finite field; in addition, the following operations are all operations on the finite field.
  • the region file re-encoding module sends the encoded codewords [0, 3, 2; 4, 3, 2; 0, 1, 6; 4, 1, 6, 3, 4, 7] and corresponding coding coefficients. Go to DNS from the server. Due to the poor link status between the DNS master-slave server, a large number of packet loss results, the zone file re-encoding module sent to the DNS slave group 5 groups of codewords lost 2 groups, the packet loss rate is as high as 67%. Eventually, DNS received three of the five sets of codewords from the server, assuming:
  • the DNS slave server can still recover the original information from the above three groups of codewords, since each group of codewords will send its corresponding coding coefficient to the DNS slave server, ie the codeword [0, 3, 2] will The corresponding coding coefficients [1, 0, 0] and codewords [0, 1, 6] will correspond to their corresponding coding coefficients [1, 2, 4] and codewords [3, 4, 7]. Coding coefficients [1, 5, 7] are sent to the DNS slave service Device. In this way, the DNS slave receives the corresponding coded coefficient matrix while receiving the encoded codeword, as follows:
  • the DNS slave server restores the original information according to the following methods:
  • the DNS then multiplies equation (17) by the received codeword matrix (15) from the server to recover the original information.
  • the result of multiplying equations (17) and (15) is D, Bay I:
  • D is identical to the original information, equation (11).
  • the DNS slave server can still recover the original information under the condition that the packet loss rate is as high as 67%. This avoids repeated retransmissions and improves the zone file transmission delay.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Detection And Prevention Of Errors In Transmission (AREA)

Abstract

本发明涉及一种基于网络编码的自适应DNS区文件传输方法和***,在现有DNS主服务器上增加四个模块:链路状况监测模块、区文件切分模块、编码系数生成模块、区文件重编码模块;在DNS从服务器上增加一个模块:区文件译码模块,传输方法:1)在DNS主服务器上将原DNS区文件切分成多个文件子数据块,对主从服务器之间的链路状况进行实时检测得到检测指标数据;2)在有限域上对文件子块进行编码,选择编码系数构造生成 M×N编码系数矩阵;3)根据检测指标数据对编码系数矩阵随机抽取P行,得到P×N矩阵,N≤P≤M; 4)编码后的P个数据块附加编码系数并传输给DNS从服务器;从服务器接收到N个不同数据块后,根据对区文件进行译码得到完整传递的区文件。

Description

一种基于网络编码的自适应 DNS区文件传输方法和***
技术领域
本发明涉及一种 DNS区文件传输方法, 特别涉及一种基于网络编码的自适应 DNS区文 件传输方法和***, 属于 DNS***传输领域。 背景技术
DNS***是最重要的互联网基础设施之一, 它由权威服务器、 递归服务器以及客户端组 成, 权威服务器负责存储区文件, 供递归服务器和客户端查询, 是 DNS信息的源头。 递归服 务器负责接收客户端 (解析器) 发送的请求, 然后通过向各级权威服务器发出查询请求, 以 获得用户需要的查询结果, 最后返回给客户端的解析器。 客户端可以直接向权威服务器请求 资源记录, 但一般通过递归服务器来查询各类资源记录, 以提高响应速度。 为提高服务的可 扩展性与可靠性, 一个区一般会部署多个权威服务器, 这就涉及到多个权威服务器之间的区 文件同步和更新问题。 在众多的权威服务器中, 有一个为主服务器, 其余为从服务器, 主权 威服务器根据用户在注册域名时提交的信息来生成区文件, 并周期性地将新生成的区文件发 送给从权威服务器。
在现有技术中, 为保证区文件传输的可靠性, 从服务器首先与主服务器建立 TCP连接, 然后从主服务器处下载最新的区文件。 对于像 " .cn"、 " .中国"这样的顶级域来说, 来自国外 的查询次数已超过国内的查询次数, 为提高国外用户的查询体验(即减小查询时延), 一般会 在国外部署从服务器, 以使从服务器更加靠近用户 (包括解析服务器和客户端), 从而减小用 户查询时延。 这就涉及到主服务器与国外从服务器之间的区文件同步问题。
然而, 国际链路的状况一般较差, 主要体现在链路的时延长、 丢包率高、 网络扰动大等。 这使得主服务器与国外从服务器之间的 TCP连接不太稳定, 区文件许多时候存在反复重传的 现象。
具体来说, 现有的区文件同步机制存在以下主要缺点:
( 1 ) 由于主服务器与国外从服务器之间的链路状况很差, 因此导致 TCP传输的重传率 很高, 即发送端 (主服务器) 需反复向接收端 (从服务器) 发送同一个数据片段, 导致链路 利用率很低;
(2)一旦某次 TCP传输失败, 则在进行下一次 TCP传输时, 接收端在上次 TCP传输中 已收到的数据将被丢弃, 发送端需重新发送区文件;
(3) 由于链路状况以及 TCP传输机制的特点, 导致区文件传输的时间很长, 影响了从 服务器区文件的及时传输, 给 DNS***的安全运行带来隐患 < 发明内容
本发目的在于:
( 1 ) 减小 DNS区文件传输的粒度, 防止 TCP传输失败时大段数据被丢弃;
( 2 )基于网络编码的基本原理, 设计高容错性的 DNS区文件传输机制, 避免因链路状况 差而导致的区文件重传;
( 3 ) 提高 DNS区文件一次传输成功率, 减少区文件传输时延。
基于上述目的,本发明提出基于网络编码的基本原理对 DNS区文件进行编码,并根据 DNS 主服务器与从服务器之间的网络拥塞程度, 自适应地调整编码系数, 以便尽可能提高 DNS区 文件传输成功率, 减小区文件传输时延。
本发明需在现有 DNS主服务器上增加四个模块: 链路状况监测模块、 区文件切分模块、 编码系数生成模块、 区文件重编码模块; 在 DNS从服务器上增加一个模块: 区文件译码模块。
本发明的核心思想是: 利用网络编码的特性, 通过增加冗余信息来提高区文件传输的一 次成功率, 避免在区文件传输过程中因链路状况不好而导致反复重传。
本发明的主要步骤包括:
1 )在 DNS主服务器上将原始 DNS区文件切分成多个文件子数据块, 对主从服务器之间的 链路状况进行实时检测得到检测指标数据;
2 )在有限域中对所述文件子数据块进行编码, 选择编码系数构造生成 M x N编码系数矩 阵;
3 ) 根据所述检测指标数据对所述编码系数矩阵随机抽取 P行, 得到 Px N矩阵, N≤P≤M;
4 )编码后的 ^个数据块附加编码系数并传输给 DNS从服务器; 所述从服务器接收到 个 不同数据块后, 对所接收到的子数据块进行译码得到原始 DNS区文件。
更进一步, 所述检测的指标数据包括但不限于丢包率、 往返时延。
更进一步, 构造的 M 编码系数矩阵的构造方法包括但不限于如下方法:
Figure imgf000004_0001
有限域中任何能满足行向量线性无关的^ >< ^矩阵皆可视为编码系数矩阵。 更进一步, PxN矩阵构造方法如下: "21
其中,式中秩为 N,其中 P的大小由链路状况监测模块提供的丢包率与往返时延数据等决定。
更进一步, 若链路状况好于一设定阀值, 则 ^值较小或 P值可为 N, 若链路状况差于一 设定阀值, 则 P值较大或 P值可为 M。
更进一步, 对所述 PxN编码方法为:
1) 设区文件切分模块生成了 N个文件子块, 记该 N个文件子块组成的向量为: - h]- 2) 启动编码, 编码过程如下 :
Figure imgf000005_0001
其中, 为原始数据的分块, 即文件子块,; C1,C2,...,CP为运算后的数据;
3 ) 编码后 的数据块变为 P 块, 其 中 N≤P≤M , 且编码后数据块
C; & 2 +〜 + (¾v * w , 编码系数为"! Ί, <½,…, <¾v ° 更进一步, 所述编码后数据块 ς.需将其编码系数 , ¾v附在其数据的头部、 尾部 或其它指定位置发送给 DNS从服务器。
更进一步, 设区文件译码模块接收到的 N个文件子块为: c ... c ], 则这 N个 文件子块的编码系数构成的矩阵为:
Figure imgf000005_0002
— —
所述 N个文件子块的编码系数构成的矩阵的逆矩阵: "
Figure imgf000006_0001
原始数据块 i b2 ... 可由下述方法获得:
Figure imgf000006_0003
Figure imgf000006_0002
将得到的文件子块 b2 ... 进行合并后, 得到原始 DNS区文件。 本发明还提出一种基于网络编码的自适应 DNS区文件传输***,其特征在于,包括一 DNS 主服务器, 和多个 DNS从服务器, 所述 DNS主服务器上加载链路状况监测模块、 区文件切分 模块、 编码系数生成模块以及区文件重编码模块, 所述在 DNS从服务器上增加区文件译码模 块;
( 1 ) 链路状况监测模块: 实时检测主从服务器之间的链路状况, 检测的指标包括但不限 于丢包率 (可参见 S. Kal idindi, M. Zekauskas, etc. A One-way Packet Loss Metric for IPPM. IETF RFC 2680. ) 往返时延 (可参见 S. Kal idindi, M. Zekauskas, etc. A Round-trip Delay Metric for IPPM. IETF RFC 2681. ) 等。
( 2 )编码系数生成模块: 根据链路状况监测模块提供的数据, 选择合适的编码系数, 编 码系数的作用是与待传输的数据进行运算得到新数据。 本发明所涉及的编码系数其实是一个 有限域上的矩阵, 这个矩阵的特点是: 矩阵的各行是线性无关的。
( 3 ) 区文件切分模块: 将原始 DNS区文件切分成若干个文件子块, 每个文件子块的大小 可为 1兆字节, 以减小文件传输的粒度, 提高传输的成功率。
具体的切分方法如下: 设区文件切分模块将原始 DNS区文件切分成 N个文件子块, 则编 码系数生成模块首先产生一个^ >< ^的编码系数矩阵, 其中 M > N。 该编码系数矩阵的特征 是: 矩阵是基于有限域(即伽罗华域) 的, (具体可参见陈志江, 董 文, 贾中云. 伽罗瓦域 运算的软件实现. 杭州师范大学学报 (自然科学版) . 2011, 10 (5) : 466-469。) 也就是说, 矩 阵的所有系数都取自伽罗华域, 建议选 GF(2 ); 矩阵的秩为 N ; 从该矩阵中任取 N行构成 的新的 NxN矩阵的秩亦为 N, 也就是说, 从 MxN的编码系数矩阵任取的 N行都是线性无 关的。 具备该特性的 以下这种构造方法:
Figure imgf000007_0001
上式中, Μ、 Ν为矩阵的行数和列数, ^表示 的1次幂; ί^-1表示 fl N次幂数 ¾均 来自有限域, aiaj,if i≠ j。 如无特殊说明, 下面所涉各运算均为有限域上的运算, 以减 少计算量。根据范德蒙不等式(具体可参见 黄朝霞. 范德蒙德行列式的推广. 集美大学学报 (自然科学版), 2008, 13(1) :88-91) 的性质, 可以轻易证明: 从上述 M x N矩阵中任取 N行 构成的新的 NxN矩阵的秩亦为 N, 即从上述 MxN矩阵中任取的 N行向量是线性无关的。
(4)编码系数生成模块:根据链路状况监测模块提供的丢包率与往返时延数据,从 MxN 的编码系数矩阵中随机抽取 行,随机抽取的的行数与链路状况相关,构成一个新的 PxN的 矩阵, 其中 N≤尸≤M。 尸 xN
Figure imgf000007_0002
flu表示行数为 1, 列数为 1的子块, α1Λί表示行数为 1, 列数为 Ν的子块。 根据上述讨论, 矩阵的秩为 N, 其中 P的大小由链路状况监测模块提供的丢包率与往返 时延数据决定。如果链路状况较好, 则 5的值较小, 反之则较大; 如果链路状况很好, 则 ^的 值可为 N, 反之, 如果链路状况非常差, 则 5的值可为 。
设区文件切分模块生成了 N个文件子块, 记这 N个文件子块组成的向量为:
[ … (3) 接下来, 区文件重编码
Figure imgf000007_0003
为原始数据的分块, 即文件子块,; , ^为运算后的数据 c 编码后的数据块变为 块, 其中 N≤P≤M。 且 称系数 , ai2, ... , «^为编码后数据块 c,的编码系数。 编码后每个数据块需附加其编码系 数, 并传输给 DNS从服务器。 例如, 数据块 c,需将其编码系数 . , 附在其数据的头 部、 尾部或其它指定位置发送给 DNS从服务器。
(5)区文件重编码模块: 将上述编码后的 5个数据块依次或同时发送给 DNS从服务器, DNS从服务器的区文件译码模块负责接收来自 DNS主服务器区文件重编码模块发送的数据 块。 DNS从服务器的区文件译码模块无需将 DNS主服务器发送的全部 P个数据块都接收后 再译码,只要 DNS从服务器的区文件译码模块接收到了 W个不同的数据块,就可以启动译码, 并恢复出原始信息 ¾ K … ]。 也就是说, 即使在传输过程中丢失了多达 0 - Λ 个的数据块, DNS从服务器的区文件译 码模块依旧能恢复出原始信息, 而无需反复重传, 从而可以减少传输时延, 提高 DNS区文件 的传输成功率。
DNS从服务器的区文件译码模块的译码流程如下所述: 设区文件译码模块接收到的 N个文件子块为:
' ] (6) 设这 N个文件子块的编码系数构成的矩阵为:
a a a
a a a
C (7) a
Figure imgf000008_0001
为了解码, 区文件译码模块首先求矩阵 (7)的逆矩阵:
C (9)
Figure imgf000008_0002
那么, 原始数据块 b2 ... bw ]可由下述方法获得:
Figure imgf000009_0002
Figure imgf000009_0001
区文件译码模块将得到的文件子块 b2 ... bw ]进行合并后, 即可得到原始 DNS区文 件。
本发明的有益效果
( 1 ) 以较小的粒度传输 DNS区文件, 有效避免了 TCP连接中断后造成的大量数据被丢 弃的现象;
(2)避免了主从 DNS服务器之间链路状况较差时(尤其是国际链路)造成的反复重传;
(3) 缩短了主从 DNS服务器之间区文件传输的时延。 附图说明
图 1是本发明一种基于网络编码的自适应 DNS区文件传输***示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 可以理解的是, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基 于本发明中的实施例, 本领域技术人员在没有做出创造性劳动前提下所获得的所有其他实施 例, 都属于本发明保护的范围。
现举例说明如下:
如图 1所示是本发明一种基于网络编码的自适应 DNS区文件传输***示意图。
假设选定的有限域为 GF(2 ), 即该有限域中只有 0~7这八个数; 此外, 下述运算皆为有 限域上的运算。 假设原始 DNS区文件包含的数据为: β = [0,3, 2,1, 6,7,5,3,7], 共 9个数。 DNS 区文件被切分成 3块 (即 Ν=3), 这样就构成了一个矩阵 Β, 如下所示: 0 3 2
1 6 7 (Π)
5 6 7
下面构造一个有限域 GF(2A3)上的 6x3矩阵 (即 M=6, N=3), 如下所示:
Figure imgf000010_0001
假设主从 DNS服务器之间的网络状况较差, 则从上述矩阵中随机挑出 5行(即 P=5), 得到 个 5x3的矩阵 P, 如下所示:
1 0 0
1 1 1
1 2 4 (13)
1 3 5
1 5 7
区文件重编码模块将编码系数矩阵 (13)与原始数据 (11)相乘, 得到编码后的码字 C, 即 C = P*B , 如下所示:
Figure imgf000010_0002
然后, 区文件重编码模块将编码得到的码字 [0,3,2; 4,3,2; 0,1,6; 4,1,6; 3,4,7]与对应的编码 系数发往 DNS从服务器。 由于 DNS主从服务器之间的链路状况很差, 导致大量的丢包, 区文 件重编码模块发往 DNS从服务器的 5组码字丢失了 2组, 丢包率高达 67%。 最终, DNS从服务 器收到了 5组码字中的 3组, 假设为:
0 3 2
0 1 6 (15)
3 4 7
此时, DNS从服务器依然可从上述 3组码字中恢复出原始信息, 由于每组码字会将其对 应的编码系数发送给 DNS从服务器, 即码字 [0,3,2]会将其对应的编码系数 [1,0,0]、码字 [0,1,6] 会将其对应的编码系数 [1,2,4]、 码字 [3,4,7]会将其对应的编码系数 [1,5,7]发送给 DNS 从服务 器。 这样, DNS从服务器在收到编码码字的同时会收到对应的编码系数矩阵, 如下所示:
1 0 0
1 2 4 (16)
1 5 7
此时, DNS从服务器根据下述方法来恢复原始信息:
首先求式 (16)的逆矩阵, 所得逆矩阵如下所示:
1 0 0
7 1 6 (17)
1 2 3
而后 DNS从服务器将式 (17)与接收到的码字矩阵 (15)相乘,即可恢复出原始信息。设式 (17) 与 (15)相乘的结果为 D, 贝 I :
Figure imgf000011_0001
由式(18 )可以看出, D与原始信息, 即式 (11)是完全一样的。 也就是说, DNS从服务器 在丢包率高达 67%的条件下, 依然能恢复出原始信息。 这样就避免了反复重传, 提高了区文 件传输时延。

Claims

权利要求书
1.一种基于网络编码的自适应 DNS区文件传输方法, 其步骤包括:
1 )在 DNS主服务器上将原始 DNS区文件切分成多个文件子数据块, 对主从服务器之间的链路 状况进行实时检测得到检测指标数据;
2 ) 在有限域中对所述文件子数据块进行编码, 选择编码系数构造生成 M x N编码系数矩阵;
3 )根据所述检测指标数据对所述编码系数矩阵随机抽取 P行, 得到 Px N矩阵, N≤P≤M
4)编码后的 ^个数据块附加编码系数并传输给 DNS从服务器; 所述从服务器接收到 个不同 数据块后, 对所接收到的子数据块进行译码得到原始 DNS区文件。
2.如权利要求 1所述的基于网络编码的自适应 DNS区文件传输方法, 其特征在于, 所述检测 的指标数据包括丢包率、 往返时延。
3.如权利要求 1 所述的基于网络编码的自适应 DNS 区文件传输方法, 其特征在于, 构造的 M 编码系数矩阵的构造方法如下:
Figure imgf000012_0001
1 ,, ,. .α 」
上式中 Μ、 Ν为矩阵的行数和列数, 数^^,…, 均来自有限域, ai≠apif i≠ j。
4.如权利要求 1所述的基于网络编码的自适应 DNS区文件传输方法,其特征在于,所述 P x N 矩阵构造方法如下:
Figure imgf000012_0002
其中, 式中秩为 N, 其中 P的大小由链路状况监测模块提供的丢包率与往返时延数据决定。
5.如权利要求 4所述的基于网络编码的自适应 DNS区文件传输方法, 其特征在于, 若链路状 况值小于一设定阀值, 则 5值较小或 5值可为 N, 若链路状况值大于一设定阀值, 则 5值较 大或 值可为 M。
6. 如权利要求 1所述的基于网络编码的自适应 DNS区文件传输方法, 其特征在于, 对所述区 文件的编码方法为: 1) 设区文件切分模块生成了 N个文件子块,
[
2) 启动编码, 编码过程如下
Figure imgf000013_0001
其中, 为原始数据的分块, 即文件子块; Cl,c2,...,Cp为运算后的数据;
3 ) 编 码 后 的 数据 块 变 为 P 块 , 其 中 N≤P≤M , 且编 码 后 数 据 块 c; = αΆ *^+ ai2 *b2+... + aiN *bN , 编码系数为" , <¾,…, °
7. 如权利要求 6所述的基于网络编码的自适应 DNS区文件传输方法, 其特征在于, 所述编码 后数据块 需将其编码系数 ai2, ... , aiN附在其数据的头部、尾部或其它指定位置发送给 DNS 从服务器。
8.如权利要求 1所述的基于网络编码的自适应 DNS区文件传输方法, 其特征在于, 设区文件 译码模块接收到的 W个文件子块为: c ... c'N], 则这 N个文件子块的编码系数构成 的矩阵为:
Figure imgf000013_0002
所述 N个文件子块的编码系数 :
Figure imgf000013_0003
原始数据块 b2 ... 可由下述方法获得:
Figure imgf000014_0001
将得到的文件子块 b2 ... 进行合并后, 得到原始 DNS区文件。
9.如权利要求 1所述的基于网络编码的自适应 DNS区文件传输方法, 其特征在于, 所述有限 域包括 GF (2 -8)。
10.—种基于网络编码的自适应 DNS区文件传输***, 其特征在于, 包括一个 DNS主服务器, 和多个 DNS从服务器, 所述 DNS主服务器上加载链路状况监测模块、 区文件切分模块、 编码 系数生成模块以及区文件重编码模块, 所述在 DNS从服务器上增加区文件译码模块;
所述载链路状况监测模块, 实时检测主从服务器之间的链路状况数据, 检测的指标包括 丢包率、 往返时延; 检测得到的链路状况数据进入区文件切分模块和编码系数生成模块; 所述区文件切分模块, 将原始 DNS区文件切分成若干个文件子块;
所述编码系数生成模块, 将编码后每个数据块附加其编码系数, 并传输给 DNS从服务器; 所述区文件重编码模块, 将编码后的数据块依次或同时发送给 DNS从服务器, DNS从服 务器的区文件译码模块负责接收来自 DNS主服务器区文件重编码模块发送的数据块;
所述译码模块, 接收从 DNS主服务器的区文件重编码模块传输的编码数据, 并对所述编 码数据进行译码。
PCT/CN2013/089845 2013-05-23 2013-12-18 一种基于网络编码的自适应dns区文件传输方法和*** WO2014187123A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2013101956380A CN103259865A (zh) 2013-05-23 2013-05-23 一种基于网络编码的自适应dns区文件传输方法和***
CN201310195638.0 2013-05-23

Publications (1)

Publication Number Publication Date
WO2014187123A1 true WO2014187123A1 (zh) 2014-11-27

Family

ID=48963554

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/089845 WO2014187123A1 (zh) 2013-05-23 2013-12-18 一种基于网络编码的自适应dns区文件传输方法和***

Country Status (2)

Country Link
CN (1) CN103259865A (zh)
WO (1) WO2014187123A1 (zh)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259865A (zh) * 2013-05-23 2013-08-21 中国科学院计算机网络信息中心 一种基于网络编码的自适应dns区文件传输方法和***
CN103491202B (zh) * 2013-09-09 2017-01-04 中国科学院计算机网络信息中心 一种基于网络测量的dns节点选址方法
CN106850152A (zh) * 2017-01-21 2017-06-13 陕西尚品信息科技有限公司 一种基于网络编码的传输层控制方法
CN108156247B (zh) * 2017-12-27 2021-05-28 北京金山安全软件有限公司 一种数据通信方法、装置、***、终端和可读存储介质
CN110049133B (zh) * 2019-04-22 2021-10-22 中国互联网络信息中心 一种dns区文件全量下发的方法和装置
CN111698060B (zh) * 2020-06-24 2023-10-20 京信网络***股份有限公司 编码方法、装置、设备及存储介质
CN114079529A (zh) * 2020-08-14 2022-02-22 华为技术有限公司 一种网络编码方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764675A (zh) * 2009-12-23 2010-06-30 北京邮电大学 分布式网络中的编码资源自适应调度算法
CN101841409A (zh) * 2010-01-26 2010-09-22 中国科学院计算机网络信息中心 实现dns区创建同步的方法、服务器以及域名***
CN101951556A (zh) * 2010-09-28 2011-01-19 湖南大学 基于网络编码的无线传感器网络数据分发方法
CN103259865A (zh) * 2013-05-23 2013-08-21 中国科学院计算机网络信息中心 一种基于网络编码的自适应dns区文件传输方法和***

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101841479B (zh) * 2010-04-28 2012-12-05 四川大学 一种基于网络编码的高误码率长时延网络自适应传输方法
CN101938334B (zh) * 2010-09-21 2012-11-07 上海大学 随机网络编码和自动重传请求联合的自适应差错控制方法
CN102291226B (zh) * 2011-09-02 2013-07-03 北京大学深圳研究生院 基于tcp协议的自适应网络传输控制方法和***

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764675A (zh) * 2009-12-23 2010-06-30 北京邮电大学 分布式网络中的编码资源自适应调度算法
CN101841409A (zh) * 2010-01-26 2010-09-22 中国科学院计算机网络信息中心 实现dns区创建同步的方法、服务器以及域名***
CN101951556A (zh) * 2010-09-28 2011-01-19 湖南大学 基于网络编码的无线传感器网络数据分发方法
CN103259865A (zh) * 2013-05-23 2013-08-21 中国科学院计算机网络信息中心 一种基于网络编码的自适应dns区文件传输方法和***

Also Published As

Publication number Publication date
CN103259865A (zh) 2013-08-21

Similar Documents

Publication Publication Date Title
WO2014187123A1 (zh) 一种基于网络编码的自适应dns区文件传输方法和***
JP5788988B2 (ja) 不均一誤り保護および一括ファイル配信サービスを提供するための汎用ファイル配信の方法
KR101451338B1 (ko) 인코딩 및 디코딩 프로세스들을 위해 심볼들의 영속적 비활성화에 의한 fec 코드들을 활용하는 방법 및 장치
CN110943800B (zh) 数据包的发送方法、装置及***、存储介质、电子装置
TWI353134B (en) A method to support forwoard error correction for
JP5675876B2 (ja) 連鎖的暗号化反応の系統的記号化および復号化
JP5823598B2 (ja) 通信システムにおけるオブジェクトのブロックアグリゲーション
KR20150049052A (ko) 데이터 전송 장치 및 방법
CN106464432B (zh) 低延迟包纠删编码
RU2461970C2 (ru) Способ и устройство для приема данных
CN107733562B (zh) 极化码的编解码方法及装置
US20140215292A1 (en) Lt staircase fec code
JP5587735B2 (ja) データ伝送方法およびネットワークノード
JP5474558B2 (ja) 通信ネットワークにおいてデータを符号化するための方法および装置
WO2016122748A1 (en) Method and system for on-demand file repair
JP2016523066A (ja) 符号化および復号の方法および装置
JP4722693B2 (ja) 通信システム
CN110213259A (zh) 电力测控报文的udp传输方法、发送终端及接收终端
WO2014005279A1 (zh) 一种可精确再生的分布式存储码的构建方法及装置
CN109618164A (zh) 一种视频编解码处理方法
JP5595260B2 (ja) 受信機
JP5247358B2 (ja) 情報処理装置及びその方法、プログラム、記録媒体
Jing et al. A packet loss protection scheme joint deterministic network coding and random linear network coding for H. 264/AVC
JP2009152864A (ja) 送信装置および受信装置およびデータ伝送方法
Wang et al. Analysis and comparison of FEC and FEC-ARQ protection schemes based on RS and Raptor code

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13885193

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17/03/2016)

122 Ep: pct application non-entry in european phase

Ref document number: 13885193

Country of ref document: EP

Kind code of ref document: A1