CN105007199A - Simulation device and simulation method for IGMP (Internet Group Management Protocol) router - Google Patents

Simulation device and simulation method for IGMP (Internet Group Management Protocol) router Download PDF

Info

Publication number
CN105007199A
CN105007199A CN201510458719.4A CN201510458719A CN105007199A CN 105007199 A CN105007199 A CN 105007199A CN 201510458719 A CN201510458719 A CN 201510458719A CN 105007199 A CN105007199 A CN 105007199A
Authority
CN
China
Prior art keywords
igmp
igmp message
pylibpcap
router
message
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
Application number
CN201510458719.4A
Other languages
Chinese (zh)
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.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510458719.4A priority Critical patent/CN105007199A/en
Publication of CN105007199A publication Critical patent/CN105007199A/en
Pending legal-status Critical Current

Links

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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

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

Abstract

The invention provides a simulation device for an IGMP (Internet Group Management Protocol) router. The simulation device comprises a pylibpcap component module and a network card module, wherein the pylibpcap component module is used for configuring an IGMP message and driving the network card module to transmit and receive the IGMP message; the network card module is connected to the pylibpcap component module and a measured IGMP device for carrying out interaction of the IGMP message with the measured IGMP device under the drive of the pylibpcap component module. The invention also provides a simulation method for the IGMP router. By applying the device and the method, after a python language is developed, transmitting and receiving of the IGMP message can be directly simulated on a windows platform, and the device and the method are independent of a test instrument and are strong in universality.

Description

A kind of IGMP router analog machine and analogy method
Technical field
The present invention relates to field tests, espespecially a kind of IGMP router analog machine and analogy method.
Background technology
In prior art, when the IGMP agreement of test router or three-tier switch, generally adopt following two kinds of technical schemes:
Technical scheme 1: write automatized script and test, but because the automatized script write needs to follow RFC standard, the order line style that the router of different vendor or three-tier switch require is inconsistent, when causing realizing identical IGMP function, configuration may be different, corresponding tester, writes too complicated;
Technical scheme 2: adopt the testers such as Testcenter, Ixia, these testers have the function of integrated IGMP protocol test, various types of IGMP message can be constructed, large discharge multicast test or the test of message fault-tolerance can be carried out, but due to the expensive and port resource of the testers such as Testcenter, Ixia, cause this mode cost performance not high.
Conveniently to the test of the IGMP function of the IGMP testing equipment of each manufacturer, need a kind of test environment to build testing scheme easy, simple to operate and with low cost, while realizing all test functions, the cost performance of testing scheme can be improved.
Summary of the invention
The present invention in order to solve above-mentioned technology cannot balancing run easy and with low cost between the problem of contradiction, a kind of IGMP router analog machine and analogy method are provided, adopt the development scheme of python language, by arranging the mode of pylibpcap assembly module, construct various IGMP message, and drive between existing network interface card and carry out the transmitting-receiving with the IGMP message of equipment under test, the function monitoring IGMP message is provided simultaneously, thus minimizing testing equipment, user-friendly.
To achieve these goals, the invention provides a kind of IGMP router analog machine, described analog machine comprises:
Pylibpcap assembly module, for constructing IGMP message, and drives interface module to receive and dispatch IGMP message;
Interface module, with pylibpcap assembly module and tested IGMP equipment connection, under the driving of pylibpcap assembly module, carries out the mutual of IGMP message with tested IGMP equipment.
Alternatively, described analog machine also comprises: user's input module, be connected respectively with pylibpcap assembly module and interface module, for the operation according to user, the interface module that reception user selects from interface module list is connected with pylibpcap assembly module, also for the operation according to user, the parameter of IGMP message is set.
Alternatively, in described analog machine: the parameter of IGMP message comprises: the version of IGMP message and the type of IGMP message.
Alternatively, in described analog machine: the version of IGMP message comprises v1, v2 and v3 tri-kinds of versions, the type of IGMP message comprises and adds group, from group and inquiry three types.
Alternatively, in described analog machine: pylibpcap assembly module also for monitoring the IGMP message of interface module transmitting-receiving, and preserves the daily record of interface module transmitting-receiving IGMP message.
Present invention also offers a kind of IGMP router analogy method, described analogy method comprises:
Step 1:pylibpcap assembly module structure IGMP message;
Step 2:pylibpcap assembly module drives interface module and tested IGMP equipment to carry out the mutual of IGMP message.
Alternatively, described analogy method also comprises: before step 1, arranges the parameter of IGMP message, and the interface module selected from interface module list is connected with pylibpcap assembly module.
Alternatively, in described analogy method: the parameter of IGMP message comprises: the version of IGMP message and the type of IGMP message.
Alternatively, in described analogy method: the version of IGMP message comprises v1, v2 and v3 tri-kinds of versions, the type of IGMP message comprises and adds group, from group and inquiry three types.
Alternatively, described analogy method also comprises: before step 1, arranges pylibpcap assembly module for monitoring the IGMP message of interface module transmitting-receiving, to preserve the daily record of interface module transmitting-receiving IGMP message.
The present invention owing to have employed technique scheme, thus has the following advantages:
1) use python language development, windows platform can be run directly in, do not need to build test environment;
2) drive existing network interface card to carry out the transmitting-receiving of IGMP protocol massages, do not rely on tester;
3) interface arranges IGMP protocol parameter, and ease for use is strong;
4) highly versatile, can cross-platformly use.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail:
Fig. 1 is the first embodiment schematic diagram of IGMP router analog machine of the present invention;
Fig. 2 is the first embodiment schematic diagram of IGMP router analogy method of the present invention;
Fig. 3 is the second embodiment schematic diagram of IGMP router analogy method of the present invention;
Fig. 4 is the schematic diagram of the monitoring IGMP message of IGMP router analogy method of the present invention.
Embodiment
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, below explanation and accompanying drawing are exemplary for the present invention, and should not be understood to limit the present invention.Following description describe numerous detail to understand the present invention to facilitate.But in some instances, details that is that know or routine is also undeclared, to meet the succinct requirement of specification.
In prior art, also there are some processing schemes for the IGMP agreement of test router or three-tier switch, but there is certain drawback in them, or cost is high, be difficult to flexible transformation, or poor universality, complexity is high, requires the professional skill that tester is higher.
In order to solve the problem, the invention provides a kind of IGMP router analog machine and analog analysing method, can test the IGMP agreement of the router of each manufacturer or three-tier switch, on the basis of existing equipment, use python language design, build a kind of windows of may operate at platform, adopt less hardware device and the test environment of each manufacturer IGMP equipment can be adapted to.
First, please refer to Fig. 1, Fig. 1 is the first embodiment schematic diagram of IGMP router analog machine of the present invention, and described analog machine comprises:
Pylibpcap assembly module, for constructing IGMP message, and drives interface module to receive and dispatch IGMP message;
Interface module, with pylibpcap assembly module and tested IGMP equipment connection, under the driving of pylibpcap assembly module, carries out the mutual of IGMP message with tested IGMP equipment.
Wherein, in described analog machine: also comprise user's input module, be connected respectively with pylibpcap assembly module and interface module, for the operation according to user, the interface module that reception user selects from interface module list is connected with pylibpcap assembly module, also for the operation according to user, the parameter of IGMP message is set; The parameter of IGMP message comprises: the version of IGMP message and the type of IGMP message; The version of IGMP message comprises v1, v2 and v3 tri-kinds of versions, and the type of IGMP message comprises and adds group, from group and inquiry three types; And pylibpcap assembly module can also be used for the IGMP message monitoring interface module transmitting-receiving, and preserve the daily record of interface module transmitting-receiving IGMP message.
Then, please refer to Fig. 2, Fig. 2 is the first embodiment schematic diagram of IGMP router analogy method of the present invention, and described analogy method comprises:
Step 1:pylibpcap assembly module structure IGMP message;
Step 2:pylibpcap assembly module drives interface module and tested IGMP equipment to carry out the mutual of IGMP message.
Continuation is the second embodiment schematic diagram of IGMP router analogy method of the present invention with reference to figure 3, Fig. 3, and described analogy method comprises:
The parameter of IGMP message is set;
The interface module selected from interface module list is connected with pylibpcap assembly module;
Pylibpcap assembly module is set for monitoring the IGMP message of interface module transmitting-receiving;
Pylibpcap assembly module structure IGMP message;
Pylibpcap assembly module drives interface module and tested IGMP equipment to carry out the mutual of IGMP message.
Finally, please refer to Fig. 4, Fig. 4 is the schematic diagram of the monitoring IGMP message of IGMP router analogy method of the present invention, monitors IGMP message and specifically comprises:
Start to monitor IGMP message;
Set up circulation monitor process;
Pylibpcap assembly module opens appointment network interface card;
Judge to specify network interface card whether successfully to open, open if unsuccessful, then report an error, if successfully opened, continue following steps;
Pylibpcap assembly module arranges filter, filters IGMP message;
Pylibpcap assembly module captures the IGMP message filtering and obtain.
Wherein, in described analogy method: the parameter of IGMP message comprises: the version of IGMP message and the type of IGMP message; The version of IGMP message comprises v1, v2 and v3 tri-kinds of versions, and the type of IGMP message comprises and adds group, from group and inquiry three types; While pylibpcap assembly module monitors the IGMP message of interface module transmitting-receiving, preserve the daily record of interface module transmitting-receiving IGMP message.
Those skilled in the art will recognize that; above-mentioned embodiment is exemplary; to enable those skilled in the art better understand content of the present invention; should not be understood as limiting the scope of the invention; as long as any equivalent change done according to disclosed spirit or modification, all fall into scope.

Claims (10)

1. an IGMP router analog machine, is characterized in that, described analog machine comprises:
Pylibpcap assembly module, for constructing IGMP message, and drives interface module to receive and dispatch IGMP message;
Interface module, with pylibpcap assembly module and tested IGMP equipment connection, under the driving of pylibpcap assembly module, carries out the mutual of IGMP message with tested IGMP equipment.
2. IGMP router analog machine according to claim 1, it is characterized in that, described analog machine also comprises:
User's input module, be connected respectively with pylibpcap assembly module and interface module, for the operation according to user, the interface module that reception user selects from interface module list is connected with pylibpcap assembly module, also for the operation according to user, the parameter of IGMP message is set.
3. IGMP router analog machine according to claim 2, is characterized in that:
The parameter of IGMP message comprises: the version of IGMP message and the type of IGMP message.
4. IGMP router analog machine according to claim 3, is characterized in that:
The version of IGMP message comprises v1, v2 and v3 tri-kinds of versions, and the type of IGMP message comprises and adds group, from group and inquiry three types.
5. IGMP router analog machine according to claim 3, is characterized in that:
Pylibpcap assembly module also for monitoring the IGMP message of interface module transmitting-receiving, and preserves the daily record of interface module transmitting-receiving IGMP message.
6. an IGMP router analogy method, is characterized in that, described analogy method comprises:
Step 1:pylibpcap assembly module structure IGMP message;
Step 2:pylibpcap assembly module drives interface module and tested IGMP equipment to carry out the mutual of IGMP message.
7. IGMP router analogy method according to claim 6, it is characterized in that, described analogy method also comprises:
Before step 1, the parameter of IGMP message is set, and the interface module selected from interface module list is connected with pylibpcap assembly module.
8. IGMP router analogy method according to claim 7, is characterized in that:
The parameter of IGMP message comprises: the version of IGMP message and the type of IGMP message.
9. IGMP router analogy method according to claim 8, is characterized in that:
The version of IGMP message comprises v1, v2 and v3 tri-kinds of versions, and the type of IGMP message comprises and adds group, from group and inquiry three types.
10. IGMP router analogy method according to claim 7, it is characterized in that, described analogy method also comprises:
Before step 1, pylibpcap assembly module is set for monitoring the IGMP message of interface module transmitting-receiving, to preserve the daily record of interface module transmitting-receiving IGMP message.
CN201510458719.4A 2015-07-30 2015-07-30 Simulation device and simulation method for IGMP (Internet Group Management Protocol) router Pending CN105007199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510458719.4A CN105007199A (en) 2015-07-30 2015-07-30 Simulation device and simulation method for IGMP (Internet Group Management Protocol) router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510458719.4A CN105007199A (en) 2015-07-30 2015-07-30 Simulation device and simulation method for IGMP (Internet Group Management Protocol) router

Publications (1)

Publication Number Publication Date
CN105007199A true CN105007199A (en) 2015-10-28

Family

ID=54379726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510458719.4A Pending CN105007199A (en) 2015-07-30 2015-07-30 Simulation device and simulation method for IGMP (Internet Group Management Protocol) router

Country Status (1)

Country Link
CN (1) CN105007199A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351156A (en) * 2018-04-03 2019-10-18 大唐移动通信设备有限公司 A kind of test method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114953A (en) * 2007-07-03 2008-01-30 中兴通讯股份有限公司 Automatized test method for broadband accessing server
US20110258600A1 (en) * 2010-04-19 2011-10-20 Microsoft Corporation Using a dsl for calling apis to test software
CN103067225A (en) * 2013-01-05 2013-04-24 上海斐讯数据通信技术有限公司 Test system
CN104468281A (en) * 2014-12-24 2015-03-25 上海斐讯数据通信技术有限公司 Routing information protocol simulator and routing information protocol communication test method thereof
CN104468279A (en) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 Routing protocol interaction testing method and tool

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114953A (en) * 2007-07-03 2008-01-30 中兴通讯股份有限公司 Automatized test method for broadband accessing server
US20110258600A1 (en) * 2010-04-19 2011-10-20 Microsoft Corporation Using a dsl for calling apis to test software
CN103067225A (en) * 2013-01-05 2013-04-24 上海斐讯数据通信技术有限公司 Test system
CN104468279A (en) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 Routing protocol interaction testing method and tool
CN104468281A (en) * 2014-12-24 2015-03-25 上海斐讯数据通信技术有限公司 Routing information protocol simulator and routing information protocol communication test method thereof

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110351156A (en) * 2018-04-03 2019-10-18 大唐移动通信设备有限公司 A kind of test method and device

Similar Documents

Publication Publication Date Title
CN103812726B (en) Automated testing method and device for data communication equipment
WO2017000424A1 (en) Protocol detection method and apparatus
CN105721253A (en) LTE FDD automatic test system and test method of LTE FDD automatic test system
CN104811353A (en) Network card performance testing environment automatic setting-up method based on Linux system
CN107908551A (en) Terminal software test method, device, terminal and computer-readable storage medium
TWI662284B (en) Automated microtester array, computer implemented method and computer program product
CN104483959A (en) Fault simulation and test system
CN111610393A (en) Automatic test system and method for multi-channel broadband microwave integrated component
CN113407393B (en) Chip verification method, terminal device, verification platform and storage medium
CN110321531A (en) Laboratory Instruments information management system
CN105204991A (en) Internet of things test method and device
CN103746879A (en) Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
CN103077114A (en) Automatic testing method based on communication protocol of temperature measuring device
CN111563042A (en) Wireless performance test system and method applied to Wi-Fi5 chip
CN102291274B (en) A kind of system and method realizing automatic adaptation of network testing instrument
CN105120483A (en) Method and system for automatically testing compatibility between intelligent card and mobile terminal
CN111970166B (en) Test method, device, equipment, system and computer readable storage medium
CN104468279A (en) Routing protocol interaction testing method and tool
CN109428783B (en) Network equipment testing method and device
CN108738059B (en) WIFI module testing method and device
CN111435143A (en) Universal testing device and method
CN115079675A (en) ECU testing device, testing method and testing system
CN109032956B (en) Interface testing method and device
CN107733743B (en) Method and system for realizing automatic test of Ethernet bus data
CN106598793B (en) Test system and test method based on BIOS serial port log data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151028

RJ01 Rejection of invention patent application after publication