CN108322559A - Mobile device dynamic address cut-in method, system and medium - Google Patents
Mobile device dynamic address cut-in method, system and medium Download PDFInfo
- Publication number
- CN108322559A CN108322559A CN201810040016.3A CN201810040016A CN108322559A CN 108322559 A CN108322559 A CN 108322559A CN 201810040016 A CN201810040016 A CN 201810040016A CN 108322559 A CN108322559 A CN 108322559A
- Authority
- CN
- China
- Prior art keywords
- mobile device
- address
- connection
- successful
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/58—Caching of addresses or names
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/663—Transport layer addresses, e.g. aspects of transmission control protocol [TCP] or user datagram protocol [UDP] ports
Abstract
A kind of mobile device dynamic address cut-in method provided by the invention, including, mobile device calls SDK initialization interfaces;Mobile device judges whether network connection has accessed;If not accessing, mobile device asks the addresses UDP by dns server and initiates addressing request, and mobile device judges whether to be successfully transmitted addressing request;If being successfully transmitted addressing request, the address sent using server is attached;If sending failure, whether mobile terminal enquiry is stored with the successful access address of last time request;The address that mobile device connection obtains, mobile device judges whether successful connection, if successful connection, terminates.One is obtained by way of dynamic addressing and is stably connected with address, and different equipment distributes different addresses, is not in that a large amount of mobile devices are connected to same address, reduces the pressure of server, and network stabilization is good, and message transmission is stablized.
Description
Technical field
The present invention relates to data connection technical fields, and in particular to a kind of mobile device dynamic address cut-in method, system
And medium.
Background technology
Existing data connection channel interconnection technique is built upon on the basis of fixing address, a large amount of mobile device connections
Same address can cause server stress excessive, and server connects shakiness once exception occur and also resulting in high-volume user
It is fixed, therefore, the shortcomings of that there are stability is poor for fixing address interconnection technique, and hardware pressure is big, and communication speed is slow.
Invention content
For the defects in the prior art, one of the objects of the present invention is to provide a kind of accesses of mobile device dynamic address
Method improves data connection stability, and connection speed is fast, reduces server stress.
In a first aspect, a kind of mobile device dynamic address cut-in method provided by the invention, specifically includes following steps:
Mobile device calls SDK initialization interfaces;
Mobile device judges whether network connection has accessed;
If not accessing, mobile device asks the addresses UDP by dns server and initiates addressing request, and mobile device is sentenced
It is disconnected whether to be successfully transmitted addressing request;
If being successfully transmitted addressing request, the address sent using server is attached;
If sending failure, whether mobile terminal enquiry is stored with the successful access address of last time request;
The address that mobile device connection obtains, mobile device judges whether successful connection, if successful connection, terminates.
Optionally, the step of whether storing last time request successful access address inquired and is specifically included for the mobile device:
If being stored with last time asks successful access address, the successful access address of last time request is obtained, mobile device connection obtains
Address, judge whether successful connection, if successful connection, terminate;If no last time asks successful access address, movement to set
Standby request SRV current records.
Optionally, the mobile device request SRV current record steps specifically include:Judge in SRV current records whether
Recording address, if so, the then address in mobile device connection SRV records, judges whether successful connection, if successful connection, tie
Beam.
Optionally, if the address obtained without recording address or connection in the SRV current records fails, mobile device
Asked successful access address to be attached using last time, judge using last time ask successful access address be attached whether
Success, if successful connection, terminates.
Optionally, further include:The mobile device asked successful access address to be attached using last time, if connection is lost
Lose, then ask SRV or DNS to obtain access address and be attached, judge mobile device whether successful connection, if it is not, then starting weight
Even timer, works as timers trigger, then returns to the step of execution asks the addresses UDP by dns server and initiates addressing request.
Second aspect, a kind of mobile device dynamic address access system provided by the invention, including:Including mobile device and
Server, the mobile device include network connecting module, information transmission modular, addressed module, the first judgment module and second
Judgment module, the network connecting module is for connecting network;Described information transmission module for mobile device and server it
Between information transmission;The addressed module asks the addresses UDP by dns server for mobile device and initiates addressing request;
First judgment module is for judging whether addressing request is successfully transmitted;Second judgment module is for judging network connection
Whether succeed.
Optionally, the mobile device further includes enquiry module, and the enquiry module is for inquiring whether mobile device deposits
Contain the successful access address of last time request.
Optionally, the mobile device further includes SRV record request modules, and the SRV record request modules are for asking
SRV current records.
Optionally, the mobile device further includes timer, and frequency of the timer for counterweight networking network is determined
When.
The third aspect, the present invention also provides a kind of computer readable storage medium, the computer storage media is stored with
Computer program, the computer program include program instruction, and described program instruction makes the processing when being executed by a processor
Device executes the above method.
Beneficial effects of the present invention:
A kind of mobile device dynamic address cut-in method provided by the invention obtains one surely by way of dynamic addressing
Determine link address, different equipment distributes different addresses, is not in that a large amount of mobile devices are connected to same address, reduces
The pressure of server, network stabilization is good, and message transmission is stablized.After sending addressing request failure, according to inquiry local cache
On whether be stored with last time and ask the address that is successfully accessed, also reduce the operating pressure of server, inquire if there is in storage
The secondary address for asking to be successfully accessed then is directly accessed the successful access address of last time request, and connection network speed is fast, and network is steady
It is fixed.
A kind of mobile device dynamic address access system provided by the invention obtains one surely by way of dynamic addressing
Determine link address, different equipment distributes different addresses, is not in that a large amount of mobile devices are connected to same address, reduces
The pressure of server, network stabilization is good, and message transmission is stablized.After sending addressing request failure, according to inquiry local cache
On whether be stored with last time and ask the address that is successfully accessed, also reduce the operating pressure of server, inquire if there is in storage
The secondary address for asking to be successfully accessed then is directly accessed the successful access address of last time request, and connection network speed is fast, and network is steady
It is fixed.
Description of the drawings
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art are briefly described.In all the appended drawings, similar element
Or part is generally identified by similar reference numeral.In attached drawing, each element or part might not be drawn according to actual ratio.
Fig. 1 shows a kind of flow of mobile device dynamic address cut-in method first embodiment provided by the present invention
Figure;
Fig. 2 shows a kind of principle frames of mobile device dynamic address access system first embodiment provided by the present invention
Figure.
Specific implementation mode
The embodiment of technical solution of the present invention is described in detail below in conjunction with attached drawing.Following embodiment is only used for
Clearly illustrate technical scheme of the present invention, therefore be intended only as example, and the protection of the present invention cannot be limited with this
Range.
It should be noted that unless otherwise indicated, technical term or scientific terminology used in this application should be this hair
The ordinary meaning that bright one of ordinary skill in the art are understood.
Fig. 1 shows a kind of first embodiment of mobile device dynamic address cut-in method provided by the invention, specific to wrap
Include following steps:
S1:Mobile device calls SDK initialization interfaces.
S2:Mobile device judges whether network connection has accessed, if having accessed, terminates, if network does not access,
Execute S3.
S3:Mobile device asks the addresses UDP by dns server and initiates addressing request, and mobile device judges whether into
Work(sends addressing request.
S4:If being successfully transmitted addressing request, the address sent using server is attached.
Specifically, mobile device success sends addressing request to server, and server receives the addressing that mobile device is sent
Request, and IP address is fed back according to the addressing request of mobile device, mobile device carries out net according to the IP address of server feedback
Network connects.
S5:If sending failure, whether mobile terminal enquiry is stored with the successful access address of last time request.According to inquiry
Whether being stored with last time on local cache asks the address that is successfully accessed, can reduce the operating pressure of server, inquiry if there is
Storage last time asks the address being successfully accessed, then is directly accessed the successful access address of last time request, and connection network speed is fast.
Specifically, the step of whether storing last time request successful access address inquired and is specifically included for mobile device:If depositing
The successful access address of last time request is contained, then obtains the successful access address of last time request, then executes S5;If no last time request
Successful access address, then mobile device request SRV current records.
Specifically, mobile device request SRV current record steps specifically include:Judge whether recorded in SRV current records
Address executes S6 if so, then mobile device obtains the address in SRV records.
S6:The address that mobile device connection obtains, mobile device judges whether successful connection, if successful connection, terminates.
In SRV current records S7 is executed if the address failure obtained without recording address or connection:Mobile device uses
Last time asks successful access address to be attached, judge using last time ask successful access address be attached whether at
Work(terminates if successful connection.
S8:The mobile device asked successful access address to be attached using last time, if connection failure, asked
SRV or DNS obtain access address and are attached, judge mobile device whether successful connection, if it is not, then start reconnection timer,
Work as timers trigger, then returns and execute S3.If mobile device asked successful access address connection failure using last time, then
The mode of secondary request SRV or DNS obtains access address, and is attached, if it fails to connect, then start reconnection timer, when
Reach the reconnection network time of setting, trigger timer, then the addresses UDP are asked by dns server and initiates addressing request.
A kind of mobile device dynamic address cut-in method provided by the invention obtains one surely by way of dynamic addressing
Determine link address, different equipment distributes different addresses, is not in that a large amount of mobile devices are connected to same address, reduces
The pressure of server, network stabilization is good, and message transmission is stablized.After sending addressing request failure, according to inquiry local cache
On whether be stored with last time and ask the address that is successfully accessed, also reduce the operating pressure of server, inquire if there is in storage
The secondary address for asking to be successfully accessed then is directly accessed the successful access address of last time request, and connection network speed is fast, and network is steady
It is fixed.
Second aspect, as shown in Fig. 2, the first of a kind of mobile device dynamic address access system provided by the invention implements
Example, including:Including mobile device 1 and server 2, the mobile device include network connecting module 11, information transmission modular 12,
Addressed module 13, the first judgment module 14 and the second judgment module 15, the network connecting module 11 is for connecting network;It is described
Information transmission modular 12 is for the information transmission between mobile device and server;The addressed module 13 is logical for mobile device
It crosses the dns server request addresses UDP and initiates addressing request;First judgment module 14 for judge addressing request whether at
Work(is sent;Second judgment module 15 is for judging whether network connection succeeds.
As being further improved for said program, the mobile device further includes enquiry module 16, the enquiry module 16
For inquiring whether mobile device is stored with the successful access address of last time request.
As being further improved for said program, the mobile device further includes SRV record request modules 17, the SRV
Record request module 17 is for asking SRV current records.
As being further improved for said program, the mobile device further includes timer 18, and the timer 18 is used for
The frequency of counterweight networking network is timed.
A kind of mobile device dynamic address access system provided by the invention obtains one surely by way of dynamic addressing
Determine link address, different equipment distributes different addresses, is not in that a large amount of mobile devices are connected to same address, reduces
The pressure of server, network stabilization is good, and message transmission is stablized.After sending addressing request failure, according to inquiry local cache
On whether be stored with last time and ask the address that is successfully accessed, also reduce the operating pressure of server, inquire if there is in storage
The secondary address for asking to be successfully accessed then is directly accessed the successful access address of last time request, and connection network speed is fast, and network is steady
It is fixed.
The third aspect, the present invention also provides a kind of computer readable storage medium, the computer storage media is stored with
Computer program, the computer program include program instruction, and described program instruction makes the processing when being executed by a processor
Device executes the above method.
The computer readable storage medium can be the internal storage unit of the terminal described in previous embodiment, such as eventually
The hard disk or memory at end.The computer readable storage medium can also be the External memory equipment of the terminal, such as described
The plug-in type hard disk being equipped in terminal, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both
The internal storage unit for including the terminal also includes External memory equipment.The computer readable storage medium is described for storing
Other programs needed for computer program and the terminal and data.The computer readable storage medium can be also used for temporarily
When store the data that has exported or will export.
In several embodiments provided herein, it should be understood that disclosed terminal and system, it can be by other
Mode realize.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only
For a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can combine
Or it is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit
It connects, can also be electricity, mechanical or other form connections.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the embodiment of the present invention
Purpose.
In addition, each functional unit (module) in each embodiment of the present invention can be integrated in a processing unit (mould
Block) in, it can also be that each unit (module) physically exists alone, can also be that two or more units (module) are integrated
In a unit (module).The form that hardware had both may be used in above-mentioned integrated unit (module) is realized, can also be used soft
The form of part functional unit is realized.
The integrated unit (module) in the form of SFU software functional unit (module) if realized and as independent production
Product are sold or in use, can be stored in a computer read/write memory medium.Based on this understanding, skill of the invention
Substantially all or part of the part that contributes to existing technology or the technical solution can be with soft in other words for art scheme
The form of part product embodies, which is stored in a storage medium, including some instructions are making
It obtains a computer equipment (can be personal computer, server or the network equipment etc.) and executes each embodiment of the present invention
The all or part of step of the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. it is various
The medium of program code can be stored.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent
Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to
So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into
Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution
The range of scheme should all cover in the claim of the present invention and the range of specification.
Claims (10)
1. a kind of mobile device dynamic address cut-in method, which is characterized in that include the following steps:
Mobile device calls SDK initialization interfaces;
Mobile device judges whether network connection has accessed;
If not accessing, mobile device asks the addresses UDP by dns server and initiates addressing request, and mobile device judgement is
It is no to be successfully transmitted addressing request;
If being successfully transmitted addressing request, the address sent using server is attached;
If sending failure, whether mobile terminal enquiry is stored with the successful access address of last time request;
The address that mobile device connection obtains, mobile device judges whether successful connection, if successful connection, terminates.
2. mobile device dynamic address cut-in method as described in claim 1, which is characterized in that the mobile device, which is inquired, is
No storage last time asks the step of successful access address to specifically include:If being stored with last time asks successful access address,
The successful access address of last time request is obtained, the address that mobile device connection obtains judges whether successful connection, if connecting into
Work(then terminates;If no last time asks successful access address, mobile device to ask SRV current records.
3. mobile device dynamic access method as claimed in claim 2, which is characterized in that the mobile device request SRV works as
Preceding recording step specifically includes:Judge in SRV current records whether recording address, if so, then in mobile device connection SRV records
Address, judge whether successful connection, if successful connection, terminate.
4. mobile device dynamic access method as claimed in claim 3, which is characterized in that if not having in the SRV current records
There is the address failure that recording address or connection obtain, then mobile device asked successful access address to be attached using last time,
Judge whether asked successful access address to be attached using last time succeeds, if successful connection, terminate.
5. mobile device dynamic address cut-in method as claimed in claim 4, which is characterized in that further include:The movement is set
It is standby to ask successful access address to be attached using last time, if connection failure, ask SRV or DNS obtain access address into
Row connection, judges that whether successful connection works as timers trigger to mobile device if it is not, then starting reconnection timer, then returns to execution
The step of addresses UDP being asked by dns server and initiating addressing request.
6. a kind of mobile device dynamic address access system, which is characterized in that including mobile device and server, the movement is set
Standby includes network connecting module, information transmission modular, addressed module, the first judgment module and the second judgment module, the network
Link block is for connecting network;Described information transmission module is for the information transmission between mobile device and server;It is described
Addressed module asks the addresses UDP by dns server for mobile device and initiates addressing request;First judgment module is used
In judging whether addressing request is successfully transmitted;Second judgment module is for judging whether network connection succeeds.
7. mobile device dynamic address access system as claimed in claim 6, which is characterized in that the mobile device further includes
Enquiry module, the enquiry module is for inquiring whether mobile device is stored with the successful access address of last time request.
8. mobile device dynamic address access system as claimed in claim 6, which is characterized in that the mobile device further includes
SRV records request module, and the SRV record request modules are for asking SRV current records.
9. mobile device dynamic address access system as claimed in claim 6, which is characterized in that the mobile device further includes
Timer, frequency of the timer for counterweight networking network are timed.
10. a kind of computer readable storage medium, which is characterized in that the computer storage media is stored with computer program,
The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor
It is required that 1-5 any one of them methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810040016.3A CN108322559A (en) | 2018-01-16 | 2018-01-16 | Mobile device dynamic address cut-in method, system and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810040016.3A CN108322559A (en) | 2018-01-16 | 2018-01-16 | Mobile device dynamic address cut-in method, system and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108322559A true CN108322559A (en) | 2018-07-24 |
Family
ID=62893545
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810040016.3A Pending CN108322559A (en) | 2018-01-16 | 2018-01-16 | Mobile device dynamic address cut-in method, system and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108322559A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114500548A (en) * | 2022-04-13 | 2022-05-13 | 杭州觅睿科技股份有限公司 | Method and system for accessing equipment terminal to cloud platform and related components |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521596A (en) * | 2009-04-03 | 2009-09-02 | 南京邮电大学 | Management structure for distributed dynamic self-organizing network |
US20160173440A1 (en) * | 2014-12-12 | 2016-06-16 | Donuts Inc. | Communication using dns repurposing |
CN106210155A (en) * | 2015-04-29 | 2016-12-07 | 腾讯科技(深圳)有限公司 | The method and apparatus connecting application server |
US20170012935A1 (en) * | 2015-07-06 | 2017-01-12 | Aruba Networks, Inc. | Infrastructure coordinated media access control address assignment |
CN107343059A (en) * | 2017-07-17 | 2017-11-10 | 环球智达科技(北京)有限公司 | The method for obtaining server address |
-
2018
- 2018-01-16 CN CN201810040016.3A patent/CN108322559A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101521596A (en) * | 2009-04-03 | 2009-09-02 | 南京邮电大学 | Management structure for distributed dynamic self-organizing network |
US20160173440A1 (en) * | 2014-12-12 | 2016-06-16 | Donuts Inc. | Communication using dns repurposing |
CN106210155A (en) * | 2015-04-29 | 2016-12-07 | 腾讯科技(深圳)有限公司 | The method and apparatus connecting application server |
US20170012935A1 (en) * | 2015-07-06 | 2017-01-12 | Aruba Networks, Inc. | Infrastructure coordinated media access control address assignment |
CN107343059A (en) * | 2017-07-17 | 2017-11-10 | 环球智达科技(北京)有限公司 | The method for obtaining server address |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114500548A (en) * | 2022-04-13 | 2022-05-13 | 杭州觅睿科技股份有限公司 | Method and system for accessing equipment terminal to cloud platform and related components |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113904938B (en) | System and method for dynamically configuring PCIe terminal equipment | |
CN103109517B (en) | Method, terminal and the system of a kind of pair of stack terminal access server | |
CN106933871A (en) | Short linking processing method, device and short linked server | |
CN103412822B (en) | Operation Nonvolatile memory and the method and relevant apparatus of data manipulation | |
CN111291079A (en) | Data query method and device | |
CN106598692A (en) | Method for creating mirror image file in logical volume and starting virtual machine, and server | |
CN101808121A (en) | Method and device for writing server log of mobile terminal into database | |
CN110445873A (en) | A kind of cloud platform service cut-in method and Redirect Server | |
CN105279034B (en) | Consistency cache control system and method | |
CN105338657A (en) | Connection method of eUICC card and management platform and eUICC card | |
CN109981569A (en) | Network system access method, device, computer equipment and readable storage medium storing program for executing | |
CN108322559A (en) | Mobile device dynamic address cut-in method, system and medium | |
CN103152394B (en) | Data access arrangement, internal memory share equipment and method for reading data | |
CN101291202B (en) | Management method and host server for data transmission paths | |
CN111726367B (en) | Method, device, system and equipment for binding access of Customer Premises Equipment (CPE) | |
CN104639666B (en) | Method for accessing domain name and device | |
CN107783927A (en) | For connecting the circuit conversion system and method for AXI interfaces and DMA interface | |
CN104714760B (en) | A kind of method and device for reading and writing storage device | |
CN116483738A (en) | Data access method and device, storage medium and electronic device | |
CN103491057A (en) | Method, system and device for sharing session data | |
CN110337136A (en) | It is connected to the network strategy adjusting method, device, equipment and storage medium | |
CN113923061B (en) | GPU network communication method based on intelligent network card, medium and equipment | |
CN107408071A (en) | A kind of memory pool access method, device and system | |
CN104869133B (en) | A kind of method of data record, system and access server | |
CN104144228B (en) | Network storage device and its control method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180724 |