CN108848569A - A kind of mobile ad-hoc network resource sharing system based on Netty communication - Google Patents

A kind of mobile ad-hoc network resource sharing system based on Netty communication Download PDF

Info

Publication number
CN108848569A
CN108848569A CN201810749287.6A CN201810749287A CN108848569A CN 108848569 A CN108848569 A CN 108848569A CN 201810749287 A CN201810749287 A CN 201810749287A CN 108848569 A CN108848569 A CN 108848569A
Authority
CN
China
Prior art keywords
module
sharing
service module
file
netty
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.)
Granted
Application number
CN201810749287.6A
Other languages
Chinese (zh)
Other versions
CN108848569B (en
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.)
Inner Mongolia University
Original Assignee
Inner Mongolia University
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 Inner Mongolia University filed Critical Inner Mongolia University
Priority to CN201810749287.6A priority Critical patent/CN108848569B/en
Publication of CN108848569A publication Critical patent/CN108848569A/en
Application granted granted Critical
Publication of CN108848569B publication Critical patent/CN108848569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Different according to the shared scene of resource the invention discloses a kind of mobile ad-hoc network resource sharing system based on Netty communication, user is divided into and shares end subscriber and discovery end subscriber by the demand of different user.Share end subscriber function include bluetooth sharing this software, selection want the file shared, open share, list is shared in management, setting user name and head portrait.It was found that the function of end subscriber includes discovery participator and connects, checks that sharing, downloading share file, breakpoint downloading, check downloading history, setting user name and head portrait.The present invention realizes the mechanism of the one-to-many communication based on Netty frame between mobile phone, solves resource-sharing of the different Android users under no network condition.

Description

A kind of mobile ad-hoc network resource sharing system based on Netty communication
Technical field
The present invention relates to field of communication technology, specifically a kind of mobile ad-hoc network resource based on Netty communication is total Enjoy system.
Background technique
Netty is the NIO frame of a current most popular high-performance, asynchronous event driven, Netty and same class framework phase Than he has premier function, performance, robustness, customizability and scalability.
Netty is used between ISP and service consumer at present, ISP, service consumer and performance Asynchronous/synchronous communication is carried out using Netty between statistics node;Also the application big data neck being used in game server framework Domain.Netty is used for many fields, it is reported that being not applied to the network communication between the mobile phone based on hot spot.
Summary of the invention
The purpose of the present invention is to provide it is a kind of based on Netty communication mobile ad-hoc network resource sharing system, with Solve the problems mentioned above in the background art.
To achieve the above object, the present invention provides the following technical solutions:
A kind of mobile ad-hoc network resource sharing system based on Netty communication services mould comprising server end, sharing information Block, file download service module and breakpoint downloading service module, Server Side Include sharing information service module, file download clothes Module of being engaged in and breakpoint downloading service module, sharing information service module are also connected with client sharing information module, file download clothes Business module is also connected with client file download module, and breakpoint downloading service module is also connected with client breakpoint download module.
As further technical solution of the present invention:It further include communications portion, communications portion includes sharing module, logic control Molding block, Netty communication module, wireless transport module and human-computer interaction module, sharing module are connected with Logic control module, Logic control module is also connected with Netty communication module, and Netty communication module is also connected with wireless transport module.
As further technical solution of the present invention:The Server Side Include sharing module, Logic control module, sharing Information service module, file download service module and breakpoint downloading service module, sharing module are connected with Logic control module, Logic control module is also respectively connected with sharing information service module, file download service module and breakpoint downloading service module, point It enjoys information service module, file download service module and breakpoint downloading service module and is all connected with wireless transport module.
As further technical solution of the present invention:The client obtains sharing information module, client file downloading Module and client breakpoint download module are all connected with server end.
As further technical solution of the present invention:The wireless transport module is communicated using WiFi link.
Compared with prior art, the beneficial effects of the invention are as follows:
1. opening hot spot by a mobile phone, other mobile phones form a nothing by WiFi connection between Android phone Line local area network carries out resource-sharing, and data transmission uses Netty frame to be communicated in this WLAN.
2. realizing the mechanism of the one-to-many communication based on Netty frame between mobile phone.
3. using flexible can be applied to different occasions.Such as:Railway station, bus station, the ranges such as square are small, crowd's ratio Compared with the place of aggregation.
4. between user can a random user open sharing model, then multiple users' discoveries are in sharing The user of mode connects the user, pulls the sharing list of the user.It clicks the file that selection to be downloaded and downloading file column is added Table.Oneself desired file can be quickly obtained by hot spot ad hoc network by clicking downloading.
5. solving file-sharing of the different Android users under no network condition.
6. supporting any file format, any file size is supported.
8. between user can a random user open sharing model, then multiple users' discoveries are in sharing The user of mode connects the user, pulls the sharing list of the user.It clicks the file that selection to be downloaded and downloading file column is added Table.Oneself desired file can be quickly obtained by hot spot ad hoc network by clicking downloading.
9. being not necessarily to network, do not take flow, several times faster than bluetooth.
10. the mobile device of user is quickly connect in the hot spot based on Android platform with WiFi function.
Detailed description of the invention
Fig. 1 is general frame figure of the invention;
Fig. 2 is system construction drawing of the invention;
Fig. 3 is system data transmission function general frame illustraton of model;
Fig. 4 is server end designed holder composition;
Fig. 5 is the architecture diagram for checking sharing module;
Fig. 6 is the architecture diagram of file download module;
Fig. 7 is the architecture diagram of breakpoint download module.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1-7 is please referred to, a kind of mobile ad-hoc network resource sharing system based on Netty communication is divided into and shares end With discovery end, shares end as server end, find end as client, Server Side Include sharing information service module, text Part downloading service module and breakpoint downloading service module, sharing information service module are also connected with client sharing information module, text Part downloading service module is also connected with client file download module, and breakpoint downloading service module is also connected with client breakpoint downloading mould Block.It further include communications portion, communications portion includes sharing module, Logic control module, Netty communication module, wireless transmission mould Block and human-computer interaction module, sharing module are connected with Logic control module, and Logic control module is also connected with Netty communication mould Block, Netty communication module are also connected with wireless transport module.The Server Side Include sharing module, Logic control module, sharing Information service module, file download service module and breakpoint downloading service module, sharing module are connected with Logic control module, Logic control module is also respectively connected with sharing information service module, file download service module and breakpoint downloading service module, point It enjoys information service module, file download service module and breakpoint downloading service module and is all connected with wireless transport module.The client End obtains sharing information module, client file download module and client breakpoint download module and is all connected with server end.
The working principle of the invention is:It is different according to the shared scene of resource as a complete resource sharing system And the demand of user is different, and user is divided into and shares end subscriber and discovery end subscriber, the function of sharing end subscriber includes bluetooth Share this software, select the file for wanting to share, open and share, list is shared in management, and user name and head portrait is arranged.It was found that end is used The function at family includes that discovery and connects participator, checks that file is shared in sharings, downloading, checks downloading history, setting user name with Head portrait.System global structure figure is as shown in Figure 2.
Communication protocol overall structure based on Netty has a sharing module, Logic control module, Netty communication module, wirelessly Transmission module, human-computer interaction module
Server end design is as shown in figure 4, comprising sharing module, Logic control module, sharing information service module, file download Service module, breakpoint downloading service module.Share end subscriber and click " open and share " button, shares end subscriber mobile phone and open heat Point waits end subscriber to be found to connect, and if there is client connects, the instruction that client is sent is received, if instruction is " GetFileInfo " calls sharing information service module, reads JSON character string, by calling wireless transport module to be sent to Client;If instruction is " GetFileList ", ID number parameter is read, file download service module is called, is found according to ID number File reads file and is sent to client;If instruction is " GetHalfFile ", breakpoint downloading service module is called, reads visitor The file ID and breakpoint information that family end sends over read file, by calling wireless transport module to be sent to client.
Client Design:1, check sharing module, discovery end subscriber click " it was found that " button, it is found that the mobile phone of end subscriber is opened WiFi function is opened, the sharing end subscriber nearby opened and shared is scanned, if it find that sharing end subscriber, then shows the user of the user Name and head portrait share the head portrait of end subscriber when the user clicks, it is found that the mobile phone of end subscriber is connected to the hot spot for sharing end subscriber, It checks in sharing function, Logic control module can open a sub thread, and Netty client, connection point are created in sub thread The Netty server end of end subscriber mobile phone creation is enjoyed, Netty frame provides a communication channel, by communication channel to clothes Business device end sends " GetFileInfo " instruction, and server end can return to the JSON character string comprising sharing the file information, logic control After molding block receives JSON character string, JSON character string is switched into Java object using the Gson tool of Google company, is notified UI(User Interface), UI is with the file information of list displaying sharing end subscriber sharing.
2, it downloads and shares file module, share in file module in downloading, discovery end subscriber checks sharing interface, selection The sharing file of multiple desired downloadings, clicks " downloading " button, and Logic control module obtains the text of the desired downloading of user's selection The ID of part(Identity)Number, in addition " GetFileList " is instructed, it is sent to server end, server end is according to receiving ID Number, the corresponding the file information for sharing file is searched, file is read according to the file information, the communication channel provided by Netty It is sent to client, in the Logic control module of client, receives the data that server end is sent and preservation, while under calculating Degree of being loaded into, by the information updates such as download progress to UI, so that user checks.
3, breakpoint download module, in breakpoint download module, client is read after the information for getting server-side sharing Save breakpoint information data file, judge whether there is the breakpoint the file information from the server-side, if there is and should File is sharing list, then carries out breakpoint downloading, and breakpoint the file information is sent to by client plus " GetFileList " instruction Server end, server end search the corresponding the file information for sharing file, according to breakpoint according to instruction and breakpoint the file information The file information reads file from breakpoint, discovery end subscriber is sent to by the communication channel that Netty is provided, in patrolling for client In volume control module, receive the data that server end is sent and from breakpoint save, while calculating download progress, will download The information updates such as progress are to UI, so that user checks.
Communication protocol general frame based on Netty, which has, obtains sharing information module, file download module, breakpoint file.
Check sharing protocol realization:
In checking sharing function, Netty client is created in sub thread, the Netty of end subscriber mobile phone creation is shared in connection Server end, Netty frame provide a communication channel, send " GetFileInfo " to server end by communication channel Instruction sends the JSON character string of pre-loaded sharing the file information after server end receives " GetFileInfo " instruction To client, client receives the JSON character string comprising sharing the file information sent from server end.
File protocol is downloaded to realize:
Share in file function in downloading, " GetFile " instruction is sent to server end by communication channel, while adding and needing The ID number of the file of downloading after server end receives instruction, finds sharing file by ID number, reads the sharing file, will Data are encapsulated in the corresponding object of TransferFile class, are sent to client, and client receives TransferFile pairs As rear, data are therefrom extracted, are appended in the file currently transmitted, then current transmission file is sent by communication channel The byte number transmitted to server end, read Document encapsulation data and arrive by the position of the byte number transmitted in server end TransferFile is as shown in figure 5, so recycle, until this document transfers.TransferFile be customized one can To carry byte data, the class of transmission progress is recorded.
Breakpoint download protocol is realized:
In breakpoint download function, " GetHalfFile " instruction is sent to server end by communication channel, while adding breakpoint The file information after server end receives instruction, goes to read data according to information, encapsulates data corresponding in TransferFile class Object in, be sent to client and therefrom extract data after client receives TransferFile object, opened from breakpoint Beginning, supplemental data was into the file for breakpoint occur.Again by communication channel send current transmission file the byte number transmitted to Document encapsulation data are read to TransferFile, so circulation in server end, the position of the byte number transmitted in server end, Until this document transfers.It is obvious to a person skilled in the art that the present invention is not limited to the above exemplary embodiments is thin Section, and without departing from the spirit or essential characteristics of the present invention, the present invention can be realized in other specific forms. Therefore, in all respects, the present embodiments are to be considered as illustrative and not restrictive, model of the invention It encloses and is indicated by the appended claims rather than the foregoing description, it is intended that the meaning and model that the equivalent requirements of the claims will be fallen in All changes in enclosing are included within the present invention.It should not treat any reference in the claims as limiting related power Benefit requires.
In addition, it should be understood that although this specification is described in terms of embodiments, but not each embodiment is only wrapped Containing an independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should It considers the specification as a whole, the technical solutions in the various embodiments may also be suitably combined, forms those skilled in the art The other embodiments being understood that.

Claims (5)

1. it is a kind of based on Netty communication mobile ad-hoc network resource sharing system, which is characterized in that comprising server end, Sharing information service module, file download service module and breakpoint downloading service module, Server Side Include sharing information service Module, file download service module and breakpoint downloading service module, sharing information service module are also connected with client sharing information Module, file download service module are also connected with client file download module, and it is disconnected that breakpoint downloading service module is also connected with client Point download module.
2. a kind of mobile ad-hoc network resource sharing system based on Netty communication according to claim 1, feature It is, further includes communications portion, communications portion includes sharing module, Logic control module, Netty communication module, wireless transmission Module and human-computer interaction module, sharing module are connected with Logic control module, and Logic control module is also connected with Netty communication mould Block, Netty communication module are also connected with wireless transport module.
3. a kind of mobile ad-hoc network resource sharing system based on Netty communication according to claim 1, feature It is, the Server Side Include sharing module, Logic control module, sharing information service module, file download service module With breakpoint downloading service module, sharing module is connected with Logic control module, and Logic control module is also respectively connected with sharing letter Cease service module, file download service module and breakpoint downloading service module, sharing information service module, file download service mould Block and breakpoint downloading service module are all connected with wireless transport module.
4. a kind of mobile ad-hoc network resource sharing system based on Netty communication according to claim 1, feature It is, the client obtains sharing information module, client file download module and client breakpoint download module and is all connected with Server end.
5. a kind of mobile ad-hoc network resource sharing system based on Netty communication according to claim 3, feature It is, the wireless transport module is communicated using WiFi link.
CN201810749287.6A 2018-07-10 2018-07-10 Mobile self-organizing network resource sharing system based on Netty communication Active CN108848569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810749287.6A CN108848569B (en) 2018-07-10 2018-07-10 Mobile self-organizing network resource sharing system based on Netty communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810749287.6A CN108848569B (en) 2018-07-10 2018-07-10 Mobile self-organizing network resource sharing system based on Netty communication

Publications (2)

Publication Number Publication Date
CN108848569A true CN108848569A (en) 2018-11-20
CN108848569B CN108848569B (en) 2021-06-11

Family

ID=64196050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810749287.6A Active CN108848569B (en) 2018-07-10 2018-07-10 Mobile self-organizing network resource sharing system based on Netty communication

Country Status (1)

Country Link
CN (1) CN108848569B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073963A (en) * 2020-09-16 2020-12-11 武汉虹旭信息技术有限责任公司 Communication interaction data transmission method and device
CN113938479A (en) * 2021-10-09 2022-01-14 维沃移动通信有限公司 Resource sharing method and resource sharing device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150149548A1 (en) * 2013-11-26 2015-05-28 Mtov Inc. System for sharing network mulimedia data
CN105262678A (en) * 2015-11-30 2016-01-20 上海创功通讯技术有限公司 File sharing method and system based on Bluetooth technology
CN105516343A (en) * 2015-12-31 2016-04-20 中国电子科技集团公司第五十四研究所 Network dynamic self-organized file-sharing system and method for implementing same
US20160294872A1 (en) * 2015-03-31 2016-10-06 Dell Products, Lp Policy Setting for Content Sharing of a Plurality of Remotely Connected Computing Devices in Physical or Virtualized Space
CN106412055A (en) * 2016-09-27 2017-02-15 武汉启目科技有限公司 Method for multiple terminal devices to share file resources mutually
CN106453574A (en) * 2016-10-20 2017-02-22 乐视控股(北京)有限公司 Mobile terminal broadcast hotspot file sharing method and terminal
CN107666669A (en) * 2016-07-29 2018-02-06 中兴通讯股份有限公司 A kind of data sharing method and device
CN108200065A (en) * 2018-01-04 2018-06-22 中国地质大学(武汉) A kind of data-sharing systems and data sharing method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150149548A1 (en) * 2013-11-26 2015-05-28 Mtov Inc. System for sharing network mulimedia data
US20160294872A1 (en) * 2015-03-31 2016-10-06 Dell Products, Lp Policy Setting for Content Sharing of a Plurality of Remotely Connected Computing Devices in Physical or Virtualized Space
CN105262678A (en) * 2015-11-30 2016-01-20 上海创功通讯技术有限公司 File sharing method and system based on Bluetooth technology
CN105516343A (en) * 2015-12-31 2016-04-20 中国电子科技集团公司第五十四研究所 Network dynamic self-organized file-sharing system and method for implementing same
CN107666669A (en) * 2016-07-29 2018-02-06 中兴通讯股份有限公司 A kind of data sharing method and device
CN106412055A (en) * 2016-09-27 2017-02-15 武汉启目科技有限公司 Method for multiple terminal devices to share file resources mutually
CN106453574A (en) * 2016-10-20 2017-02-22 乐视控股(北京)有限公司 Mobile terminal broadcast hotspot file sharing method and terminal
CN108200065A (en) * 2018-01-04 2018-06-22 中国地质大学(武汉) A kind of data-sharing systems and data sharing method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
AMIR KRIFA等: "BitHoc: A content sharing application for wireless ad hoc networks", 《 2009 IEEE INTERNATIONAL CONFERENCE ON PERVASIVE COMPUTING AND COMMUNICATIONS》 *
LI JIN等: "Distributed matching mechanism for resource sharing in mobile ad hoc cloud", 《2017 9TH INTERNATIONAL CONFERENCE ON WIRELESS COMMUNICATIONS AND SIGNAL PROCESSING (WCSP)》 *
尹圣明: "基于WiFi的智能手机P2P服务设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
温凯: "面向移动自组织网络的信息传输系统设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
王秀彪: "智能终端组成的Ad Hoc网络的文件共享系统的优化", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073963A (en) * 2020-09-16 2020-12-11 武汉虹旭信息技术有限责任公司 Communication interaction data transmission method and device
CN113938479A (en) * 2021-10-09 2022-01-14 维沃移动通信有限公司 Resource sharing method and resource sharing device

Also Published As

Publication number Publication date
CN108848569B (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN103782649B (en) By docking system switching is connected with the Wireless LAN of universal network equipment driver
CN104243443B (en) The foundation of multipath TCP subflows and control system and method
CN105850184B (en) Specific to the congestion control of application in wireless network
KR100835652B1 (en) Method and System for Customizing User Interface by Editing Multimedia Content
CN109792652A (en) For servicing and the network service of conversation continuity exposure
CN109997334A (en) Session management with the relaying being indirectly connected with and charge applied for Internet of Things in 3GPP network
CN103248665B (en) A kind of mthods, systems and devices for sharing third-party application
US8265050B2 (en) System and method for sharing a payload among mobile devices in a wireless network
CN102201846B (en) Wireless data transmission system and method based on soft AP (access point) technology
CN104488199A (en) Method of synchronizing contents between terminals and terminals
CN106030560A (en) Automatic internet sharing
CN101247316A (en) Data sharing method of communication terminal
EP4247039A1 (en) Computing-aware session management method and communication device
CN105681260A (en) Cloud storage file transmission method, fusion communication platform, sending end and system
EP3007389B1 (en) Gre tunnel implementation method, access point and gateway
Wang et al. BWMesh: a multi-hop connectivity framework on Android for proximity service
CN108848569A (en) A kind of mobile ad-hoc network resource sharing system based on Netty communication
CN113329454B (en) Method, network element, system and equipment for releasing route
AU2014353075B2 (en) Method and system for universal chat gateways
KR102003739B1 (en) Method for application hosting by access node and appratus therefor
WO2017166151A1 (en) Receiving terminal determining method, related device and communication system
CN111010323A (en) Network distribution method and system of intelligent equipment
US20220361077A1 (en) Mobile device display of federated wireless access point networks for 5g or other next generation network
CN104780591B (en) Business interoperability implementation method, device, system and relevant device between terminal device
CN113965918B (en) Service processing method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant