[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN101465791A - Document transmission method based on unidirection link - Google Patents

Document transmission method based on unidirection link Download PDF

Info

Publication number
CN101465791A
CN101465791A CNA2007101797779A CN200710179777A CN101465791A CN 101465791 A CN101465791 A CN 101465791A CN A2007101797779 A CNA2007101797779 A CN A2007101797779A CN 200710179777 A CN200710179777 A CN 200710179777A CN 101465791 A CN101465791 A CN 101465791A
Authority
CN
China
Prior art keywords
file
sheet
fat
sequence number
verification
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CNA2007101797779A
Other languages
Chinese (zh)
Other versions
CN101465791B (en
Inventor
解伟
陈德林
张定京
赵良福
王颖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Academy of Broadcasting Science Research Institute
Original Assignee
Academy of Broadcasting Science Research Institute
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 Academy of Broadcasting Science Research Institute filed Critical Academy of Broadcasting Science Research Institute
Priority to CN2007101797779A priority Critical patent/CN101465791B/en
Publication of CN101465791A publication Critical patent/CN101465791A/en
Application granted granted Critical
Publication of CN101465791B publication Critical patent/CN101465791B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明公开了一种基于单向链路的文件传输方法,用于在单向传输网络中将同一文件传输给多个用户。该方法采用文件属性表描述数据业务的文件构成、文件属性、传输分割参数等信息,将需要传输的文件分片生成统一长度的数据片,最后一片如果不足,以0x00补充,再按照数据片封装语法打包成数据片包,并对数据块进行校验形成紧跟数据块的校验块,再将校验块分片打包成校验片包,紧随相应的数据片包传输。终端首先接收、解析文件属性表,然后根据文件属性表指示的信息在本地完整恢复出与发端一致的文件和目录结构。本发明简单有效地实现了文件在单向传输网络中的传送与接收,用户可以方便快捷的接收文件数据业务,从而极大的满足用户需求。

Figure 200710179777

The invention discloses a file transmission method based on a one-way link, which is used for transmitting the same file to multiple users in a one-way transmission network. This method uses the file attribute table to describe the file structure, file attributes, transmission segmentation parameters and other information of the data service, and generates data slices of uniform length by slicing the files to be transmitted. If the last piece is insufficient, it is supplemented with 0x00, and then encapsulated according to the data piece The syntax is packaged into a data slice package, and the data block is verified to form a check block next to the data block, and then the check block is segmented and packaged into a check slice package, followed by the corresponding data slice package for transmission. The terminal first receives and parses the file attribute table, and then completely restores locally the file and directory structure consistent with the originator according to the information indicated by the file attribute table. The invention simply and effectively realizes the transmission and reception of files in the one-way transmission network, and users can receive file data services conveniently and quickly, thereby greatly satisfying user needs.

Figure 200710179777

Description

一种基于单向链路的文件传输方法 A File Transfer Method Based on Unidirectional Link

技术领域 technical field

本发明属于通讯和广播技术领域,尤其涉及一种基于单向链路传输的文件分割封装传送方法。The invention belongs to the technical field of communication and broadcasting, and in particular relates to a method for file segmentation, encapsulation and transmission based on unidirectional link transmission.

背景技术 Background technique

伴随着通讯技术和数字技术的迅猛发展,用户对信息资源的获取与共享需求变得越来越迫切,也越来越多样化。各种文件作为信息的重要载体,如何在网络中快速、有效地传输,是摆在我们面前的重要课题。With the rapid development of communication technology and digital technology, users' demands for information resource acquisition and sharing are becoming more and more urgent and diverse. As an important carrier of information, various files, how to transmit them quickly and effectively in the network is an important issue before us.

目前,文件的网络传输有很多方式,如比较常用的有文件传输协议(File Transfer Protocal,缩写为FTP)服务,它工作在开放式通信系统互联模型(Open System Interconnection,简称OSI模型)的第七层,传输控制协议模型(Transmission Control Protocol,简称TCP模型)的第四层上,即应用层。这样,FTP客户在和服务器建立连接前就要经过一个被广为熟知的“三次握手”的过程,为数据的传输提供了可靠的保证。现在,用得比较多的点对点(peer-to-peer,简称P2P)传输,BT(BitTorrent协议)也是一种文件传输方式。At present, there are many ways of network transmission of files, such as the more commonly used File Transfer Protocol (File Transfer Protocol, abbreviated as FTP) service, which works in the seventh layer of the Open System Interconnection model (OSI model for short). Layer, on the fourth layer of the Transmission Control Protocol model (Transmission Control Protocol, referred to as the TCP model), that is, the application layer. In this way, the FTP client will go through a well-known "three-way handshake" process before establishing a connection with the server, which provides a reliable guarantee for data transmission. Now, the more widely used peer-to-peer (P2P) transmission, BT (BitTorrent protocol) is also a file transmission method.

但是,针对单向传输网络,比如广播网络,将同一文件传输给多个用户,目前尚无很好的文件传输解决方法。However, for a one-way transmission network, such as a broadcast network, where the same file is transmitted to multiple users, there is currently no good solution for file transmission.

发明内容 Contents of the invention

本发明所要解决的技术问题是提供一种基于单向链路上的文件的封装传输方法,该方法将需要传送的文件进行分割传输,能够快速、有效地实现文件数据在单向传输系统中的传输。The technical problem to be solved by the present invention is to provide a method for encapsulating and transmitting files based on one-way links. This method divides and transmits the files to be transmitted, and can quickly and effectively realize the file data in the one-way transmission system. transmission.

为解决上述技术问题,本发明采用的技术方案包括如下步骤:In order to solve the problems of the technologies described above, the technical solution adopted in the present invention comprises the following steps:

第一步,将需要传输的文件的文件参数描述为文件属性表(File Attribute Table,缩写为FAT)文件;In the first step, the file parameters of the file to be transferred are described as a file attribute table (File Attribute Table, abbreviated as FAT) file;

第二步,根据需要对FAT文件进行分片处理,再按照FAT封装语法打包成FAT片包传输;The second step is to fragment the FAT file according to the needs, and then pack it into a FAT packet for transmission according to the FAT encapsulation syntax;

第三步,将需要传输的文件分片生成统一长度的文件片,最后一个文件片长度不足时予以填充,再按照文件片封装语法打包成文件片包;The third step is to generate file slices of uniform length by fragmenting the files to be transmitted, fill in the last file slice if the length is insufficient, and then pack it into a file slice package according to the file slice encapsulation syntax;

第四步,将若干文件片组成文件块,并对其进行校验形成紧跟此文件块的校验块;In the fourth step, a plurality of file pieces are formed into a file block, and verified to form a check block following the file block;

第五步,根据需要对校验块进行分片处理,再按照校验片封装语法打包成校验片包;The fifth step is to slice the check block according to the needs, and then pack it into a check slice package according to the check slice encapsulation syntax;

第六步,传输文件片包以及紧跟其后的校验片包。The sixth step is to transmit the file slice package and the verification slice package immediately thereafter.

所述FAT文件描述数据业务的文件构成、文件属性、传输分割参数等信息,采用可扩展标识语言(The Extensible Markup Language,缩写为XML)语法描述。本发明根据具体情况,可以将一个FAT文件分割成n个FAT片,每个FAT片的长度一般不超过4095字节,n取值通常在1~256范围内,当n等于1时表示不分割。The FAT file describes information such as the file composition, file attributes, and transmission segmentation parameters of the data service, and is described by the Extensible Markup Language (The Extensible Markup Language, abbreviated as XML). According to specific conditions, the present invention can divide a FAT file into n FAT slices, the length of each FAT slice is generally not more than 4095 bytes, and the value of n is usually in the range of 1 to 256. When n is equal to 1, it means no segmentation .

所述FAT片包包含FAT包头、FAT净荷和CRC_32。其中,FAT包头包括资源标识、当前片序号、更新序号、编码类型、最后片序号和片长度,FAT净荷携带FAT片数据,CRC_32是对FAT净荷进行校验的32位循环校验位。The FAT slice packet includes a FAT header, a FAT payload and CRC_32. Among them, the FAT header includes resource identification, current segment number, update sequence number, encoding type, last segment number and segment length, the FAT payload carries FAT segment data, and CRC_32 is a 32-bit cyclic check bit for verifying the FAT payload.

所述文件片包由文件片包头和文件片净荷组成。文件片包头包括资源标识、块序号、片序号和更新序号;文件片净荷携带实际的文件片。The file slice package is composed of a file slice header and a file slice payload. The file slice header includes resource identification, block serial number, slice serial number and update serial number; the file slice payload carries the actual file slice.

所述校验片包的语法封装结构与文件片包的相同,包括校验片包头和校验片净荷。校验片包头包括资源标识、块序号、片序号和更新序号;校验片净荷携带实际的校验片。The syntax encapsulation structure of the verification slice package is the same as that of the file slice package, including the check slice header and the check slice payload. The check piece header includes resource identification, block number, piece number and update number; the check piece payload carries the actual check piece.

本发明采用FAT文件描述数据业务的文件构成、文件属性、传输分割参数信息,通过对文件进行分割、纠错等操作,封装形成文件片包及校验片包,从而简单有效地实现了文件在单向传输网络中的传送与接收,用户可以方便快捷的接收文件数据业务,从而极大的满足用户需求。The present invention uses the FAT file to describe the file composition, file attributes, and transmission segmentation parameter information of the data service. By performing operations such as segmentation and error correction on the file, it is packaged to form a file package and a check package, thereby simply and effectively realizing the With the transmission and reception in the one-way transmission network, users can receive file data services conveniently and quickly, thereby greatly meeting user needs.

附图说明 Description of drawings

图1为FAT分割示意图;Figure 1 is a schematic diagram of FAT segmentation;

图2为FAT片包结构示意图;Fig. 2 is a schematic diagram of the FAT chip packet structure;

图3为文件分割示意图;Fig. 3 is a schematic diagram of file segmentation;

图4为文件块校验示意图;Fig. 4 is a schematic diagram of file block verification;

图5为文件片/校验片包结构示意图;Fig. 5 is a schematic diagram of the structure of the file slice/verification slice package;

图6为FAT文件根元素的模式结构图;Fig. 6 is the pattern structural diagram of FAT file root element;

图7为文件路径信息元素数据类型(简称FDIType)的模式结构图;Fig. 7 is the model structural diagram of file path information element data type (abbreviation FDIType);

图8为文件属性信息元素数据类型(简称FAIType)的模式结构图;Fig. 8 is the pattern structural diagram of file attribute information element data type (abbreviation FAIType);

图9为传输信息元素数据类型(简称TransferInfoType)的模式结构图;Fig. 9 is a schema structure diagram of a transfer information element data type (TransferInfoType for short);

图10为内容信息元素数据类型(简称ContentInfoType)的模式结构图;FIG. 10 is a schema structure diagram of a content information element data type (ContentInfoType for short);

图11为分割信息元素数据类型(简称SegmentInfoType)的模式结构图;Fig. 11 is a pattern structure diagram of a segmented information element data type (SegmentInfoType for short);

图12为FEC信息元素数据类型(简称FECInfoType)的模式结构图;Figure 12 is a schema structure diagram of the FEC information element data type (referred to as FECInfoType);

图13为文件信息保护元素数据类型(简称ProtectionInfoType)的模式结构图;Fig. 13 is a schema structural diagram of the file information protection element data type (ProtectionInfoType for short);

图14为生命周期元素数据类型(简称LifePeriod)的模式结构图。FIG. 14 is a schema structure diagram of a life cycle element data type (LifePeriod for short).

具体实施方式 Detailed ways

下面结合附图和具体实施方式对本发明进行进一步说明。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

首先,定义数据业务为由若干文件组成,文件可以在同一个目录,也可以在不同的目录中,目录结构可以分多层。本发明采用文件属性表(File Attribute Table,简称FAT)描述数据业务的文件构成、文件属性、传输分割参数信息。具体实现可采用可扩展标识语言(TheExtensible Markup Language,缩写为XML)语法描述文件属性表,文件属性表本身也形成一个文件。在文件发送通道建立前,本发明首先生成FAT文件。终端首先接收、解析FAT文件,根据FAT文件指示的信息在本地完整恢复出与发端一致的文件和目录结构。First, define the data service as consisting of several files, the files can be in the same directory or in different directories, and the directory structure can be divided into multiple layers. The present invention uses a File Attribute Table (FAT for short) to describe the file composition, file attributes, and transmission segmentation parameter information of data services. The specific implementation can use the Extensible Markup Language (The Extensible Markup Language, abbreviated as XML) syntax to describe the file attribute table, and the file attribute table itself also forms a file. Before the file sending channel is established, the present invention first generates the FAT file. The terminal first receives and parses the FAT file, and locally restores the same file and directory structure as the source according to the information indicated by the FAT file.

图1所示为FAT文件分割示意图。本发明根据需要将FAT文件分割成FAT片,序号为0,1,...n-1,共n个,n取值范围1~256,当n等于1表示不分割。FAT文件和普通文件采用不同的封装语法进行分割传输。终端不需要先验信息就可以接收FAT文件。Figure 1 shows a schematic diagram of FAT file segmentation. The present invention divides the FAT file into FAT slices according to the needs, and the serial numbers are 0, 1, ... n-1, n in total, and the value range of n is 1-256. When n is equal to 1, it means no division. FAT files and ordinary files use different encapsulation syntax for split transmission. The terminal can receive the FAT file without prior information.

图2所示为FAT片包封装结构示意图。如图所示,FAT片包由FAT包头、FAT净荷和CRC_32组成。FIG. 2 is a schematic diagram of the package structure of FAT chips. As shown in the figure, a FAT slice packet consists of a FAT header, a FAT payload, and a CRC_32.

FAT包头包括资源标识、当前片序号、更新序号、编码类型、最后片序号和片长度。其中,资源标识字段用于标识一个FAT文件数据业务;当前片序号字段用于表示当前FAT片的序号,若FAT文件未分片,则本字段取值为0;更新序号字段用于表示当前资源的更新序号,若FAT信息发生变化,本字段循环递增加1;编码类型字段用于表示FAT文件采用的编码类型;最后片序号字段用于标识最后一个FAT片的序号,若FAT文件未分片,则本字段取值为0;片长度字段用于表示当前FAT片的长度。The FAT header includes resource identification, current slice number, update number, encoding type, last slice number and slice length. Among them, the resource identification field is used to identify a FAT file data service; the current slice serial number field is used to indicate the serial number of the current FAT slice, if the FAT file is not fragmented, the value of this field is 0; the update serial number field is used to indicate the current resource If the FAT information changes, this field will be increased by 1 cyclically; the encoding type field is used to indicate the encoding type used by the FAT file; the last segment number field is used to identify the serial number of the last FAT segment, if the FAT file is not fragmented , the value of this field is 0; the slice length field is used to indicate the length of the current FAT slice.

FAT净荷字段携带FAT片数据,其长度由FAT包头中的“片长度”字段指示。The FAT payload field carries FAT slice data, and its length is indicated by the "slice length" field in the FAT header.

CRC_32是32位循环校验字段,用于对FAT净荷进行校验。CRC_32 is a 32-bit cyclic check field for checking the FAT payload.

图3所示为文件分割示意图。如图所示,首先将文件分割成若干等长的文件片,每个文件片的长度一般不超过65535字节,最后一个文件片长度不足时需要进行填充,本实施例采用0x00填充,当然也可以采用其他填充方式。多个文件片组成一个文件块,由于文件片的长度可长可短,组成文件块的文件片的数量也不是惟一确定的,但一般不超过16383个。根据文件块中的文件片数量不同可分为A、B两种类型,若文件片数量相等,则只有类型A。区分A类文件块和B类文件块,有助于更容易实现校验。文件纠错按文件块进行,得到的纠错数据称为校验块。校验块划分成若干片,称之为校验片,长度与文件片相等,校验片与文件片连续编号,见图4。Figure 3 shows a schematic diagram of file segmentation. As shown in the figure, first divide the file into several file pieces of equal length. The length of each file piece generally does not exceed 65535 bytes. If the length of the last file piece is insufficient, it needs to be filled. In this embodiment, 0x00 is used for padding. Of course, Other filling methods can be used. Multiple file slices form a file block. Since the length of a file slice can be long or short, the number of file slices forming a file block is not uniquely determined, but generally it does not exceed 16383. According to the number of file pieces in the file block, it can be divided into two types: A and B. If the number of file pieces is equal, only type A exists. Distinguishing between type A file blocks and type B file blocks helps to achieve verification more easily. File error correction is performed by file block, and the error correction data obtained is called a check block. The check block is divided into several slices, called check slices, whose length is equal to the file slice, and the check slice and the file slice are serially numbered, as shown in Figure 4.

图5所示为文件片/校验片包结构示意图,将文件分割后形成的文件片,再组合成文件块,然后对文件块进行校验操作生成校验块,最后将文件块和校验块分割打包成文件片/校验片包。文件片和校验片包采用统一的语法封装结构,包括文件片/校验片包头和文件片/校验片净荷。Figure 5 is a schematic diagram of the structure of the file slice/verification slice package. The file slices formed after the file is divided are combined into file blocks, and then the check operation is performed on the file blocks to generate check blocks. Finally, the file blocks and the checksum The blocks are divided and packaged into file slices/verification slice packages. The file slice and verification slice package adopts a unified syntax encapsulation structure, including the file slice/verification slice header and the file slice/verification slice payload.

文件片/校验片包头包括资源标识、块序号、片序号和更新序号。其中,资源标识字段用于唯一标识一个文件;块序号字段用于表示当前文件片/校验片所从属的文件块/校验块的序号;片序号字段用于表示当前文件片/校验片在文件块/校验块内的序号;更新序号字段用于表示当前资源的更新序号。The file slice/check slice header includes resource identification, block sequence number, slice sequence number and update sequence number. Among them, the resource identification field is used to uniquely identify a file; the block serial number field is used to indicate the serial number of the file block/check block to which the current file slice/check slice belongs; the slice serial number field is used to indicate the current file slice/check slice The sequence number in the file block/check block; the update sequence number field is used to indicate the update sequence number of the current resource.

文件片/校验片净荷携带实际的文件片或校验片,其长度由FAT文件指定,通过文件片序号识别文件片和校验片。The file slice/check slice payload carries the actual file slice or check slice, the length of which is specified by the FAT file, and the file slice and check slice are identified by the file slice serial number.

在单向链路系统中,传送的文件数据由一系列离散的文件组成,每个文件除了数据信息外,还有若干描述该文件属性的信息,如文件名、长度、压缩方式等,终端不仅需要正确接收数据,还要接收文件属性的描述信息,以便能恢复出与发端一致的文件。终端首先接收、解析FAT文件,根据FAT文件指示的信息在本地完整恢复出与发端一致的文件和目录结构,具体包括以下步骤:In the one-way link system, the transmitted file data is composed of a series of discrete files. In addition to the data information, each file also has some information describing the attributes of the file, such as file name, length, compression method, etc. The terminal not only It is necessary to receive the data correctly, and also receive the description information of the file attributes, so that the file consistent with the originator can be recovered. The terminal first receives and parses the FAT file, and according to the information indicated by the FAT file, completely restores the file and directory structure locally that is consistent with that of the originator, specifically including the following steps:

第一步,用户首先得到FAT片,若FAT文件没有分片,则此FAT片即为完整的FAT文件,若FAT文件被分片,则根据FAT片包头中的“当前片序号”和“最后片序号”字段信息进行拼接,并根据“编码类型”字段进行解析,恢复出完整的FAT文件;In the first step, the user first obtains a FAT file. If the FAT file is not fragmented, the FAT file is a complete FAT file. Fragment serial number" field information is spliced, and analyzed according to the "encoding type" field, and the complete FAT file is recovered;

第二步,用户通过数据解封装获得文件片/校验片;In the second step, the user obtains the file slice/verification slice through data decapsulation;

第三步,用户通过FAT文件中参数对获得的文件片进行拼接获得文件数据。In the third step, the user splices the obtained file pieces according to the parameters in the FAT file to obtain file data.

终端不需要先验信息就可以接收FAT文件,而对于数据业务文件终端必须按照FAT文件指示的分割传输信息才能正确接收。The terminal can receive the FAT file without a priori information, but for the data service file, the terminal must transmit the information according to the segmentation indicated by the FAT file to receive it correctly.

本实施例采用XML描述文件属性的数据模型,采用XML方式描述的文件属性数据是根据该模型生成的实例。以下通过本发明的业务参数信息实例进行说明:In this embodiment, XML is used to describe the data model of file attributes, and the file attribute data described in XML is an instance generated according to the model. The following is illustrated by the business parameter information example of the present invention:

图6为FAT根元素的模式结构图。FAT根元素的语义定义见表1。FIG. 6 is a schema structure diagram of a FAT root element. See Table 1 for the semantic definition of the FAT root element.

表1   根元素语义Table 1 Root Element Semantics

  字段 语义 FDI 文件路径信息元素 FAI 文件属性信息元素 DefaultFECInfo 默认FEC参数信息元素 MaxVersion FAT的大版本号属性,若大版本号变化,终端需要重新构建资 field Semantics FDI File Path Information Element FAI File Attributes Information Element DefaultFECInfo Default FEC parameter information element MaxVersion The major version number attribute of FAT, if the major version number changes, the terminal needs to rebuild the resource

  源标识与文件的对应关系。 MinVersion FAT的小版本号属性,若仅有小版本号变化,资源标识与文件的对应关系保持不变。 Correspondence between source identifiers and files. MinVersion For the minor version number attribute of FAT, if only the minor version number changes, the corresponding relationship between the resource identifier and the file remains unchanged.

所述文件路径信息元素(FDI)描述了文件路径信息,该元素的数据类型由FDIType定义,其模式结构见图7,FDIType的语义定义见表2。The file path information element (FDI) describes the file path information, the data type of this element is defined by FDIType, its schema structure is shown in Figure 7, and the semantic definition of FDIType is shown in Table 2.

表2   FDIType语义Table 2 FDIType Semantics

  字段 语义 DirName 路径元素,描述文件的路径。 DirID 路径标识元素,通过本元素可与路径元素之间建立对应关系。 DirLevel 路径级别属性,表示文件路径的级别。 field Semantics DirName path element, describing the path of the file. DirID The path identification element, through which a corresponding relationship can be established with the path element. DirLevel The path level attribute, indicating the level of the file path.

所述文件属性信息元素(FAI)描述了文件属性信息,该元素的数据类型由FAIType定义,其模式结构见图8。FAIType的语义定义见表3。The file attribute information element (FAI) describes file attribute information, and the data type of this element is defined by FAIType, and its schema structure is shown in FIG. 8 . See Table 3 for the semantic definition of FAIType.

表3    FAIType语义Table 3 FAIType Semantics

  字段 语义 TransferInfo 传输信息元素 ContentInfo 内容信息元素 SegmentationInfo 分割信息元素 FECInfo FEC信息元素 ProtectionInfo 保护信息元素 resource_ID 资源标识属性,表示本FAI元素对应的文件资源。 UpdateIndex 更新序号属性,表示本FAI元素的更新序号。 field Semantics TransferInfo transmit information element ContentInfo content information element SegmentationInfo split information element FECInfo FEC information element ProtectionInfo Protect Information Elements resource_ID The resource identification attribute indicates the file resource corresponding to this FAI element. UpdateIndex The update serial number attribute indicates the update serial number of this FAI element.

所述传输信息元素(TransferInfo)描述了跟文件传输相关的一些属性信息,该元素的数据类型由TransferInfoType定义,其模式结构见图9。TransferInfoType的语义定义见表4。The transfer information element (TransferInfo) describes some attribute information related to file transfer. The data type of this element is defined by TransferInfoType, and its schema structure is shown in FIG. 9 . See Table 4 for the semantic definition of TransferInfoType.

表4   TransferInfoType语义Table 4 TransferInfoType Semantics

  字段 语义 DirID 文件路径标识,与FDI元素中的DirID对应,根据该标识可建立文件的路径关系。 file_name 文件名 life_period 生命周期元素 field Semantics DirID The file path identifier corresponds to the DirID in the FDI element, and the file path relationship can be established according to the identifier. file_name file name life_period life cycle elements

所述内容信息元素(ContentInfo)描述了跟文件内容相关的一些属性信息,该元素的数据类型由ContentInfoType定义,其模式结构见图10。ContentInfoType的语义定义见表5。The content information element (ContentInfo) describes some attribute information related to the content of the file. The data type of this element is defined by ContentInfoType, and its schema structure is shown in FIG. 10 . See Table 5 for the semantic definition of ContentInfoType.

表5   ContentInfoType语义Table 5 ContentInfoType Semantics

  字段 语义 container_file 指示本文件是否为一个容器 field Semantics container_file Indicates whether this document is a container

  MIME_type 文件MIME类型 file_length 文件原始长度 file_encoding 文件编码 file_encoding_length 文件编码后的总长度 MD5_code MD5码,base64Binary类型 content_lingual_special 跟语种相关的内容描述元素 title 内容标题 digest 内容摘要 keyword 内容关键词,不同的关键词之间以‘;’隔开。 lang 内容描述元素的属性,表示语种信息。 private_info 内容私有信息,保留。 MIME_type File MIME type file_length file original length file_encoding file encoding file_encoding_length The total length of the encoded file MD5_code MD5 code, base64Binary type content_lingual_special Language-dependent content description elements title content title digest abstract keywords Content keywords, different keywords are separated by ';'. lang The attribute of the content description element, indicating language information. private_info Content private information, reserved.

所述分割信息元素(SegmentationInfo)描述了文件的分割信息,该元素的数据类型由SegmentationInfoType定义,其模式结构图见图11。SegmentationInfoType的语义见表6。The segmentation information element (SegmentationInfo) describes the segmentation information of the file, and the data type of this element is defined by SegmentationInfoType, and its schema structure diagram is shown in FIG. 11 . See Table 6 for the semantics of SegmentationInfoType.

表6  SegmentationInfoType语义Table 6 Semantics of SegmentationInfoType

  字段 语义 slice_length 文件片的大小,单位为字节 A_block_count 类型A文件块的数量 B_block_count 类型B件块的数量 total_block_count 文件块总数,等于A_block_count和B_block_count之和。 slice_count_for_A 类型A文件块中文件片的数量 slice_count_for_B 类型B文件块中文件片的数量 fec_slice_count_for_A 类型A文件块校验片的数量 fec_slice_count_for_B 类型B文件块校验片的数量 field Semantics slice_length The size of the file slice, in bytes A_block_count Number of Type A file blocks B_block_count Number of Type B Blocks total_block_count The total number of file blocks, equal to the sum of A_block_count and B_block_count. slice_count_for_A Number of file slices in a type A file block slice_count_for_B Number of file slices in a type B file block fec_slice_count_for_A The number of type A file block check slices fec_slice_count_for_B The number of type B file block check slices

所述FEC信息元素(FECInfo)描述了文件前向纠错信息,FECInfoType是该元素的数据类型定义,其模式结构见图12。FECInfoType的语义见表7。The FEC information element (FECInfo) describes the forward error correction information of the file, and FECInfoType is the data type definition of this element, and its schema structure is shown in FIG. 12 . See Table 7 for the semantics of FECInfoType.

表7  FECInfoType语义Table 7 FECInfoType Semantics

  字段 语义 algorithm 算法类型 field Semantics algorithm algorithm type

所述文件保护信息元素(ProtectionInfo)描述了文件保护信息,ProtectionInfoType是该元素的数据类型定义,其模式结构图见图13。ProtectionInfoType的语义见表8。The file protection information element (ProtectionInfo) describes file protection information, and ProtectionInfoType is the data type definition of this element, and its schema structure diagram is shown in FIG. 13 . See Table 8 for the semantics of ProtectionInfoType.

表8  ProtectionInfoType语义Table 8 ProtectionInfoType Semantics

  字段 语义 protection_level 保护级别,表示文件内容的保护级别。 level_description 保护级别描述,对文件内容的保护级别的进一步描述。 field Semantics protection_level Protection level, indicating the protection level of the file content. level_description Protection level description, a further description of the protection level of the file content.

所述生命周期元素(life_period)描述了文件生命周期信息,LifePeriod是该元素的数据类型定义,其模式结构图见图14。LifePeriod的语义见表9。The life cycle element (life_period) describes the file life cycle information, and LifePeriod is the data type definition of the element, and its schema structure diagram is shown in FIG. 14 . See Table 9 for the semantics of LifePeriod.

表9  LifePeriod语义Table 9 LifePeriod Semantics

  字段 语义 time_unit_indic 时间单位指示,表示文件使用的限制时间时间单位指示取值定义如下:0:小时1:天2:周3:月 show_time 表示文件使用的限制时间,根据时间单位指示确定时间周期,展示时间的限制如下:0:无使用时间限制1~60:1时间单位到60时间单位61~63:保留 field Semantics time_unit_indic Time unit indication, indicating the limited time used by the file The time unit indication value is defined as follows: 0: hour 1: day 2: week 3: month show_time Indicates the limited time for file use, and the time period is determined according to the time unit indication. The display time limit is as follows: 0: no use time limit 1~60: 1 time unit to 60 time unit 61~63: reserved

综上,本发明可根据需求将文件分片为等长的文件片并生成相应的校验片,使之适应于单向链路的传输。对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。To sum up, the present invention can divide files into equal-length file slices according to requirements and generate corresponding verification slices, so that they are suitable for unidirectional link transmission. Various modifications and variations of the present invention will occur to those skilled in the art. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (9)

1, a kind of document transmission method based on one way link is characterized in that comprising the steps:
The first step is described as file attribute table FAT file with the file parameters of the file of needs transmission;
Second step, as required the FAT file is carried out burst and handle, be packaged into the transmission of FAT sheet bag according to FAT encapsulation grammer again;
The 3rd step generated the file sheet of unified length with the file fragmentation of needs transmission, was filled when last file leaf length is not enough, was packaged into file sheet bag according to file sheet encapsulation grammer again;
In the 4th step,, and it is carried out verification form check block immediately following this blocks of files with some file sheet composing document pieces;
The 5th step, as required check block is carried out burst and handle, be packaged into verification sheet bag according to verification sheet encapsulation grammer again;
The 6th step, transfer files sheet bag and immediately following thereafter verification sheet bag.
2, document transmission method according to claim 1 is characterized in that, the root element semantical definition of described FAT file is as follows:
Field Semantic FDI The file path information element; FAI The file attribute information element; DefaultFECInfo Acquiescence FEC parameter information element; MaxVersion The major release attribute of FAT, if major release changes, terminal need rebuild the corresponding relation of resource identification and file; MinVersion The minor release/point release attribute of FAT, if only there is minor release/point release to change, the corresponding relation of resource identification and file remains unchanged.
3, document transmission method according to claim 2 is characterized in that, the routing information of described file path information element FDI description document, and its semantical definition is as follows:
Field Semantic DirName Path elements, the path of description document; DirID The ID of trace route path element, by this element can and path elements between set up corresponding relation; DirLevel The path-level attribute, the rank of expression file path.
4, document transmission method according to claim 3 is characterized in that, the attribute information of described file attribute information element FAI description document, and its semantical definition is as follows:
Field Semantic TransferInfo The transmission information element; ContentInfo The content information element; SegmentationInfo The carve information element; FECInfo The FEC information element;
ProtectionInfo The protection information element; Resource_ID The resource identification attribute is represented this FAI element corresponding file resource; UpdateIndex Upgrade the sequence number attribute, represent the renewal sequence number of this FAI element.
5, according to any described document transmission method in the claim 1 to 4, it is characterized in that, in described second step, as the case may be, a FAT file division is become n FAT sheet, and the n span is 1~256, and the length of each FAT sheet is no more than 4095 bytes.
6, document transmission method according to claim 5 is characterized in that, described FAT sheet bag comprises FAT packet header, FAT payload and CRC_32;
FAT packet header comprises resource identification, when the anter sequence number, upgrade sequence number, type of coding, rear panel sequence number and leaf length, the FAT payload carries FAT sheet data, CRC_32 is 32 cyclic check positions of the FAT payload being carried out verification.
7, document transmission method according to claim 6 is characterized in that, described file sheet bag is made up of file sheet packet header and file sheet payload; File sheet packet header comprises resource identification, piece sequence number, sheet sequence number and upgrades sequence number; File sheet payload carries actual file sheet;
Described verification sheet bag is made up of verification sheet packet header and verification sheet payload; Verification sheet packet header comprises resource identification, piece sequence number, sheet sequence number and upgrades sequence number; Verification sheet payload carries actual verification sheet.
8, document transmission method according to claim 7 is characterized in that, the equal in length of the length of described verification sheet and file sheet; The sheet sequence number serial number of the sheet sequence number of verification sheet and file sheet.
9, a kind of method that receives according to the file of the described method transmission of claim 8 is characterized in that comprising the steps:
The first step, the user at first obtains the FAT sheet, if the FAT file does not have burst, then this FAT sheet is complete FAT file, if the FAT file is by burst, then splice, and resolve, recover complete FAT file according to " type of coding " field according to " when the anter sequence number " in the FAT sheet packet header and " rear panel sequence number " field information;
In second step, the user obtains file sheet and verification sheet by the data decapsulation;
In the 3rd step, the user is spliced the acquisition file data by parameter in the FAT file to the file sheet that obtains.
CN2007101797779A 2007-12-18 2007-12-18 Document transmission method based on unidirection link Expired - Fee Related CN101465791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101797779A CN101465791B (en) 2007-12-18 2007-12-18 Document transmission method based on unidirection link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101797779A CN101465791B (en) 2007-12-18 2007-12-18 Document transmission method based on unidirection link

Publications (2)

Publication Number Publication Date
CN101465791A true CN101465791A (en) 2009-06-24
CN101465791B CN101465791B (en) 2011-08-17

Family

ID=40806164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101797779A Expired - Fee Related CN101465791B (en) 2007-12-18 2007-12-18 Document transmission method based on unidirection link

Country Status (1)

Country Link
CN (1) CN101465791B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834697A (en) * 2010-04-09 2010-09-15 中兴通讯股份有限公司 Method and device for improving data broadcast file receiving performance
WO2011147129A1 (en) * 2010-05-24 2011-12-01 中兴通讯股份有限公司 Method and apparatus for transmitting and receiving interactive service files
CN102611531A (en) * 2012-03-12 2012-07-25 成都龙冠科技实业有限公司 One-way data transmission method
CN103491153A (en) * 2013-09-17 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method, equipment and peer-to-peer network system for data sharing
CN104539739A (en) * 2015-01-26 2015-04-22 浙江大学 System, method and device for uploading files
CN109391644A (en) * 2017-08-03 2019-02-26 蓝盾信息安全技术有限公司 It is a kind of based on singly lead equipment intelligent file upload, downloading and administrative skill
CN110099086A (en) * 2018-01-31 2019-08-06 国广融合(北京)传媒科技发展有限公司 A kind of data transmission method based on fusion Transmission system
CN110099087A (en) * 2018-01-31 2019-08-06 国广融合(北京)传媒科技发展有限公司 A kind of document transmission method based on fusion Transmission system
CN110099036A (en) * 2018-01-31 2019-08-06 国广融合(北京)传媒科技发展有限公司 A kind of data encapsulation method based on fusion Transmission system
CN111182047A (en) * 2019-12-24 2020-05-19 中国银联股份有限公司 Method and system for transferring files between large data platforms across a network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100417071C (en) * 2003-05-30 2008-09-03 西安通视数据有限责任公司 Forward error correcting method in one-way broadcast file transmission
US8351363B2 (en) * 2005-04-08 2013-01-08 Qualcomm Incorporated Method and apparatus for enhanced file distribution in multicast or broadcast
CN101056252B (en) * 2007-06-07 2010-04-21 中兴通讯股份有限公司 Transmission method of compression file

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101834697B (en) * 2010-04-09 2014-02-05 中兴通讯股份有限公司 Method and device for improving receiving performance of data casting file
CN101834697A (en) * 2010-04-09 2010-09-15 中兴通讯股份有限公司 Method and device for improving data broadcast file receiving performance
WO2011147129A1 (en) * 2010-05-24 2011-12-01 中兴通讯股份有限公司 Method and apparatus for transmitting and receiving interactive service files
CN102611531B (en) * 2012-03-12 2015-09-16 成都龙冠科技实业有限公司 A kind of one-way data transmission method
CN102611531A (en) * 2012-03-12 2012-07-25 成都龙冠科技实业有限公司 One-way data transmission method
CN103491153A (en) * 2013-09-17 2014-01-01 天脉聚源(北京)传媒科技有限公司 Method, equipment and peer-to-peer network system for data sharing
CN104539739B (en) * 2015-01-26 2019-03-29 浙江大学 A kind of system, method and device that file uploads
CN104539739A (en) * 2015-01-26 2015-04-22 浙江大学 System, method and device for uploading files
CN109391644A (en) * 2017-08-03 2019-02-26 蓝盾信息安全技术有限公司 It is a kind of based on singly lead equipment intelligent file upload, downloading and administrative skill
CN110099086A (en) * 2018-01-31 2019-08-06 国广融合(北京)传媒科技发展有限公司 A kind of data transmission method based on fusion Transmission system
CN110099087A (en) * 2018-01-31 2019-08-06 国广融合(北京)传媒科技发展有限公司 A kind of document transmission method based on fusion Transmission system
CN110099036A (en) * 2018-01-31 2019-08-06 国广融合(北京)传媒科技发展有限公司 A kind of data encapsulation method based on fusion Transmission system
CN110099086B (en) * 2018-01-31 2020-11-06 国广融合(北京)传媒科技发展有限公司 Data transmission method based on fusion transmission system
CN110099087B (en) * 2018-01-31 2021-02-02 国广融合(北京)传媒科技发展有限公司 File transmission method based on converged transmission system
CN110099036B (en) * 2018-01-31 2022-03-11 国广融合(北京)传媒科技发展有限公司 Data encapsulation method based on fusion transmission system
CN111182047A (en) * 2019-12-24 2020-05-19 中国银联股份有限公司 Method and system for transferring files between large data platforms across a network

Also Published As

Publication number Publication date
CN101465791B (en) 2011-08-17

Similar Documents

Publication Publication Date Title
CN101465791A (en) Document transmission method based on unidirection link
KR100968086B1 (en) Method and apparatus for enhanced file distribution in multicast or broadcast
TWI377819B (en) System and method for history driven optimization of web services communication
US20090089535A1 (en) Media container file management
KR102633193B1 (en) Message processing methods and related devices
DK2814283T3 (en) Method and device for transmitting / receiving data
EP2571224A1 (en) Method for processing messages on m2m platform and m2m platform system
CN102916936B (en) IP data encapsulating method and system applicable to IP over DVB (digital video broadcasting)
CN105024861A (en) A reliable remote communication method and communication device based on Beidou satellite
CN101459654A (en) Multi-protocol service data package parsing method, receiving terminal and sending terminal
CN110858790B (en) Data packet transmission method and device, storage medium and electronic device
CN110099087A (en) A kind of document transmission method based on fusion Transmission system
CN114499993A (en) High-reliability safe transmission and control system and method based on one-way optical gate
KR20090076816A (en) Error control method of circuit switched data received using HSP
CN101686144A (en) Method and system for processing data and node device
CN101465711B (en) Method for transmitting multi-mode data business in mobile multimedia broadcasting system
CN114513418B (en) Data processing method and related equipment
CN106603602A (en) Message routing method based on service chain information and apparatus thereof
US9473960B2 (en) Method and device for processing transport configuration data
WO2019034061A1 (en) Data transmission method, device and system
CN110138635A (en) It is a kind of that the protocol conversion function of FC and Ethernet is supported to verify device and method
CN110149242A (en) It is a kind of that the protocol conversion function of SRIO and Ethernet is supported to verify device and method
US11251905B2 (en) Method for receiving code block stream, method for transmitting code block stream, and communications apparatus
CN110099036A (en) A kind of data encapsulation method based on fusion Transmission system
CN114520690B (en) Information transmission method, device, equipment and node equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110817

Termination date: 20181218

CF01 Termination of patent right due to non-payment of annual fee