Webgame File Loading via Peer-to-Peer Pre-download
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The rapid growth of webgames leads to increased bandwidth pressure on servers due to the need for loading diverse and numerous files, affecting loading speed and transmission efficiency.
Innovation Solution
A method and system utilizing peer-to-peer (p2p) technology, where a browser pre-downloads files from a data source server and queries a user terminal address from a query server to facilitate file transfer between user terminals, reducing server bandwidth pressure and improving loading speed and efficiency.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of energy
If files are loaded from the webgame server using the prior art method, then the server can provide file loading services, but the server experiences huge bandwidth pressure and reduced transmission efficiency
Solution Approach 1:
The patent introduces a peer-to-peer file sharing mechanism where user terminals act as intermediaries to transfer files between each other, rather than all files flowing through the server. When a file is requested, the system checks if other users already have the file and facilitates direct peer-to-peer transfer, reducing server bandwidth pressure while maintaining fast file delivery
Solution Approach 2:
The patent enables user terminals to serve files to other users directly from their local storage. Once a user downloads a file, their terminal becomes a file source for other users, eliminating the need for all file requests to originate from the server and improving overall system efficiency
2Adaptability or versatility
If more files are loaded to support diverse webgame functions, then the game functionality increases, but the server bandwidth pressure increases significantly
Solution Approach 1:
User terminals that have already downloaded certain files can serve those files to other users, reducing the burden on the server. This is particularly effective for webgames with diverse content where different users may be playing different modes or levels, allowing the file ecosystem to serve itself
Solution Approach 2:
The system uses a file sharing network where user terminals mediate file transfers between each other. The server only needs to provide initial file distribution and manage the sharing network, while actual file transfers between users occur directly peer-to-peer, enabling diverse game content without proportional increases in server bandwidth pressure
Data Source
AI summary
The present invention provides a method and a system for loading a file. The method includes: a browser sends a pre-download request to a pre-publish server beforehand, receives a download link fed back by the pre-publish server, downloads a file from a data source server through the download link, and sends a first file identifier of the pre-downloaded file and a user terminal address of a user terminal that runs the browser to a query server for storing. The browser receives a load instruction that carries a second file identifier of a file, and queries whether the file is stored locally, if the file is stored locally, reads the file locally, if the file is not stored locally, sends the load instruction to the query server, receives a user terminal address returned by the query server, sends the load instruction to a user terminal corresponding to the user terminal address according to the received user terminal address, and receives a file fed back by the user terminal.


