CN106961357A - A kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals - Google Patents

A kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals Download PDF

Info

Publication number
CN106961357A
CN106961357A CN201710293966.2A CN201710293966A CN106961357A CN 106961357 A CN106961357 A CN 106961357A CN 201710293966 A CN201710293966 A CN 201710293966A CN 106961357 A CN106961357 A CN 106961357A
Authority
CN
China
Prior art keywords
android
root
internet service
packet capturing
communication passage
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
CN201710293966.2A
Other languages
Chinese (zh)
Other versions
CN106961357B (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.)
Xi'an Hairun Communication Technology Co Ltd
Original Assignee
Xi'an Hairun Communication Technology Co 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 Xi'an Hairun Communication Technology Co Ltd filed Critical Xi'an Hairun Communication Technology Co Ltd
Priority to CN201710293966.2A priority Critical patent/CN106961357B/en
Publication of CN106961357A publication Critical patent/CN106961357A/en
Application granted granted Critical
Publication of CN106961357B publication Critical patent/CN106961357B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • H04L43/026Capturing of monitoring data using flow identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of Internet service packet capturing based on non-root android terminals and Fault Locating Method, android terminal creates virtual communication passage first;Then communication data packet of the interception with identification id on virtual communication passage, and these communication data packets with identification id are write into data format file;Data format file is parsed;Ultimate analysis data format file content, positioning and communicating is abnormal.By this method can realize when android terminal occur APP business can not surf the Net or surf the Net slow exception when, can quick positioning and communicating failure.

Description

A kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals
Technical field
The present invention relates to packet capturing and communication failure under electronic communication field, more particularly to a kind of non-root environment of android terminal Localization method.
Background technology
As Internet service is fast-developing, in moving communicating field, when not surfing the Net or surfing the Net slowly occur in APP business Situation when, mainly fault location is carried out by artificial signalling analysis mode, currently a popular way mainly has following three kinds Mode:
First, Tcpdump orders packet capturing analysis method:First by the root android terminals passed through and PC connections;Perform again The sequence of operations such as Tcpdump, crawl APMB package capture.pcap;Afterwards with the TO APMB package such as Wireshark, manually Analyzing and positioning communication abnormality.Wherein root is unique super keepe in terminal system, and it, which has, is equal to operating system Authority.
2nd, Wireshark orders packet capturing analysis method:Computer is done into Wi-Fi hotspot, android terminal is opened after connecting the focus Dynamic wireshark, selects the network interface card as focus, captures APMB package, and manual analysis positioning and communicating is abnormal.
3rd, Fiddler orders packet capturing analysis method:This method is only limitted to HTTP access, first connects PC and android terminal It is connected under same LAN and (for example PC and android terminal is connected under same WiFi);Fiddler, choosing are opened at PC ends The port numbers of monitoring are selected, hereafter operate android terminal just to see HTTP code stream on the Fiddler of computer;According to these It is abnormal that HTTP code stream carrys out manual analysis positioning and communicating.
, all there are shortcomings and inconvenience in three of the above method.Method one, entirely command operation, to the professional skill of operating personnel It can require higher;Android terminal can cause some corrupt datas or loss after needing root, android terminal root, be filled even changing Electric current or lighting power etc., so as to burn out the component of mobile phone;The android terminal charging interval after root is substantially elongated, standby Time substantially shortens, and with the phenomenon of heating.Method two is, it is necessary to which by computer, it is necessary to connect shared Wi-Fi hotspot, data are accurate True property is difficult to ensure that.Method three, can only capture HTTP bags, it is impossible to capture TCP/UDP bags, it is difficult to comprehensive positioning and communicating problem.
In addition the terminal signaling size of message of above-mentioned three kinds of methods crawl is huge, and the class of business being related to is various and process concurrency Mix;Packet capturing on computer signaling process route with it is not quite identical in android terminal, APP business recognize it is not accurate;These Cause that artificial signalling analysis mode efficiency is low, human error big, it is inaccurate to route, it is difficult to be accurately positioned communication abnormality problem hair Raw the reason for and coverage.
The content of the invention
In order to overcome the above-mentioned deficiencies of the prior art, it is a kind of new based on non-root Androids it is an object of the invention to propose The Internet service packet capturing of terminal and Fault Locating Method, when in terminal client software APP business occur can not surf the Net or During slow exception of surfing the Net, communication failure positioning can quickly be carried out by this method, find out the reason for communication abnormality problem occurs And coverage.
To achieve these goals, the present invention proposes that packet capturing is positioned with communication failure under a kind of non-root environment of android terminal Method, concrete technical scheme is as follows:
A kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals, comprise the following steps interior Hold:
[1] virtual communication passage is created in android terminal;
[2] virtual communication passage is filtered to APP, only allows the APP application programs ID/UID's with packet capturing in need Communication data packet is transmitted, and these communication data packets with identification id/UID are write into data format file;
[3] data format file is parsed;
[4] analyze data formatted file content, positioning and communicating is abnormal.
In the above-mentioned Internet service packet capturing based on non-root android terminals and Fault Locating Method, the establishment is virtual logical Letter passage is created under the non-root environment of android terminal, the APP in compatible android terminal.
In the above-mentioned Internet service packet capturing based on non-root android terminals and Fault Locating Method, same Android end The same time can only create a virtual communication passage on end.
In the above-mentioned Internet service packet capturing based on non-root android terminals and Fault Locating Method, android terminal is virtual Communication port VPN porch is to APP filtration treatments.
In the above-mentioned Internet service packet capturing based on non-root android terminals and Fault Locating Method, communication data packet is preserved In signaling storage file PCAP files.
The relatively conventional communication failure localization method of above-mentioned technical proposal of the invention, has following apparent feature and excellent Point:
First, operating efficiency is lifted:Packet capturing, unpacking and the communication abnormality positioning of whole process of the present invention are all whole by Android End is automatic to be performed, the analysis one by one participated in the overall process and recorded to result without analyzing personnel, from manually to intellectuality transformation, work There is obvious lifting as efficiency;
2nd, work convenience lifting:The present invention does not need the equipment such as PC, it is only necessary to which android terminal can be carried out, with pole Big convenience;
3rd, extremely strong adaptability:The present invention is completely compatible to the APP of android terminal, it is not necessary to which these APP do adaptability and repaiied Change, it is not required that the technical ability to staff has been limited and required, with extremely strong adaptability;
4th, Position location accuracy is improved:The present invention obtains packet by setting up virtual communication passage, and the packet caught is complete What is gathered entirely is the True Data of android terminal network, is route not over third party, reduces the transmission surfed the Net by WiFi Loss, improves the accuracy of positioning problems.
5th, APP business matter difference positioning lifting:The present invention sets up analysis probe from end side, to Internet service and network Interactive signaling is analyzed in real time, in combination with network data, from terminal deeply taped the latent power analysis user communication business behavior and Shi Faxian service-aware abnormal problems, which are automatically positioned and carry out QOE, perceives scoring, and is surveyed there is provided being automated to Internet service The functions such as examination, APP application communications object, process, IP monitoring analysis, help operator's lifting internet to hinder efficiency surely, reduce and use Family is complained, and lifting user perceives.Optimizable APP services addresses and time delay are accurately positioned using the system after the present invention, helped Realize the fault location of popular business.
Brief description of the drawings
Fig. 1 is packet capturing of the present invention and communication failure localization method principle schematic.
Fig. 2 is embodiment of the present invention flow chart.
Embodiment
As shown in figure 1, a kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals, Android are whole End creates virtual communication passage VPN first;Then interception carries identifying user proof of identification ID/UID on virtual communication passage Communication data packet, and by these with identification id/UID communication data packets write data format file;To data form text Part is parsed;Ultimate analysis data format file content, positioning and communicating is abnormal.
The particular content of above-mentioned establishment virtual communication passage is:
First, creating virtual communication passage need not can create to android terminal progress root;Only need in application program Statement needs one are called " android.permission.BIND_VPN_ in interior AndroidManifest.xml files SERVICE " special access right;) it is formal set up VPN links before, android system can eject a dialog box, it is necessary to Clearly agree at family;Once establishing all IP bags sent in VPN connections, Android device, it can all be forwarded to The network interface of Microsoft Loopback Adapter gets on (mainly by playing fwmark labels and iproute2 policybased routings to different sockets Come what is realized);VPN programs can be by reading the data on this interface, to obtain the IP bags sent on all devices; Meanwhile, by the ICP/IP protocol stack of any IP packets insertion system, can finally it be sent by writing data on this interface Application program to reception.
2nd, create virtual communication passage be for application program it is fully transparent, application program completely perceive less than Virtual communication passage, with this ensure android terminal APP need not for support the virtual communication passage do any change, i.e., The APP of completely compatible android terminal;
3rd, the virtual communication passage created, which possesses the same time in uniqueness, i.e. android system, only allows to set up one The virtual communication passage, if other APP want to set up new virtual communication passage, obtain user agree to after, before it is existing Virtual communication passage can be interrupted at once;The packet of all APP communication responses of android terminal is logical by the virtual communication Road is transmitted, and ensures the security and integrality of communication data with this;
4th, the virtual communication passage of the establishment can be filtered in entrance, and write-in carries APP applied business identification ids Communication data packet.
The above-mentioned interception on virtual communication passage carries the communication data packet of identification id, and particular content is:Can be to application Program ID (UID) is filtered, if not desired application, then not in carrying out data transfer on virtual communication passage, And can be to being recorded by the data on virtual communication passage.
The above-mentioned communication data packet with identification id writes data format file, and particular content is:Packet is saved in In signaling storage file, such as the signaling storage file PCAP files of current main flow.During packet capturing, network signaling data is equal APP applied business identifiers are carried, business identifier is write into underlying database, PCAP APMB packages are ultimately generated, are easy to know Other and application.PCAP files are the signaling storage files of international mainstream, and parsing at present checks that the instrument of PCAP files also has a lot. Such as wireshark, fiddler etc..Our technical characterstic is that PCAP files can be generated on mobile phone, and can be This document analysis is come out on mobile phone.
2 detailed process of the invention is discussed in detail below in conjunction with the accompanying drawings:
[1] application VPN authorities (declare one to be called in the AndroidManifest.xml files in application program The special access right of " android.permission.BIND_VPN_SERVICE ", it is not necessary to obtain the root power of android terminal Limit);
[2] judge whether VPN authorities apply for success, if not applying for success, proceed application;
[3] specified APP UID is selected;
[4] open record is switched, start recording data;
[5] vpn tunneling is set up, and starts to transmit data;
[6] data are filtered according to UID, only allows selected UID to pass through vpn tunneling;
[7] data by vpn tunneling are recorded, and are preserved into PCAP formatted files;
[8] record switch, end record data are closed;
[9] PCAP files are stored in the assigned catalogue of android terminal;
[10] VPN services are closed, recover other APP normal cluster authority;
[11] PCAP files are parsed;
[12] communication failure analyzing and positioning
Data are automatically analyzed according to the signaling data file of parsing, matched according to business rule and service impact etc. Identification, when network failure occurs for android terminal, is automatically positioned where being out of order.

Claims (5)

1. a kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals, it is characterised in that including such as Lower step content:
[1] virtual communication passage is created in android terminal;
[2] virtual communication passage is filtered to APP, only allows the communication of the APP application programs ID/UID with packet capturing in need Packet is transmitted, and these communication data packets with identification id/UID are write into data format file;
[3] data format file is parsed;
[4] analyze data formatted file content, positioning and communicating is abnormal.
2. Internet service packet capturing and Fault Locating Method according to claim 1 based on non-root android terminals, its It is characterised by:The establishment virtual communication passage is created under the non-root environment of android terminal, in compatible android terminal APP。
3. Internet service packet capturing and Fault Locating Method according to claim 1 based on non-root android terminals, its It is characterised by:The same time can only create a virtual communication passage in same android terminal.
4. Internet service packet capturing and Fault Locating Method according to claim 1 based on non-root android terminals, its It is characterised by:Android terminal is in virtual communication passage VPN porch to APP filtration treatments.
5. Internet service packet capturing and Fault Locating Method according to claim 1 based on non-root android terminals, its It is characterised by:Communication data packet is stored in signaling storage file PCAP files.
CN201710293966.2A 2017-04-28 2017-04-28 Internet service packet capturing and fault positioning method based on non-root android terminal Active CN106961357B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710293966.2A CN106961357B (en) 2017-04-28 2017-04-28 Internet service packet capturing and fault positioning method based on non-root android terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710293966.2A CN106961357B (en) 2017-04-28 2017-04-28 Internet service packet capturing and fault positioning method based on non-root android terminal

Publications (2)

Publication Number Publication Date
CN106961357A true CN106961357A (en) 2017-07-18
CN106961357B CN106961357B (en) 2021-01-12

Family

ID=59484069

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710293966.2A Active CN106961357B (en) 2017-04-28 2017-04-28 Internet service packet capturing and fault positioning method based on non-root android terminal

Country Status (1)

Country Link
CN (1) CN106961357B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107979506A (en) * 2017-10-30 2018-05-01 阿里巴巴集团控股有限公司 Flow obtains and high in the clouds display systems, method, apparatus and equipment
CN108063671A (en) * 2017-11-30 2018-05-22 广州烽火众智数字技术有限公司 A kind of transparent plug-in type telecommunication network rebooting device and method
CN108401262A (en) * 2018-02-06 2018-08-14 武汉斗鱼网络科技有限公司 A kind of method and device that terminal applies communication data is obtained and analyzed
CN110309027A (en) * 2019-06-14 2019-10-08 北京奇艺世纪科技有限公司 A kind of APP Fault Locating Method, device, server and terminal
CN111124948A (en) * 2019-12-04 2020-05-08 北京东土科技股份有限公司 Network data packet capturing method and system of embedded system and storage medium
CN111901471A (en) * 2020-07-06 2020-11-06 珠海世纪鼎利科技股份有限公司 Drive test system and method for non-root android mobile phone
CN112084494A (en) * 2020-09-21 2020-12-15 百度在线网络技术(北京)有限公司 Sensitive information detection method, device, equipment and storage medium
CN113660678A (en) * 2021-08-13 2021-11-16 西安海润通信技术有限公司 5G internet service monitoring method based on android terminal
WO2021259079A1 (en) * 2020-06-22 2021-12-30 中兴通讯股份有限公司 Method, apparatus, and device for automatically collecting internet-surfing message of application, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257454A (en) * 2008-03-21 2008-09-03 北京星网锐捷网络技术有限公司 Apparatus and method for managing band width
CN104540180A (en) * 2014-12-12 2015-04-22 于卫波 Android multi-hop routing achievement method without root permission
CN105530255A (en) * 2015-12-16 2016-04-27 网宿科技股份有限公司 Method and device for verifying request data
CN106101015A (en) * 2016-07-19 2016-11-09 广东药科大学 A kind of mobile Internet traffic classes labeling method and system
CN106535240A (en) * 2015-09-11 2017-03-22 飞思达技术(北京)有限公司 Mobile APP centralized performance analysis method based on cloud platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257454A (en) * 2008-03-21 2008-09-03 北京星网锐捷网络技术有限公司 Apparatus and method for managing band width
CN104540180A (en) * 2014-12-12 2015-04-22 于卫波 Android multi-hop routing achievement method without root permission
CN106535240A (en) * 2015-09-11 2017-03-22 飞思达技术(北京)有限公司 Mobile APP centralized performance analysis method based on cloud platform
CN105530255A (en) * 2015-12-16 2016-04-27 网宿科技股份有限公司 Method and device for verifying request data
CN106101015A (en) * 2016-07-19 2016-11-09 广东药科大学 A kind of mobile Internet traffic classes labeling method and system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107979506A (en) * 2017-10-30 2018-05-01 阿里巴巴集团控股有限公司 Flow obtains and high in the clouds display systems, method, apparatus and equipment
CN108063671A (en) * 2017-11-30 2018-05-22 广州烽火众智数字技术有限公司 A kind of transparent plug-in type telecommunication network rebooting device and method
CN108401262A (en) * 2018-02-06 2018-08-14 武汉斗鱼网络科技有限公司 A kind of method and device that terminal applies communication data is obtained and analyzed
CN110309027A (en) * 2019-06-14 2019-10-08 北京奇艺世纪科技有限公司 A kind of APP Fault Locating Method, device, server and terminal
CN110309027B (en) * 2019-06-14 2024-01-23 北京奇艺世纪科技有限公司 APP fault positioning method and device, server and terminal
CN111124948A (en) * 2019-12-04 2020-05-08 北京东土科技股份有限公司 Network data packet capturing method and system of embedded system and storage medium
WO2021259079A1 (en) * 2020-06-22 2021-12-30 中兴通讯股份有限公司 Method, apparatus, and device for automatically collecting internet-surfing message of application, and storage medium
CN111901471A (en) * 2020-07-06 2020-11-06 珠海世纪鼎利科技股份有限公司 Drive test system and method for non-root android mobile phone
CN112084494A (en) * 2020-09-21 2020-12-15 百度在线网络技术(北京)有限公司 Sensitive information detection method, device, equipment and storage medium
CN113660678A (en) * 2021-08-13 2021-11-16 西安海润通信技术有限公司 5G internet service monitoring method based on android terminal

Also Published As

Publication number Publication date
CN106961357B (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN106961357A (en) A kind of Internet service packet capturing and Fault Locating Method based on non-root android terminals
US8737980B2 (en) End to end application automatic testing
CN102421112B (en) Testing method of mobile terminal, mobile terminal simulator, testing equipment and testing system
CN104641673A (en) A method and a test system for automatically configuring a tester
CN104410986A (en) Method and device for testing WIFI (Wireless Fidelity) compatibility of terminal
CN110995764B (en) Mobile cellular network application layer data flow fuzzy test method, electronic equipment and storage medium
CN109922073A (en) Network security monitoring device, method and system
CN106535240B (en) Mobile APP centralized performance analysis method based on cloud platform
CN112437463B (en) Terminal Wi-Fi compatibility automatic test method, device, system, equipment and medium
CN106506644A (en) Terminal Debugging message collection method and system
CN109450733A (en) A kind of network-termination device recognition methods and system based on machine learning
CN106209513B (en) 61850 multi-client implementation method of IEC based on burse mode
CN107864067A (en) A kind of method and system of test router compatibility
CN104954165B (en) A kind of method, equipment and the system of link analysis
CN105049280B (en) The interface Behavior modeling test macro and method of Business Management Platform
CN112333019A (en) Router configuration and test method and system and readable storage medium
CN107566513A (en) Test equipment DOS environmental data collecting methods and system
WO2022057265A1 (en) Test method and device for simulating customer series deployment environment
CN112463511B (en) Automatic test system and test method for serial port equipment of Internet of things
CN103023940A (en) Method and device for transmitting data between PC (Personal Computer) and mobile terminal
CN112769596A (en) Data communication storage system and method for battery management system
CN105025108B (en) A kind of debugging maintenance method that train control system equipment based on mobile terminal is wireless
CN107205241A (en) A kind of radio communication detection method and its equipment
CN110406570B (en) Automatic CTCS-3 timeout analysis method based on AMS monitoring data
CN116647490A (en) Aviation AFDX network data detection system

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