CN108616549A - A kind of file uploading method and file server - Google Patents
A kind of file uploading method and file server Download PDFInfo
- Publication number
- CN108616549A CN108616549A CN201611140514.2A CN201611140514A CN108616549A CN 108616549 A CN108616549 A CN 108616549A CN 201611140514 A CN201611140514 A CN 201611140514A CN 108616549 A CN108616549 A CN 108616549A
- Authority
- CN
- China
- Prior art keywords
- file
- client
- sent
- server
- networking
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/123—Applying verification of the received information received data contents, e.g. message integrity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Information Transfer Between Computers (AREA)
Abstract
An embodiment of the present invention provides a kind of file uploading method, this method is applied to regard in networking, and method includes:The file upload request that client based on reception is sent, the data transmission channel port numbers needed for transmission file by generation are sent to client, so that client establishes data transmission channel according to port numbers;The file that client is sent is received by data transmission channel based on Transmission Control Protocol;By the way that the file of reception is sent to regarding networked server depending on networking protocol.The embodiment of the present invention applies the characteristic regarding networking, by receiving the file that client is sent in internet, again by the file received by being uploaded to regarding networked server depending on networking protocol, batch to realize file by existing internet client uploads, the limitation for uploading place is avoided, is uploaded more convenient;And it can be automatically uploaded to regard on networked server accordingly, uploading operation amount can be effectively reduced, and reduce upload error rate according to file type.
Description
Technical field
The present invention relates to regarding networking technology field, more particularly to a kind of file uploading method and a kind of file server.
Background technology
Currently, widely available depending on networking service having obtained in China, depending on the HD video interaction technique networked
In a government office and in other industries also play very important effect.It is state-of-the-art using the whole world depending on networking
VisionVera real-time high-definition video switching technologies realize the whole network HD video that current internet cannot achieve and pass in real time
It is defeated, HD video meeting, video monitoring, remote training, Intellectualized monitoring analysis, emergency command, visual telephone, scene is straight
It broadcasts, the services such as tens of kinds of videos, voice, picture, word, communication, data such as TV Mail, information publication are all incorporated into one
In system platform, realize that high-definition quality video communication is interconnected in real time by multiple terminal equipment.
It in working application, is needing to transmitting file progress program update or updating menu on networked devices.It is existing
File uploading method is all to utilize File Transfer Protocol or TFTP agreements, these agreements are all based on the agreement of IP network, and cannot depending on networking
Communication, so file can not be uploaded to regarding networked server.And File Transfer Protocol needs that user information is separately configured, shared
Inconvenient in user information depending on NM server of networking, administrator must change after adding user by network management system client
The configuration file of ftp server increases corresponding user, but also cannot user directly be uploaded daily record and be saved in network management system
In database, the encryption to data can not be realized in document transmission process.So going up transmitting file all in networking at present
It is to need PC machine to be linked into upload in networking, limitation is bigger, and operation is cumbersome.
Especially during upgrading in terminal menu, upgrading needs to upload multiple files, partly needs to upload to master server,
Part needs to upload to dependent server.It when upper transmitting file, needs in computer room, PC machine access is regarded in networking, according to difference
File type, be separately connected master server and dependent server to go up transmitting file, often will appear upload mistake situation.Such as
The fruit terminal to be upgraded is hung under different dependent servers, then needs all to upload identical file to every dependent server,
Need to do the work largely repeated.
Invention content
In view of the above problems, it is proposed that the embodiment of the present invention overcoming the above problem or at least partly in order to provide one kind
A kind of file uploading method and a kind of corresponding file server to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of file uploading method, the method is applied to regard
In networking, the method includes:
The file upload request that client based on reception is sent, the data transmission channel needed for transmission file by generation
Port numbers are sent to the client, so that the client establishes data transmission channel according to the port numbers;
The file that the client is sent is received by the data transmission channel based on Transmission Control Protocol;
By the way that the file of reception is sent to regarding networked server depending on networking protocol.
Preferably, the file upload request that the client based on reception is sent, needed for the transmission file by generation
The step of data transmission channel port numbers are sent to the client include:
Whether correct verify user's check information that client is sent;
If correct, generate and verify successful information, and the successful information of verification is sent to the client;
Based on the file upload request of the verification successful information and reception, the data needed for transmission file by generation
Transmission channel port numbers are sent to the client.
Preferably, the file upload request includes the fileinfo to be uploaded, and the fileinfo includes:File type
Information, document size information, file name information, fileversion number information and MD5 information;
The described the step of file that the client sends is received by the data transmission channel based on Transmission Control Protocol it
Afterwards, including:
Based on the fileinfo to be uploaded in the file upload request, the file of reception is verified;
Check results are sent to client.
Preferably, the networked server that regards includes regarding networking master server and regarding networking dependent server, described to regard connection
Host server connection is described regarding networking dependent server, described to regard networking dependent server connection regarding networked terminals;
It is described by the way that the file is sent to regarding networked server depending on networking protocol the step of, including:
Based on the type of the file, the file is sent to corresponding regarding networking master server or regarding networking subordinate clothes
Business device.
Preferably, the type of the file includes:Depending on networked server upgrade procedure, regard networked terminals upgrade procedure and end
It serves a dish monofile.
Preferably, it is described by the way that the file is sent to regarding networked server depending on networking protocol the step of, including:
After the file transmits successfully, records the corresponding fileinfo of the file and user uploads daily record.
A kind of file server is also disclosed in the embodiment of the present invention, and the file server is applied to regard in networking, described
File server includes:
Port numbers sending module, for the file upload request that the client based on reception is sent, by the transmission text of generation
Data transmission channel port numbers needed for part are sent to the client, so that the client establishes number according to the port numbers
According to transmission channel;
Receiving module, for receiving the file that the client is sent by the data transmission channel based on Transmission Control Protocol;
Delivery module, for by sending the file of reception regarding networked server to depending on networking protocol.
Preferably, the port numbers sending module includes:
Whether authentication unit, user's check information for verifying client transmission are correct;
Successful information generation unit is verified, if correct for user's check information, generate and verifies successful information, and
The successful information of verification is sent to the client;
Port numbers transmission unit will be generated for the file upload request based on the verification successful information and reception
Transmission file needed for data transmission channel port numbers be sent to the client.
Preferably, the receiving module includes:
Verification unit, for based on the fileinfo to be uploaded in the file upload request, verifying the described of reception
File;
Check results transmission unit, for check results to be sent to client.
Preferably, the delivery module includes:
File transmission unit is used for the type based on the file, the file is sent to corresponding regarding main clothes of networking
Business device regards networking dependent server
The embodiment of the present invention includes following advantages:
The embodiment of the present invention applies the characteristic regarding networking, the file sent by receiving client in internet, then will connect
The file being subject to depending on networking protocol by being uploaded to regarding networked server, to realize text by existing internet client
The batch of part uploads, and avoids the limitation for uploading place, uploads more convenient;And it can be automatic to upload according to file type
To regarding on networked server accordingly, uploading operation amount can be effectively reduced, and reduce upload error rate.
Description of the drawings
Fig. 1 is a kind of networking schematic diagram regarding networking of the present invention;
Fig. 2 is a kind of hardware architecture diagram of node server of the present invention;
Fig. 3 is a kind of hardware architecture diagram of access switch of the present invention;
Fig. 4 is that a kind of Ethernet association of the present invention turns the hardware architecture diagram of gateway;
Fig. 5 is a kind of step flow chart of file uploading method embodiment of the present invention;
Fig. 6 is a kind of structure diagram of file server embodiment of the present invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can realize HD video real-time Transmission,
Push numerous the Internet, applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program requests, TV Mail, individual character recording (PVR), Intranet (manage) channel, intelligent video Broadcast Control, information publication by oneself
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, word, communication, data, by TV or
Computer realizes that high-definition quality video plays.
To make those skilled in the art more fully understand the embodiment of the present invention, below to being introduced depending on networking:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Network technology innovation depending on networking improves traditional ethernet (Ethernet), potential huge on network to face
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demands are met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price exchanged, is provided simultaneously with quality and the safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
The seamless connection of road and data format.
Switching technology (Switching Technology)
Depending on two advantages of asynchronous and packet switch networked using Ethernet, it is scarce under the premise of complete be compatible with to eliminate Ethernet
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal directly carries IP data packets.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can realizes at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous Internet video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough include signaling and data transmission.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
State-of-the-art real time operating system is used, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits for typical time to be less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internets ad eundem IP, but
The concurrent flow more than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Structural design depending on networking by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, fire wall generally, has prevented black
The attack of visitor and virus, provide structural carefree secure network to the user.
Service innovative technology (Service Innovation Technology)
Business and transmission are merged by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is substituted using " menu type " with table schema traditional
Complicated applications program, and can use considerably less code that complicated application can be realized, and realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes:Node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and Ethernet can be connected.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes:Metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can be formed regarding networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes depending on the equipment in networking:Server, interchanger (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
National net, World Wide Web etc.) and access net.
The equipment of 1.2 wherein access mesh portions can be mainly divided into 3 classes:Node server, access switch (including ether
Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The particular hardware structure of each access network equipment is:
Node server:
As shown in Fig. 2, including mainly Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 to the packet come in look into the operation of address table 205, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded if meeting the following conditions:1) port
It is less than to send caching;2) the queue package counting facility is more than zero.Disk array module 204 mainly realizes the control to hard disk, including
The operations such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown)
Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table)
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, including mainly Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
Corresponding flow identifier (stream-id) is then distributed, and enters switching engine module 303, is otherwise abandoned;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine
Module 303;Switching engine module 303 to the packet come in look into the operation of address table 306, to obtain the navigation information of packet;
It is gone toward uplink network interface if the packet into switching engine module 303 is downstream network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
It is gone toward uplink network interface if the queue is downstream network interface, meets the following conditions and be forwarded:1)
It is less than that the port sends caching;2) the queue package counting facility is more than zero;3) token that rate control module generates is obtained;
It is gone toward uplink network interface if the queue is not downstream network interface, meets the following conditions and be forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is more than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval
The pack buffer queue that interface is gone toward uplink network interface generates token, to control the code check of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, including mainly Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC add modules 409, MAC removing modules 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
The ethernet mac DA of measured data packet, ethernet mac SA, Ethernet length or frame type, networking mesh way address is regarded
DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting
Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing modules 410
(2byte), and enter corresponding order caching, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze regarding with networking mesh according to packet
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway
SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
Include mainly Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board includes mainly Network Interface Module, video encoding engine
Module, CPU module;Memory includes mainly Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes:Node server, node switch, metropolitan area server.
Wherein, node switch includes mainly Network Interface Module, switching engine module and CPU module;Metropolitan area server includes mainly
Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
The data packet for accessing net includes mainly following sections:Destination address (DA), source address (SA), reserve bytes,
payload(PDU)、CRC。
As shown in the table, the data packet for accessing net includes mainly following sections:
DA | SA | Reserved | Payload | CRC |
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet
Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address,
Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The parts payload have different length according to the type of different datagrams, are if it is various protocol packages
64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and computational methods follow the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment
2 kinds can be all can exceed that between machine and node server, node switch and node switch, node switch and node server
Connection.But the metropolitan area net address of metropolitan area network equipment is unique, is closed to accurately describe the connection between metropolitan area network equipment
System, introduces parameter in embodiments of the present invention:Label uniquely describes a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification
Change) label definition it is similar, it is assumed that between device A and equipment B there are two connection, then data packet from device A to equipment B just
There are 2 labels, data packet also there are 2 labels from equipment B to device A.Label is divided into label, outgoing label, it is assumed that data packet enters
The label (entering label) of device A is 0x0000, and the label (outgoing label) when this data packet leaves device A may reform into
0x0001.The networking flow of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN)
Distribution is all dominated by metropolitan area server, and node switch, node server are all passive execution, this point with
The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) includes mainly following sections:
DA | SA | Reserved | Label | Payload | CRC |
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its
In, the format of label, which can refer to, such as gives a definition:Label is 32bit, wherein high 16bit retains, only with low 16bit, its position
Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic regarding networking, it is proposed that one of the core concepts of the embodiments of the present invention, it then follows regard the association of networking
View, audio/video flow transmitting terminal are encoded to the audio, video data packet after coding by FEC and generate redundancy packet, then by this include redundancy packet
Audio, video data encapsulating dress up regarding networking data packet, be sent to receiving terminal;If packet loss occurs in transmit process, end group is received
Loss recovery processing is carried out in the redundancy packet, to obtain complete audio, video data.
With reference to Fig. 5, show that a kind of step flow chart of file uploading method embodiment of the present invention, this method are applied to
Depending in networking.The embodiment of the present invention is illustrated from file server side, and this method can specifically include following steps:
Step 501, the file upload request that the client based on reception is sent, the data needed for transmission file by generation
Transmission channel port numbers are sent to the client, so that the client establishes data transmission channel according to the port numbers.
The file type of upload includes regarding networked server upgrade procedure, regards networked terminals upgrade procedure, terminal menu text
Part etc., for networked server or regarding the update of networked terminals program or the update of terminal menu.
In a kind of preferable example of the embodiment of the present invention, step 501 can specifically include following sub-step:
Whether sub-step 11, user's check information that verification client is sent are correct.
For the safety for ensureing regarding networking, the internet external client after only succeeding in registration could be accessed regarding networking
In.The information of each client to succeed in registration is stored in networking, is such as stored in networking NM server.Text
Part server can transfer the information for being intended to enter the client regarding networking from the database depending on networking NM server, be tested
Card.
The successful information of verification if correctly, generating and verifying successful information, and is sent to the visitor by sub-step 12
Family end.
Sub-step 13, based on the file upload request of the verification successful information and reception, by the transmission file of generation
Required data transmission channel port numbers are sent to the client.
In the concrete realization, which is the port numbers that file server generates at random.Client receives the port numbers
Afterwards, the corresponding data of the port numbers are connected to by TCP (Transmission Control Protocol transmission control protocols)
The data transmission channel of file transmission is established in port.
Step 502, the file that the client is sent is received by the data transmission channel based on Transmission Control Protocol.
Client carries out AES (Advanced Encryption to before file server delivery file to transmission data
Standard, Advanced Encryption Standard) encryption.File server is decrypted after receiving transmission data, obtains the text to be uploaded
Part.
The file upload request includes the fileinfo to be uploaded, and the fileinfo includes:File type information, text
Part size information, file name information, fileversion number information and MD5 information.
After step 502, it can also include the following steps:
Step 21, based on the fileinfo to be uploaded in the file upload request, the file of reception is verified.
In the concrete realization, step 21 can specifically include following sub-step:
Sub-step 211 verifies the big of the file of reception based on the document size information in the file upload request
It is small.
By comparing the size of the document size information in upload request and the Wen Jia received, the text of reception can be verified
Whether part is complete.
Sub-step 212 verifies the MD5 values of the file of reception based on the MD5 information in the file upload request.
MD5 (Message Digest Algorithm 5, Message Digest Algorithm 5) is a kind of unidirectional message abstract
Algorithm is a kind of widely used hash function of computer safety field, to provide the integrity protection of message.In the present invention
In embodiment, the MD5 values of this document are calculated separately before and after upper transmitting file, are connect by comparing calculated MD5 values twice to verify
Whether the file received is complete.
Step 22, for check results to be sent to client.
In embodiments of the present invention, after the client transmissions end of file, file transmission knot can be sent to file server
The information of beam.
Client can select the quantity of transmitting file when to file server delivery file, to complete on batch
It passes.Step 501 and step 502 can also be repeated, until all files are transferred to file server.
Step 503, by sending the file of reception regarding networked server to depending on networking protocol.
The networked server that regards includes regarding networking master server and regarding networking dependent server, described to regard main service of networking
Device connection is described regarding networking dependent server, described to regard networking dependent server connection regarding networked terminals;
Step 503 can specifically include:
Based on the type of the file, the file is sent to corresponding regarding networking master server or regarding networking subordinate clothes
Business device.
File server can judge the file type received, then be uploaded file according to the file type judged
To accordingly regarding networked server.For example, if the file received is regarding networked server upgrade procedure and to regard networked terminals liter
File is then directly uploaded to regarding networking master server by grade program.
It meeting and is communicated depending on networked server, inspection version in booting depending on networked terminals.If sent out depending on networked terminals
After existing new procedures, data synchronization request can be initiated to regarding networked server, to obtain the program software of latest edition.
In a kind of preferable example of the embodiment of the present invention, after step 503, following steps are can specifically include:
After the file transmits successfully, records the corresponding fileinfo of the file and user uploads daily record.
In the concrete realization, fileinfo and user, which upload daily record, can be recorded in the database regarding networking NM server
In.
If file server feeds back to client and uploads successfully letter to the transmitting file success on networked server
Otherwise breath feeds back to the information that client uploads failure.
The embodiment of the present invention applies the characteristic regarding networking, the file sent by receiving client in internet, then will connect
The file being subject to depending on networking protocol by being uploaded to regarding networked server, to realize text by existing internet client
The batch of part uploads, and avoids the limitation for uploading place, uploads more convenient;And it can be automatic to upload according to file type
To regarding on networked server accordingly, uploading operation amount can be effectively reduced, and reduce upload error rate.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group
It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to
According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
With reference to Fig. 6, show that a kind of structure diagram of file server of the present invention, the file server are applied to regard
In networking, this document server includes:
Port numbers sending module 601, for the file upload request that the client based on reception is sent, by the transmission of generation
Data transmission channel port numbers needed for file are sent to the client, so that the client is established according to the port numbers
Data transmission channel.
The port numbers sending module 601 includes:
Whether authentication unit, user's check information for verifying client transmission are correct.
Successful information generation unit is verified, if for correct, generate and verifies successful information, and the verification is successful
Information is sent to the client.
Port numbers transmission unit will be generated for the file upload request based on the verification successful information and reception
Transmission file needed for data transmission channel port numbers be sent to the client.
Receiving module 602, for receiving the text that the client is sent by the data transmission channel based on Transmission Control Protocol
Part.
In a kind of preferable example of the embodiment of the present invention, receiving module 602 can specifically include:
Verification unit, for based on the fileinfo to be uploaded in the file upload request, verifying the described of reception
File.
Check results transmission unit, for check results to be sent to client.
Delivery module 603, for by sending the file of reception regarding networked server to depending on networking protocol.
In a kind of preferable example of the embodiment of the present invention, delivery module 603 can specifically include:
File transmission unit is used for the type based on the file, the file is sent to corresponding regarding main clothes of networking
Business device regards networking dependent server.
Recording unit after being transmitted successfully for the file, records the corresponding fileinfo of the file and user uploads
Daily record.
For device (system) embodiment, since it is basically similar to the method embodiment, so the comparison of description is simple
Single, the relevent part can refer to the partial explaination of embodiments of method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Above to a kind of file uploading method provided by the present invention and a kind of file server, it is described in detail,
Principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only used
In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those of ordinary skill in the art, according to the present invention
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as
Limitation of the present invention.
Claims (10)
1. a kind of file uploading method, which is characterized in that the method is applied to regard in networking, the method includes:
The file upload request that client based on reception is sent, the data transmission channel port needed for transmission file by generation
Number it is sent to the client, so that the client establishes data transmission channel according to the port numbers;
The file that the client is sent is received by the data transmission channel based on Transmission Control Protocol;
By the way that the file of reception is sent to regarding networked server depending on networking protocol.
2. the method as described in claim 1, which is characterized in that the file upload that the client based on reception is sent is asked
It asks, the step of data transmission channel port numbers needed for transmission file by generation are sent to the client includes:
Whether correct verify user's check information that client is sent;
If correct, generate and verify successful information, and the successful information of verification is sent to the client;
Based on the file upload request of the verification successful information and reception, the data transmission needed for transmission file by generation
Tunnel ends slogan is sent to the client.
3. the method as described in claim 1, which is characterized in that the file upload request includes the fileinfo to be uploaded,
The fileinfo includes:File type information, document size information, file name information, fileversion number information and MD5 letters
Breath;
After described the step of receiving the file of the client transmission by the data transmission channel based on Transmission Control Protocol, packet
It includes:
Based on the fileinfo to be uploaded in the file upload request, the file of reception is verified;
Check results are sent to client.
4. the method as described in claim 1, which is characterized in that described depending on networked server includes regarding to network master server and to regard
Networking dependent server, it is described to regard regarding networking dependent server described in networking master server connection, it is described to regard networking affiliated service
Device connection regards networked terminals;
It is described by the way that the file is sent to regarding networked server depending on networking protocol the step of, including:
Based on the type of the file, the file is sent to corresponding regarding networking master server or regarding networking affiliated service
Device.
5. method as claimed in claim 4, which is characterized in that the type of the file includes:Upgrade journey depending on networked server
Sequence regards networked terminals upgrade procedure and terminal menu file.
6. the method as described in claim 1, which is characterized in that described by sending the file regarding connection to depending on networking protocol
The step of network server, including:
After the file transmits successfully, records the corresponding fileinfo of the file and user uploads daily record.
7. a kind of file server, which is characterized in that the file server is applied to regard in networking, the file server packet
It includes:
Port numbers sending module, for the file upload request that the client based on reception is sent, by the transmission file institute of generation
The data transmission channel port numbers needed are sent to the client, and establishing data according to the port numbers for the client passes
Defeated channel;
Receiving module, for receiving the file that the client is sent by the data transmission channel based on Transmission Control Protocol;
Delivery module, for by sending the file of reception regarding networked server to depending on networking protocol.
8. file server as claimed in claim 7, which is characterized in that the port numbers sending module includes:
Whether authentication unit, user's check information for verifying client transmission are correct;
Successful information generation unit is verified, if correct for user's check information, generate and verifies successful information, and by institute
It states the successful information of verification and is sent to the client;
Port numbers transmission unit, for the file upload request based on the verification successful information and reception, by the biography of generation
Data transmission channel port numbers needed for defeated file are sent to the client.
9. file server as claimed in claim 7, which is characterized in that the receiving module includes:
Verification unit, for based on the fileinfo to be uploaded in the file upload request, verifying the file of reception;
Check results transmission unit, for check results to be sent to client.
10. file server as claimed in claim 7, which is characterized in that the delivery module includes:
File transmission unit is used for the type based on the file, the file is sent to corresponding regarding networking master server
Or regarding networking dependent server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611140514.2A CN108616549A (en) | 2016-12-12 | 2016-12-12 | A kind of file uploading method and file server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611140514.2A CN108616549A (en) | 2016-12-12 | 2016-12-12 | A kind of file uploading method and file server |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108616549A true CN108616549A (en) | 2018-10-02 |
Family
ID=63657601
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611140514.2A Pending CN108616549A (en) | 2016-12-12 | 2016-12-12 | A kind of file uploading method and file server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108616549A (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109302399A (en) * | 2018-10-15 | 2019-02-01 | 视联动力信息技术股份有限公司 | A kind of method and system of long-range comparing Core server version |
CN109361891A (en) * | 2018-10-08 | 2019-02-19 | 视联动力信息技术股份有限公司 | Method of data synchronization and system in a kind of classification meeting |
CN109714385A (en) * | 2018-11-09 | 2019-05-03 | 平安科技(深圳)有限公司 | Method, apparatus, computer equipment and the storage medium of upper transmitting file |
CN110120938A (en) * | 2019-04-02 | 2019-08-13 | 视联动力信息技术股份有限公司 | It is a kind of to assist the control method and device for turning server |
CN110196842A (en) * | 2019-04-26 | 2019-09-03 | 视联动力信息技术股份有限公司 | File memory method, management method, device, server and storage medium |
CN111159291A (en) * | 2019-12-19 | 2020-05-15 | 视联动力信息技术股份有限公司 | Progress bar display method and device, terminal equipment and storage medium |
CN111669364A (en) * | 2020-04-26 | 2020-09-15 | 视联动力信息技术股份有限公司 | Data transmission method, device, electronic equipment and medium |
CN111769909A (en) * | 2020-06-16 | 2020-10-13 | 上海英方软件股份有限公司 | Device and method for cascade retransmission based on market data |
CN112040281A (en) * | 2020-07-21 | 2020-12-04 | 视联动力信息技术股份有限公司 | Parameter modification method, client, server, electronic device and storage medium |
CN114401190A (en) * | 2021-12-24 | 2022-04-26 | 卡斯柯信号有限公司 | Trackside security platform data updating method and system based on data compression algorithm |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6782418B1 (en) * | 2000-01-24 | 2004-08-24 | General Electric Company | Method and apparatus for secure data file uploading |
CN201114100Y (en) * | 2007-07-07 | 2008-09-10 | 青岛高校信息产业有限公司 | Network safety declaration system |
CN101631143A (en) * | 2009-08-27 | 2010-01-20 | 中兴通讯股份有限公司 | Multi-server system in load-balancing environment and file transmission method thereof |
CN102868916A (en) * | 2012-08-27 | 2013-01-09 | 腾讯科技(深圳)有限公司 | Method for sharing information with digital television terminal, terminals and information sharing system |
CN103686072A (en) * | 2013-11-15 | 2014-03-26 | 北京视联动力国际信息技术有限公司 | Video internet video monitoring method and system, protocol conversion server, and video internet server |
CN103973772A (en) * | 2014-04-02 | 2014-08-06 | 小米科技有限责任公司 | File reading and writing method and device |
CN105024971A (en) * | 2014-04-18 | 2015-11-04 | 中兴通讯股份有限公司 | Communication protocol conversion method and communication protocol conversion device |
-
2016
- 2016-12-12 CN CN201611140514.2A patent/CN108616549A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6782418B1 (en) * | 2000-01-24 | 2004-08-24 | General Electric Company | Method and apparatus for secure data file uploading |
CN201114100Y (en) * | 2007-07-07 | 2008-09-10 | 青岛高校信息产业有限公司 | Network safety declaration system |
CN101631143A (en) * | 2009-08-27 | 2010-01-20 | 中兴通讯股份有限公司 | Multi-server system in load-balancing environment and file transmission method thereof |
CN102868916A (en) * | 2012-08-27 | 2013-01-09 | 腾讯科技(深圳)有限公司 | Method for sharing information with digital television terminal, terminals and information sharing system |
CN103686072A (en) * | 2013-11-15 | 2014-03-26 | 北京视联动力国际信息技术有限公司 | Video internet video monitoring method and system, protocol conversion server, and video internet server |
CN103973772A (en) * | 2014-04-02 | 2014-08-06 | 小米科技有限责任公司 | File reading and writing method and device |
CN105024971A (en) * | 2014-04-18 | 2015-11-04 | 中兴通讯股份有限公司 | Communication protocol conversion method and communication protocol conversion device |
Non-Patent Citations (1)
Title |
---|
李殿坤: "《基于视联网的高清视频互动科普平台监控协转服务器设计与研究》", 《有线电视技术》 * |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109361891A (en) * | 2018-10-08 | 2019-02-19 | 视联动力信息技术股份有限公司 | Method of data synchronization and system in a kind of classification meeting |
CN109302399B (en) * | 2018-10-15 | 2021-09-21 | 视联动力信息技术股份有限公司 | Method and system for remotely comparing versions of core servers |
CN109302399A (en) * | 2018-10-15 | 2019-02-01 | 视联动力信息技术股份有限公司 | A kind of method and system of long-range comparing Core server version |
CN109714385A (en) * | 2018-11-09 | 2019-05-03 | 平安科技(深圳)有限公司 | Method, apparatus, computer equipment and the storage medium of upper transmitting file |
CN109714385B (en) * | 2018-11-09 | 2022-05-20 | 平安科技(深圳)有限公司 | Method and device for uploading files, computer equipment and storage medium |
CN110120938A (en) * | 2019-04-02 | 2019-08-13 | 视联动力信息技术股份有限公司 | It is a kind of to assist the control method and device for turning server |
CN110120938B (en) * | 2019-04-02 | 2021-11-16 | 视联动力信息技术股份有限公司 | Control method and device for cooperative server |
CN110196842A (en) * | 2019-04-26 | 2019-09-03 | 视联动力信息技术股份有限公司 | File memory method, management method, device, server and storage medium |
CN111159291A (en) * | 2019-12-19 | 2020-05-15 | 视联动力信息技术股份有限公司 | Progress bar display method and device, terminal equipment and storage medium |
CN111669364A (en) * | 2020-04-26 | 2020-09-15 | 视联动力信息技术股份有限公司 | Data transmission method, device, electronic equipment and medium |
CN111669364B (en) * | 2020-04-26 | 2023-09-12 | 视联动力信息技术股份有限公司 | Data transmission method, device, electronic equipment and medium |
CN111769909A (en) * | 2020-06-16 | 2020-10-13 | 上海英方软件股份有限公司 | Device and method for cascade retransmission based on market data |
CN111769909B (en) * | 2020-06-16 | 2023-05-09 | 上海英方软件股份有限公司 | Device and method based on cascade retransmission of market data |
CN112040281A (en) * | 2020-07-21 | 2020-12-04 | 视联动力信息技术股份有限公司 | Parameter modification method, client, server, electronic device and storage medium |
CN114401190A (en) * | 2021-12-24 | 2022-04-26 | 卡斯柯信号有限公司 | Trackside security platform data updating method and system based on data compression algorithm |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108173804B (en) | A kind of networked by view accesses the method and view connection cat client of internet | |
CN108616549A (en) | A kind of file uploading method and file server | |
CN109960513A (en) | A kind of project dispositions method and view networked system | |
CN107888401B (en) | A kind of method and system of real time monitoring view networked terminals cpu busy percentage | |
CN108880851A (en) | A kind of method and interactive system that configuration updates | |
CN108243343B (en) | A kind of point distribution statistical method and its server based on view networking | |
CN108307212B (en) | A kind of file order method and device | |
CN108234178B (en) | A kind of method and apparatus being managed collectively menu file | |
CN110062195A (en) | A kind of video conference cut-in method and system | |
CN109151610A (en) | A kind for the treatment of method and apparatus receiving web camera picture | |
CN109299612A (en) | A kind of control method and device of hot-plug equipment | |
CN110048903A (en) | A kind of association turns gateway status monitoring method and device | |
CN110138513A (en) | A kind of data transmission method and view networked system | |
CN109151519A (en) | A kind of configuration distribution method and system based on view networking | |
CN108965941A (en) | A kind of data capture method and view networking management system | |
CN110266577A (en) | A kind of tunnel establishing method and view networked system | |
CN110278244A (en) | A kind of method of network entry and view networked terminals based on view networking | |
CN110121075A (en) | A kind of direct seeding operation method and apparatus | |
CN109586851A (en) | Data transmission method and device based on view networking | |
CN110149497A (en) | A kind of view networked data transmission method, apparatus, system and readable storage medium storing program for executing | |
CN109842630A (en) | Method for processing video frequency and device | |
CN109698859A (en) | A kind of date storage method and device based on view networking | |
CN109376507A (en) | A kind of data safety control method and system | |
CN108964966A (en) | A kind of parameter information update method and device based on view networking | |
CN110392289A (en) | A kind of processing method and system of account |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181002 |
|
RJ01 | Rejection of invention patent application after publication |