CN106817272B - Network protocol automatic analysis testing method and system - Google Patents

Network protocol automatic analysis testing method and system Download PDF

Info

Publication number
CN106817272B
CN106817272B CN201510863050.7A CN201510863050A CN106817272B CN 106817272 B CN106817272 B CN 106817272B CN 201510863050 A CN201510863050 A CN 201510863050A CN 106817272 B CN106817272 B CN 106817272B
Authority
CN
China
Prior art keywords
network
analysis result
user
analysis
mobile phone
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.)
Active
Application number
CN201510863050.7A
Other languages
Chinese (zh)
Other versions
CN106817272A (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.)
Surfilter Network Technology Co ltd
Original Assignee
Surfilter Network 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 Surfilter Network Technology Co ltd filed Critical Surfilter Network Technology Co ltd
Priority to CN201510863050.7A priority Critical patent/CN106817272B/en
Publication of CN106817272A publication Critical patent/CN106817272A/en
Application granted granted Critical
Publication of CN106817272B publication Critical patent/CN106817272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a network protocol automatic analysis and test method, which comprises the following steps: collecting network data packets on a plurality of platforms through a plurality of terminals, and uploading the collected network data packets to a data center; analyzing the network data packet stored in the data center by the data analysis platform, forming a report form of an analysis result and sending the report form to related personnel; and judging whether the analysis result has a problem or not by the alarm module, and if so, sending an alarm mail to a developer. The embodiment of the invention realizes the automatic acquisition of the network protocol by the Selenium tool on a plurality of terminals; analyzing the acquired network data packet through the data analysis platform to obtain a report form, so that complex network data becomes concise and clear; and then sending an alarm mail to the developer under the condition that the analysis result is problematic, so that the developer can repair the protocol in time.

Description

Network protocol automatic analysis testing method and system
Technical Field
The invention relates to the technical field of computers, in particular to a network protocol automatic analysis testing method and a network protocol automatic analysis testing system.
Background
A protocol is a convention or call rule designed by two communicating parties to effect communication. Computer communication networks are interconnected by many nodes having information exchange and processing capabilities. In order for the entire network to work orderly, each node must comply with some rules agreed in advance regarding data format, timing, etc. These rules, conventions, or standards established to effectuate network data exchange are referred to as network protocols.
The existing network protocols are various in variety, and data packets in the network are transmitted through various protocols, so that communication among various entities in the network is finally realized. Because of the wide variety of network protocols on the market at present, the demand of protocol analysis is very large. With the development of mobile internet applications, the protocol demand of a mobile terminal is also increased suddenly, huge workload is brought to protocol analysis and testing, and the efficiency of protocol analysis and testing performed only in a manual mode is low, so that the increasing network protocol analysis requirements cannot be met. In addition, the loss of data packets in network transmission also brings problems of difficult analysis and high cost to network protocol analysis.
Disclosure of Invention
The invention aims to provide a network protocol automatic analysis testing method and a network protocol automatic analysis testing system to solve the problems of low analysis efficiency and high cost of the existing network protocol.
In order to solve the technical problems, the invention adopts the technical scheme that:
a network protocol automatic analysis testing method comprises the following steps:
step S1: collecting network data packets on a plurality of platforms through a plurality of terminals, and uploading the collected network data packets to a data center;
step S2: analyzing the network data packet stored in the data center by a data analysis platform, forming a report form by an analysis result and sending the report form to related personnel; and
step S3: and judging whether the analysis result has a problem or not by the alarm module, and if so, sending an alarm mail to a developer.
Preferably, the analysis result includes a network virtual identity and user speech data, wherein the network virtual identity includes a login account of the user and location information of the user.
Preferably, when the user accesses the internet through a mobile phone, the network virtual identity further includes a mobile device international identity code, an international mobile subscriber identity code, and a mobile phone number of the mobile phone.
Preferably, if the network virtual identity and/or the user speech data are not included in the analysis result, it is determined that the analysis result is problematic.
Preferably, a Selenium tool is installed on the terminal, and the network data packet is collected through the Selenium tool.
Correspondingly, the invention also provides a network protocol automatic analysis test system, which comprises:
the system comprises a plurality of terminals, a plurality of communication terminals and a plurality of communication terminals, wherein the terminals are used for collecting network data packets on a plurality of platforms;
the data center is connected with the plurality of terminals and is used for storing the network data packets collected by the plurality of terminals;
the data analysis platform is connected to the data center and used for analyzing the network data packet and forming a report form of an analysis result and sending the report form to related personnel; and
and the alarm module is connected to the data analysis platform and used for judging whether the analysis result has a problem or not, and if so, sending an alarm mail to a developer.
Preferably, the analysis result includes a network virtual identity and user speech data, wherein the network virtual identity includes a login account of the user and location information of the user.
Preferably, when the user accesses the internet through a mobile phone, the network virtual identity further includes a mobile device international identity code, an international mobile subscriber identity code, and a mobile phone number of the mobile phone.
Preferably, if the network virtual identity and/or the user speech data are not included in the analysis result, it is determined that the analysis result is problematic.
Preferably, a Selenium tool is installed on the terminal, and the network data packet is collected through the Selenium tool.
The embodiment of the invention has the following beneficial effects: according to the method and the system for automatically analyzing and testing the network protocol, the Selenium tools on the terminals are used for capturing and packing the network data packets on the platforms, so that the automatic collection of the network protocol is realized; analyzing the acquired network data packet through the data analysis platform to obtain a report form, so that complex network data becomes concise and clear; and judging whether the network data packet is lost in the transmission process by judging whether the analysis result contains the network virtual identity and the user speech data, and if so, sending an alarm mail to a developer so that the developer can repair the protocol in time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of a network protocol automation analysis testing method according to an embodiment of the present invention;
fig. 2 shows a report generated according to the network protocol automation analysis testing method shown in fig. 1.
Fig. 3 is a block diagram of a network protocol automation analysis test system according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a flowchart of a network protocol automation analysis testing method according to an embodiment of the present invention. As shown in fig. 1, the network protocol automated analysis testing method includes the following steps:
step S1: network data packets on a plurality of platforms are collected through a plurality of terminals, and the collected network data packets are uploaded to a data center.
Specifically, in this embodiment, multiple terminals are used to collect network data packets on multiple platforms according to a pre-written script, and the collected network data packets are uploaded to a specified data analysis platform. Further, the multiple platforms comprise an apple browser, a chrome browser, an IE browser, an android UC browser and the like; network packets include the following types: instant messaging (e.g., QQ, wechat, etc.), email, forum, blog, news, microblog, etc. HTTP protocol data.
Preferably, the automatic packet capturing of the network data packet is realized by installing a Selenium tool on a plurality of terminals. The Selenium test runs directly in the browser, and the supported browsers include IEs (7, 8, 9), Mozilla Firefox, Mozilla Suite, etc.
Step S2: and analyzing the network data packet stored in the data center by the data analysis platform, forming a report form by an analysis result and sending the report form to related personnel.
Specifically, in this embodiment, the analysis result includes the network virtual identity and the user speech data, for example, when the network data packet is an email, the user speech data includes sender information, recipient information, text information and attachment information, and when the network data packet is a blog, the user speech data includes a log, a comment, a message, and the like. The network virtual identity includes a login account of a user and location information of the user (for example, longitude and latitude information of the user), and further includes a mobile equipment international identity (IMEI), an International Mobile Subscriber Identity (IMSI) and a mobile phone number of the mobile phone when the user accesses the internet through the mobile phone.
In the embodiment, the detailed results can be provided by forming the analysis results into a report, so that the history archiving is facilitated.
Step S3: and judging whether the analysis result has a problem or not by the alarm module, and if so, sending an alarm mail to a developer.
Specifically, in this embodiment, if the analysis result obtained by parsing the network data packet does not include the network virtual identity and/or the user speech data, it is determined that the analysis result has a problem. For example, if the analysis result does not include the login account of the user or the location information of the user, it is determined that the analysis result has a problem, that is, a packet loss phenomenon may occur in a transmission process of a network data packet acquired through a terminal, and an alarm mail is sent to a developer and is repaired by a relevant person in time. For another example, when the user accesses the internet through a mobile phone, if the analysis result does not include the IMEI, the IMSI or the mobile phone number, it is determined that the analysis result has a problem.
Fig. 2 shows a report generated according to the network protocol automation analysis testing method shown in fig. 1. As shown in fig. 2, the protocols included in the report are forum (new wave forum collected on apple browser platform), blog (sky blog collected on computer version chrome browser), and web page mailbox (YEAH mailbox collected on computer version IE browser and QQ mailbox collected on android UC browser). Further, as shown in fig. 2, since the protocol of the QQ mailbox does not collect sender information, recipient information, text content, and attachment information, it is determined that a problem occurs in the analysis result of the QQ mailbox, and it may be that a data packet is lost during data transmission, and an alert mail is sent to a developer and is repaired by the developer.
The automatic analysis and test method for the network protocol provided by the embodiment realizes the automatic acquisition of the network protocol by capturing network data packets on a plurality of platforms by a Selenium tool on a plurality of terminals; analyzing the acquired network data packet through the data analysis platform to obtain a report form, so that complex network data becomes concise and clear; and judging whether the network data packet is lost in the transmission process by judging whether the analysis result contains the network virtual identity and the user speech data, and if so, sending an alarm mail to a developer so that the developer can repair the protocol in time.
Fig. 3 is a block diagram of a network protocol automation analysis test system according to an embodiment of the present invention. As shown in fig. 3, the network protocol automated analysis test system includes:
and the plurality of terminals 10 are used for collecting network data packets on a plurality of platforms.
Specifically, in this embodiment, the multiple terminals 10 collect network data packets on multiple platforms according to a script written in advance through the Selenium installation tool installed thereon, and upload the collected network data packets to the specified data analysis platform. Further, the multiple platforms comprise an apple browser, a chrome browser, an IE browser, an android UC browser and the like; network packets include the following types: instant messaging (e.g., QQ, wechat, etc.), email, forum, blog, news, microblog, etc. HTTP protocol data.
And the data center 20 is connected to the plurality of terminals 10 and is used for storing the collected network data packets of the plurality of terminals 10.
And the data analysis platform 30 is connected to the data center 20 and used for analyzing the network data packet, forming a report according to the analysis result and sending the report to related personnel.
Specifically, in this embodiment, the analysis result formed by the data analysis platform 30 includes a network virtual identity and user speech data, where the network virtual identity includes a login account number of the user and location information of the user (for example, longitude and latitude information of the user), and further, when the user accesses the internet through a mobile phone, the network virtual identity further includes an International Mobile Equipment Identity (IMEI), an International Mobile Subscriber Identity (IMSI) and a mobile phone number of the mobile phone.
And the alarm module 40 is connected to the data analysis platform 30 and used for judging whether the analysis result has a problem or not, and if so, sending an alarm mail to a developer.
Specifically, in this embodiment, if the analysis result obtained by parsing the network data packet does not include the network virtual identity and/or the user speech data, the alarm module 40 determines that the analysis result has a problem. For example, if the analysis result does not include the login account of the user or the location information of the user, it is determined that the analysis result has a problem, that is, a packet loss phenomenon may occur in a transmission process of a network data packet acquired through the terminal, and the alarm module 40 sends an alarm mail to a developer, and the developer is repaired in time by a relevant person. For another example, when the user accesses the internet through a mobile phone, if the analysis result does not include the IMEI, the IMSI or the mobile phone number, the alarm module 40 determines that the analysis result has a problem.
The automatic analysis and test system for the network protocol provided by the embodiment realizes the automatic acquisition of the network protocol by capturing network data packets on a plurality of platforms by a Selenium tool on a plurality of terminals; analyzing the acquired network data packet through the data analysis platform to obtain a report form, so that complex network data becomes concise and clear; and judging whether the network data packet is lost in the transmission process by judging whether the analysis result contains the network virtual identity and the user speech data, and if so, sending an alarm mail to a developer so that the developer can repair the protocol in time.
An embodiment of the present invention further provides a computer program product for performing wireless network access, including a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the method embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (2)

1. A network protocol automatic analysis testing method is characterized by comprising the following steps:
step S1: the method comprises the steps that network data packets on a plurality of platforms are collected through a plurality of terminals, the collected network data packets are uploaded to a data center, a Selenium tool is installed on the terminals, and the network data packets are collected through the Selenium tool;
step S2: analyzing the network data packet stored in the data center by a data analysis platform, forming a report form by an analysis result and sending the report form to related personnel, wherein the analysis result comprises a network virtual identity and user speech data, the network virtual identity comprises a login account number of the user and position information of the user, and when the user accesses the internet through a mobile phone, the network virtual identity further comprises an international identity code of mobile equipment of the mobile phone, an international mobile user identification code and a mobile phone number; and
step S3: judging whether the analysis result has a problem or not by an alarm module, if so, sending an alarm mail to a developer, and if not, judging that the analysis result has a problem; when the user accesses the internet through the mobile phone, if the analysis result does not include the international identification code of the mobile equipment, the international mobile subscriber identification code and the mobile phone number, the analysis result is judged to have a problem.
2. A network protocol automated analysis testing system, comprising:
the system comprises a plurality of terminals, a plurality of communication terminals and a plurality of communication terminals, wherein the terminals are used for collecting network data packets on a plurality of platforms;
the data center is connected with the plurality of terminals and is used for storing the network data packets collected by the plurality of terminals;
the data analysis platform is connected to the data center and used for analyzing the network data packet and forming a report form of an analysis result and sending the report form to related personnel; and
the alarm module is connected with the data analysis platform and used for judging whether the analysis result has a problem or not, and if so, sending an alarm mail to a developer;
the analysis result comprises a network virtual identity and user speech data, wherein the network virtual identity comprises a login account of the user and the position information of the user;
when the user accesses the internet through a mobile phone, the network virtual identity further comprises a mobile equipment international identity code, an international mobile subscriber identification code and a mobile phone number of the mobile phone;
if the analysis result does not include the login account of the user or the position information of the user, judging that the analysis result has a problem; when the user accesses the internet through the mobile phone, if the analysis result does not include the international identity code of the mobile equipment, the international mobile subscriber identification code and the mobile phone number, judging that the analysis result has a problem;
and a Selenium tool is installed on the terminal, and the network data packet is collected through the Selenium tool.
CN201510863050.7A 2015-11-30 2015-11-30 Network protocol automatic analysis testing method and system Active CN106817272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510863050.7A CN106817272B (en) 2015-11-30 2015-11-30 Network protocol automatic analysis testing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510863050.7A CN106817272B (en) 2015-11-30 2015-11-30 Network protocol automatic analysis testing method and system

Publications (2)

Publication Number Publication Date
CN106817272A CN106817272A (en) 2017-06-09
CN106817272B true CN106817272B (en) 2020-04-14

Family

ID=59107697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510863050.7A Active CN106817272B (en) 2015-11-30 2015-11-30 Network protocol automatic analysis testing method and system

Country Status (1)

Country Link
CN (1) CN106817272B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155066A (en) * 2006-09-29 2008-04-02 中国移动通信集团北京有限公司 Network performance analysis system and method
CN101562777A (en) * 2009-05-27 2009-10-21 马强 Active acquisition system for state of mobile communication network and active mentoring system based on same
CN102752792A (en) * 2011-12-26 2012-10-24 华为技术有限公司 Method, device and system for monitoring internet service quality of mobile terminal
KR20120129540A (en) * 2011-05-20 2012-11-28 주식회사 두두원 Agent based protocol analyzer and protocol analyzing method for LTE system
JP2014165844A (en) * 2013-02-27 2014-09-08 Kddi Corp Identification device, identification method, and identification program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155066A (en) * 2006-09-29 2008-04-02 中国移动通信集团北京有限公司 Network performance analysis system and method
CN101562777A (en) * 2009-05-27 2009-10-21 马强 Active acquisition system for state of mobile communication network and active mentoring system based on same
KR20120129540A (en) * 2011-05-20 2012-11-28 주식회사 두두원 Agent based protocol analyzer and protocol analyzing method for LTE system
CN102752792A (en) * 2011-12-26 2012-10-24 华为技术有限公司 Method, device and system for monitoring internet service quality of mobile terminal
JP2014165844A (en) * 2013-02-27 2014-09-08 Kddi Corp Identification device, identification method, and identification program

Also Published As

Publication number Publication date
CN106817272A (en) 2017-06-09

Similar Documents

Publication Publication Date Title
US9674043B2 (en) Systems and methods for automatically clustering devices
CN104022902A (en) Method and system of monitoring server cluster
CN112311617A (en) Configured data monitoring and alarming method and system
CN103795762A (en) Reverse agent test system and method
CN111246406A (en) Short message sending method, system, storage medium and terminal equipment
CN107306200B (en) Network fault early warning method and gateway for network fault early warning
US9641595B2 (en) System management apparatus, system management method, and storage medium
US10320729B2 (en) Method, apparatus, and system for shielding harassment by mention in user generated content
CN105224420B (en) A kind of analysis method and system of automatic parsing terminal abnormal
CN106817272B (en) Network protocol automatic analysis testing method and system
CN103036762A (en) Method and device for information processing in instant messaging
US9130827B2 (en) Sampling from distributed streams of data
CN111327487A (en) Power communication network running state monitoring method and device based on deep learning
US9887945B2 (en) System and method for unfiltering filtered status messages
CN112448932B (en) Message processing method and device
CN105721231A (en) Service quality sensing detection method and service quality sensing detection device
CN112953694A (en) Method for uploading big data to block chain system
US10638288B2 (en) Embedded device identification information in packetized communications
CN101753358B (en) Alarming information notification method and system
CN106485378A (en) The transmission method of business datum, system server
CN106547679B (en) Script management method and script management platform
CN103746901A (en) Information processing method and system
CN111131351A (en) Method and device for confirming model of Internet of things equipment
CN116915670B (en) Method, apparatus and medium for determining network recovery time
CN116074388B (en) Flow forwarding method and system based on log queue

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