CN114679410A - Method and device for reducing occupation of external network resources, electronic equipment and storage medium - Google Patents

Method and device for reducing occupation of external network resources, electronic equipment and storage medium Download PDF

Info

Publication number
CN114679410A
CN114679410A CN202011545176.7A CN202011545176A CN114679410A CN 114679410 A CN114679410 A CN 114679410A CN 202011545176 A CN202011545176 A CN 202011545176A CN 114679410 A CN114679410 A CN 114679410A
Authority
CN
China
Prior art keywords
subdirectory
target data
intranet
prompt information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011545176.7A
Other languages
Chinese (zh)
Other versions
CN114679410B (en
Inventor
李旺辉
钱雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Original Assignee
NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Qianxin Technology Group Co Ltd
Secworld Information Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER, Qianxin Technology Group Co Ltd, Secworld Information Technology Beijing Co Ltd filed Critical NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER
Priority to CN202011545176.7A priority Critical patent/CN114679410B/en
Publication of CN114679410A publication Critical patent/CN114679410A/en
Application granted granted Critical
Publication of CN114679410B publication Critical patent/CN114679410B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/13Flow control; Congestion control in a LAN segment, e.g. ring or bus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/06Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols the encryption apparatus using shift registers or memories for block-wise or stream coding, e.g. DES systems or RC4; Hash functions; Pseudorandom sequence generators
    • H04L9/0643Hash functions, e.g. MD5, SHA, HMAC or f9 MAC

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method, a device, electronic equipment and a storage medium for reducing occupation of external network resources, wherein an intranet server generates prompt information according to stored target data, so that the intranet equipment can download required target data from the intranet server according to the prompt information, the target data does not need to be downloaded through an external network, the influence of the data downloaded by the intranet equipment on the use of the external network resources by other intranet services is avoided, and the normal operation of intranet services is favorably ensured.

Description

Method and device for reducing occupation of external network resources, electronic equipment and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for reducing occupation of resources of an external network, an electronic device, and a storage medium.
Background
Typically, an intranet user within a local area network wants to find and download data (e.g., software or non-internal files, etc.) from an extranet provider server by connecting to the extranet provider server through the intranet. However, when a large amount of data in the intranet needs to be downloaded through the extranet, huge traffic will be generated, and extranet resources are occupied (for example, the traffic of downloading data from the extranet may occupy resources such as bandwidth and traffic of the intranet to the outside), so that the operation of other normal services of the intranet that need to be performed through the extranet may be affected.
Therefore, in the prior art, downloading data from the external network by the internal network device may affect the use of external network resources by other internal network services, and affect the normal operation of the internal network services.
Disclosure of Invention
The invention provides a method, a device, electronic equipment and a storage medium for reducing occupation of extranet resources, which are used for solving the defects that in the prior art, downloading data from an extranet by intranet equipment may influence the use of extranet resources by other intranet services and influence the normal operation of intranet services, avoiding influence of the downloading data by the intranet equipment on the use of extranet resources by other intranet services, and being beneficial to ensuring the normal operation of the intranet services.
The invention provides a method for reducing the occupation of external network resources, which comprises the following steps:
generating prompt information according to target data stored in the intranet server; the prompt information is used for prompting the intranet equipment that the target data are stored in the intranet server;
and sending the prompt information to the intranet equipment so that the intranet equipment acquires the target data from the intranet server according to the prompt information.
On the basis, the device for reducing the occupation of the resources of the external network generates the prompt information according to the target data stored in the internal network server, and comprises the following steps:
and generating a download link for downloading the target data according to the storage position of the target data in the intranet server, wherein the download link is used as the prompt information.
On the basis, before generating a download link for downloading the target data according to the storage location of the target data in the intranet server, the method for reducing the occupation of resources of an external network further includes:
determining a target encryption value of the target data according to a preset encryption algorithm; the preset encryption algorithm comprises at least one of the following: md5 encryption algorithm, sha1 encryption algorithm;
according to the target encryption value, searching a subdirectory matched with the target encryption value under a root directory corresponding to a storage area for storing the target data to serve as a matched subdirectory;
determining a storage position for storing the target data according to the matching subdirectory;
and the subdirectories under the root directory are named by characters in the preset encryption algorithm encryption value.
On the basis, searching a subdirectory matched with the target encryption value under a root directory corresponding to a storage area for storing the target data according to the target encryption value to serve as a matching subdirectory, and the method for reducing the occupation of external network resources comprises the following steps:
circularly executing the searching operation according to the target encryption value until the subdirectory does not exist under the subdirectory searched for this time, and taking the subdirectory searched for this time as the matching subdirectory;
wherein the lookup operation comprises:
when the target encryption value is executed for the first time, searching a subdirectory named by the first character of the target encryption value under the root directory as the subdirectory searched for this time;
and when the program is not executed for the first time, determining the subdirectory number corresponding to the subdirectory searched for the previous time, acquiring characters with the number of digits equal to the subdirectory number from the target encryption value to be used as the name of the subdirectory of the current time, and searching the subdirectory named by the name of the subdirectory of the current time under the subdirectory searched for the previous time to be used as the subdirectory searched for the current time.
The invention provides a method for reducing the occupation of external network resources, wherein on the basis, the step of determining the storage position for storing the target data according to the matching subdirectory comprises the following steps:
if the number of files contained in the matching subdirectory is larger than a preset threshold value, creating a new subdirectory under the matching subdirectory according to the target encryption value, and taking a storage position corresponding to the new subdirectory as a storage position for storing the target data;
and if the number of the files contained in the matching subdirectory is less than or equal to the preset threshold, taking the storage position corresponding to the matching subdirectory as the storage position for storing the target data.
The invention provides a method for reducing occupation of resources of an external network, and on the basis, the sending of the prompt information to the internal network equipment comprises the following steps:
and sending the prompt information to the intranet equipment through the heartbeat connection between the intranet server and the intranet equipment.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the steps of any one of the above methods for reducing the occupation of the external network resources.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method for reducing occupation of external network resources as described in any of the above.
The present invention also provides a computer program which, when executed by a processor, performs the steps of the method for reducing occupation of resources of an external network as described in any of the above.
The invention provides a method, a device, electronic equipment and a storage medium for reducing occupation of external network resources, wherein an intranet server generates prompt information according to stored target data, so that the intranet equipment can download required target data from the intranet server according to the prompt information, the target data does not need to be downloaded through an external network, the influence of the data downloaded by the intranet equipment on the use of the external network resources by other intranet services is avoided, and the normal operation of intranet services is favorably ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a conventional network architecture provided by an embodiment of the present invention;
FIG. 2 is a schematic diagram of an improved network architecture provided by another embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for reducing occupation of resources on an external network according to another embodiment of the present invention;
FIG. 4 is a diagram illustrating a download link generation process according to another embodiment of the present invention;
FIG. 5 is a schematic diagram of a software distribution process provided by another embodiment of the invention;
fig. 6 is a block diagram of an apparatus for reducing occupation of resources of an external network according to another embodiment of the present invention;
fig. 7 is a schematic physical structure diagram of an electronic device according to another embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
In contrast, fig. 1 is a schematic diagram of a conventional network architecture provided in this embodiment, and referring to fig. 1, in the conventional network architecture, when a device of a local area network a and a device of a local area network B (i.e., an intranet device) want to search and download software, a server connected to an external software provider through a company internal network (i.e., an intranet) is required. The entity and information downloaded by the software are transmitted through the bandwidth of the extranet of the company. Under the condition that the number of intranet devices is large, huge flow can be generated, and the access of a normal intranet to an extranet is blocked.
To solve the technical problem, fig. 2 is a schematic diagram of an improved network architecture provided in this embodiment, and compared with the existing network architecture, a local information server (i.e., an intranet server for providing data to an intranet device) is installed in an intranet. The terminal requests data (e.g. software) to acquire the desired data (e.g. software) by only requesting the intranet server (i.e. intranet server) without passing through the extranet, so that occupation of extranet resources is avoided, and normal operation of intranet services is guaranteed.
The following describes a process of downloading target data through an intranet:
fig. 3 is a schematic flowchart of a method for reducing occupation of resources of an external network according to this embodiment, where the method for reducing occupation of resources of the external network may be executed by an intranet server, and referring to fig. 3, the method for reducing occupation of resources of the external network includes:
step 301: generating prompt information according to target data stored in the intranet server; the prompt information is used for prompting the intranet equipment that the target data are stored in the intranet server;
step 302: and sending the prompt information to the intranet equipment so that the intranet equipment acquires the target data from the intranet server according to the prompt information.
The target data may be data that any intranet device needs to obtain from an extranet, such as data of files, software, and the like. The intranet may include at least one local area network. The prompt information is used for prompting the target data stored in the intranet server of the intranet equipment, so that the intranet equipment does not need to download the target data through an extranet, and occupation of extranet resources is avoided.
It can be understood that, after receiving the prompt information, the intranet device may directly request the target data from the intranet server through the intranet, or may download the target data according to a download link obtained by the prompt information, which is not specifically limited in this embodiment.
According to the method for reducing occupation of the resources of the external network, the internal network server generates the prompt information according to the stored target data, so that the internal network equipment can download the required target data from the internal network server according to the prompt information, the target data does not need to be downloaded through the external network, the situation that the internal network equipment downloads the data to influence the use of other internal network services on the resources of the external network is avoided, and the normal operation of the internal network services is favorably ensured.
Further, on the basis of the above embodiment, the generating of the prompt information according to the target data stored in the intranet server includes:
and generating a download link for downloading the target data according to the storage position of the target data in the intranet server, wherein the download link is used as the prompt information.
In this embodiment, the download link of the target data can be directly used as the prompt information, and the download link is pushed to the intranet terminal, so that the intranet terminal can directly download the target data based on the download link, and an approach for the intranet terminal to quickly download the target data is provided.
Further, on the basis of the foregoing embodiments, before generating a download link for downloading the target data according to the storage location of the target data in the intranet server, the method further includes:
determining a target encryption value of the target data according to a preset encryption algorithm; the preset encryption algorithm comprises at least one of the following: md5 encryption algorithm, sha1 encryption algorithm;
according to the target encryption value, searching a subdirectory matched with the target encryption value under a root directory corresponding to a storage area for storing the target data to serve as a matched subdirectory;
and determining a storage position for storing the target data according to the matching subdirectory.
In order to improve the efficiency of searching the target data, subdirectories named by characters forming the encryption value of the preset encryption algorithm can be established under the root directory of the stored data, and the target data is stored in the corresponding storage positions of the subdirectories. In the subsequent process of searching for a certain target data, the target data can be quickly searched directly through the encrypted value of the target data.
For example, if the characters composing the encryption value of md5 include letters, numbers, etc., then a certain letter (e.g., a) or a certain number (e.g., 3) can be used as the name of a certain subdirectory under the root directory. When the target data is stored, the subdirectory for storing the target data can be determined according to the target encryption value of the target data, and correspondingly, when the target data needs to be searched, the target data can be quickly and directly searched through the target encryption value.
In the embodiment, the subdirectory is named by the characters forming the encryption value of the preset encryption algorithm, and the data stored under the root directory is stored according to the encryption value sub-directory, so that the query range can be reduced according to the target encryption value when the data under the root directory is queried, and the query efficiency is improved.
Further, on the basis of the foregoing embodiments, the searching, according to the target encryption value, for a subdirectory matched with the target encryption value under a root directory corresponding to a storage area for storing the target data, as a matched subdirectory, includes:
circularly executing the searching operation according to the target encryption value until the subdirectory does not exist under the subdirectory searched for this time, and taking the subdirectory searched for this time as the matching subdirectory;
wherein the lookup operation comprises:
when the target encryption value is executed for the first time, searching a subdirectory named by the first character of the target encryption value under the root directory as the subdirectory searched for this time;
and when the program is not executed for the first time, determining the subdirectory number corresponding to the subdirectory searched for the previous time, acquiring characters with the number of digits equal to the subdirectory number from the target encryption value to be used as the name of the subdirectory of the current time, and searching the subdirectory named by the name of the subdirectory of the current time under the subdirectory searched for the previous time to be used as the subdirectory searched for the current time.
In the present embodiment, the following rules are substantially set: the characters naming any subdirectory in any subdirectory level are the same as the characters where the median of a certain encryption value is equal to the level of any subdirectory. That is, the characters in level 1 subdirectories represent the 1 st bit character of the cryptographic value, the characters in level 2 subdirectories represent the 2 nd bit character of the cryptographic value, and so on. For example, the subdirectory query process corresponding to the cryptographic value "ABGR … …" may include: the subdirectory named A in the level 1 subdirectory is queried in turn, the subdirectory named B is queried under the subdirectory named A, the subdirectory named G is queried under the subdirectory named B, the subdirectory named R is queried under the subdirectory named G, and so on.
Accordingly, the target data stored through the above process may be generated in the following form when the download link is generated: the first bit of the download path/destination cryptographic value/the second bit of the destination cryptographic value/… … corresponding to the root directory.
Fig. 4 is a schematic diagram of a download link generation process provided in this embodiment, and referring to fig. 4, the process includes:
taking the predetermined encryption algorithm md5 as an example, when the administrator of the intranet server has uploaded the target data (e.g., a piece of local software), the piece of software is saved in the intranet server. And generating a download link according to the md5 encrypted value and the storage path of the software.
The process of generating the download link may include:
the md5 encryption value of the software is calculated, and the md5 encryption value is a unique character string consisting of 32-bit characters.
In order to clearly locate the software, the download link is spliced with the first, second, third, etc. encrypted values of md5 of the software by the backslash number according to the download file path (corresponding to the root directory) configured in the configuration file. I.e. can be generated according to the following formula: download link (configurable)/md 5 encryption value first bit/md 5 encryption value second bit/… ….
In the embodiment, when the target data is stored, the matching subdirectories are searched and determined layer by layer according to the target encryption value, the storage position of the target data is determined according to the matching subdirectories, and then the subdirectories can be inquired layer by layer according to the target encryption value in the process of inquiring the target data, so that the subdirectories in which the target data is stored can be rapidly positioned.
Further, on the basis of the foregoing embodiments, the determining, according to the matching sub-directory, a storage location for storing the target data includes:
if the number of files contained in the matching subdirectory is greater than a preset threshold value, creating a new subdirectory under the matching subdirectory according to the target encryption value, and taking a storage position corresponding to the new subdirectory as a storage position for storing the target data;
and if the number of the files contained in the matching subdirectory is less than or equal to the preset threshold, taking the storage position corresponding to the matching subdirectory as the storage position for storing the target data.
When the target data is stored, after a certain sub-matching directory is matched, the target data can be directly stored in the matching sub-directory, or a new sub-directory is created, and the target data is stored in the new sub-directory.
Whether the new subdirectory is used for storing the target data is determined mainly according to the number of files stored in the matching subdirectory, for example, when the number of files in the matching subdirectory is large, the new subdirectory can be used for storing the target data, so that the time for searching the target data in the matching subdirectory with large number of files is saved, and the efficiency for searching the target data is improved.
In this embodiment, when the target data is stored, the new subdirectory is created under the matching subdirectory, so that the target data can be prevented from being stored in the matching subdirectory with a large number of files, and the query efficiency of subsequently querying the target data is improved.
Further, on the basis of the foregoing embodiments, the sending the prompt information to the intranet device includes:
and sending the prompt information to the intranet equipment through the heartbeat connection between the intranet server and the intranet equipment.
Intranet server and intranet equipment can guarantee through the heartbeat connection that intranet server and intranet equipment can keep long-time connection to after having updated the target data in intranet server, can in time inform intranet equipment through the heartbeat connection.
In this embodiment, the prompt information is sent to the intranet equipment through heartbeat connection, so that the intranet equipment can obtain the prompt information in time, and the target data can be obtained in time after the intranet server updates the target data.
With software as target data, fig. 5 is a schematic diagram of a distribution process of the software provided in this embodiment, referring to fig. 5, when the software is distributed, an administrator connects the download link for downloading the software with the heartbeat of the intranet device through the software server (i.e., the intranet server), and notifies the intranet device that a piece of software needs to be downloaded, and the intranet device requests the local software through the download link. The software downloading is completed through the intranet flow instead of the external internet, so that the extranet flow is greatly saved.
The invention distributes and downloads the local software, can save the occupation of the external network flow, thereby reducing the occupation of the bandwidth to the maximum extent under the condition of insufficient internal network bandwidth of a company and not influencing the development of main services.
Fig. 6 is a block diagram of a structure of an apparatus for reducing occupation of external network resources according to this embodiment, and referring to fig. 6, the apparatus for reducing occupation of external network resources includes a generating module 601 and a sending module 602, wherein,
a generating module 601, configured to generate a prompt message according to target data stored in the intranet server; the prompt information is used for prompting the intranet equipment that the target data are stored in the intranet server;
a sending module 602, configured to send the prompt information to the intranet device, so that the intranet device obtains the target data from the intranet server according to the prompt information.
The method for reducing occupation of external network resources provided in this embodiment is applicable to the method for reducing occupation of external network resources provided in the foregoing embodiments, and is not described herein again.
The invention provides a device for reducing occupation of resources of an external network, wherein an internal network server generates prompt information according to stored target data, so that internal network equipment can download required target data from the internal network server according to the prompt information, the target data does not need to be downloaded through the external network, the influence of the data downloaded by the internal network equipment on the use of the resources of the external network by other internal network services is avoided, and the normal operation of the internal network services is favorably ensured.
On the basis, the device for reducing the occupation of the resources of the external network generates the prompt information according to the target data stored in the internal network server, and comprises the following steps:
and generating a download link for downloading the target data according to the storage position of the target data in the intranet server, wherein the download link is used as the prompt information.
On the basis, before generating a download link for downloading the target data according to the storage location of the target data in the intranet server, the apparatus for reducing the occupation of resources of an external network further includes:
determining a target encryption value of the target data according to a preset encryption algorithm; the preset encryption algorithm comprises at least one of the following: md5 encryption algorithm, sha1 encryption algorithm;
according to the target encryption value, searching a subdirectory matched with the target encryption value under a root directory corresponding to a storage area for storing the target data to serve as a matched subdirectory;
determining a storage position for storing the target data according to the matching subdirectory;
and the subdirectories under the root directory are named by characters in the preset encryption algorithm encryption value.
On the basis, the device for reducing the occupation of external network resources searches subdirectories matched with the target encryption value under a root directory corresponding to a storage area for storing the target data according to the target encryption value, and the device used for searching the subdirectories matched with the target encryption value as the matched subdirectories comprises the following steps:
circularly executing the searching operation according to the target encryption value until the subdirectory does not exist under the subdirectory searched for this time, and taking the subdirectory searched for this time as the matching subdirectory;
wherein the lookup operation comprises:
when the target encryption value is executed for the first time, searching a subdirectory named by the first character of the target encryption value under the root directory as the subdirectory searched for this time;
and when the program is not executed for the first time, determining the subdirectory number corresponding to the subdirectory searched for the previous time, acquiring characters with the number of digits equal to the subdirectory number from the target encryption value to be used as the name of the subdirectory of the current time, and searching the subdirectory named by the name of the subdirectory of the current time under the subdirectory searched for the previous time to be used as the subdirectory searched for the current time.
The invention provides a device for reducing the occupation of external network resources, wherein on the basis, the determining of the storage position for storing the target data according to the matching subdirectory comprises the following steps:
if the number of files contained in the matching subdirectory is greater than a preset threshold value, creating a new subdirectory under the matching subdirectory according to the target encryption value, and taking a storage position corresponding to the new subdirectory as a storage position for storing the target data;
and if the number of the files contained in the matching subdirectory is less than or equal to the preset threshold, taking the storage position corresponding to the matching subdirectory as the storage position for storing the target data.
The invention provides a device for reducing occupation of resources of an external network, and on the basis, the sending of the prompt information to the internal network equipment comprises the following steps:
and sending the prompt information to the intranet equipment through the heartbeat connection between the intranet server and the intranet equipment.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)710, a communication Interface (Communications Interface)720, a memory (memory)730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may invoke logic instructions in memory 730 to perform a method for reducing occupation of resources of an external network, the method comprising:
generating prompt information according to target data stored in the intranet server; the prompt information is used for prompting the intranet equipment that the target data are stored in the intranet server;
and sending the prompt information to the intranet equipment so that the intranet equipment acquires the target data from the intranet server according to the prompt information.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, which when executed by a computer, enable the computer to perform the method for reducing occupation of external network resources provided by the above methods, the method comprising:
generating prompt information according to target data stored in the intranet server; the prompt information is used for prompting the intranet equipment that the target data are stored in the intranet server;
and sending the prompt information to the intranet equipment so that the intranet equipment acquires the target data from the intranet server according to the prompt information.
In another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the method for reducing occupation of external network resources provided by the above methods, where the method includes:
generating prompt information according to target data stored in the intranet server; the prompt information is used for prompting the intranet equipment that the target data are stored in the intranet server;
and sending the prompt information to the intranet equipment so that the intranet equipment acquires the target data from the intranet server according to the prompt information.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for reducing occupation of resources of an external network is characterized by comprising the following steps:
generating prompt information according to target data stored in the intranet server; the prompt information is used for prompting the intranet equipment that the target data are stored in the intranet server;
and sending the prompt information to the intranet equipment so that the intranet equipment acquires the target data from the intranet server according to the prompt information.
2. The method according to claim 1, wherein the generating of the prompt information according to the target data stored in the intranet server includes:
and generating a download link for downloading the target data according to the storage position of the target data in the intranet server, wherein the download link is used as the prompt information.
3. The method according to claim 2, wherein before generating a download link for downloading the target data according to the storage location of the target data in the intranet server, the method further comprises:
determining a target encryption value of the target data according to a preset encryption algorithm; the preset encryption algorithm comprises at least one of the following: md5 encryption algorithm, sha1 encryption algorithm;
according to the target encryption value, searching a subdirectory matched with the target encryption value under a root directory corresponding to a storage area for storing the target data to serve as a matched subdirectory;
determining a storage position for storing the target data according to the matching subdirectory;
and the subdirectories under the root directory are named by characters in the preset encryption algorithm encryption value.
4. The method for reducing the occupation of external network resources according to claim 3, wherein the searching, according to the target encryption value, for the subdirectory matched with the target encryption value under the root directory corresponding to the storage area for storing the target data as the matched subdirectory, comprises:
circularly executing the searching operation according to the target encryption value until the subdirectory does not exist under the subdirectory searched for this time, and taking the subdirectory searched for this time as the matching subdirectory;
wherein the lookup operation comprises:
when the target encryption value is executed for the first time, searching a subdirectory named by the first character of the target encryption value under the root directory as the subdirectory searched for this time;
and when the program is not executed for the first time, determining the subdirectory number corresponding to the subdirectory searched for the previous time, acquiring characters with the number of digits equal to the subdirectory number from the target encryption value to be used as the name of the subdirectory of the current time, and searching the subdirectory named by the name of the subdirectory of the current time under the subdirectory searched for the previous time to be used as the subdirectory searched for the current time.
5. The method for reducing occupation of external network resources according to claim 3, wherein the determining a storage location for storing the target data according to the matching sub-directory comprises:
if the number of files contained in the matching subdirectory is greater than a preset threshold value, creating a new subdirectory under the matching subdirectory according to the target encryption value, and taking a storage position corresponding to the new subdirectory as a storage position for storing the target data;
and if the number of the files contained in the matching subdirectory is less than or equal to the preset threshold, taking the storage position corresponding to the matching subdirectory as the storage position for storing the target data.
6. The method according to claim 1, wherein the sending the prompt message to the intranet device includes:
and sending the prompt information to the intranet equipment through the heartbeat connection between the intranet server and the intranet equipment.
7. An apparatus for reducing occupation of resources of an external network, comprising:
the generating module is used for generating prompt information according to the target data stored in the intranet server; the prompt information is used for prompting the intranet equipment that the target data are stored in the intranet server;
and the sending module is used for sending the prompt information to the intranet equipment so that the intranet equipment obtains the target data from the intranet server according to the prompt information.
8. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the steps of the method for reducing occupation of external network resources according to any one of claims 1 to 6.
9. A non-transitory readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method for reducing occupation of external network resources according to any one of claims 1 to 6.
10. A computer program comprising computer program code means for performing the steps of a method for reducing occupation of resources of an external network according to any one of claims 1 to 6 when said computer program is executed by a processor.
CN202011545176.7A 2020-12-24 2020-12-24 Method and device for reducing occupation of external network resources, electronic equipment and storage medium Active CN114679410B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011545176.7A CN114679410B (en) 2020-12-24 2020-12-24 Method and device for reducing occupation of external network resources, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011545176.7A CN114679410B (en) 2020-12-24 2020-12-24 Method and device for reducing occupation of external network resources, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114679410A true CN114679410A (en) 2022-06-28
CN114679410B CN114679410B (en) 2024-04-12

Family

ID=82070822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011545176.7A Active CN114679410B (en) 2020-12-24 2020-12-24 Method and device for reducing occupation of external network resources, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114679410B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230792A1 (en) * 2003-04-24 2004-11-18 International Business Machines Corporation Methods and systems for transparent data encryption and decryption
US20070028110A1 (en) * 2005-07-29 2007-02-01 Bit 9, Inc. Content extractor and analysis system
US20080044030A1 (en) * 2006-08-04 2008-02-21 Microsoft Corporation Protected contact data in an electronic directory
CN101924797A (en) * 2010-08-26 2010-12-22 成都市华为赛门铁克科技有限公司 Method, device and system for processing source downloading
CN102780779A (en) * 2012-07-23 2012-11-14 北京星网锐捷网络技术有限公司 Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
CN106874366A (en) * 2016-12-30 2017-06-20 腾讯科技(深圳)有限公司 The processing method and processing device of software information
WO2017124179A1 (en) * 2016-01-21 2017-07-27 Arctec Mobile Inc. Automated updates for encrypted attached, network or cloud data storage systems
US20180046519A1 (en) * 2011-12-12 2018-02-15 International Business Machines Corporation Dispersed storage network secure hierarchical file directory
CN110262821A (en) * 2019-06-14 2019-09-20 深圳前海微众银行股份有限公司 A kind of management method of software module, device and server

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040230792A1 (en) * 2003-04-24 2004-11-18 International Business Machines Corporation Methods and systems for transparent data encryption and decryption
US20070028110A1 (en) * 2005-07-29 2007-02-01 Bit 9, Inc. Content extractor and analysis system
US20080044030A1 (en) * 2006-08-04 2008-02-21 Microsoft Corporation Protected contact data in an electronic directory
CN101924797A (en) * 2010-08-26 2010-12-22 成都市华为赛门铁克科技有限公司 Method, device and system for processing source downloading
US20180046519A1 (en) * 2011-12-12 2018-02-15 International Business Machines Corporation Dispersed storage network secure hierarchical file directory
CN102780779A (en) * 2012-07-23 2012-11-14 北京星网锐捷网络技术有限公司 Gateway equipment and method and device for optimization of campus network export P2P (peer-to-peer) traffic
WO2017124179A1 (en) * 2016-01-21 2017-07-27 Arctec Mobile Inc. Automated updates for encrypted attached, network or cloud data storage systems
CN106874366A (en) * 2016-12-30 2017-06-20 腾讯科技(深圳)有限公司 The processing method and processing device of software information
CN110262821A (en) * 2019-06-14 2019-09-20 深圳前海微众银行股份有限公司 A kind of management method of software module, device and server

Also Published As

Publication number Publication date
CN114679410B (en) 2024-04-12

Similar Documents

Publication Publication Date Title
CN107294729B (en) Communication method and device between different nodes in block chain
US8175584B2 (en) System and method to facilitate downloading data at a mobile wireless device
CN103037312B (en) Information push method and device
TWI659300B (en) Method and device for providing equipment identification
US9792623B2 (en) Advertisement processing method and apparatus
US11856046B2 (en) Endpoint URL generation and management
CN109617996B (en) File uploading and downloading method, server and computer readable storage medium
US9992296B2 (en) Caching objects identified by dynamic resource identifiers
CN109729183B (en) Request processing method, device, equipment and storage medium
WO2019201040A1 (en) File update management method and system and terminal apparatus
US20180359243A1 (en) Methods and systems for single sign-on while protecting user privacy
CN113015162B (en) Protocol data unit session strategy establishing method and device, authentication unit and network element
CN112769801B (en) Method, device, equipment and storage medium for extracting backup from cloud server
CN108429739B (en) Method, system and terminal equipment for identifying honeypots
CN110213290B (en) Data acquisition method, API gateway and storage medium
CN110543324A (en) Plug-in increment updating method and device for application program
US20170155712A1 (en) Method and device for updating cache data
EP2557826A1 (en) Service management system and method
CN107623662B (en) Access control method, device and system
CN111835504B (en) Identification code generation method and server
CN114428661A (en) Mirror image management method and device
CN109672756B (en) Data transmission method and related device, server and storage medium
CN110519656B (en) Self-adaptive streaming media playing method, system and server
CN114679410A (en) Method and device for reducing occupation of external network resources, electronic equipment and storage medium
EP3416351A1 (en) Implementation method, apparatus and system for remote access

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Country or region after: China

Address after: 100044 2nd floor, building 1, yard 26, Xizhimenwai South Road, Xicheng District, Beijing

Applicant after: Qianxin Wangshen information technology (Beijing) Co.,Ltd.

Applicant after: Qianxin Technology Group Co.,Ltd.

Applicant after: NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER

Address before: 100044 2nd floor, building 1, yard 26, Xizhimenwai South Road, Xicheng District, Beijing

Applicant before: LEGENDSEC INFORMATION TECHNOLOGY (BEIJING) Inc.

Country or region before: China

Applicant before: Qianxin Technology Group Co.,Ltd.

Applicant before: NATIONAL COMPUTER VIRUS EMERGENCY RESPONSE CENTER

GR01 Patent grant
GR01 Patent grant