Method and device for testing UPnP function and page rule checking

A technology of functional pages and rules, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problems of iptables rules that are difficult to master, difficult for testers, and time-consuming to test, so as to shorten the test cycle and simplify the test difficulty. , the effect of improving test efficiency

CN106921540AActive Publication Date: 2017-07-04王蕴卓
3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2017-07-04

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The present invention discloses a method and device for testing UPnP (Universal Plug and Play) function and page rule checking. The method comprises: building a test environment, and starting the UPnP function of a tested device; obtaining the IP address of a test PC, and starting a download application; connecting a tested device, and leading out an iptables rule; checking whether there is a UPnP rule or not; if there is the UPnP rule, checking whether the UPnP rule is correct or not; if the UPnP rule is correct, closing a protocol connecting with the tested device, opening the UPnP function page of the tested device, and checking whether the page displays the UPnP rule or not; if the page displays the UPnP rule, checking whether the UPnP rule is correct or not; if the UPnP rule is correct, closing the download application, connecting with the tested device, and leading out the iptables rule; checking whether the UPnP rule disappears or not; if the UPnP rule disappears, closing the protocol connecting with the tested device, entering the UPnP function page of the tested device, and checking whether the UPnP rule disappears or not, if the UPnP rule disappears, returning back test passing.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present invention relates to the field of testing, in particular to a method and device for testing UPnP functions and page rules based on iptables rules. Background technique

[0002] UPnP (Universal Plug and Play, Universal Plug and Play) is a collective term for a set of protocols. For an intranet computer, the UPnP function can enable the NAT (Network Address Translation) module of the gateway or router to do automatic port mapping, and map the monitored port from the gateway or router to the intranet computer. Therefore, in order to ensure The normal connection and operation of the network, the test of UPnP function is very important.

[0003] Iptables is an IP packet filtering system integrated in the Linux kernel. Iptables is used to set, maintain and check the IP packet filtering rules of the Linux kernel.

[0004] Due to the difficulty of UPnP function, iptables rules are difficult to grasp. At present, the test for UPnP function is rel...

Examples

Embodiment Construction

[0045] The implementation of the present invention is described below through specific examples and in conjunction with the accompanying drawings, and those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific examples, and various modifications and changes can be made to the details in this specification based on different viewpoints and applications without departing from the spirit of the present invention.

[0046] figure 1 It is a flow chart of steps of a method for testing UPnP functions and page rule checking in the present invention. Such as figure 1 Shown, the present invention a kind of method of testing UPnP function and page rule inspection, comprises the steps:

[0047] Step 101, build a test environment, enable the UPnP function of the DUT (Device Under Test, device under test), and...