CN104009979A - Method for data transmission - Google Patents

Method for data transmission Download PDF

Info

Publication number
CN104009979A
CN104009979A CN201410197598.8A CN201410197598A CN104009979A CN 104009979 A CN104009979 A CN 104009979A CN 201410197598 A CN201410197598 A CN 201410197598A CN 104009979 A CN104009979 A CN 104009979A
Authority
CN
China
Prior art keywords
data
mark
area
version information
information
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
CN201410197598.8A
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 CN201410197598.8A priority Critical patent/CN104009979A/en
Publication of CN104009979A publication Critical patent/CN104009979A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a method for data transmission, and belongs to the field of computer software. According to the method, during data transmission between a computer and a communication system, the transmitted and received data volumes are saved to the maximum extent, and power consumption of transmitting and receiving devices is saved at the same time. According to the technical scheme, data ready to be sent are divided into areas, and each data area comprises two necessary elements, namely an area identity and area identity version information and other identity auxiliary information elements; the data ready to be sent comprise header file information of the data area identity, the area identity version information and the other identity auxiliary information; before the data sending end sends data, the modified header file information is compared with header file information which is received by the data sending end and sent from the data requesting end, and the data sending end only sends the changed data; after the data receiving end receives the data sent by the data sending end, the header file information is updated, and the changed data of the data areas are updated.

Description

A kind of method of transmitting data
Technical field
The present invention relates to a kind of method of transmitting data, belong to computer software fields.
Background technology
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, whole page datas of browse request are returned to client by server, comprise the data such as HTML, CSS, JavaScript, during due to each transmission data, all comprise the data of a large amount of repetitions, cause and in network service, repeatedly transmit these repeating datas.Develop the stage rapidly at WebApp, need the web data amount of transmission to roll up, a large amount of repeating datas have taken network transmission resource, and saving mobile network's flow and shortening the browser page response time is urgent problem.In order to save transmission, to receive data volume, existing solution has: 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 the flow that sends, receives data.Use the shortcoming of this solution to be: when only having few data to change in the total data that will send, also need total data all to resend receiving terminal, send, receive in data procedures at this, 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.
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 save the power consumption of transmitting and receiving device simultaneously, particularly in to the portable equipment of data traffic and power consumption sensitivity, produced appreciable results.
Technical solution of the present invention is: a kind of method of transmitting data, as shown in Figure 1.
The data that are ready for sending are marked off to region, and each data area includes area identification and two requisite items of area identification version information and other mark supplementary key element, and other mark supplementary is option.Data area mark is for specified data regional extent, formed by beginning label and end mark, area identification version information is for marked region mark version number, and other mark supplementary is that temporal information, regional information etc. need the mark supplementary key element of adding.
The header file information that comprises one piece of data area identification, area identification version information and other mark 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 data area mark, area identification version information and other mark supplementary also can be sent it back data sending terminal by data receiver.
The header file information of data area mark that what data sending terminal and data receiver can be stored by this locality comprise, area identification version information and other mark supplementary compares with the header file information that comprises data area mark, area identification version information and other mark supplementary sending over, the data that judge which data area exist in this locality, the data of which data area are new datas, the data of which data area are deleted, and the data of which data area are to have changed the data that changed.Send data front according to the result judging, only the data that need the data area sending in total data are sent to data receiver, realize saving data traffic and the effect of saving power consumption.
Brief description of the drawings
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 specification in transmitted data on network process, so describe respectively in following embodiment that data procedures is transmitted in the present invention in server end and browser end system architecture and transmission data procedures 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, 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, transmit and be stored in the data that do not change in the data of browser client and just no longer transmitted by network, the beginning label of each data area mark and end mark are after in data, mark completes, marked region mark version information after the beginning label of each data area, area identification version information is by programmer's Autonomous determination, in the time that in data area, data change, area identification version information also changes simultaneously, other mark supplementary of mark after area identification version information, for other information that need to identify of mark, other mark supplementary is option.
After data area has been divided, server end also will comprise the header file information of one piece of data area identification, area identification version information and other mark supplementary in the data that are ready for sending, 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.
In the time that browser end sends request, browser end in sending request msg to server end the current storage of browser end, the data area mark of the corresponding requests page, together with the header file information of area identification version information and other mark supplementary, send to server end, the method sending can take data area to identify, the header file information of area identification version information and other mark supplementary is added URL parameter to, HTTP header, the modes such as HTML header, or separately data area is identified, the header file information of area identification version information and other mark supplementary sends to server end.
When server end receives browser end request, also receive the header file information of data area mark, area identification version information and other mark supplementary, and data area identify, the header file information of area identification version information and other mark supplementary is stored in server end.
When the request of server end response browser end, aligning preparation is returned the data region mark version information changing in browser end data and is changed, new data of adding are added new data area mark, area identification version information and other mark supplementary, and the mark in area identification version information that in the mark of data area, all data are all deleted is all deleted identification information.
That server end generates is new, the header file information of data area mark, area identification version information and other mark supplementary after change.Server end is before sending data, newly-generated, data area mark after change, the header file information of area identification version information and other mark supplementary and before browser end send to the data area mark of server end, the header file information of area identification version information and other mark supplementary compares, according to comparative result, server end only sends the data that changed to browser end, simultaneously also newly-generated, data area mark after change, the header file information of area identification version information and other mark supplementary sends to browser end, newly-generated, data area mark after change, mode and browser end that the header file information of area identification version information and other mark supplementary sends to browser end employing send data area mark to server end, area identification version information is identical with the mode that the header file information of other mark supplementary adopts.
After the data that browser end reception server end sends, upgrade the header file information of data area mark, area identification version information and other mark supplementary, upgrade the data of the data area having changed.Browser completes follow-up operating procedure according to new data.
Because server end stores the header file information of browser end data area mark, area identification version information and other mark supplementary, server end initiatively sends before data to browser end in the browser end request of not sending, can be by being stored in the judgement of header file information, the current browser end state of perception of browser end data area mark, area identification version information and other mark supplementary of server end, according to judging that current browser end state outcome sends data to browser end.
Server end also can identify the interval duration between temporal information and the current time in supplementary according to other, select the directly browser end data area mark from server end storage, the header file information of area identification version information and other mark supplementary judges current browser end state, or select to send and return to browser end data area mark to browser end, the header file information request of area identification version information and other mark supplementary, according to the browser end data area mark of returning, the header file information of area identification version information and other mark 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, each data area includes area identification and two requisite items of area identification version information and other mark supplementary key element, and other mark supplementary is option.Data area mark is for specified data regional extent, formed by beginning label and end mark, area identification version information is for marked region mark version number, by programmer's Autonomous determination, other mark supplementary is that temporal information, regional information etc. need the mark supplementary key element of adding.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 transmitted by network.
The beginning label of each data area mark and end mark are after in data, mark completes, marked region mark version information after the beginning label of each data area, area identification version information is by programmer's Autonomous determination, in the time that in data area, data change, area identification version information also changes simultaneously.Other mark supplementary of mark after area identification version information, for other information that need to identify of mark, other mark supplementary is option.
The header file information that comprises one piece of data area identification, area identification version information and other mark 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 data area mark, area identification version information and other mark supplementary also can be sent it back data sending terminal by data receiver.
In the time that data sending terminal sends data to data receiver, data sending terminal is ready for sending correspondence together with the header file information of data area mark, area identification version information and other mark supplementary of data and sends to data receiver, or separately data area identify, the header file information of area identification version information and other mark supplementary sends to data receiver.
When data receiver receives data sending terminal data, also receive the header file information of corresponding data area mark, area identification version information and other mark supplementary, and data area identify, the header file information of area identification version information and other mark supplementary is stored in data receiver.
In the time that change occurs the data of data sending terminal, the data region mark version information that change occurs is changed; New data of adding are added new data area mark, area identification version information and other mark supplementary; The mark in area identification version information that in the mark of data area, all data are all deleted is all deleted identification information.Simultaneously data sending terminal generates the header file information of data area mark, area identification version information and other mark supplementary after new, change.
Data sending terminal is before sending data, newly-generated, data area mark after change, the data area mark that the header file information of area identification version information and other mark supplementary is corresponding with the data that data sending terminal receives before, the header file information of area identification version information and other mark supplementary compares, according to comparative result, data sending terminal only sends the data that changed, simultaneously also newly-generated, data area mark after change, the header file information of area identification version information and other mark supplementary sends to data receiver.
Data receiver receives after the data that data sending terminal sends, upgrade the header file information of data area mark, area identification version information and other mark supplementary, upgrades the data of the data area having changed.
Because data sending terminal stores the header file information of data receiver data area mark, area identification version information and other mark supplementary, data sending terminal can be by being stored in the judgement of header file information, the perception current data receiving-end state of local data receiver data area mark, area identification version information and other mark supplementary, according to judging that current data receiving-end state sends data to data receiver.
Data sending terminal also can identify the interval duration between temporal information and the current time in supplementary according to other, select the directly data receiver data area mark from data sending terminal storage, the header file information of area identification version information and other mark supplementary judges current data receiving-end state, or select to send return data transmitting terminal data area mark to data receiver, the header file information request of area identification version information and other mark supplementary, according to the data receiver data area mark of returning, the header file information of area identification version information and other mark supplementary judges current data receiving-end state.

Claims (1)

1. a method of transmitting data, is characterized in that:
The data that are ready for sending are marked off to region, data area division scope and quantity are by programmer's Autonomous determination, each data area includes area identification and two requisite items of area identification version information and other mark supplementary key element, and other mark supplementary is option; Data area mark is for specified data regional extent, formed by beginning label and end mark, area identification version information is for marked region mark version number, by programmer's Autonomous determination, other mark supplementary is that temporal information, regional information etc. need the mark supplementary key element of adding; 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 transmitted by network;
The beginning label of each data area mark and end mark are after in data, mark completes, marked region mark version information after the beginning label of each data area, area identification version information is by programmer's Autonomous determination, in the time that in data area, data change, area identification version information also changes simultaneously; Other mark supplementary of mark after area identification version information, for other information that need to identify of mark, other mark supplementary is option;
The header file information that comprises one piece of data area identification, area identification version information and other mark 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 data area mark, area identification version information and other mark supplementary also can be sent it back data sending terminal by data receiver;
In the time that data sending terminal sends data to data receiver, data sending terminal is ready for sending correspondence together with the header file information of data area mark, area identification version information and other mark supplementary of data and sends to data receiver, or separately data area identify, the header file information of area identification version information and other mark supplementary sends to data receiver;
When data receiver receives data sending terminal data, also receive the header file information of corresponding data area mark, area identification version information and other mark supplementary, and data area identify, the header file information of area identification version information and other mark supplementary is stored in data receiver;
In the time that change occurs the data of data sending terminal, the data region mark version information that change occurs is changed; New data of adding are added new data area mark, area identification version information and other mark supplementary; The mark in area identification version information that in the mark of data area, all data are all deleted is all deleted identification information; Simultaneously data sending terminal generates the header file information of data area mark, area identification version information and other mark supplementary after new, change;
Data sending terminal is before sending data, newly-generated, data area mark after change, the data area mark that the header file information of area identification version information and other mark supplementary is corresponding with the data that data sending terminal receives before, the header file information of area identification version information and other mark supplementary compares, according to comparative result, data sending terminal only sends the data that changed, simultaneously also newly-generated, data area mark after change, the header file information of area identification version information and other mark supplementary sends to data receiver,
Data receiver receives after the data that data sending terminal sends, upgrade the header file information of data area mark, area identification version information and other mark supplementary, upgrades the data of the data area having changed.
CN201410197598.8A 2014-05-12 2014-05-12 Method for data transmission Pending CN104009979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410197598.8A CN104009979A (en) 2014-05-12 2014-05-12 Method for data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410197598.8A CN104009979A (en) 2014-05-12 2014-05-12 Method for data transmission

Publications (1)

Publication Number Publication Date
CN104009979A true CN104009979A (en) 2014-08-27

Family

ID=51370473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410197598.8A Pending CN104009979A (en) 2014-05-12 2014-05-12 Method for data transmission

Country Status (1)

Country Link
CN (1) CN104009979A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158870A (en) * 2014-08-07 2014-11-19 刘喆 Data transmission method and system
CN104468707A (en) * 2014-10-27 2015-03-25 刘喆 Data transmitting method and system
CN104883385A (en) * 2015-03-31 2015-09-02 小米科技有限责任公司 Rich media file transmission method and apparatus
CN105704562A (en) * 2016-03-29 2016-06-22 Tcl集团股份有限公司 Multi-version compatible method and multi-version compatible device for Internet protocol television cloud service platform
CN105930530A (en) * 2016-06-13 2016-09-07 乐视控股(北京)有限公司 Mobile terminal page caching method and system
CN115168112A (en) * 2022-09-07 2022-10-11 中建三局信息科技有限公司 Method, device, equipment and medium for restoring section data under dynamic section change

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1087589A1 (en) * 1999-09-27 2001-03-28 Ford Motor Company Utilizing intelligent software agents in a mobile vehicle
CN101064630A (en) * 2006-04-24 2007-10-31 华为技术有限公司 Data synchronization method and system
CN101127869A (en) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 An update and transmission method for electronic service guidance content information
CN101197657A (en) * 2007-11-12 2008-06-11 中兴通讯股份有限公司 Data synchronization method of distributed system single panel
CN102098342A (en) * 2011-01-31 2011-06-15 华为技术有限公司 Transaction level-based data synchronizing method, device thereof and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1087589A1 (en) * 1999-09-27 2001-03-28 Ford Motor Company Utilizing intelligent software agents in a mobile vehicle
CN101064630A (en) * 2006-04-24 2007-10-31 华为技术有限公司 Data synchronization method and system
CN101127869A (en) * 2007-09-20 2008-02-20 中兴通讯股份有限公司 An update and transmission method for electronic service guidance content information
CN101197657A (en) * 2007-11-12 2008-06-11 中兴通讯股份有限公司 Data synchronization method of distributed system single panel
CN102098342A (en) * 2011-01-31 2011-06-15 华为技术有限公司 Transaction level-based data synchronizing method, device thereof and system thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104158870A (en) * 2014-08-07 2014-11-19 刘喆 Data transmission method and system
CN104468707A (en) * 2014-10-27 2015-03-25 刘喆 Data transmitting method and system
CN104883385A (en) * 2015-03-31 2015-09-02 小米科技有限责任公司 Rich media file transmission method and apparatus
CN104883385B (en) * 2015-03-31 2019-02-12 小米科技有限责任公司 Rich media file transmission method and device
CN105704562A (en) * 2016-03-29 2016-06-22 Tcl集团股份有限公司 Multi-version compatible method and multi-version compatible device for Internet protocol television cloud service platform
CN105704562B (en) * 2016-03-29 2020-01-03 Tcl集团股份有限公司 Multi-version compatible method and device for network television cloud service platform
CN105930530A (en) * 2016-06-13 2016-09-07 乐视控股(北京)有限公司 Mobile terminal page caching method and system
CN115168112A (en) * 2022-09-07 2022-10-11 中建三局信息科技有限公司 Method, device, equipment and medium for restoring section data under dynamic section change

Similar Documents

Publication Publication Date Title
CN104009979A (en) Method for data transmission
US20160299754A1 (en) Method for Updating Application Program, and Terminal
US20170111872A1 (en) Plurality of beacon signals transmission method for providing a plurality of beacon services and a beacon service provision method using the beacon signals
CN105051685B (en) For causing networked asset to be able to access that locally applied system and method
KR20130135134A (en) Installing application remotely
CN103475744A (en) Resource downloading method, device and system on basis of Web application
CN103209407A (en) Download management method and system for application program in mobile terminal and mobile terminal
US10404774B2 (en) Mobile device and method for controlling transmission to web server in mobile device
RU2016111141A (en) TRANSMISSION SYSTEM, TRANSMISSION DEVICE AND METHOD OF DATA TRANSFER
CN113938355B (en) Data transmission method, system and storage medium
CN102665297A (en) Communication device and system as well as method of wireless cloud sensor network
CN103929784A (en) User bandwidth control method, apparatus and system
CN104471904A (en) Content optimization based on real time network dynamics
EP3087765B1 (en) Method and apparatus for sharing data quota
CN105100158A (en) Message pushing and obtaining methods and apparatuses
CN105190613A (en) Method and apparatus for providing contextual context to a user device
CN104185195A (en) Mobile web performance measuring method, device and system
EP3340669A1 (en) Methods and apparatuses for activating a mobile subscription
CN104133704A (en) Software upgrading and upgrade package issuing method, device and equipment
CN104320447A (en) Medium and small-sized cloud stored data synchronization method, compute readable medium and system
CN106302093B (en) Communication method, system and server
CN104168322A (en) Vehicle-mounted terminal data transmission method, application server, client-side and user terminal
US20160088076A1 (en) Method, device and system for obtaining mobile network data resources
CN103002564B (en) Wireless Internet access method, radio networking device, server and wireless networking system
CN105264458B (en) Methods, devices and systems for being adapted to session

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

Application publication date: 20140827

WD01 Invention patent application deemed withdrawn after publication