WO2022267692A1 - Data processing method, file service system, terminal device, and storage medium - Google Patents

Data processing method, file service system, terminal device, and storage medium Download PDF

Info

Publication number
WO2022267692A1
WO2022267692A1 PCT/CN2022/090046 CN2022090046W WO2022267692A1 WO 2022267692 A1 WO2022267692 A1 WO 2022267692A1 CN 2022090046 W CN2022090046 W CN 2022090046W WO 2022267692 A1 WO2022267692 A1 WO 2022267692A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
data
file
information
segment
Prior art date
Application number
PCT/CN2022/090046
Other languages
French (fr)
Chinese (zh)
Inventor
叶在伟
曾伟
刘超
孔伟
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022267692A1 publication Critical patent/WO2022267692A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms
    • H04L67/1078Resource delivery mechanisms
    • H04L67/108Resource delivery mechanisms characterised by resources being split in blocks or fragments

Definitions

  • the embodiments of the present application relate to but are not limited to the communication field, and in particular, relate to a data processing method, a file service system, a terminal device, and a storage medium.
  • the current 5G message system provides a unified traditional C/S mode.
  • the 5G message system mainly provides chat modes in three scenarios: single chat, group chat, and group sending.
  • the 5G message system uniformly adopts the C/S mode to provide file acquisition services to the terminal.
  • Embodiments of the present application provide a data processing method, a file service system, a terminal device, and a storage medium.
  • an embodiment of the present application provides a data processing method applied to a file service system, including: obtaining a first file download request when the number of concurrent download connections of the file service system reaches a connection threshold, and the The first file download request indicates that the first node applies to the file service system for downloading a file, and the file includes at least one data segment; assigns a second node to the first node according to the first file download request, so that all The first node acquires and downloads the data segment required by the first node through the second node.
  • the embodiment of the present application also provides a data processing method applied to the first node, including: obtaining node information from the second node allocated by the file service system, the second node is the node that has downloaded the The node of the data segment that the first node needs to download; send a second file download request to the second node according to the node information of the second node, so as to obtain the required download through the second node data fragment.
  • the embodiment of the present application also provides a data processing method applied to the second node, including: obtaining the second file download request sent from the first node, and the second file download request is sent to the The first node acquires a request for the data segment to be downloaded, and the sending object of the second file download request is allocated by the file service system when the number of concurrent download connections of the file service system reaches the connection threshold; according to the second A file download request sends the data segment to the first node.
  • the embodiment of the present application also provides a file service system, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the computer program when executing the computer program.
  • a file service system including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the computer program when executing the computer program.
  • the embodiment of the present application also provides a terminal device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the first step when executing the computer program.
  • a terminal device including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the first step when executing the computer program.
  • the embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the data processing method described in the first aspect, or execute the second aspect The data processing method described in the third aspect, or execute the data processing method described in the third aspect.
  • FIG. 1 is a schematic diagram of a system architecture for executing a data processing method provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a data processing method on the file service system side provided by an embodiment of the present application
  • FIG. 3 is a flow chart of generating a first data node list in a data processing method on the file service system side provided by an embodiment of the present application;
  • FIG. 4 is a flow chart of allocating a second node in the data processing method on the file service system side provided by an embodiment of the present application;
  • FIG. 5 is another flow chart of allocating a second node in the data processing method on the file service system side provided by an embodiment of the present application;
  • FIG. 6 is a flow chart of generating a second data node list in the data processing method on the file service system side provided by an embodiment of the present application;
  • FIG. 7 is another flow chart of allocating a second node in the data processing method on the file service system side provided by an embodiment of the present application.
  • FIG. 8 is a flowchart of a data processing method on the first node side provided by an embodiment of the present application.
  • FIG. 9 is a flow chart of processing downloaded data segments in a data processing method on the first node side provided by an embodiment of the present application.
  • FIG. 10 is a flowchart of a data processing method on the second node side provided by an embodiment of the present application.
  • FIG. 11 is a flow chart of processing downloaded data segments in a data processing method on the second node side provided by an embodiment of the present application.
  • Fig. 12 is a flowchart of a data processing method based on a system architecture platform provided by an embodiment of the present application
  • Fig. 13 is a schematic diagram of a file service system provided by an embodiment of the present application.
  • Fig. 14 is a schematic diagram of a terminal device provided by an embodiment of the present application.
  • An embodiment of the present application provides a data processing method, a file service system, a terminal device, and a storage medium.
  • the data processing method includes but is not limited to the following steps: when the number of concurrent download connections of the file service system reaches the connection threshold, obtain The first file download request, the first file download request indicates that the first node applies to the file service system for downloading the file, and the file includes at least one data segment; according to the first file download request, the second node is allocated to the first node, so that the first node The download data segment required by the first node is acquired through the second node.
  • the file service system when the number of concurrent download connections of the file service system reaches the connection threshold, the file service system cannot provide the download service to the first node, then the file service system can send the file service system to the second node according to the first file download request.
  • a node allocates the second node that has downloaded the data segment that the first node needs to download, so that the first node obtains the downloaded data segment required by the first node through the second node, because the embodiment of this technical solution can distribute the second node Providing data segment download services for the first node can solve the problem that the file service system cannot provide download services for the first node when the number of concurrent download connections reaches the connection threshold without the need to expand the device, thereby improving user experience .
  • FIG. 1 is a schematic diagram of a system architecture platform 100 for executing a data processing method provided by an embodiment of the present application.
  • the system architecture platform 100 is provided with a file service system 110 and a terminal device 120.
  • the file service system 110 is connected to the terminal device 120.
  • the terminal device 120 can download files through the file service system 110. Between the terminal devices 120 Files can be transferred. It can be understood that the terminal device 120 is a node in the system architecture platform, and the same terminal device 120 can be the first node or the second node according to different situations. It is not specifically limited.
  • the terminal device 120 when a terminal device 120 cannot download the file or data segment to be downloaded through the file service system 110 (that is, when the number of concurrent download connections of the file service system 110 reaches the connection threshold in this embodiment) , then the terminal device 120 is the first node; and in the case that the terminal device 120 has downloaded files or data fragments to be downloaded from other first nodes, the terminal device 120 is the second node.
  • the file service system 110 may include a file download server node 111 , a file download manager 112 and a firewall penetration manager 113 . in,
  • the file download server node 111 can be used to provide the components of the file download service to the terminal device 120, but the number of concurrent download connections between the file download server node 111 and the terminal device 120 is limited, for example: the file download server node 111 can at most simultaneously Provide connections to 10 terminal devices 120, then the file download server node 111 connection threshold is 10;
  • the file download manager 112 is used to manage the download of files, manage the distributed network, and distribute the load generated by the terminal devices 120 that need to be downloaded to the distributed network. It should be noted that multiple terminal devices 120 download simultaneously
  • the file can be a file that does not involve the user's personal privacy, which is not uniquely limited in this embodiment;
  • the firewall penetration manager 113 is a component used to help each node (terminal device 120) in the distributed network to complete TCP connection creation and file transfer. It should be noted that the firewall penetration manager 113 may be the NAT firewall penetration manager 113, which is not uniquely limited in this embodiment;
  • the file service system 110 may also include multiple components related to signal sending and receiving (for example, a processor, a modulator, a multiplexer, a demodulator, or a demultiplexer, etc.).
  • the terminal device 120 may be a node participating in the distributed network, and can share the file download service with other terminals when the number of concurrent download connections of the file download server node 111 reaches the connection threshold.
  • Terminal equipment 120 may also be referred to as user equipment (user equipment, UE), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, User Agent or User Device.
  • the terminal device 120 in the embodiment of the present application can be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device 120, an augmented reality (augmented reality, AR) ) terminal equipment 120, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grid, Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc.
  • the embodiments of the present application do not limit the application scenarios.
  • the terminal device 120 with wireless transceiver function and the chips that can be installed in the aforementioned terminal device 120 are collectively referred to as the terminal device 120 .
  • system architecture platform 100 can be applied to a communication network system and a subsequent evolved mobile communication network system, etc., which is not specifically limited in this embodiment.
  • FIG. 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than those shown in the illustration, or combine some components, or have different Part placement.
  • Figure 2 is a flowchart of a data processing method on the file service system side provided by an embodiment of the present application, the data processing method is applied to the file service system, and the data processing method includes but is not limited to step S100 , Step S200.
  • Step S100 when the number of concurrent download connections of the file service system reaches the connection threshold, a first file download request is obtained.
  • the first file download request indicates that the first node applies to the file service system to download a file, and the file includes at least one data segment.
  • the file service system can no longer connect to the first node, and directly provides download services to the first node, then the file service system can obtain the first node issued by the first node.
  • a file download request, the first file download request indicates that the first node applies to the file service system to download a file, and the file includes at least one data segment.
  • a file may be a public file in a general transmission scenario, or a private file in a closed transmission scenario, which is not specifically limited in this embodiment.
  • the file service system can divide the file into fragments according to the number of bytes of the file. For example, if the number of bytes of the file is less than or equal to the threshold, the file does not need to be divided into fragments, that is, The file includes one data segment; and for example, when the number of bytes of the file is greater than the threshold, then the file is segmented, that is, the file can include more than two data segments; The quantity is not specifically limited.
  • Step S200 assigning a second node to the first node according to the first file download request, so that the first node obtains the download data segment required by the first node through the second node.
  • the file service system can assign the second node that has downloaded the data segment to the first node according to the data segment that needs to be downloaded in the download request of the first node, so that the first node can obtain the data segment through the second node.
  • the embodiment of the technical solution can allocate the second node to provide the data segment download service for the first node, and can reduce the problem that the file service system cannot provide the download service for the first node without the need to expand the device.
  • the file service system can determine the node that has downloaded the file or the data segment in the file as the second node and allocate To the first node; the file service system can also send query information to a node that establishes a connection relationship with the file service system within a period of time, and the query information is used to query whether the node has downloaded the file or data segment that the first node needs to download , then the feedback information of the node can be obtained, and then according to the feedback information, the node that has downloaded the file or the data fragment in the file is determined as the second node and assigned to the first node.
  • the method is not specifically limited.
  • the first file download request when the number of concurrent download connections of the file service system reaches the connection threshold, the first file download request is obtained, and the file service system can no longer connect to the first node that sends the first file download request, and directly Provide download service to the first node, the first file download request indicates that the first node applies to the file service system for downloading the file, and the file includes at least one data segment; then the file service system can download the file according to the needs in the download request of the first node The data segment of the data segment is allocated to the first node to the second node that has downloaded the data segment, so that the first node can obtain the data segment through the second node.
  • connection threshold By assigning the second node to provide the data fragment download service for the first node, it can solve the problem that the file service system cannot provide the first node when the number of concurrent download connections reaches the connection threshold without expanding the device. Download service issues, thereby improving user experience.
  • FIG. 3 is a flow chart of generating a first data node list in the data processing method on the file service system side provided by an embodiment of the present application.
  • the method steps for generating the first data node list are before step S100, including But not limited to step S310.
  • Step S310 generating a first data node list according to the data segment and the second nodes that have downloaded the data segment, and the first data node list includes node information of all the second nodes that have downloaded the data segment.
  • the file service system may generate a first data node list according to the data segments included in the file and the second nodes that downloaded the data segments.
  • the first data node list includes node information of all the second nodes that have downloaded the data segments. It can be understood that, The first data node list is a data node list composed of node information of all second nodes that have downloaded a certain data segment.
  • the file service system segments a certain file into the first number of data segments, then the first data node list corresponding to the file has the first number.
  • the file service system will obtain the first fragment information sent from the second node, the first fragment information represents the data fragments downloaded by the second node, and then The first data node list may be updated according to the first fragment information.
  • the file service system can initiate a request to the second node to obtain the first fragment information of the second node at regular intervals, so that the first fragment information sent from the second node can be obtained to update the first data Information in the node list.
  • FIG. 4 is a flow chart of allocating second nodes in the data processing method on the file service system side provided by an embodiment of the present application.
  • step S200 The method of allocating the second node to the first node according to the first file download request includes step S410 and step S420.
  • Step S410 query the first data node list corresponding to the data segment according to the first file download request.
  • the file service system may determine the first data node list corresponding to the data segment according to the downloaded data segment required by the first node in the first file download request, and query the first data node list.
  • Step S420 determining node information of a second node from the first data node list, and assigning the determined second node to the first node according to the node information of the second node.
  • the file service system can determine the node information of a second node from the first data node list, and then allocate the second node to the first node according to the node information of the second node, so that the first node can obtain the data through the second node Fragments, because the embodiment of this technical solution can provide data fragment download services for the first node by assigning the second node, it can solve the problem that the file service system cannot provide data fragments when the number of concurrent download connections reaches the connection threshold without the need for expansion equipment.
  • the problem that the first node provides the download service can improve user experience.
  • the method of determining a second node from the first data node list may be to randomly determine a second node from the first data node list, or by obtaining the quality of the second node in the first data node list parameter, and then determine the second node with the highest quality parameter in the first data node list according to the quality parameter.
  • This embodiment does not specifically limit the method for determining a second node from the first data node list.
  • the quality parameter may be a signal-to-noise ratio or a transmission rate, which is not specifically limited in this embodiment.
  • Figure 5 is another flow chart of allocating the second node in the data processing method on the file service system side provided by an embodiment of the present application
  • the file service system has generated the first data node list, and the data fragments include the first A data fragment and a second data fragment, in the case that the data fragments to be downloaded by the first node include the first data fragment and the second data fragment, in step S200, assign the second node to the first node according to the first file download request It includes step S510, step S520 and step S530.
  • Step S510 respectively query the first data node list corresponding to the first data segment and the first data node list corresponding to the second data segment according to the first file download request.
  • the file service system may determine the first data node list corresponding to the first data segment and the list of nodes corresponding to the second data segment according to the downloaded first data segment and the second data segment required by the first node in the first file download request.
  • the first data node list and respectively query the first data node list corresponding to the first data segment and the first data node list corresponding to the second data segment.
  • Step S520 determining node information of a second node from the first data node list corresponding to the first data segment, and assigning a second node that has downloaded the first data segment to the first node.
  • the file service system may determine the node information of a second node from the first data node list corresponding to the first data segment, and then submit the node information of the second node determined in the first data node list corresponding to the first data segment to The first node allocates the determined second node so that the first node can obtain the first data segment through the second node, because the embodiment of this technical solution can provide the first node with the first data segment download service by assigning the second node It can solve the problem that the file service system cannot provide the download service for the first node when the number of concurrent download connections reaches the connection threshold without expanding the capacity of the device, thereby improving user experience.
  • the file service system may determine the node information of a second node from the first data node list corresponding to the second data fragment, and then submit the node information of the second node determined in the first data node list corresponding to the second data fragment to The first node allocates the second node so that the first node can obtain the second data fragment through the second node. Since the embodiment of the technical solution can provide the second data fragment download service for the first node by assigning the second node, it can be Without the need to expand the device, the problem that the file service system cannot provide download services for the first node when the number of concurrent download connections reaches the connection threshold is solved, thereby improving user experience.
  • the method for determining the node information of a second node from the first data node list may be to randomly determine the node information of a second node from the first data node list, or by obtaining the node information of the first data node The quality parameter of the second node in the list, and then determine the node information of the second node with the highest quality parameter in the first data node list according to the quality parameter.
  • This embodiment determines the node information of a second node from the first data node list
  • the method is not specifically limited.
  • the quality parameter may be a signal-to-noise ratio or a transmission rate, which is not specifically limited in this embodiment.
  • FIG. 6 is a flow chart of generating a second data node list in the data processing method on the file service system side provided by an embodiment of the present application.
  • the method steps for generating the first data node list are before step S100, including But not limited to step S610.
  • Step S610 generating a second data node list according to the data segment and the second node of the downloaded data segment, the second data node list includes segment information of all data segments and a second node corresponding to each segment information in all segment information Node information for the node.
  • the file service system may generate a second data node list according to the data segments included in the file and the second node for downloading the data segments, the second data node list includes segment information of all data segments and information related to each segment information in all segment information Corresponding to the node information of the second node, it can be understood that the second data node list is data composed of the segment information of all data segments and the node information of the second node corresponding to each data segment in all data segments list of nodes.
  • the second data node list corresponding to the file includes segment information of the second number of data segments.
  • the file service system will obtain the first fragment information sent from the second node, the first fragment information represents the data fragments downloaded by the second node, and then The second data node list may be updated according to the first fragment information.
  • the file service system may initiate an acquisition request to the second node to obtain the first fragment information of the second node at regular intervals, so that the first fragment information sent from the second node can be obtained to update the second node.
  • Information in the list of data nodes may be initiated to initiate an acquisition request to the second node to obtain the first fragment information of the second node at regular intervals, so that the first fragment information sent from the second node can be obtained to update the second node.
  • FIG. 7 is another flow chart of allocating the second node in the data processing method on the file service system side provided by an embodiment of the present application.
  • step S200 the first node is allocated to the first node according to the first file download request.
  • the two nodes include step S710, step S720 and step S730.
  • Step S710 obtaining a second data node list
  • Step S720 determining node information of a second node corresponding to the data segment from the second data node list according to the first file download request;
  • Step S730 assigning the second node to the first node according to the node information of the second node.
  • the file service system can obtain the second data node list, and then determine the node information of a second node corresponding to the data segment from the second data node list according to the first file download request, and then send the first file to the first node according to the node information of the second node
  • the node allocates the second node so that the first node can obtain the data segment through the second node. Since the embodiment of this technical solution can provide the first node with the data segment download service by assigning the second node, there is no need to expand the device , which can reduce the problem that the file service system cannot provide the download service for the first node.
  • the data fragment includes the first data fragment and the second data fragment.
  • the file service system can obtain the second data node list, and then according to The first file download request determines the node information of a second node that has downloaded the first data fragment and the second data fragment from the second data node list, and allocates the second node to the first node according to the node information of the second node, so as to The first node can obtain the first data segment and the second data segment through the second node.
  • the embodiment of this technical solution can provide the first node with the data segment download service by assigning the second node, it can The method solves the problem that the file service system cannot provide the download service for the first node when the number of concurrent download connections reaches the connection threshold, thereby improving user experience.
  • the method for determining the node information of a second node from the second data node list may be to determine from the second data node list a plurality of second The node information of the node, and then randomly determine the node information of a second node from the node information of multiple second nodes; it can also be determined by obtaining all the data downloaded by the first node that needs to be downloaded by obtaining the second data node list The node information of multiple second nodes of the segment, and then obtain the quality parameters of multiple second nodes, and then determine the node information of the second node with the highest quality parameter according to the quality parameters.
  • This embodiment determines from the second data node list
  • the method of a second node is not specifically limited.
  • the quality parameter may be a signal-to-noise ratio or a transmission rate, which is not specifically limited in this embodiment.
  • Figure 8 is a flowchart of a data processing method on the first node side provided by an embodiment of the present application, the data processing method is applied to the first node, and the data processing method includes but is not limited to step S810 , step S820.
  • Step S810 acquiring node information from the second node allocated by the file service system, the second node is a node that has downloaded the data segment required by the first node.
  • the first node sends the first file download request to the file service system. If the number of concurrent download connections in the file service system reaches the connection threshold, the first node will obtain the node from the second node allocated by the file service system. information, the second node is a node that has downloaded the data segment that the first node needs to download, and the second node information is used to trigger the first node to initiate a second node to the second node that has downloaded the data segment that the first node needs to download. File download request.
  • Step S820 sending a second file download request to the second node according to the node information of the second node, so as to obtain the data segment to be downloaded through the second node.
  • the first node can send a second file download request to the second node assigned by the file service system according to the node information of the second node, so that the first node obtains the data segment to be downloaded through the second node. Due to the technical solution In this embodiment, the second node allocated by the file service system can download data segments, which can solve the problem that the file service system cannot provide download services for the first node when the number of concurrent download connections reaches the connection threshold without the need for expansion equipment , thereby improving user experience.
  • Figure 9 is a flow chart of processing the downloaded data fragments of the data processing method on the first node side provided by an embodiment of the present application, the first node includes a first cache module, and the data in Figure 8 The processing method also includes but not limited to step S910.
  • Step S910 storing the data fragment obtained from the second node in the first cache module, and sending the second fragment information to the file service system, so that the file service system updates the first data node list or the first data node list according to the second fragment information.
  • the second fragment information is the fragment information of the data fragments downloaded by the first node.
  • the first node After the first node completes the acquisition of the data segment from the second node, the first node stores the data segment in the first cache module, and then sends the second segment information to the file service system (the second segment information is the first node's fragment information of the downloaded data fragment), so that the file service system updates the first data node list or the second data node list according to the second fragment information, that is, the first node becomes the second node of the data fragment, and can be other A node provides the download service of the data segment.
  • the second segment information is the first node's fragment information of the downloaded data fragment
  • the declaration cycle can be set for the first cache module.
  • a node is downloading the data segment, delete the data segment, and send a first notification to the file service system to notify the file service system to delete the first data segment in the first data node list or the second data node list. information about a node.
  • Figure 10 is a flowchart of a data processing method on the second node side provided by an embodiment of the present application, the data processing method is applied to the second node, and the data processing method includes but is not limited to step S1010 , step S1020.
  • Step S1010 obtain the second file download request sent from the first node, the second file download request is a request to obtain the data segment to be downloaded from the first node, and the sending object of the second file download request is provided by the file service system in It is allocated when the number of concurrent download connections of the file service system reaches the connection threshold.
  • Step S1020 sending the data segment to the first node according to the second file download request.
  • the second node obtains the second file download request sent from the first node, wherein the second file download request is a request to obtain the data segment to be downloaded from the first node, and the second file download request is sent to the file service system Assigned when the number of concurrent download connections of the file service system reaches the connection threshold, the second node has downloaded the data segment to be downloaded, and then the second node sends the data segment to the first node according to the second file download request, because
  • the second node can send data fragments to the first node according to the second file download request when the number of concurrent download connections of the file service system reaches the connection threshold, which can solve the problem of file service without expanding the device.
  • the connection threshold the system cannot provide download services for the first node, thereby improving user experience.
  • Figure 11 is a flow chart of processing the downloaded data fragments of the data processing method on the second node side provided by an embodiment of the present application, the second node includes a second cache module, and the data in Figure 10
  • the processing method also includes but not limited to step S1110.
  • Step S1110 storing the data fragments obtained through the file service system in the second cache module, and sending the first fragment information to the file service system, so that the file service system can update the first data node list or the first data node list according to the first fragment information.
  • the first fragment information is the fragment information of the data fragments downloaded by the second node.
  • the second node After the second node downloads the data segment through the file service system, the second node stores the data segment in the second cache module, and then sends the second segment information to the file service system (the first segment information is the downloaded data of the second node) fragment information of the data fragment), so that the file service system updates the first data node list or the second data node list according to the second fragment information.
  • the declaration cycle can be set for the second cache module.
  • a node is downloading the data segment, delete the data segment and send a second notification to the file service system to notify the file service system to delete the data segment corresponding to the data segment in the first data node list or the second data node list Node information of the second node.
  • Figure 12 is a flowchart of a data processing method based on a system architecture platform provided by an embodiment of the present application, applied to the system architecture platform, and the data processing method in the scenario where the system architecture platform is used in a 5G message system Including but not limited to step 1210 to step S1280.
  • Step S1210 the terminal device initiates a first file download request to the file download server node
  • Step S1220 the file download server node judges whether the file is a public file according to the file identifier descriptor (File Identifier Descriptor, FID) of the file to be downloaded by the terminal device in the first file download request;
  • FID File Identifier Descriptor
  • Step S1230 if the file downloaded by the current user is a public file, then judge whether the number of concurrent download connections of the current file download server node reaches the connection threshold;
  • Step S1240 if the number of concurrent download connections does not reach the connection threshold, the file download server node directly provides the download service to the terminal device, and includes the node information of the terminal device in the data node list of the public file for standby;
  • Step S1250 if the number of concurrent download connections reaches the connection threshold, the file download manager searches the data node list according to the FID, and obtains the list information of the terminal device that is downloading the file and the fragment information of the data fragment of the file;
  • Step S1260 the file download manager allocates the terminal device that has downloaded the file to the terminal device according to the obtained list information of the terminal device currently downloading the file and the segment information of the data segment;
  • Step S1270 when the terminal device successfully downloads a data segment, the terminal device stores the data segment in the cache module, and prepares to provide services to terminal devices of other distributed nodes;
  • Step S1280 setting a statement period for the cache module of the terminal device, and when the time for storing the data segment in the cache module exceeds the statement period, and no other terminal device is currently downloading the data segment, delete the data segment from the cache module, And initiate a notification to the file download manager to notify the file download manager to delete the terminal device corresponding to the segment information of the data segment in the data node list.
  • the embodiment of the technical solution can provide the first node with data fragment download service by allocating the second node when the number of concurrent download connections of the file service system reaches the connection threshold, it can solve the file service system problem without expanding the capacity of the device.
  • the problem that the download service cannot be provided for the first node when the number of concurrent download connections reaches the connection threshold can improve user experience.
  • the file service system 1300 includes a memory 1320 , a processor 1310 and a computer program stored in the memory 1320 and executable on the processor 1310 .
  • the processor 1310 and the memory 1320 may be connected via a bus or in other ways.
  • the memory 1320 can be used to store non-transitory software programs and non-transitory computer-executable programs.
  • the memory 1320 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • memory 1320 may include memory located remotely from the processor, which remote memory may be connected to the processor through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the non-transitory software programs and instructions required to realize the data processing method of the above-mentioned embodiment are stored in the memory 1320, and when executed by the processor 1310, the data processing method in the above-mentioned embodiment is executed, for example, executing the above-described Figure 2 Method steps S100 to S200 in, method steps S310 in Fig. 3, method steps S410 to S420 in Fig. 4, method steps S510 to S530 in Fig. 5, method steps S610 in Fig. 6 and method steps in Fig. 7 S710 to S730.
  • a terminal device 1400 includes a memory 1420 , a processor 1410 , and a computer program stored in the memory 1420 and operable on the processor 1410 .
  • the processor 1410 and the memory 1420 may be connected through a bus or in other ways.
  • the memory 1420 can be used to store non-transitory software programs and non-transitory computer-executable programs.
  • the memory 1420 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • memory 1420 may include memory located remotely from the processor, which remote memory may be connected to the processor through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the non-transitory software programs and instructions required to realize the data processing method of the above-mentioned embodiment are stored in the memory 1420, and when executed by the processor 1410, the data processing method in the above-mentioned embodiment is executed, for example, executing the above-described Figure 8
  • the method steps S810 to S820 in FIG. 9 , the method steps S910 in FIG. 9 , the method steps S1010 to S1020 in FIG. 10 , and the method step S1110 in FIG. 11 are stored in the memory 1420, and when executed by the processor 1410, the data processing method in the above-mentioned embodiment is executed, for example, executing the above-described Figure 8
  • the method steps S810 to S820 in FIG. 9 the method steps S910 in FIG. 9
  • the method steps S1010 to S1020 in FIG. 10 the method steps S1110 in FIG. 11 .
  • an embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by a processor or a controller, for example, by the above-mentioned Execution by a processor in the communication device in the embodiment can cause the processor to execute the data processing method corresponding to the file service system in the above embodiment, for example, execute the method steps S100 to S200 in Fig. 2 described above, and Fig. 3 Method step S310 in FIG. 4 , method steps S410 to S420 in FIG. 4 , method steps S510 to S530 in FIG. 5 , method step S610 in FIG. 6 , and method steps S710 to S730 in FIG. 7 .
  • execute the data processing method corresponding to the terminal device in the above embodiments for example, execute the method steps S810 to S820 in FIG. 8 , the method steps S910 in FIG. 9 , and the method steps S1010 to S1020 in FIG. 10 described above. , method step S1110 in FIG. 11 .
  • the embodiment of the present application includes: when the number of concurrent download connections of the file service system reaches the connection threshold, obtaining a first file download request, the first file download request indicates that the first node applies to the file service system to download a file, and the file includes at least one Data segment: assigning a second node to the first node according to the first file download request, so that the first node obtains the downloaded data segment required by the first node through the second node.
  • the file service system when the number of concurrent download connections of the file service system reaches the connection threshold, the file service system cannot provide the download service to the first node, then the file service system can send the file service system to the second node according to the first file download request.
  • a node allocates the second node that has downloaded the data segment that the first node needs to download, so that the first node obtains the downloaded data segment required by the first node through the second node, because the embodiment of this technical solution can distribute the second node Providing the data fragment download service for the first node can reduce the problem that the file service system cannot provide the download service for the first node without expanding the device.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Abstract

A data processing method, a file service system, a terminal device, and a storage medium. The data processing method comprises: when the number of concurrent download connections of the file service system reaches a connection threshold value, obtaining a first file download request, wherein the first file download request indicates that a first node applies to the file service system for downloading a file, and the file comprises at least one data fragment (S100); and allocating a second node to the first node according to the first file download request, so that the first node obtains a download data fragment required for the first node by means of the second node (S200).

Description

数据处理方法、文件服务系统、终端设备以及存储介质Data processing method, file service system, terminal device and storage medium
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110696241.4、申请日为2021年06月23日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110696241.4 and a filing date of June 23, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请实施例涉及但不限于通信领域,尤其涉及一种数据处理方法、文件服务系统、终端设备以及存储介质。The embodiments of the present application relate to but are not limited to the communication field, and in particular, relate to a data processing method, a file service system, a terminal device, and a storage medium.
背景技术Background technique
随着5G技术的发展,通过5G通信进行信息交流越来越普及。而信息的传递方式,从文本、图片向声音、视频发展,且声音、视频信息的传递需求占比越来越高,对5G消息系统的文件处理能力提出了新的挑战。With the development of 5G technology, information exchange through 5G communication is becoming more and more popular. The way of information transmission has developed from text and pictures to sound and video, and the demand for the transmission of sound and video information is getting higher and higher, which poses new challenges to the file processing capabilities of 5G messaging systems.
目前的5G消息系统提供的统一的传统的C/S模式,在人们日常的沟通交流中,5G消息系统主要提供三种场景的聊天模式:单聊,群聊,群发。但在这三种模式中,5G消息系统均统一采用C/S模式向终端提供文件获取服务。The current 5G message system provides a unified traditional C/S mode. In people's daily communication, the 5G message system mainly provides chat modes in three scenarios: single chat, group chat, and group sending. However, in these three modes, the 5G message system uniformly adopts the C/S mode to provide file acquisition services to the terminal.
针对群聊和群发场景中的文件获取,由于存在多个终端需要同时获取同一个文件的场景,一旦获取人数过多时,将会出现文件服务器的获取负荷激增的情况,严重时文件服务器甚至无法为用户提供服务,而面对这种问题,目前主要的解决方案是通过对文件服务器进行扩容设备,但扩容设备会大大提升硬件成本,降低产品的市场竞争力。For file acquisition in group chat and group sending scenarios, since there are scenarios where multiple terminals need to acquire the same file at the same time, once there are too many acquirers, the acquisition load of the file server will increase sharply, and in severe cases, the file server will not even be able to provide Users provide services, and in the face of this problem, the current main solution is to expand the file server equipment, but the equipment expansion will greatly increase the hardware cost and reduce the market competitiveness of the product.
发明内容Contents of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics described in detail in this article. This summary is not intended to limit the scope of the claims.
本申请实施例提出一种数据处理方法、文件服务系统、终端设备以及存储介质。Embodiments of the present application provide a data processing method, a file service system, a terminal device, and a storage medium.
一方面,本申请实施例提供了一种数据处理方法,应用于文件服务系统,包括:在所述文件服务系统的并发下载连接数达到连接阈值的情况下,获取第一文件下载请求,所述第一文件下载请求表征第一节点向所述文件服务系统申请下载文件,所述文件包括至少一个数据片段;根据所述第一文件下载请求向所述第一节点分配第二节点,以使所述第一节点通过所述第二节点获取所述第一节点所需要的下载所述数据片段。On the one hand, an embodiment of the present application provides a data processing method applied to a file service system, including: obtaining a first file download request when the number of concurrent download connections of the file service system reaches a connection threshold, and the The first file download request indicates that the first node applies to the file service system for downloading a file, and the file includes at least one data segment; assigns a second node to the first node according to the first file download request, so that all The first node acquires and downloads the data segment required by the first node through the second node.
第二方面,本申请实施例还提供了一种数据处理方法,应用于第一节点,包括:获取来自文件服务系统所分配的第二节点的节点信息,所述第二节点为已下载所述第一节点所需要下载的所述数据片段的节点;根据所述第二节点的节点信息向所述第二节点发送第二文件下载请求,以通过所述第二节点获取所需要下载的所述数据片段。In the second aspect, the embodiment of the present application also provides a data processing method applied to the first node, including: obtaining node information from the second node allocated by the file service system, the second node is the node that has downloaded the The node of the data segment that the first node needs to download; send a second file download request to the second node according to the node information of the second node, so as to obtain the required download through the second node data fragment.
第三方面,本申请实施例还提供了一种数据处理方法,应用于第二节点,包 括:获取来自第一节点所发送的第二文件下载请求,所述第二文件下载请求为向所述第一节点获取所需要下载的数据片段的请求,所述第二文件下载请求的发送对象由文件服务系统在所述文件服务系统的并发下载连接数达到连接阈值的情况下所分配;根据第二文件下载请求向所述第一节点发送所述数据片段。In the third aspect, the embodiment of the present application also provides a data processing method applied to the second node, including: obtaining the second file download request sent from the first node, and the second file download request is sent to the The first node acquires a request for the data segment to be downloaded, and the sending object of the second file download request is allocated by the file service system when the number of concurrent download connections of the file service system reaches the connection threshold; according to the second A file download request sends the data segment to the first node.
第四方面,本申请实施例还提供了一种文件服务系统,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现第一方面所述的数据处理方法。In the fourth aspect, the embodiment of the present application also provides a file service system, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the computer program when executing the computer program. The data processing method described in the first aspect.
第五方面,本申请实施例还提供了一种终端设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现第二方面所述的数据处理方法,或者实现第三方面所述的数据处理方法。In the fifth aspect, the embodiment of the present application also provides a terminal device, including: a memory, a processor, and a computer program stored on the memory and operable on the processor, and the processor implements the first step when executing the computer program. The data processing method described in the second aspect, or realize the data processing method described in the third aspect.
第六方面,本申请实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行第一方面所述的数据处理方法,或者执行第二方面所述的数据处理方法,或者执行第三方面所述的数据处理方法。In the sixth aspect, the embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the data processing method described in the first aspect, or execute the second aspect The data processing method described in the third aspect, or execute the data processing method described in the third aspect.
本申请的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本申请而了解。本申请的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the application will be set forth in the description which follows, and, in part, will be obvious from the description, or may be learned by practice of the application. The objectives and other advantages of the application will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
附图说明Description of drawings
图1是本申请一个实施例提供的用于执行数据处理方法的系统架构的示意图;FIG. 1 is a schematic diagram of a system architecture for executing a data processing method provided by an embodiment of the present application;
图2是本申请一个实施例提供的文件服务系统侧的数据处理方法的流程图;FIG. 2 is a flowchart of a data processing method on the file service system side provided by an embodiment of the present application;
图3是本申请一个实施例提供的文件服务系统侧的数据处理方法中生成第一数据节点列表的流程图;FIG. 3 is a flow chart of generating a first data node list in a data processing method on the file service system side provided by an embodiment of the present application;
图4是本申请一个实施例提供的文件服务系统侧的数据处理方法中分配第二节点的流程图;FIG. 4 is a flow chart of allocating a second node in the data processing method on the file service system side provided by an embodiment of the present application;
图5是本申请一个实施例提供的文件服务系统侧的数据处理方法中分配第二节点的另一个流程图;FIG. 5 is another flow chart of allocating a second node in the data processing method on the file service system side provided by an embodiment of the present application;
图6是本申请一个实施例提供的文件服务系统侧的数据处理方法中生成第二数据节点列表的流程图;FIG. 6 is a flow chart of generating a second data node list in the data processing method on the file service system side provided by an embodiment of the present application;
图7是本申请一个实施例提供的文件服务系统侧的数据处理方法中分配第二节点的另一个流程图;FIG. 7 is another flow chart of allocating a second node in the data processing method on the file service system side provided by an embodiment of the present application;
图8是本申请一个实施例提供的第一节点侧的数据处理方法的流程图;FIG. 8 is a flowchart of a data processing method on the first node side provided by an embodiment of the present application;
图9是本申请一个实施例提供的第一节点侧的数据处理方法的对已下载的数据片段进行处理的流程图;FIG. 9 is a flow chart of processing downloaded data segments in a data processing method on the first node side provided by an embodiment of the present application;
图10是本申请一个实施例提供的第二节点侧的数据处理方法的流程图;FIG. 10 is a flowchart of a data processing method on the second node side provided by an embodiment of the present application;
图11是本申请一个实施例提供的第二节点侧的数据处理方法的对已下载的数据片段进行处理的流程图;FIG. 11 is a flow chart of processing downloaded data segments in a data processing method on the second node side provided by an embodiment of the present application;
图12是本申请一个实施例提供的基于系统架构平台的数据处理方法的流程图;Fig. 12 is a flowchart of a data processing method based on a system architecture platform provided by an embodiment of the present application;
图13是本申请一个实施例提供的文件服务系统的示意图;Fig. 13 is a schematic diagram of a file service system provided by an embodiment of the present application;
图14是本申请一个实施例提供的终端设备的示意图。Fig. 14 is a schematic diagram of a terminal device provided by an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.
需要说明的是,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。说明书、权利要求书或上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, it can be executed in a different order than the module division in the device or the flowchart in the flowchart. steps shown or described. The terms "first", "second" and the like in the specification, claims or the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific order or sequence.
本申请实施例提供了一种数据处理方法、文件服务系统、终端设备以及存储介质,该数据处理方法包括但不限于如下步骤:在文件服务系统的并发下载连接数达到连接阈值的情况下,获取第一文件下载请求,第一文件下载请求表征第一节点向文件服务系统申请下载文件,文件包括至少一个数据片段;根据第一文件下载请求向第一节点分配第二节点,以使第一节点通过第二节点获取第一节点所需要的下载数据片段。在本技术方案的实施例中,在文件服务系统的并发下载连接数达到连接阈值的情况下,文件服务系统无法向第一节点提供下载服务,那么文件服务系统可以根据第一文件下载请求向第一节点分配已下载第一节点需要下载的数据片段的第二节点,以使第一节点通过第二节点获取第一节点所需要的下载数据片段,由于本技术方案实施例可以通过分配第二节点为第一节点提供数据片段下载服务,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。An embodiment of the present application provides a data processing method, a file service system, a terminal device, and a storage medium. The data processing method includes but is not limited to the following steps: when the number of concurrent download connections of the file service system reaches the connection threshold, obtain The first file download request, the first file download request indicates that the first node applies to the file service system for downloading the file, and the file includes at least one data segment; according to the first file download request, the second node is allocated to the first node, so that the first node The download data segment required by the first node is acquired through the second node. In the embodiment of this technical solution, when the number of concurrent download connections of the file service system reaches the connection threshold, the file service system cannot provide the download service to the first node, then the file service system can send the file service system to the second node according to the first file download request. A node allocates the second node that has downloaded the data segment that the first node needs to download, so that the first node obtains the downloaded data segment required by the first node through the second node, because the embodiment of this technical solution can distribute the second node Providing data segment download services for the first node can solve the problem that the file service system cannot provide download services for the first node when the number of concurrent download connections reaches the connection threshold without the need to expand the device, thereby improving user experience .
下面结合附图,对本申请实施例作进一步阐述。The embodiments of the present application will be further described below in conjunction with the accompanying drawings.
如图1所示,图1是本申请一个实施例提供的用于执行数据处理方法的系统架构平台100的示意图。As shown in FIG. 1 , FIG. 1 is a schematic diagram of a system architecture platform 100 for executing a data processing method provided by an embodiment of the present application.
在图1的示例中,该系统架构平台100设置有文件服务系统110和终端设备120,文件服务系统110与终端设备120连接,终端设备120可以通过文件服务系统110下载文件,终端设备120之间可以传输文件,可以理解的是,终端设备120为在系统架构平台中的节点,同一个终端设备120根据不同的况下可以,可以是第一节点,也可以是第二节点,本实施例对其不作具体限定。例如:一个终端设备120在无法通过文件服务系统110下载所需要下载的文件或者数据片段的情况下(即本实施例所说的在文件服务系统110的并发下载连接数达到连接阈值的情况下),那么该终端设备120为第一节点;而在该终端设备120已下载其他第一节点的所需要下载的文件或者数据片段的情况下,该终端设备120为第二节点。In the example of FIG. 1, the system architecture platform 100 is provided with a file service system 110 and a terminal device 120. The file service system 110 is connected to the terminal device 120. The terminal device 120 can download files through the file service system 110. Between the terminal devices 120 Files can be transferred. It can be understood that the terminal device 120 is a node in the system architecture platform, and the same terminal device 120 can be the first node or the second node according to different situations. It is not specifically limited. For example: when a terminal device 120 cannot download the file or data segment to be downloaded through the file service system 110 (that is, when the number of concurrent download connections of the file service system 110 reaches the connection threshold in this embodiment) , then the terminal device 120 is the first node; and in the case that the terminal device 120 has downloaded files or data fragments to be downloaded from other first nodes, the terminal device 120 is the second node.
其中,文件服务系统110可以包括文件下载服务器节点111、文件下载管理器112和防火墙穿透管理器113。其中,Wherein, the file service system 110 may include a file download server node 111 , a file download manager 112 and a firewall penetration manager 113 . in,
文件下载服务器节点111,可以用于向终端设备120提供文件下载服务的组件,但是文件下载服务器节点111与终端设备120连接的并发下载连接数是有限制的,例如:文件下载服务器节点111最多同时向10个终端设备120提供连接,那么文件下载服务器节点111连接阈值为10;The file download server node 111 can be used to provide the components of the file download service to the terminal device 120, but the number of concurrent download connections between the file download server node 111 and the terminal device 120 is limited, for example: the file download server node 111 can at most simultaneously Provide connections to 10 terminal devices 120, then the file download server node 111 connection threshold is 10;
文件下载管理器112,用于管理文件的下载、管理分布式的网络和将需要下载终端设备120的所产生的负荷分散至分布式的网络中,需要说明的是,多个终端设备120同时下载的文件可以是不涉及用户个人隐私的文件,本实施例对其不作唯一限定;The file download manager 112 is used to manage the download of files, manage the distributed network, and distribute the load generated by the terminal devices 120 that need to be downloaded to the distributed network. It should be noted that multiple terminal devices 120 download simultaneously The file can be a file that does not involve the user's personal privacy, which is not uniquely limited in this embodiment;
防火墙穿透管理器113,用于帮助分布式网络各个节点(终端设备120)能够完成TCP的连接创建并进行文件传输的组件。需要说明的是,防火墙穿透管理器113可以是NAT防火墙穿透管理器113,本实施例对其不作唯一限定;The firewall penetration manager 113 is a component used to help each node (terminal device 120) in the distributed network to complete TCP connection creation and file transfer. It should be noted that the firewall penetration manager 113 may be the NAT firewall penetration manager 113, which is not uniquely limited in this embodiment;
应理解,文件服务系统110还可包括与信号发送和接收相关的多个部件(例如,处理器、调制器、复用器、解调器或解复用器等)。It should be understood that the file service system 110 may also include multiple components related to signal sending and receiving (for example, a processor, a modulator, a multiplexer, a demodulator, or a demultiplexer, etc.).
终端设备120,可以是参与分布式网络的节点,在文件下载服务器节点111的并发下载连接数达到连接阈值的情况下,能够向其它终端共享文件下载服务的终端节点。The terminal device 120 may be a node participating in the distributed network, and can share the file download service with other terminals when the number of concurrent download connections of the file download server node 111 reaches the connection threshold.
终端设备120也可以称为用户设备(user equipment,UE)、接入终端、用户单元、用户站、移动站、移动台、远方站、远程终端、移动设备、用户终端、终端、无线通信设备、用户代理或用户装置。本申请的实施例中的终端设备120可以是手机(mobile phone)、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备120、增强现实(augmented reality,AR)终端设备120、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对应用场景不做限定。本申请中将具有无线收发功能的终端设备120及可设置于前述终端设备120的芯片统称为终端设备120。 Terminal equipment 120 may also be referred to as user equipment (user equipment, UE), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, User Agent or User Device. The terminal device 120 in the embodiment of the present application can be a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (virtual reality, VR) terminal device 120, an augmented reality (augmented reality, AR) ) terminal equipment 120, wireless terminals in industrial control, wireless terminals in self driving, wireless terminals in remote medical, wireless terminals in smart grid, Wireless terminals in transportation safety, wireless terminals in smart city, wireless terminals in smart home, etc. The embodiments of the present application do not limit the application scenarios. In this application, the terminal device 120 with wireless transceiver function and the chips that can be installed in the aforementioned terminal device 120 are collectively referred to as the terminal device 120 .
本领域技术人员可以理解的是,该系统架构平台100可以应用于通信网络系统以及后续演进的移动通信网络系统等,本实施例对此并不作具体限定。Those skilled in the art can understand that the system architecture platform 100 can be applied to a communication network system and a subsequent evolved mobile communication network system, etc., which is not specifically limited in this embodiment.
本领域技术人员可以理解的是,图1中示出的系统架构平台并不构成对本申请实施例的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the system architecture platform shown in FIG. 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than those shown in the illustration, or combine some components, or have different Part placement.
基于上述系统架构平台,下面提出本申请的数据处理方法的各个实施例。Based on the above-mentioned system architecture platform, various embodiments of the data processing method of the present application are proposed below.
如图2所示,图2是本申请一个实施例提供的文件服务系统侧的数据处理方法的流程图,该数据处理方法应用于文件服务系统,并且该数据处理方法包括但不限于有步骤S100、步骤S200。As shown in Figure 2, Figure 2 is a flowchart of a data processing method on the file service system side provided by an embodiment of the present application, the data processing method is applied to the file service system, and the data processing method includes but is not limited to step S100 , Step S200.
步骤S100,在文件服务系统的并发下载连接数达到连接阈值的情况下,获取第一文件下载请求,第一文件下载请求表征第一节点向文件服务系统申请下载文件,文件包括至少一个数据片段。Step S100, when the number of concurrent download connections of the file service system reaches the connection threshold, a first file download request is obtained. The first file download request indicates that the first node applies to the file service system to download a file, and the file includes at least one data segment.
在文件服务系统的并发下载连接数达到连接阈值的情况下,文件服务系统无法再与第一节点进行连接,并直接向第一节点提供下载服务,那么文件服务系统可以获取第一节点发出的第一文件下载请求,该第一文件下载请求表征第一节点向文件服务系统申请下载文件,文件包括至少一个数据片段。When the number of concurrent download connections of the file service system reaches the connection threshold, the file service system can no longer connect to the first node, and directly provides download services to the first node, then the file service system can obtain the first node issued by the first node. A file download request, the first file download request indicates that the first node applies to the file service system to download a file, and the file includes at least one data segment.
需要说明的是,文件在一般传输场景中可以是公共文件,在封闭的传输场景中也可以是隐私文件,本实施例对其不作具体限定。It should be noted that a file may be a public file in a general transmission scenario, or a private file in a closed transmission scenario, which is not specifically limited in this embodiment.
需要说明的是,文件服务系统可以根据文件的字节数大小对文件进行分片段处理,例如:在文件的字节数小于或者等于阈值的情况下,那么可以不对该文件进行分片段处理,即文件包括一个数据片段;又例如,在文件的字节数大于阈值的情况下,那么对该文件进行分片段处理,即文件可以包括两个以上的数据片段;本实施例对于文件包括的数据片段数量不作具体限定。It should be noted that the file service system can divide the file into fragments according to the number of bytes of the file. For example, if the number of bytes of the file is less than or equal to the threshold, the file does not need to be divided into fragments, that is, The file includes one data segment; and for example, when the number of bytes of the file is greater than the threshold, then the file is segmented, that is, the file can include more than two data segments; The quantity is not specifically limited.
步骤S200,根据第一文件下载请求向第一节点分配第二节点,以使第一节点通过第二节点获取第一节点所需要的下载数据片段。Step S200, assigning a second node to the first node according to the first file download request, so that the first node obtains the download data segment required by the first node through the second node.
文件服务系统可以根据第一节点的下载请求中的需要下载的数据片段向第一节点分配已下载该数据片段的第二节点,以使第一节点可以通过第二节点获取该数据片段,由于本技术方案实施例可以通过分配第二节点为第一节点提供数据片段下载服务,在无需扩容设备的情况下,能够减少出现文件服务系统无法为第一节点提供下载服务的问题。The file service system can assign the second node that has downloaded the data segment to the first node according to the data segment that needs to be downloaded in the download request of the first node, so that the first node can obtain the data segment through the second node. The embodiment of the technical solution can allocate the second node to provide the data segment download service for the first node, and can reduce the problem that the file service system cannot provide the download service for the first node without the need to expand the device.
需要说明的是,文件服务系统可以通过列表方式对已通过文件服务系统下载文件或者文件中的数据片段的信息,将已下载改文件或者该文件中的数据片段的节点确定为第二节点并分配至第一节点;文件服务系统也可以通过向在一时间内与文件服务系统建立连接关系的节点发送查询信息,该查询信息用于查询该节点是否已下载第一节点需要下载的文件或者数据片段,然后可以获取到节点的反馈信息,然后根据反馈信息将已下载改文件或者该文件中的数据片段的节点确定为第二节点并分配至第一节点,本实施例对如何确定第二节点的方法不作具体限定。It should be noted that the file service system can determine the node that has downloaded the file or the data segment in the file as the second node and allocate To the first node; the file service system can also send query information to a node that establishes a connection relationship with the file service system within a period of time, and the query information is used to query whether the node has downloaded the file or data segment that the first node needs to download , then the feedback information of the node can be obtained, and then according to the feedback information, the node that has downloaded the file or the data fragment in the file is determined as the second node and assigned to the first node. The method is not specifically limited.
在一实施例中,在文件服务系统的并发下载连接数达到连接阈值的情况下,获取第一文件下载请求,文件服务系统无法再与发送第一文件下载请求的第一节点进行连接,并直接向该第一节点提供下载服务,该第一文件下载请求表征第一节点向文件服务系统申请下载文件,文件包括至少一个数据片段;那么文件服务系统可以根据第一节点的下载请求中的需要下载的数据片段向第一节点分配已下载该数据片段的第二节点,以使第一节点可以通过第二节点获取该数据片段,由于本技术方案实施例可以在文件服务系统的并发下载连接数达到连接阈值的情况下通过分配第二节点为第一节点提供数据片段下载服务,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。In one embodiment, when the number of concurrent download connections of the file service system reaches the connection threshold, the first file download request is obtained, and the file service system can no longer connect to the first node that sends the first file download request, and directly Provide download service to the first node, the first file download request indicates that the first node applies to the file service system for downloading the file, and the file includes at least one data segment; then the file service system can download the file according to the needs in the download request of the first node The data segment of the data segment is allocated to the first node to the second node that has downloaded the data segment, so that the first node can obtain the data segment through the second node. Since the embodiment of the technical solution can reach the number of concurrent download connections of the file service system In the case of the connection threshold, by assigning the second node to provide the data fragment download service for the first node, it can solve the problem that the file service system cannot provide the first node when the number of concurrent download connections reaches the connection threshold without expanding the device. Download service issues, thereby improving user experience.
如图3所示,图3是本申请一个实施例提供的文件服务系统侧的数据处理方法中生成第一数据节点列表的流程图,生成第一数据节点列表的方法步骤在步骤S100之前,包括但不限于步骤S310。As shown in FIG. 3 , FIG. 3 is a flow chart of generating a first data node list in the data processing method on the file service system side provided by an embodiment of the present application. The method steps for generating the first data node list are before step S100, including But not limited to step S310.
步骤S310,根据数据片段以及已下载数据片段的第二节点生成第一数据节点列表,第一数据节点列表包括已下载数据片段的所有第二节点的节点信息。Step S310, generating a first data node list according to the data segment and the second nodes that have downloaded the data segment, and the first data node list includes node information of all the second nodes that have downloaded the data segment.
文件服务系统可以根据文件所包括的数据片段以及下载数据片段的第二节点生成第一数据节点列表,第一数据节点列表包括已下载数据片段的所有第二节点的节点信息,可以理解的是,第一数据节点列表为将所有已下载某一个数据片段的所有第二节点的节点信息所组成的数据节点列表。The file service system may generate a first data node list according to the data segments included in the file and the second nodes that downloaded the data segments. The first data node list includes node information of all the second nodes that have downloaded the data segments. It can be understood that, The first data node list is a data node list composed of node information of all second nodes that have downloaded a certain data segment.
可以理解的是,文件服务系统将某一个文件进行分段处理成第一数量个数据片段,那么该文件对应的第一数据节点列表有第一数量个。It can be understood that, when the file service system segments a certain file into the first number of data segments, then the first data node list corresponding to the file has the first number.
需要说明的是,当第二节点中增加已下载的数据片段之后,文件服务系统会获取到来自第二节点所发送第一片段信息,第一片段信息表征第二节点已下载的数据片段,然后可以根据第一片段信息更新第一数据节点列表。It should be noted that after the downloaded data fragments are added to the second node, the file service system will obtain the first fragment information sent from the second node, the first fragment information represents the data fragments downloaded by the second node, and then The first data node list may be updated according to the first fragment information.
需要说明的是,文件服务系统可以每间隔一定时间向第二节点发起获取第二节点的第一片段信息的请求,从而能够获取到来自第二节点所发送第一片段信息,以更新第一数据节点列表中的信息。It should be noted that the file service system can initiate a request to the second node to obtain the first fragment information of the second node at regular intervals, so that the first fragment information sent from the second node can be obtained to update the first data Information in the node list.
如图4所示,图4是本申请一个实施例提供的文件服务系统侧的数据处理方法中分配第二节点的流程图,在文件服务系统已生成第一数据节点列表的情况下,步骤S200中根据第一文件下载请求向第一节点分配第二节点包括步骤S410和步骤S420。As shown in FIG. 4, FIG. 4 is a flow chart of allocating second nodes in the data processing method on the file service system side provided by an embodiment of the present application. When the file service system has generated the first data node list, step S200 The method of allocating the second node to the first node according to the first file download request includes step S410 and step S420.
步骤S410,根据第一文件下载请求查询数据片段对应的第一数据节点列表。Step S410, query the first data node list corresponding to the data segment according to the first file download request.
文件服务系统可以根据第一文件下载请求中的获得第一节点所需要的下载数据片段,根据该数据片段确定数据片段对应的第一数据节点列表,并对该第一数据节点列表进行查询。The file service system may determine the first data node list corresponding to the data segment according to the downloaded data segment required by the first node in the first file download request, and query the first data node list.
步骤S420,从第一数据节点列表中确定一个第二节点的节点信息,并根据第二节点的节点信息向第一节点分配已确定的第二节点。Step S420, determining node information of a second node from the first data node list, and assigning the determined second node to the first node according to the node information of the second node.
文件服务系统可以从第一数据节点列表中确定一个第二节点的节点信息,然后根据第二节点的节点信息向第一节点分配第二节点,以使第一节点可以通过第二节点获取该数据片段,由于本技术方案实施例可以通过分配第二节点为第一节点提供数据片段下载服务,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。The file service system can determine the node information of a second node from the first data node list, and then allocate the second node to the first node according to the node information of the second node, so that the first node can obtain the data through the second node Fragments, because the embodiment of this technical solution can provide data fragment download services for the first node by assigning the second node, it can solve the problem that the file service system cannot provide data fragments when the number of concurrent download connections reaches the connection threshold without the need for expansion equipment. The problem that the first node provides the download service can improve user experience.
需要说明的是,从第一数据节点列表中确定一个第二节点的方法可以是从第一数据节点列表中随机确定一个第二节点,可以是通过获取第一数据节点列表中第二节点的质量参数,然后根据质量参数确定第一数据节点列表中质量参数最高的第二节点,本实施例对从第一数据节点列表中确定一个第二节点的方法不作具体限定。It should be noted that the method of determining a second node from the first data node list may be to randomly determine a second node from the first data node list, or by obtaining the quality of the second node in the first data node list parameter, and then determine the second node with the highest quality parameter in the first data node list according to the quality parameter. This embodiment does not specifically limit the method for determining a second node from the first data node list.
需要说明的是,质量参数可以是信噪比,可以是传输速率,本实施例对其不作具体限定。It should be noted that the quality parameter may be a signal-to-noise ratio or a transmission rate, which is not specifically limited in this embodiment.
如图5所示,图5是本申请一个实施例提供的文件服务系统侧的数据处理方法中分配第二节点的另一个流程图,文件服务系统已生成第一数据节点列表,数据片段包括第一数据片段和第二数据片段,在第一节点所需要下载的数据片段包括第一数据片段和第二数据片段的情况下,步骤S200中根据第一文件下载请求向第一节点分配第二节点包括步骤S510、步骤S520和步骤S530。As shown in Figure 5, Figure 5 is another flow chart of allocating the second node in the data processing method on the file service system side provided by an embodiment of the present application, the file service system has generated the first data node list, and the data fragments include the first A data fragment and a second data fragment, in the case that the data fragments to be downloaded by the first node include the first data fragment and the second data fragment, in step S200, assign the second node to the first node according to the first file download request It includes step S510, step S520 and step S530.
步骤S510,根据第一文件下载请求分别查询第一数据片段对应的第一数据节点列表和第二数据片段对应的第一数据节点列表。Step S510, respectively query the first data node list corresponding to the first data segment and the first data node list corresponding to the second data segment according to the first file download request.
文件服务系统可以根据第一文件下载请求中的获得第一节点所需要的下载的第一数据片段和第二数据片段,确定第一数据片段对应的第一数据节点列表和第二数据片段对应的第一数据节点列表,并分别对第一数据片段对应的第一数据节点列表和第二数据片段对应的第一数据节点列表进行查询。The file service system may determine the first data node list corresponding to the first data segment and the list of nodes corresponding to the second data segment according to the downloaded first data segment and the second data segment required by the first node in the first file download request. The first data node list, and respectively query the first data node list corresponding to the first data segment and the first data node list corresponding to the second data segment.
步骤S520,从第一数据片段对应的第一数据节点列表中确定一个第二节点的节点信息,并向第一节点分配一个已下载第一数据片段的第二节点。Step S520, determining node information of a second node from the first data node list corresponding to the first data segment, and assigning a second node that has downloaded the first data segment to the first node.
文件服务系统可以从第一数据片段对应的第一数据节点列表中确定一个第二节点的节点信息,然后根据第一数据片段对应的第一数据节点列表中所确定的第二节点的节点信息向第一节点分配已确定的第二节点,以使第一节点可以通过第二节点获取第一数据片段,由于本技术方案实施例可以通过分配第二节点为第一节点提供第一数据片段下载服务,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。The file service system may determine the node information of a second node from the first data node list corresponding to the first data segment, and then submit the node information of the second node determined in the first data node list corresponding to the first data segment to The first node allocates the determined second node so that the first node can obtain the first data segment through the second node, because the embodiment of this technical solution can provide the first node with the first data segment download service by assigning the second node It can solve the problem that the file service system cannot provide the download service for the first node when the number of concurrent download connections reaches the connection threshold without expanding the capacity of the device, thereby improving user experience.
步骤S530,从第二数据片段对应的第一数据节点列表中确定一个第二节点的节点信息,并向第一节点分配一个已下载第二数据片段的第二节点。Step S530, determining node information of a second node from the first data node list corresponding to the second data segment, and assigning a second node that has downloaded the second data segment to the first node.
文件服务系统可以从第二数据片段对应的第一数据节点列表中确定一个第二节点的节点信息,然后根据第二数据片段对应的第一数据节点列表中所确定的第二节点的节点信息向第一节点分配第二节点,以使第一节点可以通过第二节点 获取第二数据片段,由于本技术方案实施例可以通过分配第二节点为第一节点提供第二数据片段下载服务,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。The file service system may determine the node information of a second node from the first data node list corresponding to the second data fragment, and then submit the node information of the second node determined in the first data node list corresponding to the second data fragment to The first node allocates the second node so that the first node can obtain the second data fragment through the second node. Since the embodiment of the technical solution can provide the second data fragment download service for the first node by assigning the second node, it can be Without the need to expand the device, the problem that the file service system cannot provide download services for the first node when the number of concurrent download connections reaches the connection threshold is solved, thereby improving user experience.
需要说明的是,从第一数据节点列表中确定一个第二节点的节点信息的方法可以是从第一数据节点列表中随机确定一个第二节点的节点信息,夜可以是通过获取第一数据节点列表中第二节点的质量参数,然后根据质量参数确定第一数据节点列表中质量参数最高的第二节点的节点信息,本实施例对从第一数据节点列表中确定一个第二节点的节点信息的方法不作具体限定。It should be noted that the method for determining the node information of a second node from the first data node list may be to randomly determine the node information of a second node from the first data node list, or by obtaining the node information of the first data node The quality parameter of the second node in the list, and then determine the node information of the second node with the highest quality parameter in the first data node list according to the quality parameter. This embodiment determines the node information of a second node from the first data node list The method is not specifically limited.
需要说明的是,质量参数可以是信噪比,可以是传输速率,本实施例对其不作具体限定。It should be noted that the quality parameter may be a signal-to-noise ratio or a transmission rate, which is not specifically limited in this embodiment.
如图6所示,图6是本申请一个实施例提供的文件服务系统侧的数据处理方法中生成第二数据节点列表的流程图,生成第一数据节点列表的方法步骤在步骤S100之前,包括但不限于步骤S610。As shown in FIG. 6, FIG. 6 is a flow chart of generating a second data node list in the data processing method on the file service system side provided by an embodiment of the present application. The method steps for generating the first data node list are before step S100, including But not limited to step S610.
步骤S610,根据数据片段以及已下载数据片段的第二节点生成第二数据节点列表,第二数据节点列表包括所有数据片段的片段信息以及与所有片段信息中的每一个片段信息所对应的第二节点的节点信息。Step S610, generating a second data node list according to the data segment and the second node of the downloaded data segment, the second data node list includes segment information of all data segments and a second node corresponding to each segment information in all segment information Node information for the node.
文件服务系统可以根据文件所包括的数据片段以及下载数据片段的第二节点生成第二数据节点列表,第二数据节点列表包括所有数据片段的片段信息以及与所有片段信息中的每一个片段信息所对应的第二节点的节点信息,可以理解的是,第二数据节点列表为由所有数据片段的片段信息以及所有数据片段中的每一个数据片段所对应的第二节点的节点信息所组成的数据节点列表。The file service system may generate a second data node list according to the data segments included in the file and the second node for downloading the data segments, the second data node list includes segment information of all data segments and information related to each segment information in all segment information Corresponding to the node information of the second node, it can be understood that the second data node list is data composed of the segment information of all data segments and the node information of the second node corresponding to each data segment in all data segments list of nodes.
可以理解的是,文件服务系统将某一个文件进行分段处理成第二数量个数据片段,那么该文件对应的第二数据节点列表中包括第二数量个数据片段的片段信息。It can be understood that, when the file service system segments a file into a second number of data segments, the second data node list corresponding to the file includes segment information of the second number of data segments.
需要说明的是,当第二节点中增加已下载的数据片段之后,文件服务系统会获取到来自第二节点所发送第一片段信息,第一片段信息表征第二节点已下载的数据片段,然后可以根据第一片段信息更新第二数据节点列表。It should be noted that after the downloaded data fragments are added to the second node, the file service system will obtain the first fragment information sent from the second node, the first fragment information represents the data fragments downloaded by the second node, and then The second data node list may be updated according to the first fragment information.
需要说明的是,文件服务系统可以每间隔一定时间向第二节点发起获取第二节点的第一片段信息的获取请求,从而能够获取到来自第二节点所发送第一片段信息,以更新第二数据节点列表中的信息。It should be noted that the file service system may initiate an acquisition request to the second node to obtain the first fragment information of the second node at regular intervals, so that the first fragment information sent from the second node can be obtained to update the second node. Information in the list of data nodes.
如图7所示,图7是本申请一个实施例提供的文件服务系统侧的数据处理方法中分配第二节点的另一个流程图,步骤S200中根据第一文件下载请求向第一节点分配第二节点包括步骤S710、步骤S720和步骤S730。As shown in FIG. 7, FIG. 7 is another flow chart of allocating the second node in the data processing method on the file service system side provided by an embodiment of the present application. In step S200, the first node is allocated to the first node according to the first file download request. The two nodes include step S710, step S720 and step S730.
步骤S710,获取第二数据节点列表;Step S710, obtaining a second data node list;
步骤S720,根据第一文件下载请求从第二数据节点列表中确定一个与数据片段对应的第二节点的节点信息;Step S720, determining node information of a second node corresponding to the data segment from the second data node list according to the first file download request;
步骤S730,根据第二节点的节点信息向第一节点分配第二节点。Step S730, assigning the second node to the first node according to the node information of the second node.
文件服务系统可以获取第二数据节点列表,然后根据第一文件下载请求从第二数据节点列表中确定一个与数据片段对应的第二节点的节点信息,然后根据第二节点的节点信息向第一节点分配第二节点,以使第一节点可以通过第二节点获取该数据片段,由于本技术方案实施例可以通过分配第二节点为第一节点提供数据片段下载服务,在无需扩容设备的情况下,能够减少出现文件服务系统无法为第一节点提供下载服务的问题。The file service system can obtain the second data node list, and then determine the node information of a second node corresponding to the data segment from the second data node list according to the first file download request, and then send the first file to the first node according to the node information of the second node The node allocates the second node so that the first node can obtain the data segment through the second node. Since the embodiment of this technical solution can provide the first node with the data segment download service by assigning the second node, there is no need to expand the device , which can reduce the problem that the file service system cannot provide the download service for the first node.
数据片段包括第一数据片段和第二数据片段,在第一节点所需要下载的数据片段包括第一数据片段和第二数据片段的情况下,文件服务系统可以获取第二数据节点列表,然后根据第一文件下载请求从第二数据节点列表中确定一个已下载第一数据片段和第二数据片段的第二节点的节点信息,根据第二节点的节点信息向第一节点分配第二节点,以使第一节点可以通过第二节点获取第一数据片段和第二数据片段,由于本技术方案实施例可以通过分配第二节点为第一节点提供数据片段下载服务,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。The data fragment includes the first data fragment and the second data fragment. In the case that the data fragment to be downloaded by the first node includes the first data fragment and the second data fragment, the file service system can obtain the second data node list, and then according to The first file download request determines the node information of a second node that has downloaded the first data fragment and the second data fragment from the second data node list, and allocates the second node to the first node according to the node information of the second node, so as to The first node can obtain the first data segment and the second data segment through the second node. Since the embodiment of this technical solution can provide the first node with the data segment download service by assigning the second node, it can The method solves the problem that the file service system cannot provide the download service for the first node when the number of concurrent download connections reaches the connection threshold, thereby improving user experience.
需要说明的是,从第二数据节点列表中确定一个第二节点的节点信息的方法可以是从第二数据节点列表中确定多个已下载第一节点需要下载的所有数据片段的多个第二节点的节点信息,让后从多个第二节点的节点信息随机确定一个第二节点的节点信息;也可以是通过获取第二数据节点列表中确定多个已下载第一节点需要下载的所有数据片段的多个第二节点的节点信息,然后获取多个第二节点的质量参数,然后根据质量参数确定质量参数最高的第二节点的节点信息,本实施例对从第二数据节点列表中确定一个第二节点的方法不作具体限定。It should be noted that, the method for determining the node information of a second node from the second data node list may be to determine from the second data node list a plurality of second The node information of the node, and then randomly determine the node information of a second node from the node information of multiple second nodes; it can also be determined by obtaining all the data downloaded by the first node that needs to be downloaded by obtaining the second data node list The node information of multiple second nodes of the segment, and then obtain the quality parameters of multiple second nodes, and then determine the node information of the second node with the highest quality parameter according to the quality parameters. This embodiment determines from the second data node list The method of a second node is not specifically limited.
需要说明的是,质量参数可以是信噪比,可以是传输速率,本实施例对其不作具体限定。It should be noted that the quality parameter may be a signal-to-noise ratio or a transmission rate, which is not specifically limited in this embodiment.
如图8所示,图8是本申请一个实施例提供的第一节点侧的数据处理方法的流程图,该数据处理方法应用于第一节点,并且该数据处理方法包括但不限于有步骤S810、步骤S820。As shown in Figure 8, Figure 8 is a flowchart of a data processing method on the first node side provided by an embodiment of the present application, the data processing method is applied to the first node, and the data processing method includes but is not limited to step S810 , step S820.
步骤S810,获取来自文件服务系统所分配的第二节点的节点信息,第二节点为已下载第一节点所需要下载的数据片段的节点。Step S810, acquiring node information from the second node allocated by the file service system, the second node is a node that has downloaded the data segment required by the first node.
第一节点向自文件服务系统发送第一文件下载请求,如果文件服务系统处于并发下载连接数达到连接阈值的情况下,那么第一节点会获取到来自文件服务系统所分配的第二节点的节点信息,第二节点为已下载第一节点所需要下载的数据片段的节点,第二节点信息用于触发第一节点向已下载该第一节点所需要下载的数据片段的第二节点发起第二文件下载请求。The first node sends the first file download request to the file service system. If the number of concurrent download connections in the file service system reaches the connection threshold, the first node will obtain the node from the second node allocated by the file service system. information, the second node is a node that has downloaded the data segment that the first node needs to download, and the second node information is used to trigger the first node to initiate a second node to the second node that has downloaded the data segment that the first node needs to download. File download request.
步骤S820,根据第二节点的节点信息向第二节点发送第二文件下载请求,以通过第二节点获取所需要下载的数据片段。Step S820, sending a second file download request to the second node according to the node information of the second node, so as to obtain the data segment to be downloaded through the second node.
第一节点可以根据第二节点的节点信息向文件服务系统所分配的第二节点发送第二文件下载请求,以使该第一节点通过第二节点获取所需要下载的数据片段,由于本技术方案实施例可以通过文件服务系统所分配第二节点下载数据片段,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。The first node can send a second file download request to the second node assigned by the file service system according to the node information of the second node, so that the first node obtains the data segment to be downloaded through the second node. Due to the technical solution In this embodiment, the second node allocated by the file service system can download data segments, which can solve the problem that the file service system cannot provide download services for the first node when the number of concurrent download connections reaches the connection threshold without the need for expansion equipment , thereby improving user experience.
如图9所示,图9是本申请一个实施例提供的第一节点侧的数据处理方法的对已下载的数据片段进行处理的流程图,第一节点包括第一缓存模块,图8的数据处理方法还包括但不限于步骤S910。As shown in Figure 9, Figure 9 is a flow chart of processing the downloaded data fragments of the data processing method on the first node side provided by an embodiment of the present application, the first node includes a first cache module, and the data in Figure 8 The processing method also includes but not limited to step S910.
步骤S910,将从第二节点所获取的数据片段存储在第一缓存模块中,并向文件服务系统发送第二片段信息,以使文件服务系统根据第二片段信息更新第一数据节点列表或者第二数据节点列表,第二片段信息为第一节点已下载的数据片段的片段信息。Step S910, storing the data fragment obtained from the second node in the first cache module, and sending the second fragment information to the file service system, so that the file service system updates the first data node list or the first data node list according to the second fragment information. Two data node lists, the second fragment information is the fragment information of the data fragments downloaded by the first node.
当第一节点从第二节点完成数据片段的获取之后,第一节点将该数据片段存储在第一缓存模块中,然后向文件服务系统发送第二片段信息(第二片段信息为 第一节点已下载的数据片段的片段信息),以使文件服务系统根据第二片段信息更新第一数据节点列表或者第二数据节点列表,即该第一节点成为该数据片段的第二节点,可以为其他第一节点提供该数据片段的下载服务。After the first node completes the acquisition of the data segment from the second node, the first node stores the data segment in the first cache module, and then sends the second segment information to the file service system (the second segment information is the first node's fragment information of the downloaded data fragment), so that the file service system updates the first data node list or the second data node list according to the second fragment information, that is, the first node becomes the second node of the data fragment, and can be other A node provides the download service of the data segment.
需要说明的是,第一节点将该数据片段存储在第一缓存模块之后,可以对第一缓存模块设置声明周期,当数据片段存储在第一缓存模块的时间超过声明周期之后,且没有其他第一节点正在下载该数据片段时,将该数据片段进行删除,并向文件服务系统发送第一通知,以通知文件服务系统在第一数据节点列表或者第二数据节点列表中删除该数据片段的第一节点的信息。It should be noted that after the first node stores the data segment in the first cache module, the declaration cycle can be set for the first cache module. When a node is downloading the data segment, delete the data segment, and send a first notification to the file service system to notify the file service system to delete the first data segment in the first data node list or the second data node list. information about a node.
如图10所示,图10是本申请一个实施例提供的第二节点侧的数据处理方法的流程图,该数据处理方法应用于第二节点,并且该数据处理方法包括但不限于有步骤S1010、步骤S1020。As shown in Figure 10, Figure 10 is a flowchart of a data processing method on the second node side provided by an embodiment of the present application, the data processing method is applied to the second node, and the data processing method includes but is not limited to step S1010 , step S1020.
步骤S1010,获取来自第一节点所发送的第二文件下载请求,第二文件下载请求为向第一节点获取所需要下载的数据片段的请求,第二文件下载请求的发送对象由文件服务系统在文件服务系统的并发下载连接数达到连接阈值的情况下所分配。Step S1010, obtain the second file download request sent from the first node, the second file download request is a request to obtain the data segment to be downloaded from the first node, and the sending object of the second file download request is provided by the file service system in It is allocated when the number of concurrent download connections of the file service system reaches the connection threshold.
步骤S1020,根据第二文件下载请求向第一节点发送数据片段。Step S1020, sending the data segment to the first node according to the second file download request.
第二节点获取来自第一节点所发送的第二文件下载请求,其中第二文件下载请求为向第一节点获取所需要下载的数据片段的请求,第二文件下载请求的发送对象由文件服务系统在文件服务系统的并发下载连接数达到连接阈值的情况下所分配,该第二节点已下载所需要下载的数据片段,然后第二节点根据第二文件下载请求向第一节点发送数据片段,由于本技术方案实施例第二节点可以在文件服务系统的并发下载连接数达到连接阈值的情况下根据第二文件下载请求向第一节点发送数据片段,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。The second node obtains the second file download request sent from the first node, wherein the second file download request is a request to obtain the data segment to be downloaded from the first node, and the second file download request is sent to the file service system Assigned when the number of concurrent download connections of the file service system reaches the connection threshold, the second node has downloaded the data segment to be downloaded, and then the second node sends the data segment to the first node according to the second file download request, because In the embodiment of the technical solution, the second node can send data fragments to the first node according to the second file download request when the number of concurrent download connections of the file service system reaches the connection threshold, which can solve the problem of file service without expanding the device. When the number of concurrent download connections reaches the connection threshold, the system cannot provide download services for the first node, thereby improving user experience.
如图11所示,图11是本申请一个实施例提供的第二节点侧的数据处理方法的对已下载的数据片段进行处理的流程图,第二节点包括第二缓存模块,图10的数据处理方法还包括但不限于步骤S1110。As shown in Figure 11, Figure 11 is a flow chart of processing the downloaded data fragments of the data processing method on the second node side provided by an embodiment of the present application, the second node includes a second cache module, and the data in Figure 10 The processing method also includes but not limited to step S1110.
步骤S1110,将通过文件服务系统所获取的数据片段存储在第二缓存模块中,并向文件服务系统发送第一片段信息,以使文件服务系统根据第一片段信息更新第一数据节点列表或者第二数据节点列表,第一片段信息为第二节点已下载的数据片段的片段信息。Step S1110, storing the data fragments obtained through the file service system in the second cache module, and sending the first fragment information to the file service system, so that the file service system can update the first data node list or the first data node list according to the first fragment information. Two data node lists, the first fragment information is the fragment information of the data fragments downloaded by the second node.
当第二节点通过文件服务系统下载数据片段之后,第二节点将该数据片段存储在第二缓存模块中,然后向文件服务系统发送第二片段信息(第一片段信息为第二节点已下载的数据片段的片段信息),以使文件服务系统根据第二片段信息更新第一数据节点列表或者第二数据节点列表。After the second node downloads the data segment through the file service system, the second node stores the data segment in the second cache module, and then sends the second segment information to the file service system (the first segment information is the downloaded data of the second node) fragment information of the data fragment), so that the file service system updates the first data node list or the second data node list according to the second fragment information.
需要说明的是,第二节点将该数据片段存储在第二缓存模块之后,可以对第二缓存模块设置声明周期,当数据片段存储在第二缓存模块的时间超过声明周期之后,且没有其他第一节点正在下载该数据片段时,将该数据片段进行删除,并向文件服务系统发送第二通知,以通知文件服务系统在第一数据节点列表或者第二数据节点列表中删除该数据片段对应的第二节点的节点信息。It should be noted that after the second node stores the data segment in the second cache module, the declaration cycle can be set for the second cache module. When a node is downloading the data segment, delete the data segment and send a second notification to the file service system to notify the file service system to delete the data segment corresponding to the data segment in the first data node list or the second data node list Node information of the second node.
如图12所示,图12是本申请一个实施例提供的基于系统架构平台的数据处理方法的流程图,应用于系统架构平台,系统架构平台在5G消息系统中使用的场景下,数据处理方法包括但不限于步骤1210至步骤S1280。As shown in Figure 12, Figure 12 is a flowchart of a data processing method based on a system architecture platform provided by an embodiment of the present application, applied to the system architecture platform, and the data processing method in the scenario where the system architecture platform is used in a 5G message system Including but not limited to step 1210 to step S1280.
步骤S1210,终端设备向文件下载服务器节点发起第一文件下载请求;Step S1210, the terminal device initiates a first file download request to the file download server node;
步骤S1220,文件下载服务器节点根据第一文件下载请求中的终端设备需要下载的文件的文件标识符描述符(File Identifier Descriptor,简称FID),以判断该文件是否为公共文件;Step S1220, the file download server node judges whether the file is a public file according to the file identifier descriptor (File Identifier Descriptor, FID) of the file to be downloaded by the terminal device in the first file download request;
步骤S1230,如果当前用户下载的文件是公共文件,则判断当前的文件下载服务器节点的并发下载连接数是否达到连接阈值;Step S1230, if the file downloaded by the current user is a public file, then judge whether the number of concurrent download connections of the current file download server node reaches the connection threshold;
步骤S1240,如果并发下载连接数没有达到连接阈值,则由文件下载服务器节点直接向终端设备提供下载服务,且将终端设备的节点信息列入该公共文件的数据节点列表中备用;Step S1240, if the number of concurrent download connections does not reach the connection threshold, the file download server node directly provides the download service to the terminal device, and includes the node information of the terminal device in the data node list of the public file for standby;
步骤S1250,如果并发下载连接数达到连接阈值,那么文件下载管理器根据FID查找数据节点列表,获取正在下载该文件的终端设备的列表信息和文件的数据片段的片段信息;Step S1250, if the number of concurrent download connections reaches the connection threshold, the file download manager searches the data node list according to the FID, and obtains the list information of the terminal device that is downloading the file and the fragment information of the data fragment of the file;
步骤S1260,文件下载管理器根据获取到当前下载该文件的终端设备列表信息和的数据片段的片段信息向终端设备分配已下载该文件的终端设备;Step S1260, the file download manager allocates the terminal device that has downloaded the file to the terminal device according to the obtained list information of the terminal device currently downloading the file and the segment information of the data segment;
步骤S1270,当终端设备下载成功一个数据片段后,终端设备将该数据片段存储在缓存模块中,并准备向其它分布式节点的终端设备提供服务;Step S1270, when the terminal device successfully downloads a data segment, the terminal device stores the data segment in the cache module, and prepares to provide services to terminal devices of other distributed nodes;
步骤S1280,对终端设备的缓存模块设定声明周期,当数据片段存储在缓存模块的时间超出声明周期后,且当前无其它终端设备正在下载该数据片段,则从缓存模块中删除该数据片段,并向文件下载管理器发起通知,通知文件下载管理器删除数据节点列表的中的该数据片段的片段信息对应的终端设备。Step S1280, setting a statement period for the cache module of the terminal device, and when the time for storing the data segment in the cache module exceeds the statement period, and no other terminal device is currently downloading the data segment, delete the data segment from the cache module, And initiate a notification to the file download manager to notify the file download manager to delete the terminal device corresponding to the segment information of the data segment in the data node list.
由于本技术方案实施例可以在文件服务系统的并发下载连接数达到连接阈值的情况下通过分配第二节点为第一节点提供数据片段下载服务,能够在无需扩容设备的情况下,解决文件服务系统在并发下载连接数达到连接阈值的情况下无法为第一节点提供下载服务的问题,从而能够提高用户体验。Since the embodiment of the technical solution can provide the first node with data fragment download service by allocating the second node when the number of concurrent download connections of the file service system reaches the connection threshold, it can solve the file service system problem without expanding the capacity of the device. The problem that the download service cannot be provided for the first node when the number of concurrent download connections reaches the connection threshold can improve user experience.
基于上述数据处理方法,下面分别提出本申请的文件服务系统、终端设备和计算机可读存储介质的各个实施例。Based on the above data processing method, various embodiments of the file service system, the terminal device, and the computer-readable storage medium of the present application are respectively proposed below.
本申请的一个实施例还提供了一种文件服务系统,如图13所示,文件服务系统1300包括存储器1320、处理器1310及存储在存储器1320上并可在处理器1310上运行的计算机程序。An embodiment of the present application also provides a file service system. As shown in FIG. 13 , the file service system 1300 includes a memory 1320 , a processor 1310 and a computer program stored in the memory 1320 and executable on the processor 1310 .
处理器1310和存储器1320可以通过总线或者其他方式连接。The processor 1310 and the memory 1320 may be connected via a bus or in other ways.
存储器1320作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器1320可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器1320可包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 1320, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory 1320 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some implementations, memory 1320 may include memory located remotely from the processor, which remote memory may be connected to the processor through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
实现上述实施例的数据处理方法所需的非暂态软件程序以及指令存储在存储器1320中,当被处理器1310执行时,执行上述实施例中的数据处理方法,例如,执行以上描述的图2中的方法步骤S100至S200、图3中的方法步骤S310、图4中的方法步骤S410至S420、图5中的方法步骤S510至S530、图6中的方法步骤S610以及图7中的方法步骤S710至S730。The non-transitory software programs and instructions required to realize the data processing method of the above-mentioned embodiment are stored in the memory 1320, and when executed by the processor 1310, the data processing method in the above-mentioned embodiment is executed, for example, executing the above-described Figure 2 Method steps S100 to S200 in, method steps S310 in Fig. 3, method steps S410 to S420 in Fig. 4, method steps S510 to S530 in Fig. 5, method steps S610 in Fig. 6 and method steps in Fig. 7 S710 to S730.
本申请的一个实施例还提供了一种终端设备,如图14所示,终端设备1400包括存储器1420、处理器1410及存储在存储器1420上并可在处理器1410上运行的计算机程序。An embodiment of the present application also provides a terminal device. As shown in FIG. 14 , a terminal device 1400 includes a memory 1420 , a processor 1410 , and a computer program stored in the memory 1420 and operable on the processor 1410 .
处理器1410和存储器1420可以通过总线或者其他方式连接。The processor 1410 and the memory 1420 may be connected through a bus or in other ways.
存储器1420作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器1420可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器1420可包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory computer-readable storage medium, the memory 1420 can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory 1420 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some implementations, memory 1420 may include memory located remotely from the processor, which remote memory may be connected to the processor through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
实现上述实施例的数据处理方法所需的非暂态软件程序以及指令存储在存储器1420中,当被处理器1410执行时,执行上述实施例中的数据处理方法,例如,执行以上描述的图8中的方法步骤S810至S820、图9中的方法步骤S910、图10中的方法步骤S1010至S1020、图11中的方法步骤S1110。The non-transitory software programs and instructions required to realize the data processing method of the above-mentioned embodiment are stored in the memory 1420, and when executed by the processor 1410, the data processing method in the above-mentioned embodiment is executed, for example, executing the above-described Figure 8 The method steps S810 to S820 in FIG. 9 , the method steps S910 in FIG. 9 , the method steps S1010 to S1020 in FIG. 10 , and the method step S1110 in FIG. 11 .
此外,本申请的一个实施例还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个处理器或控制器执行,例如,被上述实施例中通信设备中的一个处理器执行,可使得处理器执行上述实施例中的对应于文件服务系统的数据处理方法,例如,执行以上描述的图2中的方法步骤S100至S200、图3中的方法步骤S310、图4中的方法步骤S410至S420、图5中的方法步骤S510至S530、图6中的方法步骤S610以及图7中的方法步骤S710至S730。In addition, an embodiment of the present application also provides a computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by a processor or a controller, for example, by the above-mentioned Execution by a processor in the communication device in the embodiment can cause the processor to execute the data processing method corresponding to the file service system in the above embodiment, for example, execute the method steps S100 to S200 in Fig. 2 described above, and Fig. 3 Method step S310 in FIG. 4 , method steps S410 to S420 in FIG. 4 , method steps S510 to S530 in FIG. 5 , method step S610 in FIG. 6 , and method steps S710 to S730 in FIG. 7 .
或者,执行上述实施例中的对应于终端设备的数据处理方法,例如,执行以上描述的图8中的方法步骤S810至S820、图9中的方法步骤S910、图10中的方法步骤S1010至S1020、图11中的方法步骤S1110。Alternatively, execute the data processing method corresponding to the terminal device in the above embodiments, for example, execute the method steps S810 to S820 in FIG. 8 , the method steps S910 in FIG. 9 , and the method steps S1010 to S1020 in FIG. 10 described above. , method step S1110 in FIG. 11 .
本申请实施例包括:在文件服务系统的并发下载连接数达到连接阈值的情况下,获取第一文件下载请求,第一文件下载请求表征第一节点向文件服务系统申请下载文件,文件包括至少一个数据片段;根据第一文件下载请求向第一节点分配第二节点,以使第一节点通过第二节点获取第一节点所需要的下载数据片段。在本技术方案的实施例中,在文件服务系统的并发下载连接数达到连接阈值的情况下,文件服务系统无法向第一节点提供下载服务,那么文件服务系统可以根据第一文件下载请求向第一节点分配已下载第一节点需要下载的数据片段的第二节点,以使第一节点通过第二节点获取第一节点所需要的下载数据片段,由于本技术方案实施例可以通过分配第二节点为第一节点提供数据片段下载服务,在无需扩容设备的情况下,能够减少出现文件服务系统无法为第一节点提供下载服务的问题。The embodiment of the present application includes: when the number of concurrent download connections of the file service system reaches the connection threshold, obtaining a first file download request, the first file download request indicates that the first node applies to the file service system to download a file, and the file includes at least one Data segment: assigning a second node to the first node according to the first file download request, so that the first node obtains the downloaded data segment required by the first node through the second node. In the embodiment of this technical solution, when the number of concurrent download connections of the file service system reaches the connection threshold, the file service system cannot provide the download service to the first node, then the file service system can send the file service system to the second node according to the first file download request. A node allocates the second node that has downloaded the data segment that the first node needs to download, so that the first node obtains the downloaded data segment required by the first node through the second node, because the embodiment of this technical solution can distribute the second node Providing the data fragment download service for the first node can reduce the problem that the file service system cannot provide the download service for the first node without expanding the device.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机 可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those skilled in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware and an appropriate combination thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
以上是对本申请的若干实施方式进行了具体说明,但本申请并不局限于上述实施方式,熟悉本领域的技术人员在不违背本申请精神的前提下还可作出种种的等同变形或替换,这些等同的变形或替换均包含在本申请权利要求所限定的范围内。The above is a specific description of several embodiments of the present application, but the present application is not limited to the above-mentioned embodiments, and those skilled in the art can also make various equivalent deformations or replacements without violating the spirit of the present application. Equivalent modifications or replacements are all within the scope defined by the claims of the present application.

Claims (16)

  1. 一种数据处理方法,应用于文件服务系统,包括:A data processing method applied to a file service system, comprising:
    在所述文件服务系统的并发下载连接数达到连接阈值的情况下,获取第一文件下载请求,所述第一文件下载请求表征第一节点向所述文件服务系统申请下载文件,所述文件包括至少一个数据片段;When the number of concurrent download connections of the file service system reaches the connection threshold, a first file download request is obtained, and the first file download request indicates that the first node applies to the file service system to download a file, and the file includes at least one data segment;
    根据所述第一文件下载请求向所述第一节点分配第二节点,以使所述第一节点通过所述第二节点获取所述第一节点所需要的下载所述数据片段。Allocating a second node to the first node according to the first file download request, so that the first node obtains the data segment required by the first node for downloading through the second node.
  2. 根据权利要求1所述的数据处理方法,其中,所述根据所述第一文件下载请求向所述第一节点分配第二节点之前,包括:The data processing method according to claim 1, wherein, before assigning the second node to the first node according to the first file download request, comprising:
    根据所述数据片段以及已下载所述数据片段的所述第二节点生成第一数据节点列表,所述第一数据节点列表包括已下载所述数据片段的所有所述第二节点的节点信息。A first data node list is generated according to the data segment and the second node that has downloaded the data segment, and the first data node list includes node information of all the second nodes that have downloaded the data segment.
  3. 根据权利要求2所述的数据处理方法,其中,所述根据所述第一文件下载请求向所述第一节点分配第二节点,包括:The data processing method according to claim 2, wherein said allocating a second node to said first node according to said first file download request comprises:
    根据所述第一文件下载请求查询所述数据片段对应的第一数据节点列表;Querying the first data node list corresponding to the data segment according to the first file download request;
    从所述第一数据节点列表中确定一个所述第二节点的节点信息,并根据所述第二节点的节点信息向所述第一节点分配所述第二节点。determining node information of one of the second nodes from the first data node list, and assigning the second node to the first node according to the node information of the second node.
  4. 根据权利要求2所述的数据处理方法,其中,所述数据片段包括第一数据片段和第二数据片段,在所述第一节点所需要下载的所述数据片段包括所述第一数据片段和所述第二数据片段的情况下,所述根据所述第一文件下载请求向所述第一节点分配第二节点,包括:The data processing method according to claim 2, wherein the data fragments include a first data fragment and a second data fragment, and the data fragments to be downloaded at the first node include the first data fragments and the second data fragments. In the case of the second data segment, the allocating the second node to the first node according to the first file download request includes:
    根据所述第一文件下载请求分别查询所述第一数据片段对应的第一数据节点列表和所述第二数据片段对应的第一数据节点列表;respectively querying the first data node list corresponding to the first data segment and the first data node list corresponding to the second data segment according to the first file download request;
    从所述第一数据片段对应的第一数据节点列表中确定一个所述第二节点的节点信息,并向所述第一节点分配一个已下载所述第一数据片段的所述第二节点;determining node information of a second node from the first data node list corresponding to the first data segment, and assigning a second node that has downloaded the first data segment to the first node;
    从所述第二数据片段对应的第一数据节点列表中确定一个所述第二节点的节点信息,并向所述第一节点分配一个已下载所述第二数据片段的所述第二节点。Determining node information of a second node from the first data node list corresponding to the second data segment, and assigning a second node that has downloaded the second data segment to the first node.
  5. 根据权利要求1所述的数据处理方法,其中,所述根据所述第一文件下载请求向所述第一节点分配第二节点之前,包括:The data processing method according to claim 1, wherein, before assigning the second node to the first node according to the first file download request, comprising:
    根据所述数据片段以及已下载所述数据片段的第二节点生成第二数据节点列表,所述第二数据节点列表包括所有所述数据片段的片段信息以及与所有所述片段信息中的每一个所述片段信息所对应的所述第二节点的节点信息。Generate a second data node list according to the data fragment and the second node that has downloaded the data fragment, the second data node list includes fragment information of all the data fragments and each of all the fragment information Node information of the second node corresponding to the fragment information.
  6. 根据权利要求5所述的数据处理方法,其中,所述根据所述第一文件下载请求向所述第一节点分配第二节点,包括:The data processing method according to claim 5, wherein said allocating a second node to said first node according to said first file download request comprises:
    获取所述第二数据节点列表;Obtain the second data node list;
    根据所述第一文件下载请求从所述第二数据节点列表中确定一个与所述数据片段对应的所述第二节点的节点信息;determining node information of a second node corresponding to the data segment from the second data node list according to the first file download request;
    根据所述第二节点的节点信息向所述第一节点分配所述第二节点。Allocating the second node to the first node according to the node information of the second node.
  7. 根据权利要求6所述的数据处理方法,其中,所述数据片段包括第一数据片段和第二数据片段,在所述第一节点所需要下载的所述数据片段包括所述第一数据片段和所述第二数据片段的情况下,所述根据所述第一文件下载请求从所述第二数据节点列表中确定一个与所述数据片段对应的所述第二节点,包括:The data processing method according to claim 6, wherein the data fragments include a first data fragment and a second data fragment, and the data fragments to be downloaded at the first node include the first data fragments and the second data fragments. In the case of the second data segment, the determining a second node corresponding to the data segment from the second data node list according to the first file download request includes:
    根据所述第一文件下载请求从所述第二数据节点列表中确定一个已下载所述第一数据片段和所述第二数据片段的第二节点。A second node that has downloaded the first data segment and the second data segment is determined from the second data node list according to the first file download request.
  8. 根据权利要求2所述的数据处理方法,其中,所述方法还包括:The data processing method according to claim 2, wherein said method further comprises:
    获取来自所述第二节点所发送第一片段信息,所述第一片段信息为所述第二节点已下载的所述数据片段的片段信息;Obtaining first segment information sent from the second node, where the first segment information is segment information of the data segments downloaded by the second node;
    根据所述第一片段信息更新所述第一数据节点列表。Updating the first data node list according to the first fragment information.
  9. 根据权利要求5所述的数据处理方法,其中,所述方法还包括:The data processing method according to claim 5, wherein said method further comprises:
    获取来自所述第二节点所发送的第一片段信息,所述第一片段信息为所述第二节点已下载的所述数据片段的片段信息;Obtaining first segment information sent from the second node, where the first segment information is segment information of the data segments downloaded by the second node;
    根据所述第一片段信息更新所述第二数据节点列表。Updating the second data node list according to the first fragment information.
  10. 一种数据处理方法,应用于第一节点,包括:A data processing method, applied to a first node, comprising:
    获取来自文件服务系统所分配的第二节点的节点信息,所述第二节点为已下载所述第一节点所需要下载的所述数据片段的节点;Obtaining node information from a second node allocated by the file service system, the second node being a node that has downloaded the data segment required by the first node;
    根据所述第二节点的节点信息向所述第二节点发送第二文件下载请求,以通过所述第二节点获取所需要下载的所述数据片段。Sending a second file download request to the second node according to the node information of the second node, so as to obtain the data segment to be downloaded through the second node.
  11. 根据权利要求10所述的数据处理方法,其中,所述第一节点包括第一缓存模块,所述方法还包括:The data processing method according to claim 10, wherein the first node includes a first cache module, and the method further includes:
    将从所述第二节点所获取的数据片段存储在所述第一缓存模块中,并向所述文件服务系统发送第二片段信息,以使所述文件服务系统根据第二片段信息更新第一数据节点列表或者第二数据节点列表,所述第二片段信息为所述第一节点已下载的所述数据片段的片段信息。storing the data fragments obtained from the second node in the first cache module, and sending the second fragment information to the file service system, so that the file service system updates the first A data node list or a second data node list, the second segment information is the segment information of the data segments downloaded by the first node.
  12. 一种数据处理方法,应用于第二节点,包括:A data processing method applied to a second node, comprising:
    获取来自第一节点所发送的第二文件下载请求,所述第二文件下载请求为向所述第一节点获取所需要下载的数据片段的请求,所述第二文件下载请求的发送对象由文件服务系统在所述文件服务系统的并发下载连接数达到连接阈值的情况下所分配;Obtain a second file download request sent by the first node, the second file download request is a request to obtain the data segment to be downloaded from the first node, and the sending object of the second file download request is a file Assigned by the service system when the number of concurrent download connections of the file service system reaches the connection threshold;
    根据第二文件下载请求向所述第一节点发送所述数据片段。sending the data segment to the first node according to a second file download request.
  13. 根据权利要求12所述的数据处理方法,其中,所述第二节点包括第二缓存模块,所述方法还包括:The data processing method according to claim 12, wherein the second node includes a second cache module, and the method further includes:
    将通过所述文件服务系统所获取的所述数据片段存储在第二缓存模块中,并向所述文件服务系统发送第一片段信息,以使所述文件服务系统根据第一片段信息更新第一数据节点列表或者第二数据节点列表,所述第一片段信息为所述第二节点已下载的所述数据片段的片段信息。storing the data segments obtained through the file service system in a second cache module, and sending first segment information to the file service system, so that the file service system updates the first segment information according to the first segment information A data node list or a second data node list, the first segment information is the segment information of the data segments downloaded by the second node.
  14. 一种文件服务系统,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求1至9任意一项所述的数据处理方法。A file service system, comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein, when the processor executes the computer program, any one of claims 1 to 9 is realized The data processing method described.
  15. 一种终端设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,所述处理器执行所述计算机程序时实现如权利要求10或11所述的数据处理方法,或者实现如权利要求12或13所述的数据处理方法。A terminal device, comprising: a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein, when the processor executes the computer program, the data according to claim 10 or 11 is realized processing method, or realize the data processing method as claimed in claim 12 or 13.
  16. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求1至9任意一项所述的数据处理方法,或者执行权利要求10或11所述的数据处理方法,或者执行权利要求12或13所述的数据处理方法。A computer-readable storage medium storing computer-executable instructions for executing the data processing method described in any one of claims 1 to 9, or executing the data processing method described in claim 10 or 11 processing method, or execute the data processing method described in claim 12 or 13.
PCT/CN2022/090046 2021-06-23 2022-04-28 Data processing method, file service system, terminal device, and storage medium WO2022267692A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110696241.4 2021-06-23
CN202110696241.4A CN115514753A (en) 2021-06-23 2021-06-23 Data processing method, file service system, terminal device, and storage medium

Publications (1)

Publication Number Publication Date
WO2022267692A1 true WO2022267692A1 (en) 2022-12-29

Family

ID=84499015

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/090046 WO2022267692A1 (en) 2021-06-23 2022-04-28 Data processing method, file service system, terminal device, and storage medium

Country Status (2)

Country Link
CN (1) CN115514753A (en)
WO (1) WO2022267692A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039187A (en) * 2006-03-17 2007-09-19 腾讯科技(深圳)有限公司 Method for downloading data and system thereof
CN101505315A (en) * 2008-12-25 2009-08-12 中山大学 P2p game server control system
US20120054282A1 (en) * 2010-08-27 2012-03-01 Industrial Technology Research Institute Architecture and method for hybrid peer to peer/client-server data transmission
CN102685083A (en) * 2011-03-17 2012-09-19 开心人网络科技(北京)有限公司 Point-to-point document download method, server and client
CN103747032A (en) * 2013-12-12 2014-04-23 北京奇虎科技有限公司 File transmission method, device and system
CN111147595A (en) * 2019-12-30 2020-05-12 昆山丘钛微电子科技有限公司 Document downloading method, system, server and client

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039187A (en) * 2006-03-17 2007-09-19 腾讯科技(深圳)有限公司 Method for downloading data and system thereof
CN101505315A (en) * 2008-12-25 2009-08-12 中山大学 P2p game server control system
US20120054282A1 (en) * 2010-08-27 2012-03-01 Industrial Technology Research Institute Architecture and method for hybrid peer to peer/client-server data transmission
CN102685083A (en) * 2011-03-17 2012-09-19 开心人网络科技(北京)有限公司 Point-to-point document download method, server and client
CN103747032A (en) * 2013-12-12 2014-04-23 北京奇虎科技有限公司 File transmission method, device and system
CN111147595A (en) * 2019-12-30 2020-05-12 昆山丘钛微电子科技有限公司 Document downloading method, system, server and client

Also Published As

Publication number Publication date
CN115514753A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
US11172023B2 (en) Data synchronization method and system
US20160080483A1 (en) Method for setting gateway device identity, and management gateway device
CN111565404B (en) Data distribution method and device
WO2019001421A1 (en) Method, device, and computer readable storage medium for managing network slice
CN113596191B (en) Data processing method, network element equipment and readable storage medium
US20170373931A1 (en) Method for updating network service descriptor nsd and apparatus
TW201526654A (en) System and method for implementing video calls
EP3735043B1 (en) Network slice deployment method and apparatus
US11251981B2 (en) Communication method and apparatus
US11617063B2 (en) Method, apparatus, and system for changing association relationship between MCPTT user and MCPTT group
WO2018000202A1 (en) Load migration method, apparatus and system
WO2016184178A1 (en) Resource control method and apparatus
US20200244753A1 (en) Method, system and server for stream-pushing
KR102500594B1 (en) Service Layer Message Templates in Communication Networks
US20220248290A1 (en) Communication Method and Communications Apparatus
WO2020015649A1 (en) Network slice mutual exclusion relation processing method, device and system, and medium
US20230269794A1 (en) Local network accessing method and apparatus
EP3417367A1 (en) Implementing a storage system using a personal user device and a data distribution device
WO2022052875A1 (en) Terminal cross-region communication method, network element device, and storage medium
KR20130130295A (en) System and method for assigining server to terminal and efficiently delivering messages to the terminal
US9459807B2 (en) Methods and systems for providing resources for cloud storage
US20180081746A1 (en) Application message processing system, method, and application device
WO2020248633A1 (en) Group member management method and apparatus, group message processing method and apparatus, device, and storage medium
WO2022267692A1 (en) Data processing method, file service system, terminal device, and storage medium
US20050198370A1 (en) Method for creating, deleting, and maintaining logical networks

Legal Events

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

Ref document number: 22827191

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE