CN113132462B - File data transmission method, system and terminal equipment of 5G virtualized network element - Google Patents

File data transmission method, system and terminal equipment of 5G virtualized network element Download PDF

Info

Publication number
CN113132462B
CN113132462B CN202110275230.9A CN202110275230A CN113132462B CN 113132462 B CN113132462 B CN 113132462B CN 202110275230 A CN202110275230 A CN 202110275230A CN 113132462 B CN113132462 B CN 113132462B
Authority
CN
China
Prior art keywords
file
length information
sent
abstract value
data
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.)
Active
Application number
CN202110275230.9A
Other languages
Chinese (zh)
Other versions
CN113132462A (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.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies 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 Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202110275230.9A priority Critical patent/CN113132462B/en
Publication of CN113132462A publication Critical patent/CN113132462A/en
Application granted granted Critical
Publication of CN113132462B publication Critical patent/CN113132462B/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
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/02Processing of mobility data, e.g. registration information at HLR [Home Location Register] or VLR [Visitor Location Register]; Transfer of mobility data, e.g. between HLR, VLR or external networks
    • H04W8/08Mobility data transfer

Abstract

The invention discloses a file data transmission method, a system and terminal equipment of a 5G virtualized network element, wherein the method comprises the following steps: the server receives a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value and a file identifier; determining a file to be sent and second length information of the file to be sent according to the file identifier; when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data; if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted; and if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted. The invention can realize that the file to be sent is continuously sent to the client from the interrupt position without resending the file after the transmission is interrupted.

Description

File data transmission method, system and terminal equipment of 5G virtual network element
Technical Field
The present invention relates to the field of data transmission, and in particular, to a method, a system, and a terminal device for transmitting file data of a 5G virtualized network element.
Background
The fifth Generation mobile communication technology (5th Generation mobile networks or 5th Generation with less systems, 5th-Generation, 5G or 5G technology for short) is the latest Generation cellular mobile communication technology, and is also an extension following 4G (LTE-A, WiMax), 3G (UMTS, LTE) and 2G (gsm) systems. The performance goals of 5G are high data rates, reduced latency, energy savings, reduced cost, increased system capacity, and large-scale device connectivity.
In order to achieve the purposes of saving energy and reducing cost, the 5G communication system adopts a virtualization technology, and each functional module is operated in a virtual network element mode respectively, wherein each virtual network element comprises a virtual machine system program and a file system thereof
A simple File Transfer Protocol (TFTP) is a simple File Transfer Protocol in a TCP/IP Protocol suite, and is used to backup all files in a File system of a virtual network element, where the virtual network element to be backed up is used as a TFTP server, and a network element where files to be backed up are separately stored is used as a TFTP client.
If the process of obtaining the file is requested by the TFTP client to the TFTP server, and the process is interrupted because the network is unstable or the network fails, the TFTP client needs to request to transmit the file again. When a large file is requested, because the transmission of the large file needs more time, the probability of the occurrence of the situation of network instability in the transmission process of the large file is higher, once the network is unstable, the file needs to be requested to be transmitted again, and the transmission interruption is likely to occur in the process of transmitting the large file every time because of the network problem, so that the large file cannot be transmitted.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention mainly aims to provide a file data transmission method, a data transmission system and terminal equipment of a 5G virtualized network element, so that a TFTP server side can continuously send files from an interrupt position after sending the files to a TFTP client side.
In a first aspect, the present invention provides a file data transmission method for a 5G virtualized network element, which is applied to a server in a data transmission system, where the data transmission system further includes a client, and the method includes:
receiving a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier;
determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information;
when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data;
comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted;
and if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted.
In one implementation, when the first digest value is the same as the second digest value, the file to be written is identical to the preamble of the file to be sent.
In one implementation, if the first digest value is equal to the second digest value, determining to start transmitting data from a position corresponding to the first length information of the file to be transmitted includes:
adding a continuous transmission identifier at a position corresponding to the first length information in the file to be transmitted;
taking file data in the file to be sent except the file data corresponding to the first length information as first target data to be sent;
and sending the first target data to be sent to the client according to the continuous transmission identifier.
In an implementation manner, if the second length information is smaller than the first length information or the first digest value is not equal to the second digest value, determining to transmit data from the beginning of the file to be transmitted includes:
if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, acquiring all data in the file to be transmitted, and adding an initial transmission identifier;
all data in the file to be sent are used as second target data to be sent;
and sending the second target data to be sent to a client according to the initial transmission identifier.
In one implementation, the method further comprises:
and when the second length information is equal to the first length information and the first abstract value is equal to the second abstract value, sending response information for stopping transmitting the file to be transmitted to the client.
In a second aspect, an embodiment of the present invention further provides a data transmission method, where the data transmission method is applied to a client in a data transmission system, the data transmission system further includes a server, and the method includes:
sending a request instruction to the server, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier, and the file identifier is used for determining the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, calculating a second abstract value corresponding to the file data, and if the first abstract value is equal to the second abstract value, receiving the file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
In one implementation, the method further comprises:
and when the second length information is equal to the first length information and the first abstract value is equal to the second abstract value, receiving response information sent by the server and used for stopping transmission of the file to be sent.
In a third aspect, an embodiment of the present invention further provides a file data transmission system for a 5G virtualized network element, where the file data transmission system includes: a server and a client;
the server is used for receiving a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier; determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information; when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data; comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data is transmitted from a first length of the file to be transmitted; if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted;
the client is used for sending a request instruction to the server, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier, and the file identifier is used for determining the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information, and if the first abstract value is equal to the second abstract value, file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent is received;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
In a fourth aspect, the present invention provides a terminal device, including a memory and a processor, where the memory stores a computer program, and the processor implements the following steps when executing the computer program:
receiving a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier;
determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information;
when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data;
comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted;
if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted;
alternatively, the first and second electrodes may be,
sending a request instruction to the server, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier, and the file identifier is used for determining the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information, and if the first abstract value is equal to the second abstract value, file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent is received;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
In a fifth aspect, the present invention provides a computer readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, performs the steps of:
receiving a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier;
determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information;
when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data;
comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted;
if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted;
alternatively, the first and second liquid crystal display panels may be,
sending a request instruction to the server, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier, and the file identifier is used for determining the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information and the first abstract value is equal to the second abstract value, file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent is received;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, a server receives a request instruction sent by a client, wherein the request instruction sent by the client is received, and the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier; determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information; when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data; and comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted. In the invention, the first abstract value is the same as the second abstract value, and the to-be-written file and the preamble part of the to-be-sent file are completely the same, so that the to-be-sent file is continuously sent to the client from an interrupt position without resending the file after the transmission is interrupted.
Drawings
FIG. 1 is a schematic diagram of a method for processing navigation data of an electronic program guide according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method for processing navigation data of an electronic program guide according to an embodiment of the present invention;
fig. 3 is an internal structural diagram of a terminal device in the embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The inventor finds out through research that, if the TFTP client requests the TFTP server for the file acquisition process, and if the process is interrupted due to network instability or network failure, the TFTP client needs to request the file retransmission. When a large file is requested, because more time is needed for transmission of the large file, the probability of occurrence of a situation of network instability in the transmission process of the large file is higher, once the network is unstable, the file needs to be requested to be transmitted again, and it is likely that transmission interruption occurs in the process of transmitting the large file every time due to network problems, so that the large file cannot be transmitted.
In order to solve the above problem, in the embodiment of the present invention, a server receives a request instruction sent by a client, where the request instruction includes first length information of a file to be written, a first digest value of the file to be written, and a file identifier, and then determines, according to the file identifier, the file to be sent and second length information of the file to be sent, and compares the first length information with the second length information. And then reading file data corresponding to the first length information in the file to be sent when the second length information is larger than or equal to the first length information, and calculating a second abstract value corresponding to the file data. And then comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data is transmitted to a client from a position corresponding to the first length information of the file to be transmitted. And if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted to a client from the beginning of the file to be transmitted.
The file data transmission method of the 5G virtualization network element is applied to a data transmission system, the data transmission system comprises a client and a server, the client requests data from the server, the server sends the data requested by the client to the client, both the client and the server are equipment ends, the client and the server can be similar equipment, and both the client and the server can be equipment such as a computer, a mobile terminal, intelligent wearable equipment or a television end.
Various non-limiting embodiments of the present invention are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a data transmission method in an embodiment of the present invention is shown, and is applied to a data transmission system, where the data transmission system includes a client and a server, and the method includes:
s1, the client sends a request instruction to the server, wherein the request instruction includes the first length information of the file to be written, the first abstract value of the file to be written and the file identification.
In the embodiment of the invention, the server is a server based on a tftp protocol, the client is a client based on the tftp protocol, the client requests a file from the server, the server acquires first length information, a first abstract value and a file identifier of the file to be written before the client requests the file from the server, the file identifier is a unique identifier of the file to be written, the file to be sent in the server can be found through the file identifier, and the file identifier can be a file name. In this embodiment, the request instruction may be a data packet for obtaining a file.
In the embodiment of the invention, the file pointer is moved to the end of the file to be written, and then the offset of the file pointer relative to the file header is obtained, wherein the offset is the first length information. Calculating the length of the file to be written and the value of an information Digest Algorithm (Message-Digest Algorithm 5, md5), and taking the md5 value of the file to be written as the first Digest value of the file to be written.
And S2, the server receives the request instruction sent by the client.
S3, the server determines the file to be sent and the second length information of the file to be sent according to the file identifier, and compares the first length information with the second length information.
In the embodiment of the present invention, after receiving the file identifier of the question file to be written, the server side corresponds to the file to be written through the file identifier, that is, the file to be sent can be determined through the file identifier, and then the second length information of the file to be sent is determined; the process of determining the first length information of the file to be written is the same as the process of determining the second length information of the file to be sent. When the second length information is determined, the embodiment compares the second length information with the first length information.
And S4, when the second length information is greater than or equal to the first length information, the server reads the file data corresponding to the first length information in the file to be sent, and calculates a second abstract value corresponding to the file data.
In this embodiment, when the first length information is inconsistent with the second length information, it indicates that the data to be written into the file is inconsistent with the data in the file to be sent. It can be determined that the file to be written only accepts part of the data in the file to be sent.
After the second length information is compared with the first length information, if the second length information is greater than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data, wherein the second abstract value is the md5 value of the file to be sent.
And S5, comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission to a client is started from a position corresponding to the first length information of the file to be transmitted.
Specifically, step S5 includes:
s51, adding a continuous transmission identifier at a position corresponding to the first length information in the file to be transmitted;
s52, taking file data in the file to be sent except the file data corresponding to the first length information as first target data to be sent;
and S53, sending the first target data to be sent to the client according to the continuous transmission identifier.
In the embodiment of the present invention, if the first digest value is equal to the second digest value, the to-be-written file is identical to the preamble of the to-be-sent file. In addition, the second length information of this embodiment is greater than or equal to the first length information, that is, it indicates that data other than the file to be written still exists in the file to be transmitted, so that this embodiment adds a resume identifier at a position corresponding to the first length information in the file to be transmitted, where the resume identifier is used to transmit data other than the file to be written also existing in the file to be transmitted. Therefore, in this embodiment, the file data in the file to be sent, except the file data corresponding to the first length information, is used as the first target data to be sent. And then, according to the continuous transmission identifier, sending the first target data to be sent to the client. In a specific application, in the file to be sent, the pointer of the file to be sent is offset from the beginning by the first length information, and the data from the file header of the file to be sent to the file with the offset being the first length information is the same data as the file to be written in the file to be sent. The calculated second digest value in this embodiment is the md5 value of the same data in the file to be sent as the file to be written, and if the second digest value is consistent with the first digest value, it indicates that the data corresponding to the first length information in the file to be sent is completely consistent with the data in the file to be written.
In the embodiment of the present invention, data corresponding to the first length information in the file to be sent is used as the first data, and since the first digest value is consistent with the second digest value, the file to be written has already currently received the first data, and the server needs to send data, other than the first data, in the file to be sent. Specifically, the data after the offset of the file pointer in the file to be sent is the first length information is used as the first target data to be sent, and the first target data to be sent to the client is sent in the form of a data packet.
In the embodiment of the present invention, the continuous transmission identifier is a value of one data in the first to-be-transmitted data packet, where the data is opcode and is assigned to opcode, and the assignment of opcode is 8, that is, the continuous transmission identifier is added to the data packet corresponding to the first target to-be-transmitted data. The server side sends the data packet to the client side.
And S6, if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining to start transmitting data to a client from the start of the file to be transmitted.
In the embodiment of the present invention, when the second length information is smaller than the first length information, or the first digest value is inconsistent with the second digest value, it indicates that the existing data in the file to be written is inconsistent with the data in the file to be sent.
Specifically, the step S6 includes:
s61, if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, acquiring all data in the file to be transmitted, and adding an initial transmission identifier;
s62, taking all data in the file to be sent as second target data to be sent;
and S63, sending the second target data to be sent to a client according to the initial transmission identifier.
In specific implementation, the server determines second target data to be sent according to all data in the file to be sent, and specifically, adds an initial transmission identifier to all data in the file to be sent to obtain the second target data to be sent. And the initial transmission identifier is used for being identified by the client, and the second target data to be sent is written into the file to be written from the beginning according to the initial transmission identifier. Specifically, the client may empty the file to be written first according to the initial transmission identifier, and then write the second target data to be sent into the file to be written. In this embodiment, the second target data to be sent to the client is also sent in the form of a data packet.
In the embodiment of the invention, the initial transmission identifier and the continuous transmission identifier both correspond to the same data, namely, opcode, and the value of opcode corresponding to the initial transmission identifier is different from the value of opcode corresponding to the continuous transmission identifier, and is assigned as 3, which means that the initial transmission identifier is added to the data to be written into the file.
In another implementation manner, when the second length information is equal to the first length information and the first digest value is equal to the second digest value, it indicates that data in the file to be written in the client is completely consistent with data in the file to be sent in the server, that is, the client has received all data of the file to be sent. The server feeds back response information to the client so that the client stops sending a request instruction for acquiring a file to be sent according to the response information.
In this embodiment, when the client receives first target data to be sent or second target data to be sent by the server, and writes data corresponding to the first target data to be sent or the second target data to be sent in the file to be written.
Specifically, in the embodiment of the present invention, the client determines the write identifier according to the value of opcode in the first to-be-transmitted data packet; when the value of opcode is 8, the write identifier is a continuous transmission identifier. And when the writing identifier is a continuous transmission identifier, writing the first target data to be sent after the existing data of the file to be written. Specifically, the offset of the file pointer relative to the file header is the position of the first length information, and the first data to be sent is started to be written, so that the first target data to be sent is written into the existing data of the file to be written.
In another implementation manner, the client receives second target data to be sent by the server, and writes data corresponding to the second target data to be sent into the file to be written. Specifically, the client obtains a write target according to the second target data to be sent; and when the writing identifier is the initial transmission identifier, deleting the existing data in the file to be written, and writing the second target data to be sent into the file to be written.
In the embodiment of the present invention, when the value of opcode is 3, the write flag is a start transmission flag. And when the writing identifier is the initial transmission identifier, indicating that the second target to-be-sent data is to be written into the to-be-written file from the beginning, clearing the to-be-written file, and then writing the second target to-be-sent data into the to-be-written file.
In the embodiment of the invention, a server receives a request instruction sent by a client, wherein the request instruction sent by the client is received, and the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier; determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information; when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data; and comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted. In the invention, the first abstract value is the same as the second abstract value, and the to-be-written file and the preamble part of the to-be-sent file are completely the same, so that the to-be-sent file is continuously sent to the client from an interrupt position without resending the file after the transmission is interrupted.
Based on the above method for transmitting file data of a 5G virtualized network element, an embodiment of the present invention further provides a system for transmitting file data of a 5G virtualized network element, including: a server 10 and a client 20;
the server 10 is configured to receive a request instruction sent by the client, where the request instruction includes first length information of a file to be written, a first digest value of the file to be written, and a file identifier;
determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information;
when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data;
comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data is transmitted from a first length of the file to be transmitted;
if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining to start transmitting data to a client from the beginning of the file to be transmitted;
the client 20 is configured to send a request instruction to the server, where the request instruction includes first length information of a file to be written, a first digest value of the file to be written, and a file identifier, and the file identifier is used to determine the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, calculating a second abstract value corresponding to the file data, and if the first abstract value is equal to the second abstract value, receiving the file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
In the embodiment of the present invention, based on a file data transmission method for a 5G virtualized network element, the present invention further provides a terminal device, where the device may be a terminal, and an internal structure of the terminal device is shown in fig. 3. The terminal equipment comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the terminal device is configured to provide computing and control capabilities. The memory of the terminal equipment comprises a nonvolatile storage medium and an in-system memory. The non-volatile storage medium stores an operating system and a computer program. The in-system memory provides an environment for the operating system and the computer programs in the non-volatile storage medium to run. The network interface of the terminal device is used for connecting and communicating with an external terminal through a network. The computer program is executed by a processor to implement a method for file data transmission for a 5G virtualized network element. The display screen of the terminal equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the terminal equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the terminal equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that fig. 3 is a block diagram of only a portion of the structure associated with the disclosed aspects and is not intended to limit the terminal devices to which the disclosed aspects apply, and that a particular terminal device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the invention provides terminal equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the terminal equipment is characterized in that the processor executes the computer program and realizes the following steps:
receiving a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier;
determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information;
when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data;
comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted;
if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted;
alternatively, the first and second liquid crystal display panels may be,
sending a request instruction to the server, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier, and the file identifier is used for determining the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information and the first abstract value is equal to the second abstract value, file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent is received;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
receiving a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier;
determining the file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information;
when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data;
comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted;
if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted;
alternatively, the first and second liquid crystal display panels may be,
sending a request instruction to the server, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier, and the file identifier is used for determining the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information, and if the first abstract value is equal to the second abstract value, file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent is received;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.
It will be understood that the invention is not limited to the examples described above, but that modifications and variations will occur to those skilled in the art in light of the above teachings, and that all such modifications and variations are considered to be within the scope of the invention as defined by the appended claims.

Claims (10)

1. A file data transmission method of a 5G virtualized network element is applied to a server side in a data transmission system, wherein the data transmission system further comprises a client side, and the method comprises the following steps:
receiving a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier;
determining a file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information;
when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data;
comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data transmission is started from a position corresponding to the first length information of the file to be transmitted;
and if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted.
2. Method according to claim 1, characterized in that the first digest value is the same as the second digest value, and the file to be written is identical to the preamble of the file to be sent.
3. The method according to claim 1, wherein the determining to start transmitting data from a position corresponding to the first length information of the file to be transmitted if the first digest value is equal to the second digest value comprises:
adding a continuous transmission identifier at a position corresponding to the first length information in the file to be transmitted;
taking file data in the file to be sent except the file data corresponding to the first length information as first target data to be sent;
and sending the first target data to be sent to the client according to the continuous transmission identifier.
4. The method of claim 1, wherein determining to transmit data from the beginning of the file to be transmitted if the second length information is smaller than the first length information or the first digest value is not equal to the second digest value comprises:
if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, acquiring all data in the file to be transmitted, and adding an initial transmission identifier;
all data in the file to be sent are used as second target data to be sent;
and sending the second target data to be sent to a client according to the initial transmission identifier.
5. The method of claim 1, further comprising:
and when the second length information is equal to the first length information and the first abstract value is equal to the second abstract value, sending response information for stopping transmitting the file to be transmitted to the client.
6. A file data transmission method of a 5G virtualization network element is applied to a client in a data transmission system, the data transmission system further comprises a server, and the method comprises the following steps:
sending a request instruction to the server, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier, and the file identifier is used for determining the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, calculating a second abstract value corresponding to the file data, and if the first abstract value is equal to the second abstract value, receiving the file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
7. The method of claim 6, further comprising:
and when the second length information is equal to the first length information and the first abstract value is equal to the second abstract value, receiving response information which is sent by the server and used for stopping transmitting the file to be transmitted.
8. A file data transmission system for a 5G virtualized network element, comprising: a server and a client;
the server is used for receiving a request instruction sent by the client, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier;
determining a file to be sent and second length information of the file to be sent according to the file identification, and comparing the first length information with the second length information;
when the second length information is larger than or equal to the first length information, reading file data corresponding to the first length information in the file to be sent, and calculating a second abstract value corresponding to the file data;
comparing the first abstract value with the second abstract value, and if the first abstract value is equal to the second abstract value, determining that data is transmitted from a first length of the file to be transmitted;
if the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, determining that data is transmitted from the beginning of the file to be transmitted;
the client is used for sending a request instruction to the server, wherein the request instruction comprises first length information of a file to be written, a first abstract value of the file to be written and a file identifier, and the file identifier is used for determining the file to be sent and second length information of the file to be sent;
when second length information is larger than or equal to the first length information, and if the first abstract value is equal to the second abstract value, file data which is sent by the server and starts from a position corresponding to the first length information of the file to be sent is received;
and when the second length information is smaller than the first length information or the first abstract value is not equal to the second abstract value, receiving file data from the beginning of the file to be sent, which is sent by the server.
9. A terminal device comprising a memory and a processor, said memory storing a computer program, characterized in that said processor when executing said computer program implements the steps of the file data transmission method of a 5G virtualized network element according to any of the claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the file data transmission method of a 5G virtualized network element according to any of the claims 1 to 7.
CN202110275230.9A 2021-03-15 2021-03-15 File data transmission method, system and terminal equipment of 5G virtualized network element Active CN113132462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110275230.9A CN113132462B (en) 2021-03-15 2021-03-15 File data transmission method, system and terminal equipment of 5G virtualized network element

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110275230.9A CN113132462B (en) 2021-03-15 2021-03-15 File data transmission method, system and terminal equipment of 5G virtualized network element

Publications (2)

Publication Number Publication Date
CN113132462A CN113132462A (en) 2021-07-16
CN113132462B true CN113132462B (en) 2022-07-15

Family

ID=76773079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110275230.9A Active CN113132462B (en) 2021-03-15 2021-03-15 File data transmission method, system and terminal equipment of 5G virtualized network element

Country Status (1)

Country Link
CN (1) CN113132462B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363271A (en) * 2014-10-28 2015-02-18 广东欧珀移动通信有限公司 File breakpoint resuming method and device
CN107566540A (en) * 2017-10-31 2018-01-09 云宏信息科技股份有限公司 Big document breakpoint transmission method, apparatus and system
US9934106B1 (en) * 2015-06-25 2018-04-03 EMC IP Holding Company LLC Handling backups when target storage is unavailable
CN111737161A (en) * 2020-05-22 2020-10-02 深圳市战音科技有限公司 File transmission method of Flash memory, terminal and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8788576B2 (en) * 2010-09-27 2014-07-22 Z124 High speed parallel data exchange with receiver side data handling
CN109309651B (en) * 2017-07-28 2021-12-28 斑马智行网络(香港)有限公司 File transmission method, device, equipment and storage medium
US20200412525A1 (en) * 2019-06-26 2020-12-31 Grid7 Llc D/B/A Taekion Blockchain filesystem

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363271A (en) * 2014-10-28 2015-02-18 广东欧珀移动通信有限公司 File breakpoint resuming method and device
US9934106B1 (en) * 2015-06-25 2018-04-03 EMC IP Holding Company LLC Handling backups when target storage is unavailable
CN107566540A (en) * 2017-10-31 2018-01-09 云宏信息科技股份有限公司 Big document breakpoint transmission method, apparatus and system
CN111737161A (en) * 2020-05-22 2020-10-02 深圳市战音科技有限公司 File transmission method of Flash memory, terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"基于MQTT的物联网系统文件传输方法的实现";张玉杰 等;《陕西科技大学学报》;20180116;第36卷(第1期);第154-159页 *

Also Published As

Publication number Publication date
CN113132462A (en) 2021-07-16

Similar Documents

Publication Publication Date Title
US6327614B1 (en) Network server device and file management system using cache associated with network interface processors for redirecting requested information between connection networks
US11966612B2 (en) Solid-state disk (SSD) data migration
US11379280B2 (en) Methods and systems for managing communication lanes between a universal flash storage (USF) device and a USF host
KR20100037959A (en) Virtualized computing accelerator and program download method of based virtualized computing
US8965996B2 (en) Communication apparatus, information processing apparatus, and method for controlling communication apparatus
US11966585B2 (en) Storage device and storage system
CN111680015A (en) File resource processing method, device, equipment and medium
CN112416863A (en) Data storage method and cache server
CN110650182B (en) Network caching method and device, computer equipment and storage medium
CN112153132A (en) File uploading method, device and equipment based on virtualization management platform
CN113132462B (en) File data transmission method, system and terminal equipment of 5G virtualized network element
KR100936918B1 (en) TCP Offload Engine Apparatus and Method for System Call Processing for Static File Transmission
US11347571B1 (en) Sub-routing key splits in scaling distributed streaming data storage
EP3826244B1 (en) Congestion control method and related device
CN109413180B (en) Data acquisition method, system and equipment and storage medium
CN111596864A (en) Method, device, server and storage medium for data delayed deletion
CN111404842A (en) Data transmission method, device and computer storage medium
CN113626139B (en) High-availability virtual machine storage method and device
CN116032498A (en) Memory area registration method, device and equipment
WO2020259286A1 (en) Method and apparatus for obtaining device information, storage medium and electronic device
US20040240388A1 (en) System and method for dynamic assignment of timers in a network transport engine
CN111427816A (en) Inter-core communication method of AMP system, computer equipment and storage medium
CN113315846A (en) Data transmission method and device
CN114978898B (en) Data transmission control method and device, head-up display and storage medium
CN108628764B (en) Techniques for fine grain completion tracking of memory buffer accesses

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
GR01 Patent grant
GR01 Patent grant