US9058400B2 - HTTP performance enhancement based on delta transfer - Google Patents

HTTP performance enhancement based on delta transfer Download PDF

Info

Publication number
US9058400B2
US9058400B2 US13/585,901 US201213585901A US9058400B2 US 9058400 B2 US9058400 B2 US 9058400B2 US 201213585901 A US201213585901 A US 201213585901A US 9058400 B2 US9058400 B2 US 9058400B2
Authority
US
United States
Prior art keywords
client
server
image page
program instructions
contents
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active, expires
Application number
US13/585,901
Other versions
US20140052772A1 (en
Inventor
Andrew G. Hourselt
Pei Ming Hu
Wen Gang Luo
Hui Yang
Yuan Yin
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.)
Lenovo International Ltd
Original Assignee
Lenovo Enterprise Solutions Singapore Pte Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Enterprise Solutions Singapore Pte Ltd filed Critical Lenovo Enterprise Solutions Singapore Pte Ltd
Priority to US13/585,901 priority Critical patent/US9058400B2/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: HOURSELT, ANDREW G., HU, PEI MING, LUO, WEN GANG, YANG, HUI, YIN, Yuan
Publication of US20140052772A1 publication Critical patent/US20140052772A1/en
Assigned to LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE. LTD. reassignment LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE. LTD. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: INTERNATIONAL BUSINESS MACHINES CORPORATION
Application granted granted Critical
Publication of US9058400B2 publication Critical patent/US9058400B2/en
Assigned to LENOVO INTERNATIONAL LIMITED reassignment LENOVO INTERNATIONAL LIMITED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE. LTD.
Assigned to LENOVO INTERNATIONAL LIMITED reassignment LENOVO INTERNATIONAL LIMITED CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNMENT DOCUMENT CONTAINING TYPO ERRORS PREVIOUSLY RECORDED AT REEL: 037101 FRAME: 0969. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT. Assignors: LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE. LTD.
Assigned to LENOVO INTERNATIONAL LIMITED reassignment LENOVO INTERNATIONAL LIMITED ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE LTD.
Active legal-status Critical Current
Adjusted expiration legal-status Critical

Links

Images

Classifications

    • G06F17/3089
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Definitions

  • the present invention relates generally to HTTP as a request-response protocol in a client-server computing model, and more particularly to HTTP performance enhancement based on delta transfer.
  • HTTP functions as a request-response protocol in the client-server computing model.
  • a web browser acts as a client, while an application running on a computer hosting a web site functions as a server.
  • the client submits a HTTP request for a HTTP page to the server.
  • the server returns a HTTP response to the client.
  • the HTTP response by the server fetches all the contents of the HTTP page and passes all the contents to the client. Therefore, duplicated/redundant data are transmitted via a network.
  • AJAX Asynchronous JavaScript and XML
  • AJAX is a group of interrelated web development techniques used on the client-side to create asynchronous web applications, and AJAX-based web applications are growing in popularity.
  • technologies of delta transfer and diff transfer based on HTTP such as Apache Subversion (SVN).
  • Embodiments of the present invention provide a method, computer program product, and computer system for client-server communication based on delta transfer.
  • a server of the computer system receives from a client a HTTP request for transferring a current image page.
  • the server of the computer system compares the current image page and a saved image page, wherein the saved image page is stored on the server for the client.
  • the server of the computer system constructs delta contents between the current image page and the saved image page.
  • the server of the computer system updates the saved image page with the current image page.
  • the server of the computer system sends a HTTP response comprising the delta contents to the client.
  • FIGS. 1A and 1B are diagrams illustrating a system of a client and a server connected by a network, in accordance with an exemplary embodiment of the present invention.
  • FIG. 2 is a flowchart illustrating operational steps of a HTTP server program on the server shown in FIGS. 1A and 1B , in accordance with an exemplary embodiment of the present invention.
  • FIG. 3 is a flowchart illustrating operational steps of a page render program on the client shown in FIGS. 1A and 1B , in accordance with an exemplary embodiment of the present invention.
  • FIG. 4 is a block diagram illustrating internal and external components of the client or the server presented in FIGS. 1A and 1B , in accordance with an exemplary embodiment of the present invention.
  • aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
  • a computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
  • a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the term of “computer readable storage medium” or “one or more computer-readable tangible storage devices”, as used in this document, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
  • Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java®, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
  • LAN local area network
  • WAN wide area network
  • Internet Service Provider for example, AT&T, MCI, Sprint, EarthLink, MSN, GTE, etc.
  • These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
  • the computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • FIGS. 1A and 1B are diagrams illustrating system 100 comprising client 110 and server 120 connected by network 130 , in accordance with an exemplary embodiment of the present invention.
  • Server 120 comprises HTTP server 122 and image page repository 126 .
  • Server 120 is a computing system capable of receiving and sending data to and from client 110 via network 130 .
  • server 120 is a computing device that is optimized for the support of websites which reside on server 120 , and for the support of network requests related to websites which reside on server 120 .
  • Client 110 may be a desktop computer, a notebook, a laptop computer, a tablet computer, a handheld device, a smartphone, a thin client, or any other electronic device capable of receiving input from a user, executing computer program instructions, and communicating with server 120 via network 130 .
  • Client 110 submits a HTTP request to server 120 through network 130 .
  • Server 120 stores contents of HTTP pages on image page repository 126 , provides resources such as HTML files, performs other functions on behalf of client 110 , and returns a HTTP response to client 110 through network 130 .
  • server 120 may store the contents of HTTP pages on a file system of server 120 .
  • HTTP server 122 comprises HTTP server program 124 .
  • HTTP server program 124 In response to receiving a HTTP request from client 110 for a current image page, HTTP server program 124 does not return a complete current page. However, server 120 calculates the delta between the current page at a present time and a saved image page at a prior time, and then transfers delta contents back to client 110 through network 130 .
  • the saved image page is stored for client 110 on image page repository 126 of server 120 .
  • HTTP server program 124 updates the saved image page with the current image page, on image page repository 126 . Operational steps of HTTP server program 124 are discussed in greater detail in later paragraphs with reference to FIG. 2 .
  • Client 110 comprises web browser 111 , page render program 113 , and user interface 115 .
  • User interface 115 receives input from a user and transmits the input to an application.
  • Web browser 111 is a program that enables users to view, watch, or listen to documents and other resources, such as audio and video files, retrieved from a network device.
  • web browser 111 requests for transferring the current image page from server 120 via network 130 .
  • Page render program 113 receives the delta contents from server 120 .
  • Page render program 113 refreshes a HTTP page, based on the delta contents.
  • client 110 does not need to implement extra programming such as AJAX which is widely used. Operational steps of page render program 113 are discussed in greater detail in later paragraphs with reference to FIG. 3 .
  • FIG. 2 is a flowchart illustrating operational steps of HTTP server program 124 on server 120 shown in FIGS. 1A and 1B , in accordance with an exemplary embodiment of the present invention.
  • HTTP server program 124 receives, from client 110 , a HTTP request for a current image page.
  • HTTP server program 124 determines whether a client ID exists for client 110 .
  • the client ID is used for HTTP server program 124 to identify a saved image page which is stored on image page repository 126 specifically for client 110 .
  • a table on image page repository 126 includes relationship entries: client ID, URL, image page path, and time stamp.
  • HTTP server program 124 allocates a new client ID to client 110 .
  • client 110 requests a specific image page at a first time
  • the relationship entries in the table do not exist specifically for client 110 ; therefore, HTTP server program 124 allocates a new client ID and builds relationship entries for client 110 .
  • HTTP server program 124 creates a new saved image page for the client ID on image page repository 126 .
  • HTTP server program 124 uses whole contents of the new saved image page as delta contents.
  • server program 124 sends a HTTP response comprising the delta contents and the new client ID which is written into a cookie. The new client ID will be used in future requests by client 110 .
  • HTTP server program 124 determines whether a saved page image for client 110 exists on image page repository 126 . In response to determining that the saved image page for client 110 does not exist (NO branch of decision block 205 ), at step 206 , HTTP server program 124 creates a new saved image page for client 110 on image page repository 126 . Under this particular situation, HTTP server program 124 uses whole contents of the new saved image page as delta contents. At step 215 , server program 124 sends a HTTP response comprising the delta contents. In response to determining that the saved image page for client 110 exists (YES branch of decision block 205 ), HTTP server program 124 retrieves, at step 207 , the saved image page from image page repository 126 .
  • HTTP server program 124 compares the current image page and the saved image page.
  • HTTP server program 124 compares the whole contents of the current image page and the whole contents of the saved image page.
  • the whole contents include DOM tree contents and other sources such as linked image files.
  • HTTP server program 124 constructs, at step 211 , delta contents between the current image page and the saved image page.
  • HTTP server program 124 updates the saved image page on image page repository 126 with the current image page.
  • HTTP server program 124 sends a HTTP response to client 110 .
  • the HTTP response includes the delta contents based on the calculation of the delta at step 211 .
  • the delta contents included in the HTTP response include adding, removing, and/or modifying nodes of a DOM tree and how client 110 applies the delta.
  • the DOM Document Object Model
  • a document has a tree structure which is called a DOM tree.
  • the structure of the delta contents can be defined as follows:
  • +nodeA is used to add a new node in a DOM tree; it is followed by the location of nodeA (defining by its ancestor and sub path), and then followed by contents of nodeA.
  • ⁇ nodeB is used to remove an existing node in a DOM tree; it is followed by the location of nodeB (defining by its ancestor and sub path.
  • *nodeC is used to modify an existing node in a DOM tree; it is followed by the location of nodeC (defining by its ancestor and sub path), and then followed by new contents of nodeC.
  • client 110 refreshes a HTTP page.
  • the next paragraph discusses, with reference to FIG. 3 , how the HTTP page is refreshed on client 110 in response to receiving the HTTP response sent from server 120 at step 215 in FIG. 2 .
  • FIG. 3 is a flowchart illustrating operational steps of page render program 113 on client 110 shown in FIGS. 1A and 1B , in accordance with an exemplary embodiment of the present invention.
  • page render program 113 receives a HTTP response from server 120 .
  • the HTTP response contains delta contents which are described in a previous paragraph regarding step 215 of FIG. 2 .
  • page render program 113 extracts the delta contents by parsing the HTTP response from server 120 .
  • page render program 113 modifies a prior DOM tree and generates a new DOM tree, based on the delta contents.
  • the new DOM tree is built by adding, removing, and/or modifying nodes as well as node contents of the prior DOM tree, according to the delta contents.
  • page render program 113 refreshes the HTTP page with the current image page, according to the new DOM tree.
  • FIG. 4 is a block diagram illustrating internal components 410 and external components 450 of client 110 or server 120 presented in FIGS. 1A and 1B , in accordance with an exemplary embodiment of the present invention.
  • Each of the one or more sets of internal components 410 includes, on one or more buses 414 , one or more processors 411 , one or more computer-readable RAMs 412 , and one or more computer-readable ROMs 413 .
  • each of the one or more sets of internal components 410 includes one or more computer-readable tangible storage devices 420 .
  • One or more operating systems 421 and one or more computer programs 422 are located on one or more computer-readable tangible storage devices 420 .
  • One or more computer programs 422 on client 110 include web browser 111 , page render program 113 , and user interface 115 (shown in FIG. 1B ).
  • One or more computer programs 422 on server 120 include HTTP server program 124 (shown in FIG. 1B ).
  • One or more computer programs 422 are executed by one or more processors 411 via one or more computer-readable RAMs 412 (which typically include cache memory).
  • Image page repository 126 (shown in FIG. 1B ) of server 120 may be located on one or more computer-readable tangible storage devices 420 of server 120 .
  • Each of the one or more sets of external components 450 includes a computer display monitor 451 , keyboard 452 , computer mouse 453 , and portable computer-readable tangible storage device(s) 454 .
  • Each of the one or more sets of internal components 410 includes R/W drive or interface 416 to read from or write to portable computer-readable tangible storage device(s) 454 .
  • Each of the one or more sets of internal components 410 includes device drivers 415 to interface to computer display monitor 451 , keyboard 452 , and computer mouse 453 .
  • Each of the one or more sets of internal components 410 includes network adapters or interfaces 417 .
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s).
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.

Abstract

A method, computer program product, and computer system for client-server communication based on delta transfer. A server of the computer system receives from a client a HTTP request for transferring a current image page, compares the current image page and a saved image page which is stored on the server for the client. Based on the comparison, the server of the computer system constructs delta contents between the current image page and the saved image page. The server of the computer system updates the saved image page on the server with the current image page and sends a HTTP response comprising the delta contents to the client.

Description

FIELD OF THE INVENTION
The present invention relates generally to HTTP as a request-response protocol in a client-server computing model, and more particularly to HTTP performance enhancement based on delta transfer.
BACKGROUND
HTTP functions as a request-response protocol in the client-server computing model. In HTTP, a web browser acts as a client, while an application running on a computer hosting a web site functions as a server. The client submits a HTTP request for a HTTP page to the server. In response to the HTTP request, the server returns a HTTP response to the client. Normally, the HTTP response by the server fetches all the contents of the HTTP page and passes all the contents to the client. Therefore, duplicated/redundant data are transmitted via a network. To overcome this problem, AJAX (Asynchronous JavaScript and XML) is introduced to partly refresh web contents. AJAX is a group of interrelated web development techniques used on the client-side to create asynchronous web applications, and AJAX-based web applications are growing in popularity. In addition, there are technologies of delta transfer and diff transfer based on HTTP, such as Apache Subversion (SVN).
SUMMARY
Embodiments of the present invention provide a method, computer program product, and computer system for client-server communication based on delta transfer. A server of the computer system receives from a client a HTTP request for transferring a current image page. The server of the computer system compares the current image page and a saved image page, wherein the saved image page is stored on the server for the client. The server of the computer system constructs delta contents between the current image page and the saved image page. The server of the computer system updates the saved image page with the current image page. And, the server of the computer system sends a HTTP response comprising the delta contents to the client.
BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS
FIGS. 1A and 1B are diagrams illustrating a system of a client and a server connected by a network, in accordance with an exemplary embodiment of the present invention.
FIG. 2 is a flowchart illustrating operational steps of a HTTP server program on the server shown in FIGS. 1A and 1B, in accordance with an exemplary embodiment of the present invention.
FIG. 3 is a flowchart illustrating operational steps of a page render program on the client shown in FIGS. 1A and 1B, in accordance with an exemplary embodiment of the present invention.
FIG. 4 is a block diagram illustrating internal and external components of the client or the server presented in FIGS. 1A and 1B, in accordance with an exemplary embodiment of the present invention.
DETAILED DESCRIPTION
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or computer program product. Accordingly, aspects of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “circuit,” “module” or “system.” Furthermore, aspects of the present invention may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.
Any combination of one or more computer readable medium(s) may be utilized. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The term of “computer readable storage medium” or “one or more computer-readable tangible storage devices”, as used in this document, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java®, Smalltalk, C++ or the like and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
Aspects of the present invention are described below with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer readable medium that can direct a computer, other programmable data processing apparatus, or other devices to function in a particular manner, such that the instructions stored in the computer readable medium produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
FIGS. 1A and 1B are diagrams illustrating system 100 comprising client 110 and server 120 connected by network 130, in accordance with an exemplary embodiment of the present invention. Server 120 comprises HTTP server 122 and image page repository 126. Server 120 is a computing system capable of receiving and sending data to and from client 110 via network 130. In the exemplary embodiment, server 120 is a computing device that is optimized for the support of websites which reside on server 120, and for the support of network requests related to websites which reside on server 120. Client 110 may be a desktop computer, a notebook, a laptop computer, a tablet computer, a handheld device, a smartphone, a thin client, or any other electronic device capable of receiving input from a user, executing computer program instructions, and communicating with server 120 via network 130.
Client 110 submits a HTTP request to server 120 through network 130. Server 120 stores contents of HTTP pages on image page repository 126, provides resources such as HTML files, performs other functions on behalf of client 110, and returns a HTTP response to client 110 through network 130. In other embodiments, server 120 may store the contents of HTTP pages on a file system of server 120.
Referring to FIG. 1B, HTTP server 122 comprises HTTP server program 124. In response to receiving a HTTP request from client 110 for a current image page, HTTP server program 124 does not return a complete current page. However, server 120 calculates the delta between the current page at a present time and a saved image page at a prior time, and then transfers delta contents back to client 110 through network 130. The saved image page is stored for client 110 on image page repository 126 of server 120. HTTP server program 124 updates the saved image page with the current image page, on image page repository 126. Operational steps of HTTP server program 124 are discussed in greater detail in later paragraphs with reference to FIG. 2.
Client 110 comprises web browser 111, page render program 113, and user interface 115. User interface 115 receives input from a user and transmits the input to an application. Web browser 111 is a program that enables users to view, watch, or listen to documents and other resources, such as audio and video files, retrieved from a network device. In the exemplary embodiment, web browser 111 requests for transferring the current image page from server 120 via network 130. Page render program 113 receives the delta contents from server 120. Page render program 113 refreshes a HTTP page, based on the delta contents. In this framework, client 110 does not need to implement extra programming such as AJAX which is widely used. Operational steps of page render program 113 are discussed in greater detail in later paragraphs with reference to FIG. 3.
FIG. 2 is a flowchart illustrating operational steps of HTTP server program 124 on server 120 shown in FIGS. 1A and 1B, in accordance with an exemplary embodiment of the present invention. At step 201, HTTP server program 124 receives, from client 110, a HTTP request for a current image page. At decision block 203, HTTP server program 124 determines whether a client ID exists for client 110. The client ID is used for HTTP server program 124 to identify a saved image page which is stored on image page repository 126 specifically for client 110. In the exemplary embodiment, a table on image page repository 126 includes relationship entries: client ID, URL, image page path, and time stamp.
In response to determining that the client ID does not exist (NO branch of decision block 203), at step 204, HTTP server program 124 allocates a new client ID to client 110. For example, when client 110 requests a specific image page at a first time, the relationship entries in the table do not exist specifically for client 110; therefore, HTTP server program 124 allocates a new client ID and builds relationship entries for client 110. Then, at step 206, HTTP server program 124 creates a new saved image page for the client ID on image page repository 126. Under this particular situation, HTTP server program 124 uses whole contents of the new saved image page as delta contents. At step 215, server program 124 sends a HTTP response comprising the delta contents and the new client ID which is written into a cookie. The new client ID will be used in future requests by client 110.
In response to determining that the client ID exists (YES branch of decision block 203), HTTP server program 124, at decision block 205, determines whether a saved page image for client 110 exists on image page repository 126. In response to determining that the saved image page for client 110 does not exist (NO branch of decision block 205), at step 206, HTTP server program 124 creates a new saved image page for client 110 on image page repository 126. Under this particular situation, HTTP server program 124 uses whole contents of the new saved image page as delta contents. At step 215, server program 124 sends a HTTP response comprising the delta contents. In response to determining that the saved image page for client 110 exists (YES branch of decision block 205), HTTP server program 124 retrieves, at step 207, the saved image page from image page repository 126.
Referring to FIG. 2, HTTP server program 124, at step 209, compares the current image page and the saved image page. HTTP server program 124 compares the whole contents of the current image page and the whole contents of the saved image page. For example, the whole contents include DOM tree contents and other sources such as linked image files. Based on the comparison result at step 209, HTTP server program 124 constructs, at step 211, delta contents between the current image page and the saved image page. At step 213, HTTP server program 124 updates the saved image page on image page repository 126 with the current image page.
At step 215, HTTP server program 124 sends a HTTP response to client 110. The HTTP response includes the delta contents based on the calculation of the delta at step 211. The delta contents included in the HTTP response include adding, removing, and/or modifying nodes of a DOM tree and how client 110 applies the delta. The DOM (Document Object Model) is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTML and XML documents. In the DOM, a document has a tree structure which is called a DOM tree. For example, the structure of the delta contents can be defined as follows:
+nodeA<nodeA ancestor/location><node A content>
−nodeB<nodeB ancestor/location>
*nodeC<nodeC ancestor/location><node C content>

In the structure, +nodeA is used to add a new node in a DOM tree; it is followed by the location of nodeA (defining by its ancestor and sub path), and then followed by contents of nodeA. −nodeB is used to remove an existing node in a DOM tree; it is followed by the location of nodeB (defining by its ancestor and sub path. *nodeC is used to modify an existing node in a DOM tree; it is followed by the location of nodeC (defining by its ancestor and sub path), and then followed by new contents of nodeC.
Based on the delta contents, client 110 refreshes a HTTP page. The next paragraph discusses, with reference to FIG. 3, how the HTTP page is refreshed on client 110 in response to receiving the HTTP response sent from server 120 at step 215 in FIG. 2.
FIG. 3 is a flowchart illustrating operational steps of page render program 113 on client 110 shown in FIGS. 1A and 1B, in accordance with an exemplary embodiment of the present invention. At step 301, page render program 113 receives a HTTP response from server 120. The HTTP response contains delta contents which are described in a previous paragraph regarding step 215 of FIG. 2. At step 303, page render program 113 extracts the delta contents by parsing the HTTP response from server 120. At step 305, page render program 113 modifies a prior DOM tree and generates a new DOM tree, based on the delta contents. At this step, the new DOM tree is built by adding, removing, and/or modifying nodes as well as node contents of the prior DOM tree, according to the delta contents. At step 307, page render program 113 refreshes the HTTP page with the current image page, according to the new DOM tree.
FIG. 4 is a block diagram illustrating internal components 410 and external components 450 of client 110 or server 120 presented in FIGS. 1A and 1B, in accordance with an exemplary embodiment of the present invention. Each of the one or more sets of internal components 410 includes, on one or more buses 414, one or more processors 411, one or more computer-readable RAMs 412, and one or more computer-readable ROMs 413. Also, each of the one or more sets of internal components 410 includes one or more computer-readable tangible storage devices 420. One or more operating systems 421 and one or more computer programs 422 are located on one or more computer-readable tangible storage devices 420. One or more computer programs 422 on client 110 include web browser 111, page render program 113, and user interface 115 (shown in FIG. 1B). One or more computer programs 422 on server 120 include HTTP server program 124 (shown in FIG. 1B). One or more computer programs 422 are executed by one or more processors 411 via one or more computer-readable RAMs 412 (which typically include cache memory). Image page repository 126 (shown in FIG. 1B) of server 120 may be located on one or more computer-readable tangible storage devices 420 of server 120.
Each of the one or more sets of external components 450 includes a computer display monitor 451, keyboard 452, computer mouse 453, and portable computer-readable tangible storage device(s) 454.
Each of the one or more sets of internal components 410 includes R/W drive or interface 416 to read from or write to portable computer-readable tangible storage device(s) 454. Each of the one or more sets of internal components 410 includes device drivers 415 to interface to computer display monitor 451, keyboard 452, and computer mouse 453. Each of the one or more sets of internal components 410 includes network adapters or interfaces 417.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.

Claims (9)

What is claimed is:
1. A method implemented by a computer system for client-server communication based on delta transfer, the method comprising:
receiving, from a first client and by a server, a first HTTP request for transferring a current image page;
determining, by the server, that the first client does not have a client ID saved in a table on the server;
allocating, by the server, a new client ID to the first client and building server relationship entries in the table for the first client, in response to determining that the first client does not have a client ID saved in the table on the server, wherein the server relationship entries include the new client ID, a URL, an image page path, and a time stamp;
in response to determining that the new client ID is allocated, saving a new image page on a repository of the server, and sending the new image page as first delta contents in a HTTP response to the first client;
writing the new client ID into a cookie;
receiving, from a second client and by the server, a second HTTP request for transferring the current image page;
determining, by the server, that the second client has a client ID saved in the table on the server;
determining, by the server, that a saved image page for the client ID of the second client exists on the repository of the server, in response to determining that the second client has the client ID saved in the table;
retrieving, by the server, the saved image page from the repository, in response to determining that the saved image page for the client ID of the second client exists on the repository;
comparing, by the server, the current image page and the saved image page;
constructing, by the server, second delta contents between the current image page and the saved image page, wherein the second delta contents comprises at least one of an add operation and a modify operation, in addition to a location of an update defined by an ancestor and a sub path, and a content of an updated node;
updating, on the server, the saved image page with the current image page; and
sending, from the server to the second client, a HTTP response comprising the second delta contents.
2. The method of claim 1, further comprising:
extracting, by the second client, the second delta contents, in response to receiving the HTTP response comprising the second delta contents;
modifying, by the client, a prior DOM tree to generate a new DOM tree, based on the second delta contents; and
generating, on the client, the current image page, based on the new DOM tree.
3. The method of claim 1, wherein constructing the second delta contents is based on a comparison between whole contents of the current image page and whole contents of the saved image page.
4. A computer program product for client-server communication based on delta transfer, the computer program product comprising:
one or more computer-readable tangible storage devices and program instructions stored on at least one of the one or more tangible storage devices, the program instructions comprising:
program instructions to receive, from a first client and by a server, a first HTTP request for transferring a current image page;
program instructions to determine, by the server, that the first client does not have a client ID saved in a table on the server;
program instructions to allocate, by the server, a new client ID to the first client and to build server relationship entries in the table for the first client, in response to determining that the first client does not have a client ID saved in the table on the server, wherein the server relationship entries include the new client ID, a URL, an image page path, and a time stamp;
program instructions to, in response to determining that the new client ID is allocated, save a new image page on a repository of the server, and send the new image page as first delta contents in a HTTP response to the first client;
program instructions to write the new client ID into a cookie;
program instructions to receive, from a second client and by the server, a second HTTP request for transferring the current image page;
program instructions to determine, by the server, that the second client has a client ID saved in the table on the server;
program instructions to determine, by the server, that a saved image page for the client ID of the second client exists on the repository of the server, in response to determining that the second client has the client ID saved in the table;
program instructions to retrieve, by the server, the saved image page from the repository, in response to determining that the saved image page for the client ID of the second client exists on the repository;
program instructions to compare, by the server, the current image page and the saved image page;
program instructions to construct, by the server, second delta contents between the current image page and the saved image page, wherein the second delta contents comprises at least one of an add operation and a modify operation, in addition to a location of an update defined by an ancestor and a sub path, and a content of an updated node;
program instructions to update, on the server, the saved image page with the current image page; and
program instructions to send, from the server to the second client, a HTTP response comprising the second delta contents.
5. The computer program product of claim 4, further comprising:
program instructions to extract, by the second client, the second delta contents, in response to receiving the HTTP response comprising the second delta contents;
program instructions to modify, by the client, a prior DOM tree to generate a new DOM tree, based on the second delta contents; and
program instructions to generate, on the client, the current image page, based on the new DOM tree.
6. The computer program product of claim 4, wherein constructing the second delta contents is based on a comparison between whole contents of the current image page and whole contents of the saved image page.
7. A computer system for client-server communication based on delta transfer, the computer system comprising:
one or more processors, one or more computer-readable tangible storage devices, and program instructions stored on at least one of the one or more storage devices for execution by at least one of the one or more processors, the program instructions comprising:
program instructions to receive, from a first client and by a server, a first HTTP request for transferring a current image page;
program instructions to determine, by the server, that the first client does not have a client ID saved in a table on the server;
program instructions to allocate, by the server, a new client ID to the first client and to build server relationship entries in the table for the first client, in response to determining that the first client does not have a client ID saved in the table on the server, wherein the server relationship entries include the new client ID, a URL, an image page path, and a time stamp;
program instructions to, in response to determining that the new client ID is allocated, save a new image page on a repository of the server, and send the new image page as first delta contents in a HTTP response to the first client;
program instructions to write the new client ID into a cookie;
program instructions to receive, from a second client and by the server, a second HTTP request for transferring the current image page;
program instructions to determine, by the server, that the second client has a client ID saved in the table on the server;
program instructions to determine, by the server, that a saved image page for the client ID of the second client exists on the repository of the server, in response to determining that the second client has the client ID saved in the table;
program instructions to retrieve, by the server, the saved image page from the repository, in response to determining that the saved image page for the client ID of the second client exists on the repository;
program instructions to compare, by the server, the current image page and the saved image page;
program instructions to construct, by the server, second delta contents between the current image page and the saved image page, wherein the second delta contents comprises at least one of an add operation and a modify operation, in addition to a location of an update defined by an ancestor and a sub path, and a content of an updated node;
program instructions to update, on the server, the saved image page with the current image page; and
program instructions to send, from the server to the second client, a HTTP response comprising the second delta contents.
8. The computer system of claim 7, further comprising:
program instructions to extract, by the second client, the second delta contents, in response to receiving the HTTP response comprising the second delta contents;
program instructions to modify, by the client, a prior DOM tree to generate a new DOM tree, based on the second delta contents; and
program instructions to generate, on the client, the current image page, based on the new DOM tree.
9. The computer system of claim 7, wherein constructing the second delta contents is based on a comparison between whole contents of the current image page and whole contents of the saved image page.
US13/585,901 2012-08-15 2012-08-15 HTTP performance enhancement based on delta transfer Active 2033-03-08 US9058400B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/585,901 US9058400B2 (en) 2012-08-15 2012-08-15 HTTP performance enhancement based on delta transfer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US13/585,901 US9058400B2 (en) 2012-08-15 2012-08-15 HTTP performance enhancement based on delta transfer

Publications (2)

Publication Number Publication Date
US20140052772A1 US20140052772A1 (en) 2014-02-20
US9058400B2 true US9058400B2 (en) 2015-06-16

Family

ID=50100844

Family Applications (1)

Application Number Title Priority Date Filing Date
US13/585,901 Active 2033-03-08 US9058400B2 (en) 2012-08-15 2012-08-15 HTTP performance enhancement based on delta transfer

Country Status (1)

Country Link
US (1) US9058400B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10200499B1 (en) * 2015-01-30 2019-02-05 Symantec Corporation Systems and methods for reducing network traffic by using delta transfers
US9735965B1 (en) 2015-04-16 2017-08-15 Symantec Corporation Systems and methods for protecting notification messages
US10187485B1 (en) 2015-09-28 2019-01-22 Symantec Corporation Systems and methods for sending push notifications that include preferred data center routing information
WO2017119869A1 (en) 2016-01-05 2017-07-13 Entit Software Llc Resource requests

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6021426A (en) 1997-07-31 2000-02-01 At&T Corp Method and apparatus for dynamic data transfer on a web page
US20070143672A1 (en) * 2005-12-16 2007-06-21 Microsoft Corporation Partial rendering of Web pages
US20080028302A1 (en) * 2006-07-31 2008-01-31 Steffen Meschkat Method and apparatus for incrementally updating a web page
US7346842B1 (en) * 2000-11-02 2008-03-18 Citrix Systems, Inc. Methods and apparatus for incorporating a partial page on a client
US20080104025A1 (en) 2006-10-31 2008-05-01 Gautam Dharamshi Method and system for efficient execution and rendering of client/server interactive applications
US7523158B1 (en) * 2000-05-12 2009-04-21 Oracle International Corporation System and method for partial page updates using a proxy element
US20100017702A1 (en) * 2008-07-16 2010-01-21 International Business Machines Corporation Asynchronous Partial Page Updates Based On Dynamic Dependency Calculation
US20100250706A1 (en) * 2009-03-31 2010-09-30 International Business Machines Corporation Selective partial updates of web content
US7831556B2 (en) 2005-03-17 2010-11-09 International Business Machines Corporation Differential rendering and refreshing a portal page with a page delta
US20100299676A1 (en) * 2007-03-07 2010-11-25 Ianywhere Solutions, Inc. Selectively updating web pages on a mobile client
US8103953B2 (en) 2002-05-31 2012-01-24 Sap Ag Document structures for delta handling in server pages
US20130073948A1 (en) * 2005-01-24 2013-03-21 A9.Com, Inc. Technique for modifying presentation of information displayed to end users of a computer system
US20130212462A1 (en) * 2011-09-14 2013-08-15 Nokia Corporation Method and apparatus for distributed script processing

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6021426A (en) 1997-07-31 2000-02-01 At&T Corp Method and apparatus for dynamic data transfer on a web page
US7523158B1 (en) * 2000-05-12 2009-04-21 Oracle International Corporation System and method for partial page updates using a proxy element
US7346842B1 (en) * 2000-11-02 2008-03-18 Citrix Systems, Inc. Methods and apparatus for incorporating a partial page on a client
US8103953B2 (en) 2002-05-31 2012-01-24 Sap Ag Document structures for delta handling in server pages
US20130073948A1 (en) * 2005-01-24 2013-03-21 A9.Com, Inc. Technique for modifying presentation of information displayed to end users of a computer system
US7831556B2 (en) 2005-03-17 2010-11-09 International Business Machines Corporation Differential rendering and refreshing a portal page with a page delta
US20070143672A1 (en) * 2005-12-16 2007-06-21 Microsoft Corporation Partial rendering of Web pages
US20080028302A1 (en) * 2006-07-31 2008-01-31 Steffen Meschkat Method and apparatus for incrementally updating a web page
US20080104025A1 (en) 2006-10-31 2008-05-01 Gautam Dharamshi Method and system for efficient execution and rendering of client/server interactive applications
US20100299676A1 (en) * 2007-03-07 2010-11-25 Ianywhere Solutions, Inc. Selectively updating web pages on a mobile client
US20100017702A1 (en) * 2008-07-16 2010-01-21 International Business Machines Corporation Asynchronous Partial Page Updates Based On Dynamic Dependency Calculation
US20100250706A1 (en) * 2009-03-31 2010-09-30 International Business Machines Corporation Selective partial updates of web content
US20130212462A1 (en) * 2011-09-14 2013-08-15 Nokia Corporation Method and apparatus for distributed script processing

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
dev.chromium.org, "SPDY: An experimental protocol for a faster web-The Chromium Projects" dev.chromium.org [online], [retrieved on Jun. 19, 2012]. Retrieved from the Internet .
dev.chromium.org, "SPDY: An experimental protocol for a faster web-The Chromium Projects" dev.chromium.org [online], [retrieved on Jun. 19, 2012]. Retrieved from the Internet <URL: http://dev.chromium.org/spdy/spdy-whitepaper>.
IBM, "Method for Optimizing the Refresh of Dynamic Web Pages", Apr. 16, 2007, IP.com [online], [retrieved on Jun. 19, 2012]. Retrieved from: Prior Art Database, IP.com No. IPCOM000150044D.
Internet Society Requests for Comment (RFCS) et al., "Delta Encoding in HTTP (RFC3229)", Jan. 16, 2002, IP.com [online], [retrieved on Jun. 19, 2012]. Retrieved from: Prior Art Database, IP.com No. IPCOM000006597D.

Also Published As

Publication number Publication date
US20140052772A1 (en) 2014-02-20

Similar Documents

Publication Publication Date Title
EP3172680B1 (en) Fast rendering of websites containing dynamic content and stale content
CN110019350B (en) Data query method and device based on configuration information
US10528651B2 (en) Client-side aggregation of web content
US20160352803A1 (en) Reconstruction of web pages based on dom serialization
US9576067B2 (en) Enhancing client-side object caching for web based applications
US9967370B2 (en) OData enabled mobile software applications
US9584613B2 (en) Bulk uploading of multiple self-referencing objects
US20140244713A1 (en) Online content management system with undo and redo operations
EP2842034B1 (en) Providing client and service compatibility through cloud-hosted adapters
US20180032434A1 (en) Master database synchronization for multiple applications
US20140280770A1 (en) Transforming application cached template using personalized content
US9058400B2 (en) HTTP performance enhancement based on delta transfer
JP2015512076A (en) Computerized method, system, and computer program for mapping one or more dynamic visual objects of a network document
US20160196246A1 (en) Presenting web resource to user in browser
US20130124971A1 (en) Real time web script refresh using asynchronous polling without full web page reload
US10749926B2 (en) Proxy for modifying HTTP messages to comply with browser
US20070124667A1 (en) Verifying content of resources in markup language documents
WO2015032870A1 (en) Metadata driven declarative client-side session management with differential server side data submission
US10366060B2 (en) Augmenting database schema using information from multiple sources
US9304830B1 (en) Fragment-based multi-threaded data processing
US20140074869A1 (en) Autoclassifying compound documents for enhanced metadata search
CN110795670A (en) Webpage image monitoring method and device, electronic equipment and readable storage medium
US9858250B2 (en) Optimized read/write access to a document object model
US10761815B2 (en) Supporting non-OData sources in application development
WO2012141838A1 (en) Web browsing

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:HOURSELT, ANDREW G.;HU, PEI MING;LUO, WEN GANG;AND OTHERS;SIGNING DATES FROM 20120801 TO 20120809;REEL/FRAME:028788/0380

AS Assignment

Owner name: LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE. LTD., SINGAPORE

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:INTERNATIONAL BUSINESS MACHINES CORPORATION;REEL/FRAME:034194/0353

Effective date: 20140926

Owner name: LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE. LTD.,

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:INTERNATIONAL BUSINESS MACHINES CORPORATION;REEL/FRAME:034194/0353

Effective date: 20140926

STCF Information on status: patent grant

Free format text: PATENTED CASE

AS Assignment

Owner name: LENOVO INTERNATIONAL LIMITED, HONG KONG

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE. LTD.;REEL/FRAME:037101/0969

Effective date: 20151112

AS Assignment

Owner name: LENOVO INTERNATIONAL LIMITED, HONG KONG

Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE ASSIGNMENT DOCUMENT CONTAINING TYPO ERRORS PREVIOUSLY RECORDED AT REEL: 037101 FRAME: 0969. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT;ASSIGNOR:LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE. LTD.;REEL/FRAME:037689/0190

Effective date: 20151211

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 4

AS Assignment

Owner name: LENOVO INTERNATIONAL LIMITED, HONG KONG

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LENOVO ENTERPRISE SOLUTIONS (SINGAPORE) PTE LTD.;REEL/FRAME:050304/0277

Effective date: 20150701

MAFP Maintenance fee payment

Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY

Year of fee payment: 8