CN107733744A - A kind of method of iOS network real-time monitorings - Google Patents
A kind of method of iOS network real-time monitorings Download PDFInfo
- Publication number
- CN107733744A CN107733744A CN201711230414.3A CN201711230414A CN107733744A CN 107733744 A CN107733744 A CN 107733744A CN 201711230414 A CN201711230414 A CN 201711230414A CN 107733744 A CN107733744 A CN 107733744A
- Authority
- CN
- China
- Prior art keywords
- network
- state
- ios
- returning
- judge whether
- 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
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
Abstract
The present invention relates to a kind of method of iOS network real-time monitorings, comprise the following steps:Step 1, detect current network, judge whether network disconnects, if off, then return network off-state;Step 2, in network-in-dialing, determine whether, if while detect local network;Step 3, if not detecting local network, continuity check processing is performed, if detection local network, performs local network detection process.The present invention, WIFI or local network state can be detected, judges network-in-dialing degree(With server), relevant information is prompted into user, especially network delay in time can be visually seen(Redden, turn yellow, suspension, congestion, smoothness are expressed in greening), user's awareness network situation is aided in, and corresponding processing is provided, Consumer's Experience is lifted, network status data can be provided for third party APP, further reduces the influence that network problem is brought.
Description
Technical field
The present invention relates to iOS technical field of network management, specifically a kind of method of iOS network real-time monitorings.
Background technology
With the development and popularization of network, network has been not limited solely to use under indoor cable environment, portable mobile
Equipment is in wireless network coverage, it is already possible to the free interconnection in most situations, and also networking speeds constantly carry
It is high.
Now common wireless network is mostly 2G, 3G, 4G wireless network.
2G networks refer to second generation wireless cell phone communications protocol, are to turn to representative, Neng Goujin with wireless telecommunications numeral
Row narrow band data communicates.Common 2G home control network communication protocols have GSM frequency division multiple access(GPRS and EDGE and CDMA 1X CDMAs two
Kind, transmission speed is very slow.
3G network is third generation wireless cell phone communications protocol, has mainly developed the number of high bandwidth on the basis of 2G
According to communication, and improve voice call security.3G in generals data communication bandwidth is all in more than 500Kb/s.3G is commonly used at present
Have 3 kinds of standards:WCDMA, CDMA2000, TD-SCDMA, biography degree of hastening is relatively fast, can be very good to meet surfing Internet with cell phone etc.
Demand, but it is more painstaking to play HD video.
4G networks refer to forth generation wireless cell phone communications protocol, are to integrate 3G and WLAN and can transmit high-quality
Measure video image and image transmitting quality and the equal technical products of high-definition television.4G systems can be with
100Mbps speed is downloaded, and than dialling up on the telephone fast 2000 times, the speed of upload can also reach 20Mbps, and disclosure satisfy that almost
Requirement of all users for wireless service.
For a user, the maximum difference of 2G, 3G, 4G network is biography degree of hastening difference.
Have benefited from the development of network, network game develops rapidly on portable mobile equipment, or even some game being directed to specially
Portable mobile equipment exploitation, design, to meet the entertainment requirements of increasing user.
But that network connection is unstable after all sometimes still be present, at this moment, the user in game can not be straight
That sees sees network-in-dialing situation, often unhappy because of the failure such as the suspension of game, interim card, but can not intuitively judge event
The situation of barrier.
The content of the invention
For defect present in prior art, it is an object of the invention to provide a kind of side of iOS network real-time monitorings
Method, WIFI or local network state can be detected, judges network-in-dialing degree(With server), relevant information is prompted in time
It can be visually seen to user, especially network delay(Redden, turn yellow, suspension, congestion, smoothness are expressed in greening), aid in user
Network condition is solved, and corresponding processing is provided, Consumer's Experience is lifted, network status data can be provided for third party APP, further
Reduce the influence that network problem is brought.
To achieve the above objectives, the present invention adopts the technical scheme that:
A kind of method of iOS network real-time monitorings, it is characterised in that comprise the following steps:
Step 1, detect current network, judge whether network disconnects, if off, then return network off-state;
Step 2, in network-in-dialing, determine whether, if while detect local network;
Step 3, if not detecting local network, continuity check processing is performed, if detection local network, performs sheet
Ground network detection process.
On the basis of above-mentioned technical proposal, the continuity check processing specifically includes:
Detection network ip addresses are obtained, if it fails, then returning to detection failure;
Attempt to start socket, if it fails, then returning to detection failure;
Etc. data to be received,
Start to send data,
Calculating network postpones,
Return to network state and network delay data.
On the basis of above-mentioned technical proposal, network delay threshold value is preset, according to the network delay data detected, with net
Network delay threshold value compares, and returns to current network state;
The network delay threshold value at least one.
On the basis of above-mentioned technical proposal, the current network state comprises at least:Suspension, congestion, smoothness.
On the basis of above-mentioned technical proposal, when network delay threshold value has one, pass through the network delay number detected
According to the size with network delay threshold difference, current network state is judged.
On the basis of above-mentioned technical proposal, when network delay threshold value has two or more, prolonged by the network detected
Slow data judge current network state within which two network delay threshold interval.
On the basis of above-mentioned technical proposal, the local network detection process specifically includes:
Judge currently whether without network signal, if it is, returning to network off-state;
Judge whether it is that WIFI network is used, if it is, returning to WIFI network state;
Judge whether it is that WWAN networks are used, if it is, returning to network off-state;
Judge whether it is that 2G networks are used, if it is, returning to 2G network states;
Judge whether it is that 3G network is used, if it is, returning to 3G network state;
Judge whether it is that 4G networks are used, if it is, returning to 4G network states;
If above-mentioned judgement is all negative, network off-state is returned.
On the basis of above-mentioned technical proposal, judge whether it is also self-defined judgment step after 4G networks are used,
Set according to user, judge whether that the network that user specifies is used, if it is, returning to the network state that user specifies.
On the basis of above-mentioned technical proposal, the network that the user specifies includes but is not limited to:5G networks.
The method of iOS network real-time monitorings of the present invention, WIFI or local network state can be detected, judges network
Connecting degree(With server), relevant information is prompted into user, especially network delay in time can be visually seen(Redden,
Turn yellow, suspension, congestion, smoothness are expressed in greening), user's awareness network situation is aided in, and corresponding processing is provided, lift user's body
Test, network status data can be provided for third party APP, further reduce the influence that network problem is brought.
Brief description of the drawings
The present invention has drawings described below:
The flow chart of Fig. 1 present invention.
Embodiment
The present invention is described in further detail below in conjunction with accompanying drawing.
As shown in figure 1, the method for iOS network real-time monitorings of the present invention, comprises the following steps:
Step 1, detect current network, judge whether network disconnects, if off, then return network off-state;
Step 2, in network-in-dialing, determine whether, if while detect local network;
Step 3, if not detecting local network, continuity check processing is performed, if detection local network, performs sheet
Ground network detection process.
On the basis of above-mentioned technical proposal, the continuity check processing specifically includes:
Detection network ip addresses are obtained, if it fails, then returning to detection failure;
Attempt to start socket, if it fails, then returning to detection failure;
Etc. data to be received,
Start to send data,
Calculating network postpones,
Return to network state and network delay data.
On the basis of above-mentioned technical proposal, network delay threshold value is preset, according to the network delay data detected, with net
Network delay threshold value compares, and returns to current network state;
The network delay threshold value at least one.
On the basis of above-mentioned technical proposal, the current network state comprises at least:Suspension, congestion, smoothness.
On the basis of above-mentioned technical proposal, when network delay threshold value has one, pass through the network delay number detected
According to the size with network delay threshold difference, current network state is judged.
On the basis of above-mentioned technical proposal, when network delay threshold value has two or more, prolonged by the network detected
Slow data judge current network state within which two network delay threshold interval.
On the basis of above-mentioned technical proposal, the local network detection process specifically includes:
Judge currently whether without network signal, if it is, returning to network off-state;
Judge whether it is that WIFI network is used, if it is, returning to WIFI network state;
Judge whether it is that WWAN networks are used, if it is, returning to network off-state;
Judge whether it is that 2G networks are used, if it is, returning to 2G network states;
Judge whether it is that 3G network is used, if it is, returning to 3G network state;
Judge whether it is that 4G networks are used, if it is, returning to 4G network states;
If above-mentioned judgement is all negative, network off-state is returned.
On the basis of above-mentioned technical proposal, judge whether it is also self-defined judgment step after 4G networks are used,
Set according to user, judge whether that the network that user specifies is used, if it is, returning to the network state that user specifies.
On the basis of above-mentioned technical proposal, the network that the user specifies includes but is not limited to:5G networks.
The content not being described in detail in this specification belongs to prior art known to professional and technical personnel in the field.
Claims (9)
- A kind of 1. method of iOS network real-time monitorings, it is characterised in that comprise the following steps:Step 1, detect current network, judge whether network disconnects, if off, then return network off-state;Step 2, in network-in-dialing, determine whether, if while detect local network;Step 3, if not detecting local network, continuity check processing is performed, if detection local network, performs sheet Ground network detection process.
- 2. the method for iOS network real-time monitorings as claimed in claim 1, it is characterised in that:The continuity check processing Specifically include:Detection network ip addresses are obtained, if it fails, then returning to detection failure;Attempt to start socket, if it fails, then returning to detection failure;Etc. data to be received,Start to send data,Calculating network postpones,Return to network state and network delay data.
- 3. the method for iOS network real-time monitorings as claimed in claim 2, it is characterised in that:Default network delay threshold value, according to The network delay data detected, compared with network delay threshold value, return to current network state;The network delay threshold value at least one.
- 4. the method for iOS network real-time monitorings as claimed in claim 3, it is characterised in that:The current network state is at least Including:Suspension, congestion, smoothness.
- 5. the method for iOS network real-time monitorings as claimed in claim 4, it is characterised in that:When network delay threshold value has one When, by the size of the network delay data and network delay threshold difference that detect, judge current network state.
- 6. the method for iOS network real-time monitorings as claimed in claim 4, it is characterised in that:When network delay threshold value has two During the above, the network delay data by detecting judge current network state within which two network delay threshold interval.
- 7. the method for iOS network real-time monitorings as claimed in claim 1, it is characterised in that:The local network detection process Specifically include:Judge currently whether without network signal, if it is, returning to network off-state;Judge whether it is that WIFI network is used, if it is, returning to WIFI network state;Judge whether it is that WWAN networks are used, if it is, returning to network off-state;Judge whether it is that 2G networks are used, if it is, returning to 2G network states;Judge whether it is that 3G network is used, if it is, returning to 3G network state;Judge whether it is that 4G networks are used, if it is, returning to 4G network states;If above-mentioned judgement is all negative, network off-state is returned.
- 8. the method for iOS network real-time monitorings as claimed in claim 7, it is characterised in that:Judge whether it is that 4G is used After network, also self-defined judgment step, set according to user, judge whether that the network that user specifies is used, if it is, Then return to the network state that user specifies.
- 9. the method for iOS network real-time monitorings as claimed in claim 8, it is characterised in that:The network bag that the user specifies Include but be not limited to:5G networks.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711230414.3A CN107733744A (en) | 2017-11-30 | 2017-11-30 | A kind of method of iOS network real-time monitorings |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711230414.3A CN107733744A (en) | 2017-11-30 | 2017-11-30 | A kind of method of iOS network real-time monitorings |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107733744A true CN107733744A (en) | 2018-02-23 |
Family
ID=61220477
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711230414.3A Pending CN107733744A (en) | 2017-11-30 | 2017-11-30 | A kind of method of iOS network real-time monitorings |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107733744A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110890999A (en) * | 2019-11-06 | 2020-03-17 | 苏州思必驰信息科技有限公司 | Network monitoring method and system based on Socket Connect |
CN112714460A (en) * | 2021-01-06 | 2021-04-27 | 贵阳迅游网络科技有限公司 | Service acceleration method and system based on service flow |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297950A (en) * | 2012-02-28 | 2013-09-11 | 成都谛听科技有限公司 | Method for backing up and recovering call records remotely |
CN104244290A (en) * | 2014-09-27 | 2014-12-24 | 昆明钢铁集团有限责任公司 | Time-controllable IOS (internet work operating system) intranet reachability detecting system and method |
CN105159676A (en) * | 2015-08-31 | 2015-12-16 | 小米科技有限责任公司 | Method, apparatus and system for loading progress bar |
US20160142252A1 (en) * | 2014-11-19 | 2016-05-19 | Parallel Wireless, Inc. | HealthCheck Access Point |
CN106354781A (en) * | 2016-08-23 | 2017-01-25 | 广东小天才科技有限公司 | Test question searching method and device |
CN106412854A (en) * | 2015-07-30 | 2017-02-15 | 北京奇虎科技有限公司 | Method and apparatus for message sending based on contacts |
-
2017
- 2017-11-30 CN CN201711230414.3A patent/CN107733744A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103297950A (en) * | 2012-02-28 | 2013-09-11 | 成都谛听科技有限公司 | Method for backing up and recovering call records remotely |
CN104244290A (en) * | 2014-09-27 | 2014-12-24 | 昆明钢铁集团有限责任公司 | Time-controllable IOS (internet work operating system) intranet reachability detecting system and method |
US20160142252A1 (en) * | 2014-11-19 | 2016-05-19 | Parallel Wireless, Inc. | HealthCheck Access Point |
CN106412854A (en) * | 2015-07-30 | 2017-02-15 | 北京奇虎科技有限公司 | Method and apparatus for message sending based on contacts |
CN105159676A (en) * | 2015-08-31 | 2015-12-16 | 小米科技有限责任公司 | Method, apparatus and system for loading progress bar |
CN106354781A (en) * | 2016-08-23 | 2017-01-25 | 广东小天才科技有限公司 | Test question searching method and device |
Non-Patent Citations (3)
Title |
---|
DEVDIV移动开发社区: "Reachability", 《IOS开发实战体验》 * |
狸猫酱: "iOS学习笔记之Reachability简单使用", 《博客园HTTPS://WWW.CNBLOGS.COM/SCUT-LINMAOJIANG/P/IOS-REACHABILITY.HTML》 * |
脚本之家: "iPhone手机内怎么进行ping测试 iPhone6s实现ping命令功能图文教程", 《HTTPS://WWW.JB51.NET/SHOUJI/427253.HTML》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110890999A (en) * | 2019-11-06 | 2020-03-17 | 苏州思必驰信息科技有限公司 | Network monitoring method and system based on Socket Connect |
CN110890999B (en) * | 2019-11-06 | 2022-02-01 | 思必驰科技股份有限公司 | Network monitoring method and system based on Socket Connect |
CN112714460A (en) * | 2021-01-06 | 2021-04-27 | 贵阳迅游网络科技有限公司 | Service acceleration method and system based on service flow |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102984743B (en) | Active/standby link switchover method and wireless routing device | |
JP6529186B2 (en) | Data transmission method and terminal | |
CN108391298B (en) | System and electronic equipment for automatically switching networks | |
CN104641595B (en) | The method and device that a kind of problem is delimited | |
CN102149144B (en) | Method for adjusting bandwidth, micro base station, home gateway and system | |
CN104039023B (en) | A kind of method and user equipment for carrying out RRC connection reconstructions | |
CN109120524B (en) | Link aggregation method and related equipment | |
CN106102100B (en) | Access type and migration type wireless load balancing method | |
CN101951652A (en) | Method for automatically switching WiFi and 3G in video transmission | |
EP2023676A3 (en) | System and method for call handoff between circuit switched and packet switched data wireless networks | |
CN112105058B (en) | Link connection method and related device | |
CN112040515B (en) | Network switching method and device | |
CN106993317B (en) | SSID (service set identifier) selection method and device based on dual-frequency wireless router | |
CN102957450B (en) | Method and device for improving network quality, and wireless network controller | |
CN104301974B (en) | A kind of method for switching network, system and terminal | |
CN103765946A (en) | Radio link monitoring method and device | |
CN107733744A (en) | A kind of method of iOS network real-time monitorings | |
EP1958376A1 (en) | A wireless station and method in a wireless station for initiating resource measuremets | |
CN104968021B (en) | Bandwidth control method and device in Bluetooth shared network | |
CN106453356A (en) | Wireless network bilateral accelerated transmission method and system | |
CN105323796A (en) | Method for determining maximum segment size | |
CN103702379B (en) | Carrier switch method and device | |
CN109029270B (en) | Stage table displacement monitoring platform | |
WO2005034411A3 (en) | Maintaining data connectivity for handoffs between compression-enabled and compression-disabled communication systems | |
CN109618240A (en) | Wireless Multi-Channel adaptive equilibrium method for real-time audio and video transmission |
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 |