CN104158870A - Data transmission method and system - Google Patents

Data transmission method and system Download PDF

Info

Publication number
CN104158870A
CN104158870A CN201410386099.3A CN201410386099A CN104158870A CN 104158870 A CN104158870 A CN 104158870A CN 201410386099 A CN201410386099 A CN 201410386099A CN 104158870 A CN104158870 A CN 104158870A
Authority
CN
China
Prior art keywords
data
file information
header file
request
sending terminal
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
Application number
CN201410386099.3A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201410386099.3A priority Critical patent/CN104158870A/en
Publication of CN104158870A publication Critical patent/CN104158870A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a data transmission method and system, and belongs to the field of computer software. The method and system have the advantages that when data transmission between a computer and a communication system is realized, transmission and receiving data sizes are saved to the greatest extent, and meanwhile, the power consumption of transmission and receiving equipment is saved. The invention adopts the technical scheme as follows: region partition is performed on data prepared to be transmitted, wherein each data region comprises a region starting tag, a region end-tag and a region mark tag; a section of region mark tag, version information corresponding to the region mark tag and header file information of other auxiliary information are additionally added into the data prepared to be transmitted; before the data is transmitted by a data transmitting end, the changed header file information is compared with the header file information received by the data transmitting end and transmitted from a data request end, and the data transmitting end only transmits the changed data; after the data receiving end receives the data transmitted by the data transmitting end, the header file information is updated, and the data in the changed data regions is updated.

Description

A kind of method and system of transmitting data
Technical field
The present invention relates to a kind of method and system of transmitting data, belong to computer software and data communication field.
Background technology
Reference documents: No. 2014101975988 patents of China.While transmitting data in computer and communication system at every turn, send data terminal the total data of needs transmission is sent to reception data terminal, a process that sends data has just completed.While particularly using browser browsing page in server end and browser end system architecture, while returning to client by client-requested server transmission network page data, server returns to client by whole page datas of browse request, comprise the data such as HTML, CSS, JavaScript, the data that all comprise a large amount of repetitions during due to each transmission data, cause and in network service, repeatedly transmit these repeating datas.At WebApp, develop the stage rapidly, need the web data amount of transmission to roll up, a large amount of repeating datas have taken network transmission resource, and reducing server stress, saving network flow and shortening browser page response time is urgent problem.In order to save transmission, receive data volume, existing solution has: ETag label is set, that is: the total data that send is added to an identification code, judge whether data receiver stores this identification code, if store this identification code, illustrate that data receiver stores the data that will send, total data is not sent to receiving terminal, thereby save, send, receive the flow of data, use the shortcoming of this solution to be: in the total data that will send, to only have few data to change, also need total data all to resend receiving terminal, in this transmission, receive in data procedures, the data that will send are not marked off to region, before sending data, judge whether receiving terminal has stored some region of data, only the data area having changed or new data area data are sent to data receiver.Adopt in addition Ajax technology, that is: local refreshed web page data, thereby realize the effect of saving network traffic data, use the shortcoming of this solution to be: to only have user side to send after event-action, just realize the local refresh function of web data, can not, according to the data variation of data area, by system, automatically realize refresh function.
Summary of the invention
The object of the invention is to realize: while transmitting data in computer and communication system at every turn, farthest save and send, receive data volume, also saved the power consumption of transmitting and receiving device simultaneously, particularly the portable equipment of data traffic and power consumption sensitivity has been produced appreciable results.
Technical solution of the present invention is:
Transmit method and system for data, as shown in Figure 1: the data that are ready for sending are marked off to region, and each data area includes region beginning label, region end mark and area identification mark; The header file information of the version information that the area identification mark of additional one section of each data area and area identification mark are corresponding in the data that are ready for sending, this paragraph header fileinfo sends to data receiver with the data that are ready for sending; When the data of data sending terminal change, revise corresponding header file information; If request of data end (data receiver) has header file information corresponding to preparation request data, when request of data end sends request data, corresponding header file information is sent to requested end (data sending terminal) with request; Requested end (data sending terminal) is before sending data, up-to-date header file information and the header file information sending over from request of data end (data receiver) receiving are before compared, according to comparative result, data sending terminal only sends the data that changed and corresponding header file information; Data receiver receives after the data that data sending terminal sends, and upgrades the data of the data area having changed, and upgrades corresponding header file information.
Data area division scope and quantity are by programmer's Autonomous determination; Also can by computer program, automatically be divided according to data characteristics; In header file information except the area identification mark of each data area and two requisite items of version information corresponding to area identification mark, can also add other supplementary key element, other supplementary key element is that temporal information, regional information etc. need the supplementary key element of adding, and other supplementary is option; When the data of data receiver request do not change, data sending terminal sends data and does not have vicissitudinous information to data receiver.
Transmit a system for data, by data sending terminal unit and data receiver end unit, formed: data sending terminal unit by header file Information generation, modified module, reception request of data termination file information block, header file information comparison judge module, send the data module having changed and send corresponding header file information module and form; Data receiver end unit by receiving, upgrade data module, the reception of variation, the header file information module of renewal correspondence and send corresponding header file information module and form.
Header file Information generation, the modified module function of data sending terminal unit are: the header file information that generates the version information that the area identification mark of each data area and area identification mark are corresponding, when the data in data area change, revise corresponding header file information; The reception request of data termination file information block function of data sending terminal unit is: receive the header file information that request of data end sends over when request msg; The header file information comparison judge module function of data sending terminal unit is: data sending terminal before sending data, the up-to-date header file information that labour contractor's fileinfo generates, modified module generates with receive before the header file information that request of data termination file information block receives and compare; The data module function that the transmission of data sending terminal unit has changed is: according to the header file information judged result of judge module relatively, the data area data that changed are sent to data receiver; The header file information module function of the transmission correspondence of data sending terminal unit is: the header file information that the data that send to data receiver are corresponding sends to data receiver; The data module function that the reception of data receiver end unit, renewal change is: the data that reception data sending terminal sends over are also upgraded local data; The reception of data receiver end unit, upgrade corresponding header file information module function and be: receive the corresponding header file information that data sending terminal sends over and upgrade local corresponding header file information; The header file information module function of the transmission correspondence of data receiver end unit is: if request of data end (data receiver) has header file information corresponding to preparation request data, when request of data end sends request data, corresponding header file information is sent to requested end (data sending terminal) with request.
Data sending terminal unit can also comprise data area division module, its function is: by programmer's Autonomous determination data area, divide scope and quantity, also can by computer program, automatically be divided according to data characteristics, each data area of division includes region beginning label, region end mark and area identification mark; In the header file information that the header file Information generation of data sending terminal unit, modified module generate except the area identification mark of each data area and two requisite items of version information corresponding to area identification mark, can also generate other supplementary key element, other supplementary key element is that temporal information, regional information etc. need the supplementary key element of adding, and other supplementary is option; Data sending terminal unit can also comprise and receive request of data termination file information storage module, and its function is: storing received to the header file information being sended over when the request msg by request of data end, for data sending terminal program, use the data of storage.
 
Accompanying drawing explanation
Fig. 1 is that schematic diagram is divided in data area of the present invention.
 
Embodiment
Because server end and browser end system architecture have much particularity in transmitted data on network process, and standardization body's unified definition the standard in transmitted data on network process, so describe respectively in following embodiment that data instance is transmitted in the present invention in server end and browser end system architecture and transmission data instance in other system architecture (non-server end and browser end system architecture).
This example is the execution mode in server end and browser end system architecture:
Web data in server end storage is carried out to region division, mark beginning label and end mark, the scope that region is divided, quantity, the position of beginning label and end mark is by programmer's Autonomous determination, also can by computer program, automatically be divided according to data characteristics, priority scheme is that the one piece of data often changing is divided into a region or is divided into respectively several regions, the one piece of data often not changing is divided into one or several region, the HTML comprising in web data, CSS, the data such as JavaScript can be divided in a region, the object of zoning is to realize transferring after data for the first time, while again transmitting data, transmitted and be stored in the data that do not change in the data of browser client and just no longer by network, transmitted, mark area identification mark in each data area, for distinguishing each data area.
After data area has been divided, server end also will comprise by header file Information generation, modified module the header file information of one section of area identification mark and version information corresponding to area identification mark in the data that are ready for sending, in header file information except the area identification mark of each data area and two requisite items of version information corresponding to area identification mark, can also add other supplementary key element, other supplementary key element is that temporal information, regional information etc. need the supplementary key element of adding, and other supplementary is option.This paragraph header fileinfo sends to data receiver with the data that are ready for sending, and also can be sent it back separately data sending terminal by data receiver.Priority scheme is to adopt the cookie technology of current comparative maturity to transmit data area header file information at server end and browser end.
When in data area and data area, data change, header file Information generation, modified module are revised area identification mark and the version information corresponding to area identification mark of the data area in header file information.
When browser end sends request, browser end is sending to server end when sending request msg to server end together with the header file information of the area identification mark current storage of browser end, the corresponding requests page, area identification version information and other sign supplementary, and the method for transmission can take the header file information of area identification mark, area identification version information and other sign supplementary add URL parameter, HTTP header to and adopt the modes such as cookie technology.
When server end receives browser end request, by receiving request of data termination file information block, receive the header file information of area identification mark, area identification version information and other sign supplementary, and by header file information storage module, the header file information of area identification mark, area identification version information and other sign supplementary is stored in to server end.
Server end returns by header file Information generation, modified module aligning preparation the data region sign version information changing in browser end data and changes, new data of adding are added new area identification mark, area identification version information and other sign supplementary, and the mark in area identification version information that in area identification mark, all data are all deleted is all deleted identification information; That server end generates is new, the header file information of area identification mark, area identification version information and other sign supplementary after change.
Server end is before sending data, by header file information, compare judge module newly-generated, area identification mark after change, the header file information of area identification version information and other sign supplementary and before browser end send to the area identification mark of server end, the header file information of area identification version information and other sign supplementary compares, according to comparative result, the data module that server end has changed by transmission only sends the data that changed to browser end, simultaneously by sending corresponding header file information module newly-generated, area identification mark after change, the header file information of area identification version information and other sign supplementary sends to browser end.
After the data that browser end reception server end sends, by receiving, upgrade corresponding header file information module, upgrade the header file information of area identification mark, area identification version information and other sign supplementary, by receiving, upgrade the data module changing, upgrade the data of the data area having changed.Priority scheme is to adopt header file information corresponding to cookie technology innovation, the data that adopt JavaScript and Ajax technology innovation to change.
Because server end stores the header file information of browser end area identification mark, area identification version information and other sign supplementary, server end initiatively sends before data to browser end in the browser end request of not sending, can, by being stored in the judgement of header file information, the current browser end state of perception of browser end area identification mark, area identification version information and other sign supplementary of server end, according to the current browser end state outcome of judgement, to browser end, send data.
Server end also can identify temporal information in supplementary and the interval duration between current time according to other, select the browser end area identification mark of directly storing from server end, the header file information of area identification version information and other sign supplementary judges current browser end state, or select to send and return to browser end area identification mark to browser end, the message of the header file information of area identification version information and other sign supplementary, the area identification mark returning according to browser end, the header file information of area identification version information and other sign supplementary judges current browser end state.
This example is the execution mode in other system architecture (non-server end and browser end system architecture):
The data that are ready for sending are marked off to region, data area division scope and quantity are by programmer's Autonomous determination, also can by computer program, automatically be divided according to data characteristics, each data area includes area identification mark and two requisite items of area identification version information and other sign supplementary key element, and other sign supplementary is option.Data area scope is definite by region beginning label and region end mark, and area identification version information is for marked region sign version number, and other sign supplementary is the sign supplementary key element that temporal information, regional information etc. need interpolation.The object of zoning is to realize transferring after data for the first time, while again transmitting data, has transmitted and has been stored in the data that do not change in the data of data receiver and just no longer by network, transmitted.
When in data area, data change, corresponding area identification version information also changes simultaneously.
The header file information that comprises one section of area identification mark, area identification version information and other sign supplementary in the data that are ready for sending, this paragraph header fileinfo sends to data receiver and is stored in data receiver with the data that are ready for sending.The header file information of area identification mark, area identification version information and other sign supplementary also can be sent it back data sending terminal by data receiver.
When data sending terminal sends data to data receiver, data sending terminal is ready for sending correspondence together with the area identification mark, area identification version information of data and the header file information of other sign supplementary and sends to data receiver, or separately the header file information of area identification mark, area identification version information and other sign supplementary is sent to data receiver.
When data receiver receives data sending terminal data, also receive the header file information of corresponding area identification mark, area identification version information and other sign supplementary, and the header file information of area identification mark, area identification version information and other sign supplementary is stored in to data receiver.
When change occurs the data of data sending terminal, the data region sign version information that change occurs is changed; New data of adding are added new area identification mark, area identification version information and other sign supplementary; The mark in area identification version information that in area identification mark, all data are all deleted is all deleted identification information.Simultaneously data sending terminal generates the header file information of area identification mark, area identification version information and other sign supplementary after new, change.
Data sending terminal is before sending data, newly-generated, area identification mark after change, the area identification mark that the header file information of area identification version information and other sign supplementary is corresponding with the data that data sending terminal receives before, the header file information of area identification version information and other sign supplementary compares, according to comparative result, data sending terminal only sends the data that changed, simultaneously also newly-generated, area identification mark after change, the header file information of area identification version information and other sign supplementary sends to data receiver.
Data receiver receives after the data that data sending terminal sends, upgrade the header file information of area identification mark, area identification version information and other sign supplementary, upgrades the data of the data area having changed.
Because data sending terminal stores the header file information of data receiver area identification mark, area identification version information and other sign supplementary, data sending terminal can, by being stored in the judgement of header file information, the perception current data receiving-end state of local data receiver area identification mark, area identification version information and other sign supplementary, send data according to judgement current data receiving-end state to data receiver.
Data sending terminal also can identify temporal information in supplementary and the interval duration between current time according to other, select the data receiver area identification mark of directly storing from data sending terminal, the header file information judgement current data receiving-end state of area identification version information and other sign supplementary, or select to send return data transmitting terminal area identification mark to data receiver, the header file information request of area identification version information and other sign supplementary, according to the data receiver area identification mark returning, the header file information judgement current data receiving-end state of area identification version information and other sign supplementary.

Claims (8)

1. a method of transmitting data, is characterized in that: the data that are ready for sending are marked off to region, and each data area includes region beginning label, region end mark and area identification mark; The header file information of the version information that the area identification mark of additional one section of each data area and area identification mark are corresponding in the data that are ready for sending, this paragraph header fileinfo sends to data receiver with the data that are ready for sending; When the data of data sending terminal change, revise corresponding header file information; If request of data end (data receiver) has header file information corresponding to preparation request data, when request of data end sends request data, corresponding header file information is sent to requested end (data sending terminal) with request; Requested end (data sending terminal) is before sending data, up-to-date header file information and the header file information sending over from request of data end (data receiver) receiving are before compared, according to comparative result, data sending terminal only sends the data that changed and corresponding header file information; Data receiver receives after the data that data sending terminal sends, and upgrades the data of the data area having changed, and upgrades corresponding header file information.
2. a kind of method of transmitting data according to claim 1, is characterized in that: data area division scope and quantity are by programmer's Autonomous determination; Also can by computer program, automatically be divided according to data characteristics.
3. a kind of method of transmitting data according to claim 1, it is characterized in that: in header file information except the area identification mark of each data area and two requisite items of version information corresponding to area identification mark, can also add other supplementary key element, other supplementary key element is that temporal information, regional information etc. need the supplementary key element of adding, and other supplementary is option.
4. a kind of method of transmitting data according to claim 1, is characterized in that: when the data of data receiver request do not change, data sending terminal sends data and do not have vicissitudinous information to data receiver.
5. a system of transmitting data, is characterized in that: data sending terminal unit and data receiver end unit, consist of; Data sending terminal unit by header file Information generation, modified module, reception request of data termination file information block, header file information comparison judge module, send the data module having changed and send corresponding header file information module and form; Data receiver end unit by receiving, upgrade data module, the reception of variation, the header file information module of renewal correspondence and send corresponding header file information module and form; Header file Information generation, the modified module function of data sending terminal unit are: the header file information that generates the version information that the area identification mark of each data area and area identification mark are corresponding, when the data in data area change, revise corresponding header file information; The reception request of data termination file information block function of data sending terminal unit is: receive the header file information that request of data end sends over when request msg; The header file information comparison judge module function of data sending terminal unit is: data sending terminal before sending data, the up-to-date header file information that labour contractor's fileinfo generates, modified module generates with receive before the header file information that request of data termination file information block receives and compare; The data module function that the transmission of data sending terminal unit has changed is: according to the header file information judged result of judge module relatively, the data area data that changed are sent to data receiver; The header file information module function of the transmission correspondence of data sending terminal unit is: the header file information that the data that send to data receiver are corresponding sends to data receiver; The data module function that the reception of data receiver end unit, renewal change is: the data that reception data sending terminal sends over are also upgraded local data; The reception of data receiver end unit, upgrade corresponding header file information module function and be: receive the corresponding header file information that data sending terminal sends over and upgrade local corresponding header file information; The header file information module function of the transmission correspondence of data receiver end unit is: if request of data end (data receiver) has header file information corresponding to preparation request data, when request of data end sends request data, corresponding header file information is sent to requested end (data sending terminal) with request.
6. a kind of system of transmitting data according to claim 5, it is characterized in that: data sending terminal unit can also comprise data area division module, its function is: by programmer's Autonomous determination data area, divide scope and quantity, also can by computer program, automatically be divided according to data characteristics, each data area of division includes region beginning label, region end mark and area identification mark.
7. a kind of system of transmitting data according to claim 5, it is characterized in that: in the header file information that the header file Information generation of data sending terminal unit, modified module generate except the area identification mark of each data area and two requisite items of version information corresponding to area identification mark, can also generate other supplementary key element, other supplementary key element is that temporal information, regional information etc. need the supplementary key element of adding, and other supplementary is option.
8. a kind of system of transmitting data according to claim 5, it is characterized in that: data sending terminal unit can also comprise reception request of data termination file information storage module, its function is: storing received to the header file information being sended over when the request msg by request of data end, for data sending terminal program, use the data of storage.
CN201410386099.3A 2014-08-07 2014-08-07 Data transmission method and system Pending CN104158870A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410386099.3A CN104158870A (en) 2014-08-07 2014-08-07 Data transmission method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410386099.3A CN104158870A (en) 2014-08-07 2014-08-07 Data transmission method and system

Publications (1)

Publication Number Publication Date
CN104158870A true CN104158870A (en) 2014-11-19

Family

ID=51884275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410386099.3A Pending CN104158870A (en) 2014-08-07 2014-08-07 Data transmission method and system

Country Status (1)

Country Link
CN (1) CN104158870A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790655A (en) * 2017-01-18 2017-05-31 北京慧眼智行科技有限公司 A kind of data processing method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064630A (en) * 2006-04-24 2007-10-31 华为技术有限公司 Data synchronization method and system
US20070291774A1 (en) * 2006-06-16 2007-12-20 Nvidia Corporation System and method for communicating data utilizing multiple types of data connections
CN101127869A (en) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 An update and transmission method for electronic service guidance content information
CN101166252A (en) * 2006-10-20 2008-04-23 佳能株式会社 Data reproducing device and content management method
CN101276272A (en) * 2007-03-28 2008-10-01 凌阳科技股份有限公司 System and method for supporting multi-language user interface
CN102547447A (en) * 2010-12-14 2012-07-04 腾讯科技(深圳)有限公司 Method, device and system for downloading video files
CN104009979A (en) * 2014-05-12 2014-08-27 刘喆 Method for data transmission

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064630A (en) * 2006-04-24 2007-10-31 华为技术有限公司 Data synchronization method and system
US20070291774A1 (en) * 2006-06-16 2007-12-20 Nvidia Corporation System and method for communicating data utilizing multiple types of data connections
CN101166252A (en) * 2006-10-20 2008-04-23 佳能株式会社 Data reproducing device and content management method
CN101276272A (en) * 2007-03-28 2008-10-01 凌阳科技股份有限公司 System and method for supporting multi-language user interface
CN101127869A (en) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 An update and transmission method for electronic service guidance content information
CN102547447A (en) * 2010-12-14 2012-07-04 腾讯科技(深圳)有限公司 Method, device and system for downloading video files
CN104009979A (en) * 2014-05-12 2014-08-27 刘喆 Method for data transmission

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790655A (en) * 2017-01-18 2017-05-31 北京慧眼智行科技有限公司 A kind of data processing method and device

Similar Documents

Publication Publication Date Title
CN102722551B (en) Intelligent switching method and system for browser kernels
CN104009979A (en) Method for data transmission
CN104798071A (en) Improving web sites performance using edge servers in fog computing architecture
CN102882974A (en) Method for saving website access resource by website identification version number
JP2016535895A (en) Software update method, system and device
CN102946442B (en) Based on the method and system of the file update issue that intelligence refreshes
CN103209407A (en) Download management method and system for application program in mobile terminal and mobile terminal
CN103475744A (en) Resource downloading method, device and system on basis of Web application
CN103209223A (en) Distributed application conversation information sharing method and system and application server
CN103024013A (en) Differentiation transmission method, differentiation transmission system and differentiation transmission device
US10404774B2 (en) Mobile device and method for controlling transmission to web server in mobile device
CN103731493A (en) Page transmission method, device and system
CN104935666B (en) A kind of method and system for mobile terminal viewing pdf document
CN105072139A (en) Recommendation method and recommendation device
CN105391536A (en) Communication method and device between client end and service end
EP3087765B1 (en) Method and apparatus for sharing data quota
CN104469394A (en) Video resource acquiring method, background server, video client and system
JP2015052821A (en) Communication device and communication method
CN103092663B (en) A kind of method of set up applications in the terminal and device
CN105100158A (en) Message pushing and obtaining methods and apparatuses
CN104133704A (en) Software upgrading and upgrade package issuing method, device and equipment
KR102095340B1 (en) Resource acquisition method and device
EP3119044B1 (en) Page insertion method and device
CN106161623A (en) Caching server, renewal server and data-updating method
CN104185195A (en) Mobile web performance measuring method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141119