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

CN101557421B - A network file distribution method and system thereof - Google Patents

A network file distribution method and system thereof Download PDF

Info

Publication number
CN101557421B
CN101557421B CN2009100847765A CN200910084776A CN101557421B CN 101557421 B CN101557421 B CN 101557421B CN 2009100847765 A CN2009100847765 A CN 2009100847765A CN 200910084776 A CN200910084776 A CN 200910084776A CN 101557421 B CN101557421 B CN 101557421B
Authority
CN
China
Prior art keywords
network
network file
task
file distribution
node
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.)
Expired - Fee Related
Application number
CN2009100847765A
Other languages
Chinese (zh)
Other versions
CN101557421A (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.)
China Digital Video Beijing Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics Co Ltd
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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN2009100847765A priority Critical patent/CN101557421B/en
Publication of CN101557421A publication Critical patent/CN101557421A/en
Application granted granted Critical
Publication of CN101557421B publication Critical patent/CN101557421B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for distributing a network file, and a system thereof. The method comprises the steps of: pre-configuring a network file distribution tree according to service coverage, adopting leaf nodes of the distribution tree to represent network nodes and leading other nodes to represent the service coverage, and ensuring that the service coverage corresponding to a lower-level node is within the service coverage corresponding to an upper-level node; when a network file needs to be distributed, executing the following steps of: selecting the node corresponding to the service coverage, to which the network file belongs, from the network file distribution tree. and generating a network file distribution task including a list of network files to be distributed and information of all network nodes within the service coverage corresponding to the selected node; and sending the network files included in the task to the network node according to a file access request initiated by the network nodes included in the network file distribution task. By adopting the invention, the network file can be distributed according to service coverage so as to simplify the configuration process of network file distribution and enhance the efficiency of network file distribution.

Description

一种网络文件分发方法及其系统A network file distribution method and system thereof

技术领域 technical field

本发明涉及通信领域,尤其涉及一种网络文件分发方法和网络文件分发系统。The invention relates to the communication field, in particular to a network file distribution method and a network file distribution system.

背景技术 Background technique

通过网络方式分发文件的应用非常广泛,满足了用户共享数据的需求。网络方式分发文件通常包括两种类型:一种是采用手工分发,例如在局域网中提供共享目录,文件需要者通过主动访问该共享目录,使用文件拷贝等操作获取需要的网络文件;另一种是通过网页提供所有可供访问的网络文件的链接信息,用户通过浏览该网页,选择需要访问的网络文件并发起访问请求,然后在服务器侧的数据发送端和客户侧的接收端之间建立点对点的数据传输,将用户需要的文件传输到用户所在的客户端。The application of distributing files through the network is very extensive, which meets the needs of users to share data. There are usually two types of network distribution files: one is manual distribution, for example, a shared directory is provided in the local area network, and the person who needs the file actively accesses the shared directory and uses operations such as file copy to obtain the required network files; the other is The link information of all accessible network files is provided through the webpage, and the user browses the webpage, selects the network file to be accessed and initiates an access request, and then establishes a point-to-point connection between the data sending end on the server side and the receiving end on the client side Data transmission, which transfers the files required by the user to the client where the user is located.

现有的网络文件分发系统通常采用服务器-客户端(C/S模式)架构,即所有的服务集中一台(组)服务上,客户端只能从服务器获取资源,是一种集中式单向的网络数据分发应用。Existing network file distribution systems usually adopt a server-client (C/S mode) architecture, that is, all services are concentrated on one (group) service, and the client can only obtain resources from the server, which is a centralized one-way network data distribution application.

对网络文件分发系统的需求之一是根据具体业务需要,将相关的网络文件有针对性地发送到相应的客户端,而且业务规则(如网络文件分发范围)和具体内容是经常变化的,网络文件分发系统也应该适应业务规则的变化,提供简单便捷的网络文件分发配置方式,以便将相关的网络文件有针对性地发送到相应的客户端。而上述现有的网络文件分发系统,通过手工分发以及客户端用户选择访问的方式,将不能满足该需求。One of the requirements for the network file distribution system is to send relevant network files to the corresponding clients in a targeted manner according to specific business needs, and the business rules (such as the scope of network file distribution) and specific content are often changed. The file distribution system should also adapt to changes in business rules, and provide a simple and convenient network file distribution configuration method, so that relevant network files can be sent to corresponding clients in a targeted manner. However, the above-mentioned existing network file distribution system cannot meet this demand through manual distribution and the way of client users selecting access.

发明内容 Contents of the invention

本发明实施例提供了一种网络文件分发方法和网络文件分发系统,以实现根据业务覆盖范围以及业务规则,简单便捷地分发网络文件。Embodiments of the present invention provide a network file distribution method and a network file distribution system, so as to realize simple and convenient distribution of network files according to service coverage and business rules.

本发明实施例提供的网络文件分发方法,包括:The network file distribution method provided by the embodiment of the present invention includes:

预先根据业务覆盖范围配置网络文件分发树,所述网络文件分发树的叶子节点表示网络节点,其他节点表示业务覆盖范围且其中的下级节点对应的业务覆盖范围在其上级节点对应的业务覆盖范围内;当有网络文件需要分发时,执行以下步骤:Configure the network file distribution tree in advance according to the service coverage, the leaf nodes of the network file distribution tree represent network nodes, other nodes represent the service coverage and the service coverage corresponding to the lower nodes is within the service coverage corresponding to the upper nodes ; When there are network files to be distributed, perform the following steps:

从所述网络文件分发树中选择与该网络文件所属的业务覆盖范围相应的节点并生成网络文件分发任务,该任务中包括待分发的网络文件的列表以及所选节点对应的业务覆盖范围内的所有网络节点的信息;Select a node corresponding to the service coverage area to which the network file belongs from the network file distribution tree and generate a network file distribution task, which includes a list of network files to be distributed and the service coverage area corresponding to the selected node Information of all network nodes;

根据所述网络文件分发任务中的网络节点所发起的文件访问请求,将该任务中的网络文件发送到该网络节点。According to the file access request initiated by the network node in the network file distribution task, the network file in the task is sent to the network node.

进一步的,将所述网络文件分发任务中的网络文件发送到所述网络节点,具体为:通过保存有所述网络文件分发任务中的网络文件的服务器或/和所述网络文件分发任务中的其他网络节点,将所述网络文件发送到发起文件访问请求的网络节点。Further, the network file in the network file distribution task is sent to the network node, specifically: through the server storing the network file in the network file distribution task or/and the network file in the network file distribution task Other network nodes send the network file to the network node that initiates the file access request.

本发明实施例提供的网络文件分发系统,包括:The network file distribution system provided by the embodiment of the present invention includes:

系统配置模块,用于预先根据业务覆盖范围配置网络文件分发树,所述网络文件分发树的叶子节点表示网络节点,其他节点表示业务覆盖范围且其中的下级节点对应的业务覆盖范围在其上级节点对应的业务覆盖范围内;The system configuration module is used to configure the network file distribution tree according to the service coverage in advance, the leaf nodes of the network file distribution tree represent network nodes, other nodes represent the service coverage and the service coverage corresponding to the lower nodes is in its upper node Within the corresponding business coverage;

任务编排模块,用于当有网络文件需要分发时,从所述网络文件分发树中选择与该网络文件所属的业务覆盖范围相应的节点并生成网络文件分发任务,该任务中包括待分发的网络文件的列表以及所选节点对应的业务覆盖范围内的所有网络节点的信息;The task arrangement module is used to select a node corresponding to the service coverage area to which the network file belongs from the network file distribution tree when there is a network file to be distributed, and generate a network file distribution task, which includes the network file to be distributed A list of files and information of all network nodes within the service coverage corresponding to the selected node;

文件分发模块,用于根据所述网络文件分发任务中的网络节点所发起的文件访问请求,将该任务中的网络文件发送到该网络节点。The file distribution module is configured to send the network file in the task to the network node according to the file access request initiated by the network node in the network file distribution task.

本发明的上述实施例,通过配置网络文件分发树,使该树的下级节点描述的业务覆盖范围在其上级节点描述的业务覆盖范围内,从而当分发网络文件时,通过从网络文件分发树中选择与待分发网络文件所属的业务覆盖范围相应的节点,为待分发的网络文件生成网络文件分发任务,并根据生成的网络文件分发任务发送待分发的网络文件。由于网络文件分发树是根据业务覆盖范围配置的,其中每个节点表示一定的业务覆盖范围,因而可根据业务规则,通过在该树中选择合适的节点来选择相应的业务覆盖范围,将待发送的网络文件发送到该范围内的所有网络节点。在网络文件分发的业务规则变化时,只要根据相应的业务规则再次在该网络文件分发树中选择合适的节点就可以将待发送的网络文件发送到所希望的业务覆盖范围,并可以做到一次配置网络文件分发树、根据业务规则的变化多次使用该网络文件分发树来配置网络文件的分发。与现有技术相比,实现了根据业务覆盖范围分发网络文件以及根据业务规则的变化简单便捷地配置网络文件分发,并提高了文件分发效率、简化了文件分发时的配置过程。进一步的,通过保存有所述网络文件分发任务中的网络文件的服务器或/和所述网络文件分发任务中的其他网络节点,将所述网络文件发送到发起文件访问请求的网络节点,可充分利用基于P2P网络架构的数据共享机制,从而在提高文件分发效率、简化文件分发时的配置过程的基础上,进一步提高文件传输效率,并减少服务器的负载。In the foregoing embodiments of the present invention, by configuring the network file distribution tree, the service coverage described by the lower nodes of the tree is within the service coverage described by the upper node, so that when distributing network files, by Select the node corresponding to the service coverage area to which the network file to be distributed belongs, generate a network file distribution task for the network file to be distributed, and send the network file to be distributed according to the generated network file distribution task. Since the network file distribution tree is configured according to the service coverage, each node represents a certain service coverage, so the corresponding service coverage can be selected by selecting the appropriate node in the tree according to the business rules, and the files to be sent The network file of is sent to all network nodes within the range. When the business rules of network file distribution change, as long as the appropriate node is selected again in the network file distribution tree according to the corresponding business rules, the network files to be sent can be sent to the desired business coverage, and can be done once A network file distribution tree is configured, and the network file distribution tree is used multiple times to configure network file distribution according to changes in business rules. Compared with the prior art, it realizes the distribution of network files according to the service coverage and the simple and convenient configuration of network file distribution according to the change of business rules, improves the efficiency of file distribution, and simplifies the configuration process of file distribution. Further, sending the network file to the network node that initiates the file access request through the server that stores the network file in the network file distribution task or/and other network nodes in the network file distribution task can fully Utilize the data sharing mechanism based on P2P network architecture, so as to improve the efficiency of file distribution and simplify the configuration process of file distribution, further improve the efficiency of file transfer and reduce the load on the server.

附图说明 Description of drawings

图1为本发明实施例提供的网络文件分发系统的结构示意图;FIG. 1 is a schematic structural diagram of a network file distribution system provided by an embodiment of the present invention;

图2为本发明实施例提供的网络文件分发流程示意图;FIG. 2 is a schematic diagram of a network file distribution process provided by an embodiment of the present invention;

图3为本发明实施例中的网络文件分发树的结构示意图。FIG. 3 is a schematic structural diagram of a network file distribution tree in an embodiment of the present invention.

具体实施方式 Detailed ways

下面结合附图对本发明实施例进行详细描述。Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

参见图1,为本发明实施例提供的网络文件分发系统的结构示意图。该网络文件分发系统包括:系统配置模块101、任务编排模块102和文件分发模块103。系统配置模块101、任务编排模块102和文件分发模块103可合设于一台服务器,也可以任意组合方式部署在不同的服务器中,其中:Referring to FIG. 1 , it is a schematic structural diagram of a network file distribution system provided by an embodiment of the present invention. The network file distribution system includes: a system configuration module 101 , a task arrangement module 102 and a file distribution module 103 . The system configuration module 101, the task arrangement module 102 and the file distribution module 103 can be co-located on one server, and can also be deployed in different servers in any combination, wherein:

系统配置模块101主要提供业务覆盖范围区域配置和网络文件接收端的配置功能,主要负责根据业务覆盖范围配置网络文件分发树,该网络文件分发树中的下级节点所属的业务覆盖范围在其上级节点所属的业务覆盖范围内,分发树的叶子节点则表示相应业务覆盖范围内的网络节点,该网络节点即为网络文件接收端节点;The system configuration module 101 mainly provides the service coverage area configuration and the configuration function of the network file receiving end, and is mainly responsible for configuring the network file distribution tree according to the service coverage. Within the service coverage of the distribution tree, the leaf node of the distribution tree represents the network node within the corresponding service coverage, and the network node is the network file receiving end node;

任务编排模块102主要负责根据业务规则以及配置的网络文件分发树和待分发的网络文件,生成网络文件分发任务以及发布生成的网络文件分发任务;The task arrangement module 102 is mainly responsible for generating a network file distribution task and publishing the generated network file distribution task according to business rules and configured network file distribution tree and network files to be distributed;

文件分发模块103主要负责根据网络文件分发任务中的网络节点所发起的访问请求,将该任务中的待分发的网络文件发送到该发起请求的网络节点。The file distribution module 103 is mainly responsible for sending the network file to be distributed in the task to the requesting network node according to the access request initiated by the network node in the network file distribution task.

这里所说的业务覆盖范围是指业务部署规划,如,业务所涉及的区域以及所涉及的网络节点,其中,可根据业务需要将业务覆盖范围划分为多个层次,每个层次表示对应的业务覆盖范围,上一层次涵盖下一层次的业务覆盖范围。业务覆盖范围可以是一个地区的地理范围,也可以是跨地区的范围,同一个业务覆盖范围下的网络节点通常承担相同的业务功能或服务,因而具有相同的业务配置需求。这里所说的业务规则是指根据网络节点所承担的业务功能或服务,向相应的业务覆盖范围的网络节点分发网络文件,每次分发网络文件时可以基于相同或不同的业务规则。The business coverage mentioned here refers to the business deployment planning, such as the areas involved in the business and the network nodes involved. Among them, the business coverage can be divided into multiple levels according to the business needs, and each level represents the corresponding business Coverage, the upper level covers the business coverage of the next level. The service coverage area can be a geographical area of a region or a cross-regional area. Network nodes under the same service coverage area usually undertake the same business function or service, and thus have the same service configuration requirements. The business rules mentioned here refer to distributing network files to network nodes in the corresponding business coverage area according to the business functions or services undertaken by the network nodes, and each distribution of network files may be based on the same or different business rules.

下面结合图2,对本发明实施例提供的网络文件分发流程进行描述。The following describes the network file distribution process provided by the embodiment of the present invention with reference to FIG. 2 .

参见图2,为本发明实施例提供的网络文件分发流程示意图,该流程主要包括:Referring to FIG. 2 , it is a schematic diagram of a network file distribution process provided by an embodiment of the present invention. The process mainly includes:

步骤201、根据业务覆盖范围配置网络文件分发树。Step 201, configure a network file distribution tree according to service coverage.

该步骤中,系统配置模块101根据业务覆盖范围配置的网络文件分发树包括根节点、叶子节点以及介于根节点和叶子节点之间的中间节点,中间节点可以包括一级也可以包括多级。其中,根节点用来描述业务覆盖的总范围;叶子节点用来描述网络节点信息,叶子节点描述的网络节点是分发的网络文件的接收端网络节点;中间节点用来描述业务覆盖总范围内的子范围。根节点下一层可定义若干个一级子范围节点作为中间节点,一个一级子范围节点下又可定义若干个二级子范围节点,以此方式递推,直到设定某节点为叶子节点为止。中间节点用来定义某个分级的子范围的属性,如业务覆盖范围描述;叶子节点用来定义接收网络文件的网络节点的属性,如网络节点地址、标识码、名称或所在地理区域等信息。从根节点到叶子节点的路径中所经过的节点描述的业务覆盖范围属性的叠加就是该叶子节点所属的业务覆盖范围属性。理论上,网络文件分发树的层次是可以无限扩展的,为业务规则定义和调整提供了基础。In this step, the network file distribution tree configured by the system configuration module 101 according to the service coverage includes a root node, a leaf node, and intermediate nodes between the root node and the leaf nodes. The intermediate nodes may include one level or multiple levels. Among them, the root node is used to describe the total scope of service coverage; the leaf node is used to describe the network node information, and the network node described by the leaf node is the receiving end network node of the distributed network file; the intermediate node is used to describe the network nodes within the total service coverage subrange. The layer below the root node can define several first-level sub-range nodes as intermediate nodes, and a number of second-level sub-range nodes can be defined under a first-level sub-range node, and iterates in this way until a certain node is set as a leaf node until. Intermediate nodes are used to define attributes of a hierarchical sub-range, such as service coverage descriptions; leaf nodes are used to define attributes of network nodes receiving network files, such as network node addresses, identification codes, names, or geographical regions. The superposition of the service coverage attributes described by the nodes passing through the path from the root node to the leaf node is the service coverage attribute to which the leaf node belongs. Theoretically, the hierarchy of the network file distribution tree can be expanded infinitely, which provides a basis for the definition and adjustment of business rules.

图3给出了一种网络文件分发树的结构示意。如图3所示,该网络文件分发树包括根节点301、中间节点302、303、306、308、309,以及叶子节点304、305、307、310。根节点301描述业务覆盖的总范围,该总范围内划分为多个一级子范围,图3中由中间节点302、308来描述一级子范围,一级子范围下又可划分为多个二级子范围,图3中由中间节点303、306、309来描述二级子范围,二级子范围下包括一个或多个网络节点,在图3中分别以节点304、305、307、310表示,节点304、305、307、310描述了相应网络节点的信息,网络节点信息可包括节点的网络地址或/和节点标识。Fig. 3 shows a structure diagram of a network file distribution tree. As shown in FIG. 3 , the network file distribution tree includes a root node 301 , intermediate nodes 302 , 303 , 306 , 308 , and 309 , and leaf nodes 304 , 305 , 307 , and 310 . The root node 301 describes the total scope of service coverage, which is divided into multiple first-level sub-scopes. In Figure 3, the intermediate nodes 302 and 308 describe the first-level sub-scope, and the first-level sub-scope can be divided into multiple Second-level sub-range, described by intermediate nodes 303, 306, 309 in Figure 3, the second-level sub-range includes one or more network nodes, in Figure 3 with nodes 304, 305, 307, 310 Indicates that the nodes 304, 305, 307, 310 describe the information of the corresponding network nodes, and the network node information may include the network addresses or/and node identifiers of the nodes.

步骤202、根据待分发网络文件所属的业务覆盖范围以及网络文件分发树,生成网络文件分发任务。Step 202: Generate a network file distribution task according to the service coverage area to which the network file to be distributed belongs and the network file distribution tree.

该步骤中,为了生成网络文件分发任务,可通过任务编排模块102,根据该次所采用的业务规则,即待分发网络文件所要到达的业务覆盖范围,从网络文件分发树中选择表示该范围的节点,然后执行网络文件分发任务生成指令,以生成网络文件分发任务单。从网络文件分发树中选择的节点可以是根节点,也可以是一个或多个中间节点,也可以是叶子节点,还可以包括中间节点和叶子节点。如果选择的是根节点,则待分发网络文件将被分发到根节点所表示的业务覆盖范围内的所有叶子节点;如果选择了中间节点,则待分发网络文件将被分发到该中间节点下的所有叶子节点;如果选择了叶子节点,则待分发网络文件将被直接分发到该叶子节点。这样,系统管理员就可以方便选择业务覆盖范围内的接收端,其管理和选择的粒度可以粗到根节点(即所有网络节点),并可以细到叶子节点(即一个网络节点),从而为根据业务分发网络文件的需要提供了方便的调整手段。In this step, in order to generate a network file distribution task, the task arrangement module 102 can be used to select the network file distribution tree representing the range according to the business rules adopted this time, that is, the business coverage to be reached by the network file to be distributed. The node then executes a network file distribution task generation instruction to generate a network file distribution task list. The node selected from the network file distribution tree may be a root node, or one or more intermediate nodes, or a leaf node, or may include intermediate nodes and leaf nodes. If the root node is selected, the network file to be distributed will be distributed to all leaf nodes within the service coverage indicated by the root node; if an intermediate node is selected, the network file to be distributed will be distributed to the All leaf nodes; if a leaf node is selected, the network file to be distributed will be directly distributed to the leaf node. In this way, the system administrator can conveniently select the receiving end within the service coverage, and the granularity of its management and selection can be as coarse as the root node (that is, all network nodes) and as fine as a leaf node (that is, a network node). Provides convenient adjustment means according to the needs of business distribution network files.

由于分发网络文件通常是以某个业务包为单元而不是一个具体文件为单元,因此,任务编排模块102提供任务单编排功能,来生成以业务包为单元的网络文件分发任务单。生成的网络文件分发任务单中包括以业务包为单元的待分发的网络文件列表和该网络文件列表中的文件的所有接收端网络节点信息(如网络节点的标识或网络地址)。网络文件列表中描述了待分发的网络文件的信息(如文件名称、文件大小、文件存储位置等),该列表中还可以包括业务使用信息(例如网络文件的播放时间等),具体包括哪些信息由业务系统需要来定义。网络文件分发任务单中还包括业务覆盖范围信息,该业务覆盖范围即为从网络文件分发树中所选择的节点所描述的业务覆盖范围。任务编排模块102将生成的网络文件分发任务单保存到指定存储位置,较佳地,网络文件分发任务存储到网络文件分发树中的所有叶子节点都能够访问到的网络节点,如全局可见的服务器。Since the distribution of network files is usually based on a service package rather than a specific file, the task arrangement module 102 provides a task order arrangement function to generate a network file distribution order based on a service package. The generated network file distribution task list includes a list of network files to be distributed in units of service packages and information of all receiving end network nodes (such as network node identifiers or network addresses) of files in the network file list. The network file list describes the information of the network file to be distributed (such as file name, file size, file storage location, etc.), and the list can also include service usage information (such as the playing time of the network file, etc.), which information is specifically included Defined by business system needs. The network file distribution task list also includes service coverage information, and the service coverage is the service coverage described by the node selected from the network file distribution tree. The task arrangement module 102 saves the generated network file distribution task list to a specified storage location. Preferably, the network file distribution task is stored in a network node accessible to all leaf nodes in the network file distribution tree, such as a globally visible server .

步骤203、网络文件分发任务中的网络节点根据该网络文件分发任务,发起文件访问请求。Step 203, the network node in the network file distribution task initiates a file access request according to the network file distribution task.

该步骤中,触发网络节点发起文件访问请求的方式有多种,本发明实施例提供了以下触发方式:In this step, there are multiple ways to trigger the network node to initiate a file access request, and the embodiment of the present invention provides the following triggering ways:

方式一:通过网络节点自动查询与自己相关的网络文件分发任务而触发,在该方式中,网络文件分发树中的所有叶子节点定期从存储有网络文件分发任务的网络节点查询网络文件分发任务,如果查询到某个或某些网络文件分发任务中包含的网络节点(即待分发的网络文件的接收端节点)包括该节点自身,则发起请求以访问该任务中的网络文件;Mode 1: Triggered by the network node automatically querying the network file distribution task related to itself. In this mode, all leaf nodes in the network file distribution tree periodically query the network file distribution task from the network node storing the network file distribution task. If the network node contained in one or some network file distribution tasks (that is, the receiving end node of the network file to be distributed) is found to include the node itself, a request is initiated to access the network file in the task;

方式二:通过网络文件分发系统发送的通知消息触发,在该方式中,任务编排模块102生成网络文件分发任务后发送通知到该任务中的网络节点,接收到该通知的网络节点发起请求以访问该任务中的网络文件。Method 2: Triggered by a notification message sent by the network file distribution system. In this method, the task arrangement module 102 generates a network file distribution task and then sends a notification to the network nodes in the task, and the network node that receives the notification initiates a request to access Network files in this task.

网络节点发起文件访问请求前,可根据网络文件分发任务生成网络文件下载任务,下载任务中包括文件列表,该文件列表所包括的文件与分发任务中的文件列表所包括的文件相同,然后根据下载策略在执行该下载任务时发起文件访问请求。Before the network node initiates a file access request, a network file download task can be generated according to the network file distribution task. The download task includes a file list, and the files included in the file list are the same as those included in the file list in the distribution task. The policy initiates a file access request when performing the download task.

步骤204、根据网络节点所发起的文件访问请求,将待分发的网络文件发送到该网络节点。Step 204: Send the network file to be distributed to the network node according to the file access request initiated by the network node.

该步骤中,文件分发模块103收到网络节点发起的文件访问请求后,按照任务单中所列的待分发文件名称以及源存储位置信息和发起请求的网络节点信息,从指定的源存储位置获取待分发的网络文件并将其发送到该网络节点。如果任务单在接收端网络节点的业务系统中也使用,则该任务单本身也可以作为一个文件任务放入分发任务单中,以便一起分发到接收端网络节点,对该任务单的处理方式和对该任务单中的待分发文件的处理方式一样。In this step, after the file distribution module 103 receives the file access request initiated by the network node, it obtains the file from the designated source storage location according to the name of the file to be distributed, the source storage location information, and the network node information that initiated the request listed in the task list. The network file to be distributed and sent to the network node. If the task order is also used in the business system of the receiving end network node, the task order itself can also be put into the distribution task order as a file task, so as to be distributed to the receiving end network node together. The processing method is the same for the documents to be distributed in the task order.

为了提高网络节点查询网络文件分发任务的效率,本发明实施例可进一步在生成网络文件分发任务后,为该任务生成索引记录,将该索引记录存储到索引表中,并将该索引表存储到网络文件分发树中的所有叶子节点都可访问到的网络节点。生成的索引记录包括对应的网络文件分发任务单的标识或/和访问地址,还包括该任务单所列出的网络节点信息(即网络文件的接收端节点的标识或/和网络地址等信息),索引记录中还可包括对应网络文件分发任务的业务覆盖范围(即在分发树中所选节点所表示的业务覆盖范围)信息。In order to improve the efficiency of network nodes querying network file distribution tasks, the embodiment of the present invention may further generate an index record for the task after generating the network file distribution task, store the index record in the index table, and store the index table in the A network node accessible to all leaf nodes in the network file distribution tree. The generated index record includes the identification or/and access address of the corresponding network file distribution task list, and also includes the network node information listed in the task list (ie, the identification or/and network address of the receiving end node of the network file, etc.) , the index record may also include information about the service coverage of the corresponding network file distribution task (that is, the service coverage represented by the selected node in the distribution tree).

相应的,在通过网络节点自动查询与自己相关的网络文件分发任务的触发方式中,网络节点所查询的对象是网络文件分发任务的索引记录,并在索引记录中包括对应网络文件分发任务的业务覆盖范围信息时,可根据该信息初步判断该节点自身是否属于该业务覆盖范围,如果是,再根据索引表所包含的网络节点信息进一步判断,否则,就可以不用根据索引表所包含的网络节点信息做判断。由于索引记录中可能包括大量的网络节点信息,如果一一比较会占用较多系统资源,通过上述进行初步判断的方式可减少系统资源的占用,从而提高查询效率。Correspondingly, in the triggering method of automatically querying the network file distribution tasks related to itself through the network nodes, the query object of the network nodes is the index record of the network file distribution task, and the index record includes the business of the corresponding network file distribution task In case of coverage information, it can be preliminarily judged based on the information whether the node itself belongs to the coverage of the service, and if so, further judgment can be made based on the network node information contained in the index table; information to make judgments. Since index records may contain a large amount of network node information, more system resources will be occupied if one-to-one comparison is performed. The above method of preliminary judgment can reduce the occupation of system resources, thereby improving query efficiency.

在配置网络文件分发树时,还可以为每个树节点分配节点ID,其中,下级节点ID根据其上级节点ID设置,以包含其上级节点所代表的业务覆盖范围,这样,叶子节点的ID就可以表示出从根节点到该叶子节点所经过的路径,即表明该叶子节点的业务覆盖范围以及该叶子节点在网络文件分发树中的位置。相应的,索引记录中可包括网络文件的接收端节点在网络文件分发树中的节点ID,这样,网络节点在查询索引记录时,就可以利用节点ID所表明的网络文件分发树中的位置以及对应的业务覆盖范围,初步判断该节点自身是否属于该业务覆盖范围,从而提高查询效率。When configuring the network file distribution tree, you can also assign a node ID to each tree node, wherein the ID of the lower node is set according to the ID of the upper node to include the service coverage represented by the upper node. In this way, the ID of the leaf node is The path from the root node to the leaf node can be indicated, that is, the service coverage of the leaf node and the position of the leaf node in the network file distribution tree can be indicated. Correspondingly, the index record may include the node ID of the receiving end node of the network file in the network file distribution tree, so that when the network node queries the index record, it can use the position in the network file distribution tree indicated by the node ID and According to the corresponding service coverage, it is preliminarily judged whether the node itself belongs to the service coverage, so as to improve the query efficiency.

上述流程中,为了减少对同一网络文件分发任务的重复请求,以便减少网络负载,本发明实施例可进一步在网络文件分发任务单中或者相应的索引记录中增加网络文件分发任务的生成时间,相应的,在网络节点生成下载任务后对应记录相应的网络文件分发任务的生成时间。这样,当网络节点根据该生成时间判断该网络节点未生成相应的网络文件下载任务时(如该网络节点中最新生成的下载任务所对应的生成时间早于该网络节点查询到的网络文件分发任务的生成时间)再发起访问请求,从而避免了对已经下载完成的网络文件分发任务再次发起访问请求。In the above process, in order to reduce repeated requests for the same network file distribution task, so as to reduce network load, the embodiment of the present invention can further increase the generation time of the network file distribution task in the network file distribution task list or the corresponding index record, and correspondingly Yes, after the network node generates the download task, correspondingly record the generation time of the corresponding network file distribution task. In this way, when the network node judges that the network node has not generated a corresponding network file download task according to the generation time (such as the generation time corresponding to the latest generated download task in the network node is earlier than the network file distribution task queried by the network node generation time) to initiate an access request again, thereby avoiding re-initiating an access request for a network file distribution task that has been downloaded.

本发明实施例的上述流程中,一旦根据业务覆盖范围建立起网络文件分发树后,在业务覆盖范围不改变的情况下,每次分发网络文件时,都可以基于该网络文件分发树以及该次的业务规则选择合适的业务覆盖范围进行分发,从而当业务规则变化时,只要通过在网络文件分发树中重新选择相适应的树节点来配置分发范围,从而使得文件分发配置过程简单便捷,进而可提高网络文件分发效率。In the above process of the embodiment of the present invention, once the network file distribution tree is established according to the service coverage, if the service coverage does not change, each time the network file is distributed, it can be based on the network file distribution tree and the time According to the business rules, select the appropriate business coverage for distribution, so that when the business rules change, you only need to re-select the appropriate tree node in the network file distribution tree to configure the distribution range, so that the file distribution configuration process is simple and convenient, and then you can Improve network file distribution efficiency.

当业务覆盖范围需要改变时,可根据新的业务覆盖范围建立网络文件分发树,并基于该新建立起的网络文件分发树进行网络文件的分发。还可以预先根据不同的业务覆盖范围建立不同的网络文件分发树,在进行网络文件分发时,选择相应的网络文件分发树,并基于该选择出的网络文件分发树进行网络文件的分发。When the service coverage needs to be changed, a network file distribution tree can be established according to the new service coverage, and network files can be distributed based on the newly established network file distribution tree. It is also possible to establish different network file distribution trees in advance according to different business coverage areas, select the corresponding network file distribution tree when distributing network files, and distribute network files based on the selected network file distribution tree.

本发明实施例的网络文件分发系统还提供网络文件分发树的修改、删除、更新等功能。系统管理员可以根据业务覆盖范围的变化情况,通过系统配置模块101修改已经建立的网络文件分发树。当系统管理员需要根据新增设的业务网络节点修改网络文件分发树时,可在网络文件分发树的任何一层通过添加同层节点,以扩充某个级别的业务覆盖范围,或通过添加下层节点,以增加业务覆盖范围级别的深度。在添加节点时,如果添加的节点不是叶子节点,则添加下层节点意味着以该新增的节点为根节点添加了一棵子树。在删除节点时,如果被删除的节点不是叶子节点,则删除操作则意味着删除以该节点为根的一棵子树。更新操作是指修改某节点的属性描述信息。The network file distribution system in the embodiment of the present invention also provides functions such as modification, deletion, and update of the network file distribution tree. The system administrator can modify the established network file distribution tree through the system configuration module 101 according to the change of the service coverage. When the system administrator needs to modify the network file distribution tree according to the newly added business network nodes, he can expand the service coverage of a certain level by adding nodes of the same layer at any layer of the network file distribution tree, or by adding the lower layer nodes to increase the depth of business coverage levels. When adding a node, if the added node is not a leaf node, adding a lower node means adding a subtree with the newly added node as the root node. When deleting a node, if the deleted node is not a leaf node, the deletion operation means deleting a subtree rooted at the node. The update operation refers to modifying the attribute description information of a node.

上述系统可主要通过软件方式实现,其中,系统配置模块101可提供用户交互界面,通过该界面系统管理员可配置网络文件分发树,配置网络文件的操作可包括创建、修改、删除、更新等操作。任务编排模块102也可提供用户交互界面,通过该界面系统管理员可选择待分发的网络文件,并根据配置的网络文件分发树选择这些待分发的文件的目的网络节点,从而生成网络文件分发任务,如,选择待分发的网络文件后,通过从网络文件分发树中选择一个或多个节点以选择任务单的分发范围,然后通过执行生成任务单的命令,根据待分发的网络文件和选择的节点所代表的业务覆盖范围生成网络文件分发任务单。The above-mentioned system can be realized mainly through software, wherein, the system configuration module 101 can provide a user interaction interface, through which the system administrator can configure the network file distribution tree, and the operation of configuring network files can include creating, modifying, deleting, updating and other operations . The task arrangement module 102 can also provide a user interaction interface, through which the system administrator can select the network files to be distributed, and select the destination network nodes of these files to be distributed according to the configured network file distribution tree, thereby generating a network file distribution task , for example, after selecting the network file to be distributed, select one or more nodes from the network file distribution tree to select the distribution scope of the task order, and then execute the command to generate the task order, according to the network file to be distributed and the selected The business coverage represented by the node generates a network file distribution task list.

本发明的上述实施例可结合P2P网络的数据共享机制使用,或者应用于P2P网络。将本发明的实施例应用于P2P网络架构或结合P2P网络的数据共享机制使用时,用户的数据访问客户端(也可称为网络节点)登陆数据访问系统后,可通过前述触发方式自动发起文件访问请求。并且,可以利用P2P网络的数据共享机制,根据网络文件分发任务单中所列出的网络节点信息(如网络文件接收端节点的地址或/和标识),建立数据共享连接,使发起文件访问请求的客户端节点可以从与其对等的、属于同一网络文件分发任务的其他客户端节点获取网络文件。由于属于同一网络文件分发任务的客户端节点通常被分发相同的网络文件,因此,根据网络文件分发任务单并利用P2P网络的数据共享机制建立数据共享连接,可以有针对性地为请求数据访问的网络节点提供持续的数据访问服务,并可以提高网络文件分发效率、减少服务器端的负载。The above-mentioned embodiments of the present invention can be used in conjunction with the data sharing mechanism of the P2P network, or applied to the P2P network. When the embodiment of the present invention is applied to the P2P network architecture or used in conjunction with the data sharing mechanism of the P2P network, after the user's data access client (also called a network node) logs into the data access system, it can automatically initiate file access request. Moreover, the data sharing mechanism of the P2P network can be used to establish a data sharing connection according to the network node information (such as the address or/and identification of the network file receiving end node) listed in the network file distribution task list, so that the file access request can be initiated. The client node of can obtain network files from other client nodes that are peers and belong to the same network file distribution task. Since the client nodes belonging to the same network file distribution task are usually distributed with the same network file, therefore, according to the network file distribution task list and using the data sharing mechanism of the P2P network to establish a data sharing connection, it can be targeted for those requesting data access. Network nodes provide continuous data access services, and can improve the efficiency of network file distribution and reduce server-side load.

综上所述,本发明实施例通过以业务覆盖范围建立网络文件分发树,并根据业务规则配置网络文件的分发范围,从而生成网络文件分发任务,可简化网络文件分发的配置操作以及提高网络文件分发配置的灵活性;通过网络节点根据网络文件分发任务自动发起文件访问请求,可实现网络文件分发的自动化、提高网络文件分发效率;以网络文件分发任务单为依据并通过基于P2P网络的数据共享机制分发网络文件,可减轻网络负载、减少网络文件发送端的带宽资源需求、提高文件传输效率。In summary, the embodiment of the present invention establishes a network file distribution tree based on business coverage, and configures the distribution range of network files according to business rules, thereby generating a network file distribution task, which can simplify the configuration operation of network file distribution and improve network file distribution. The flexibility of distribution configuration; through network nodes to automatically initiate file access requests according to network file distribution tasks, it can realize the automation of network file distribution and improve the efficiency of network file distribution; based on the network file distribution task list and through data sharing based on P2P network The mechanism distributes network files, which can reduce network load, reduce bandwidth resource requirements of network file senders, and improve file transfer efficiency.

需要说明的是,本发明实施例所述的网络文件分发系统的功能模块划分方式并不是唯一方式,上述3个功能模块任何形式的组合,或者能够完成相同功能但与上述功能模块名称不同的情况,都应该在本发明的保护范围之内。It should be noted that the method of dividing the functional modules of the network file distribution system described in the embodiment of the present invention is not the only way, any combination of the above three functional modules, or the situation that the same function can be completed but the names of the above functional modules are different , should be within the protection scope of the present invention.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应包涵在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present invention can easily think of changes or Replacement should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (16)

1.一种网络文件分发方法,其特征在于,预先根据业务覆盖范围配置网络文件分发树,所述网络文件分发树的叶子节点表示网络节点,其他节点表示业务覆盖范围且其中的下级节点对应的业务覆盖范围在其上级节点对应的业务覆盖范围内;当有网络文件需要分发时,执行以下步骤:1. A network file distribution method, characterized in that the network file distribution tree is configured in advance according to the service coverage, the leaf nodes of the network file distribution tree represent network nodes, other nodes represent service coverage and the corresponding subordinate nodes therein The service coverage is within the service coverage corresponding to its superior node; when there are network files to be distributed, perform the following steps: 从所述网络文件分发树中选择与该网络文件所属的业务覆盖范围相应的节点并生成网络文件分发任务,该任务中包括待分发的网络文件的列表以及所选节点对应的业务覆盖范围内的所有网络节点的信息;Select a node corresponding to the service coverage area to which the network file belongs from the network file distribution tree and generate a network file distribution task, which includes a list of network files to be distributed and the service coverage area corresponding to the selected node Information of all network nodes; 根据所述网络文件分发任务中的网络节点所发起的文件访问请求,将该任务中的网络文件发送到该网络节点。According to the file access request initiated by the network node in the network file distribution task, the network file in the task is sent to the network node. 2.如权利要求1所述的方法,其特征在于,生成网络文件分发任务后,还包括:将该任务存储到网络文件分发树中的所有叶子节点都能够访问的网络节点;2. The method according to claim 1, further comprising: storing the task into a network node accessible to all leaf nodes in the network file distribution tree after the network file distribution task is generated; 所述网络文件分发任务中的网络节点发起文件访问请求,包括:The network node in the network file distribution task initiates a file access request, including: 网络文件分发树中的所有叶子节点定期从存储有网络文件分发任务的网络节点查询网络文件分发任务,并当查询到向包括自己在内的网络节点分发网络文件的任务时,发起请求以访问该任务中的网络文件;All leaf nodes in the network file distribution tree regularly query network file distribution tasks from network nodes that store network file distribution tasks, and when they find out the task of distributing network files to network nodes including themselves, initiate a request to access the Network files in tasks; 或者,生成网络文件分发任务后发送通知到该任务中的网络节点,接收到该通知的网络节点发起请求以访问该任务中的网络文件。Alternatively, after the network file distribution task is generated, a notification is sent to the network nodes in the task, and the network node receiving the notification initiates a request to access the network file in the task. 3.如权利要求2所述的方法,其特征在于,所述网络文件分发任务中还包括该任务的生成时间;发起请求以访问该任务中的网络文件,包括:3. The method according to claim 2, wherein the network file distribution task also includes the generation time of the task; initiating a request to access the network file in the task includes: 当根据所述网络文件分发任务的生成时间判断所述网络节点未生成相应的网络文件下载任务时,发起所述请求。When it is judged according to the generation time of the network file distribution task that the network node has not generated a corresponding network file download task, the request is initiated. 4.如权利要求1所述的方法,其特征在于,生成网络文件分发任务后,还包括:生成所述网络文件分发任务的索引信息,并将该索引信息存储到网络文件分发树中的所有叶子节点都能够访问的网络节点,所述索引信息包括对应网络文件分发任务的标识或访问地址,以及该任务中的网络节点信息;4. The method according to claim 1, further comprising: generating index information of the network file distribution task after generating the network file distribution task, and storing the index information in all the network file distribution tree A network node that can be accessed by leaf nodes, the index information includes the identification or access address of the corresponding network file distribution task, and the network node information in the task; 所述网络文件分发任务中的网络节点发起文件访问请求,包括:The network node in the network file distribution task initiates a file access request, including: 网络文件分发树中的所有叶子节点定期从存储有网络文件分发任务索引信息的网络节点查询索引信息,并当查询到自己属于索引信息中的网络节点时,根据索引信息中的标识或访问地址发起请求以访问对应的网络文件分发任务中的网络文件;All the leaf nodes in the network file distribution tree regularly query the index information from the network nodes that store the index information of the network file distribution task, and when they find out that they belong to the network nodes in the index information, they initiate Request to access the network files in the corresponding network file distribution task; 或者,生成网络文件分发任务后发送通知到该索引信息中的网络节点,接收到该通知的网络节点根据相应索引信息中的网络文件分发任务单的标识或访问地址发起请求以访问对应的网络文件分发任务中的网络文件。Alternatively, after generating the network file distribution task, a notification is sent to the network node in the index information, and the network node receiving the notification initiates a request to access the corresponding network file according to the identifier or access address of the network file distribution task list in the corresponding index information Network files in distribution tasks. 5.如权利要求4所述的方法,其特征在于,索引信息中还包括对应网络文件分发任务中的网络节点的业务覆盖范围信息;网络文件分发树中的叶子节点查询索引信息时,首先根据该业务覆盖范围信息判断自己是否属于该业务覆盖范围,并当判断为是时,才查询自己是否属于索引信息中的网络节点;5. The method according to claim 4, wherein the index information also includes the service coverage information of the network nodes in the corresponding network file distribution task; when the leaf nodes in the network file distribution tree query the index information, first according to The service coverage information judges whether the self belongs to the service coverage, and only inquires whether the self belongs to the network node in the index information when the judgment is yes; 或者,所述索引信息中还包括对应网络文件分发任务中的网络节点在网络文件分发树中的节点标识,所述节点标识表明该节点在网络分发树中的位置;网络文件分发树中的叶子节点查询索引信息时,首先根据该节点标识判断自己是否属于该业务覆盖范围,并当判断为是时,才查询自己是否属于索引信息中的网络节点。Or, the index information also includes the node identifier of the network node in the network file distribution tree corresponding to the network file distribution task, and the node identifier indicates the position of the node in the network distribution tree; the leaf in the network file distribution tree When a node queries index information, it first judges whether it belongs to the service coverage area according to the node identifier, and only inquires whether it belongs to the network node in the index information when the judgment is yes. 6.如权利要求4所述的方法,其特征在于,所述索引信息中还包括对应网络文件分发任务的生成时间;发起请求以访问对应的网络文件分发任务中的网络文件,包括:6. The method according to claim 4, wherein the index information also includes the generation time of the corresponding network file distribution task; initiating a request to access the network file in the corresponding network file distribution task includes: 当根据所述网络文件分发任务的生成时间判断所述网络节点未生成相应的网络文件下载任务时,发起所述请求。When it is judged according to the generation time of the network file distribution task that the network node has not generated a corresponding network file download task, the request is initiated. 7.如权利要求3或6所述的方法,其特征在于,所述网络节点记录有网络文件下载任务所对应的网络文件分发任务的生成时间;根据所述生成时间判断所述网络节点未生成相应的网络文件下载任务,具体为:7. The method according to claim 3 or 6, wherein the network node records the generation time of the network file distribution task corresponding to the network file download task; according to the generation time, it is judged that the network node has not generated The corresponding network file download task is as follows: 如果所述网络节点的网络文件下载任务所对应的网络文件分发任务的生成时间晚于该网络节点查询到的网络文件分发任务的生成时间,则所述网络节点认为未为查询到的网络文件分发任务生成网络文件下载任务;If the generation time of the network file distribution task corresponding to the network file download task of the network node is later than the generation time of the network file distribution task queried by the network node, the network node considers that the queried network file distribution task is not The task generates a network file download task; 当判断所述网络节点未生成相应的网络文件下载任务时,发起所述请求,包括:When judging that the network node does not generate a corresponding network file download task, initiating the request includes: 所述网络节点判断未生成相应的网络文件下载任务时,根据相应的网络文件分发任务生成网络文件下载任务并对应记录所述网络文件分发任务的生成时间,所述下载任务中的网络文件列表与所述网络文件分发任务中的网络文件列表所包括的网络文件相同;When the network node judges that no corresponding network file download task is generated, a network file download task is generated according to the corresponding network file distribution task and correspondingly records the generation time of the network file distribution task, and the network file list in the download task is the same as The network files included in the network file list in the network file distribution task are the same; 该网络节点根据网络文件下载策略发起文件访问请求以请求下载所述下载任务的网络文件列表中的网络文件。The network node initiates a file access request according to the network file download policy to request to download the network file in the network file list of the download task. 8.如权利要求1所述的方法,其特征在于,将所述网络文件分发任务中的网络文件发送到所述网络节点,具体为:8. The method according to claim 1, wherein the network file in the network file distribution task is sent to the network node, specifically: 通过保存有所述网络文件分发任务中的网络文件的服务器或/和所述网络文件分发任务中的其他网络节点,将所述网络文件发送到发起文件访问请求的网络节点。The network file is sent to the network node that initiates the file access request through the server storing the network file in the network file distribution task or/and other network nodes in the network file distribution task. 9.如权利要求8所述的方法,其特征在于,通过所述网络文件分发任务中其他网络节点,将所述网络文件发送到发起文件访问请求的网络节点,包括:9. The method according to claim 8, wherein the network file is sent to the network node that initiates the file access request through other network nodes in the network file distribution task, comprising: 根据所述网络文件分发任务中的网络节点信息,利用对等网络数据共享机制,建立所述网络节点与发起文件访问请求的网络节点的连接;Establishing a connection between the network node and the network node that initiated the file access request by using a peer-to-peer network data sharing mechanism according to the network node information in the network file distribution task; 与发起文件访问请求的网络节点建立起连接的网络节点将其保存的所述网络文件发送到发起文件访问请求的网络节点。The network node that establishes a connection with the network node that initiates the file access request sends the network file stored by it to the network node that initiates the file access request. 10.如权利要求1所述的方法,其特征在于,配置所述网络文件分发树后,还包括:根据业务覆盖范围的变化,更新所述网络文件分发树。10. The method according to claim 1, further comprising: after configuring the network file distribution tree, updating the network file distribution tree according to changes in service coverage. 11.一种网络文件分发系统,其特征在于,包括:11. A network file distribution system, characterized in that, comprising: 系统配置模块,用于预先根据业务覆盖范围配置网络文件分发树,所述网络文件分发树的叶子节点表示网络节点,其他节点表示业务覆盖范围且其中的下级节点对应的业务覆盖范围在其上级节点对应的业务覆盖范围内;The system configuration module is used to configure the network file distribution tree according to the service coverage in advance, the leaf nodes of the network file distribution tree represent network nodes, other nodes represent the service coverage and the service coverage corresponding to the lower nodes is in its upper node Within the corresponding business coverage; 任务编排模块,用于当有网络文件需要分发时,从所述网络文件分发树中选择与该网络文件所属的业务覆盖范围相应的节点并生成网络文件分发任务,该任务中包括待分发的网络文件的列表以及所选节点对应的业务覆盖范围内的所有网络节点的信息;The task arrangement module is used to select a node corresponding to the service coverage area to which the network file belongs from the network file distribution tree when there is a network file to be distributed, and generate a network file distribution task, which includes the network file to be distributed A list of files and information of all network nodes within the service coverage corresponding to the selected node; 文件分发模块,用于根据所述网络文件分发任务中的网络节点所发起的文件访问请求,将该任务中的网络文件发送到该网络节点。The file distribution module is configured to send the network file in the task to the network node according to the file access request initiated by the network node in the network file distribution task. 12.如权利要求11所述的系统,其特征在于,所述任务编排模块生成网络文件分发任务后,还用于将该任务存储到网络文件分发树中的所有叶子节点都能够访问的网络节点,以使网络文件分发树中的所有叶子节点定期从存储有网络文件分发任务的网络节点查询网络文件分发任务,并当查询到向包括自己在内的网络节点分发网络文件的任务时,发起请求以访问该任务中的网络文件;12. The system according to claim 11, wherein after the task arrangement module generates the network file distribution task, it is further configured to store the task in a network node accessible to all leaf nodes in the network file distribution tree , so that all the leaf nodes in the network file distribution tree periodically query the network file distribution task from the network nodes storing the network file distribution task, and when they find out the task of distributing network files to network nodes including themselves, initiate a request to access the network files in the task; 或者,所述任务编排模块生成网络文件分发任务后,还用于发送通知到该任务中的网络节点,以使接收到该通知的网络节点发起请求以访问该任务中的网络文件。Alternatively, after the task arrangement module generates the network file distribution task, it is further configured to send a notification to the network nodes in the task, so that the network nodes receiving the notification initiate a request to access the network file in the task. 13.如权利要求12所述的系统,其特征在于,所述任务编排模块生成的网络文件分发任务中还包括该任务的生成时间,以使网络节点在发起请求之前根据所述网络文件分发任务的生成时间判断所述网络节点是否生成相应的网络文件下载任务,并在判断出未生成时发起所述请求。13. The system according to claim 12, wherein the network file distribution task generated by the task arrangement module also includes the generation time of the task, so that the network node distributes the task according to the network file before initiating a request The generation time determines whether the network node generates a corresponding network file download task, and initiates the request when it is judged that it has not been generated. 14.如权利要求13所述的系统,其特征在于,所述任务编排模块生成网络文件分发任务后,还用于生成所述网络文件分发任务的索引信息,并将该索引信息存储到网络文件分发树中的所有叶子节点都能够访问的网络节点,所述索引信息包括对应网络文件分发任务的标识或访问地址,以及该任务中的网络节点信息,以使网络文件分发树中的所有叶子节点定期从存储有网络文件分发任务索引信息的网络节点查询索引信息,并当查询到自己属于索引信息中的网络节点时,根据索引信息中的标识或访问地址发起请求以访问对应的网络文件分发任务中的网络文件;14. The system according to claim 13, wherein after the task arrangement module generates the network file distribution task, it is further configured to generate index information of the network file distribution task, and store the index information in the network file A network node that all leaf nodes in the distribution tree can access, the index information includes the identification or access address of the corresponding network file distribution task, and the network node information in the task, so that all leaf nodes in the network file distribution tree Regularly query the index information from the network nodes that store the index information of the network file distribution task, and when the query finds that it belongs to the network node in the index information, initiate a request to access the corresponding network file distribution task according to the identification or access address in the index information network files in; 或者,所述任务编排模块生成网络文件分发任务后,还用于生成网络文件分发任务索引信息,并发送通知到该索引信息中的网络节点,以使接收到该通知的网络节点根据索引信息中的标识或访问地址发起请求以访问对应的网络文件分发任务中的网络文件。Alternatively, after the task arrangement module generates the network file distribution task, it is also used to generate the network file distribution task index information, and send a notification to the network nodes in the index information, so that the network nodes that receive the notification The ID or access address of the ID or access address initiates a request to access the network file in the corresponding network file distribution task. 15.如权利要求14所述的系统,其特征在于,所述任务编排模块生成的索引信息中还包括对应网络文件分发任务的生成时间,以使网络节点在发起请求之前,根据所述网络文件分发任务的生成时间判断所述网络节点是否生成相应的网络文件下载任务,并在判断出未生成时发起所述请求。15. The system according to claim 14, wherein the index information generated by the task arrangement module also includes the generation time of the corresponding network file distribution task, so that the network node can, according to the network file before initiating a request, The generation time of the distribution task judges whether the network node generates the corresponding network file download task, and initiates the request when it is judged that it has not been generated. 16.如权利要求11所述的系统,其特征在于,所述系统配置模块配置所述网络文件分发树后,还用于根据业务覆盖范围的变化,更新所述网络文件分发树。16. The system according to claim 11, wherein after the system configuration module configures the network file distribution tree, it is further configured to update the network file distribution tree according to changes in service coverage.
CN2009100847765A 2009-05-19 2009-05-19 A network file distribution method and system thereof Expired - Fee Related CN101557421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009100847765A CN101557421B (en) 2009-05-19 2009-05-19 A network file distribution method and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009100847765A CN101557421B (en) 2009-05-19 2009-05-19 A network file distribution method and system thereof

Publications (2)

Publication Number Publication Date
CN101557421A CN101557421A (en) 2009-10-14
CN101557421B true CN101557421B (en) 2012-02-01

Family

ID=41175363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009100847765A Expired - Fee Related CN101557421B (en) 2009-05-19 2009-05-19 A network file distribution method and system thereof

Country Status (1)

Country Link
CN (1) CN101557421B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904910A (en) * 2011-07-25 2013-01-30 中兴通讯股份有限公司 Method and system for distributing contents in distributed network
CN103581141B (en) * 2012-08-03 2017-02-08 青岛稻谷智创网络科技有限公司 Content publishing system and content publishing method
CN105630966B (en) * 2015-12-24 2019-04-16 上海爱数信息技术股份有限公司 It is a kind of based on document share index document quickly search device and method
CN109889570B (en) * 2019-01-04 2021-04-27 四川虹美智能科技有限公司 Equipment information distribution system and method
CN112422305B (en) * 2019-08-21 2023-08-01 南京中兴新软件有限责任公司 Upgrading method and device of communication equipment
CN115099935A (en) * 2022-06-27 2022-09-23 中国银行股份有限公司 Data management method and device, electronic equipment and computer storage medium
CN115297175B (en) * 2022-06-29 2024-12-20 北京达佳互联信息技术有限公司 Data distribution method, device, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1596524A (en) * 2001-10-03 2005-03-16 高通股份有限公司 Method and apparatus for data packet transport in a wireless communication system using an internet protocol
CN101188569A (en) * 2006-11-16 2008-05-28 饶大平 Method for constructing data quanta space in network and distributed file storage system
CN101395602A (en) * 2005-12-29 2009-03-25 亚马逊科技公司 Method and apparatus for a distributed file storage and indexing service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1596524A (en) * 2001-10-03 2005-03-16 高通股份有限公司 Method and apparatus for data packet transport in a wireless communication system using an internet protocol
CN101395602A (en) * 2005-12-29 2009-03-25 亚马逊科技公司 Method and apparatus for a distributed file storage and indexing service
CN101188569A (en) * 2006-11-16 2008-05-28 饶大平 Method for constructing data quanta space in network and distributed file storage system

Also Published As

Publication number Publication date
CN101557421A (en) 2009-10-14

Similar Documents

Publication Publication Date Title
CN101557421B (en) A network file distribution method and system thereof
CN101150421B (en) A distributed content distribution method, edge server and content distribution network
CN101500022B (en) Data access resource allocation method, system and equipment therefor
CN113596110B (en) Cloud primary micro-service platform oriented to heterogeneous cloud
Tang et al. QoS-aware replica placement for content distribution
US8195742B2 (en) Distributed client services based on execution of service attributes and data attributes by multiple nodes in resource groups
EP1130869B1 (en) Management of user profile data
EP2230802B1 (en) A method and apparatus for maintaining route information
CN101404585B (en) Policy system and method for implementing content distribution network content management
CN109995641B (en) Information processing method, computing node and storage medium
US20170142024A1 (en) Orchestrating physical and virtual resources for delivering digital contents
CN102045353B (en) Distributed network security control method of public cloud service
CN111176788A (en) Method and system for deploying main nodes of Kubernetes cluster
CN102118370B (en) Service management method, device and system
JP5848339B2 (en) Leader arbitration for provisioning services
CN109005433B (en) A kind of video cloud service platform architecture and implementation method
CN104022911A (en) Content route managing method of fusion type content distribution network
US9760370B2 (en) Load balancing using predictable state partitioning
CN109314721A (en) Management of multiple clusters of distributed file systems
CN106899639A (en) The acquisition methods of data resource, index server and communication system
CN112019577B (en) Exclusive cloud storage implementation method and device, computing equipment and computer storage medium
WO2022257791A1 (en) Service code processing method and apparatus based on distributed network, and device and medium
EP2126718A1 (en) Method and system for a context manager for a converged services framework
EP2433412B1 (en) Limiting storage messages in peer to peer network
JPH11232201A (en) Communication resource control device

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
ASS Succession or assignment of patent right

Free format text: FORMER OWNER: BEIDA FANGZHENG ELECTRONICS CO., LTD., BEIJING

Effective date: 20131101

Owner name: XIN'AOTE(BEIJING) VIDEO TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: BEIDA FANGZHENG GROUP CO. LTD.

Effective date: 20131101

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100871 HAIDIAN, BEIJING TO: 100080 HAIDIAN, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20131101

Address after: Newauto Technology Building No. 49 Beijing 100080 Haidian District Wukesong Road

Patentee after: China Digital Video (Beijing) Limited

Address before: 100871 Beijing, Haidian District into the house road, founder of the building on the 9 floor, No. 298

Patentee before: Peking Founder Group Co., Ltd.

Patentee before: Beida Fangzheng Electronics Co., Ltd., Beijing

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

Granted publication date: 20120201

Termination date: 20170519