CN104993971A - Method and system for testing MTU value in uplink network model of router - Google Patents

Method and system for testing MTU value in uplink network model of router Download PDF

Info

Publication number
CN104993971A
CN104993971A CN201510275758.0A CN201510275758A CN104993971A CN 104993971 A CN104993971 A CN 104993971A CN 201510275758 A CN201510275758 A CN 201510275758A CN 104993971 A CN104993971 A CN 104993971A
Authority
CN
China
Prior art keywords
mtu value
test
router
packet
mtu
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
CN201510275758.0A
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 CN201510275758.0A priority Critical patent/CN104993971A/en
Publication of CN104993971A publication Critical patent/CN104993971A/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/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks

Abstract

The invention provides a method and a system for testing an MTU value in an uplink network model of a router. The method comprises steps of configuring a way to surf the Internet of the router and configuring the to-be-tested MTU value in the router after the to-be-tested router is connected to the assigned server via a wide area network port; setting a test data packet according to the MTU value, wherein the data packet is the same as the MTU value in number, the packaging length of the data packet is selected from 1 to N in order, and N is the MTU value; and testing data packets with package lengths from 1 to N and outputting test results according preset loop test procedures, and determining whether the currently configured MTU value matches the required maximum MTU value according to the test results. The method is advantageous in that test for the MTU value can be automatically, comprehensively and simply performed; and problems in the prior art are effectively solved that test for the MTU value is quite tedious, test workload is heavy and coverage area of the test is not wide enough.

Description

The method and system of MTU value under a kind of test router uplink network pattern
Technical field
The present invention relates to communication technical field, particularly relate to communication router technical field of measurement and test used, be specially the method and system of MTU value under a kind of test router uplink network pattern.
Background technology
Above certain one deck that MTU (Maximum Transmission Unit, MTU) refers to a kind of communication protocol by maximum data packet size (in units of byte).This parameter of MTU usually relevant with communication interface (network interface unit, serial ports etc.).
When connecting less than ISP or can not using other Internet service, and correlation technique support staff advises changing MTU value; As use VPN, can consider when running into performance issue to change MTU; In order to improve some performance of network, employ the application program can optimizing MTU value, and which results in problem that is connective and other aspect of performances.
When a packets of information is sent to the less equipment of MTU value (router), some fritters will be broken down into.In theory, the MTU value on all computers, switch, router and all devices of internet that can have access to should be set to same size.But the MTU value that can not control on internet, and the best MTU value in fact in a local area network (LAN) depends on hardware, software, wave point etc.
The large I revising MTU in one case makes equipment work well, but may cause performance and connectivity problem in other respects; When the equipment with different MTU value intercoms mutually, packets of information will be divided into multiple can pass to the equipment with minimum MTU value; Windows XP Lookup protocol MTU, in other words, it makes MTU for various application combination property optimization.The article of Microsoft explains the reason using the broadband user of Windows XP can not be connected to ISP, once the network equipment has decomposed a packets of information, this packets of information keeps the state of decomposing before reaching a destination always.The process that MTU size is a repetition test is set: decline by maximum 1500, until Resolving probiems.Test is also like this, and decline from 1500 in trial, each MTU value needs to carry out testing authentication.Under router being given tacit consent to various network network access, MTU scope is: DHCP/Static:576 ~ 1500, PPPoE:576 ~ 1492, PPTP:576 ~ 1436, L2TP:576 ~ 1452.
In prior art, generally adopt manual test to the test of MTU, the shortcoming of manual test is loaded down with trivial details, consuming time, can only choose some representative MTU value and test, and reach comprehensively test and will consume a large amount of time and loaded down with trivial details.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide the method and system of MTU value under a kind of test router uplink network pattern, loaded down with trivial details to the test and comparison of MTU for solving in prior art, the large and test coverage not comprehensively problem of test job amount.
For achieving the above object and other relevant objects, the invention provides the method for MTU value under a kind of test router uplink network pattern, under described test router uplink network pattern, the method for MTU value comprises: after router to be measured is connected with given server by Wide Area Network interface, configures the network access of described router and in described router, configures the MTU value that will test; Arrange test packet according to described MTU value, wherein, the number of described packet is equal with described MTU value, and the package length of described packet is chosen successively in order in number range 1 ~ N, and wherein, N is MTU value; According to the loop tester preset, test packets length is 1 to packet length is successively the packet of N, and outputs test result.
As a preferred embodiment of the present invention, also comprise and judge whether the MTU value of current configuration mates with required maximum MTU value according to test result.
As a preferred embodiment of the present invention, described given server is Dynamic Host Configuration Protocol server, PPPOE server, L2TP server or PPTP server.
As a preferred embodiment of the present invention, the selection range of described MTU value is 576 ~ 1500.
As a preferred embodiment of the present invention, export the test result of corresponding data bag when testing each packet.
For achieving the above object, the present invention also provides the system of MTU value under a kind of test router uplink network pattern, under described test router uplink network pattern, the system of MTU value comprises: configuration of routers module, after router to be measured is connected with given server by Wide Area Network interface, for configuring the network access of described router and configure the MTU value that will test in described router; Packet arranges module, is connected with described configuration of routers module, for arranging test packet according to described MTU value, wherein, the number of described packet is equal with described MTU value, and the package length of described packet is chosen successively in order in number range 1 ~ N, wherein, N is MTU value; Loop test module, arranges module with described packet and is connected, be preset with loop tester, for the packet of to be 1 to packet length be according to the loop tester preset successively test packets length N, and outputs test result.
As a preferred embodiment of the present invention, also comprise and being connected with described loop test module, judge for the test result exported according to described loop test module the matching judgment the module whether MTU value of current configuration mates with required maximum MTU value.
As a preferred embodiment of the present invention, described given server is Dynamic Host Configuration Protocol server, PPPOE server, L2TP server or PPTP server.
As a preferred embodiment of the present invention, the selection range of described MTU value is 576 ~ 1500.
As a preferred embodiment of the present invention, described loop test module exports the test result of corresponding data bag when testing each packet.
As mentioned above, the method and system of MTU value under a kind of test router uplink network pattern of the present invention, have following beneficial effect:
1, the present invention by configuring the MTU value that will test in router, automatically the test of each MTU value can be traveled through, the packet of each packet length is tested successively comprehensively, and automatically export the test result of each packet of test, so the test of the present invention to MTU value has automation, comprehensively and simple advantage, efficiently solve in prior art loaded down with trivial details to the test and comparison of MTU value, the large and test coverage not comprehensively problem of test job amount.
2, the present invention is by under certain fixing network access, and whether the scope of the correct MTU value of full test comes into force, and effectively can judge whether the maximum MTU value under this pattern mates with the MTU of configuration.
Accompanying drawing explanation
Fig. 1 is shown as the schematic flow sheet of the method for MTU value under test router uplink network pattern of the present invention.
Fig. 2 is shown as the structural representation of the system of MTU value under test router uplink network pattern of the present invention.
Element numbers explanation
The system of MTU value under 1 test router uplink network pattern
11 configuration of routers modules
12 packets arrange module
13 loop test modules
14 matching judgment modules
S11 ~ S13 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
The object of the present invention is to provide the method and system of MTU value under a kind of test router uplink network pattern, for solving in prior art router product in various online pattern, as DHCP, PPPOE, L2TP, under PPTP, when different size MTU value, test and comparison is loaded down with trivial details, test job amount is large, and test coverage is problem not comprehensively.To principle and the execution mode of the method and system of MTU value under a kind of test router uplink network pattern of the present invention be elaborated below, and make those skilled in the art not need creative work can understand the method and system of MTU value under a kind of test router uplink network pattern of the present invention.
first embodiment
The present embodiment provides the method for MTU value under a kind of test router uplink network pattern, the method that the present embodiment relates to is based on router, by under certain fixing network access, whether the scope of the correct MTU value of full test comes into force, and whether the maximum MTU value under effectively judging this pattern mates with the MTU of setting.
Under test router uplink network pattern in the present embodiment, the method for MTU value travels through the test of each MTU value automatically, only need click after starting test, carry out automatic operating, and verify through comprehensive MTU value, automatic Output rusults after feedback test.
Particularly, as shown in Figure 1, in the present embodiment, under described test router uplink network pattern, the method for MTU value comprises the following steps.
Step S11, after router to be measured is connected with given server by Wide Area Network interface (i.e. WAN mouth), configures the network access of described router and in described router, configures the MTU value that will test.
Wherein, in the present embodiment, described given server is Dynamic Host Configuration Protocol server, PPPOE server, L2TP server or PPTP server, and namely the network access of router to be measured corresponds to DHCP mode, PPPOE mode, L2TP mode or PPTP mode.
Wherein, in the present embodiment, the selection range of described MTU value is 576 ~ 1500.
Particularly, TCL language compilation can be used for configuring the script of MTU value, the MTU value of automatic configuration router product, such as MTU value is 1518, and the procedure script example of the MTU value of automatic configuration router product is as follows:
Step S12, arranges test packet according to described MTU value, and wherein, the number of described packet is equal with described MTU value, and the package length of described packet is chosen successively in order in number range 1 ~ N, and wherein, N is MTU value.
Step S13, according to the loop tester preset, the packet of test packets length to be 1 to packet length be N successively, and output test result.
Particularly, in the present embodiment, the test result of corresponding data bag is exported when testing each packet.
Automatically, under configuring the condition of certain MTU value (being such as 1518), comprehensively test.Comprehensively to be meant to a coated lid of data, from 1 byte to all packet lengths of 1518 bytes, the package of totally 1518 kinds of length, after router to be measured, carry out the validation test of burst.The script example carrying out comprehensively test is as follows:
As can be seen here, the present embodiment by configuring the MTU value that will test in router, automatically the test of each MTU value can be traveled through, the packet of each packet length is tested successively comprehensively, and automatically export the test result of each packet of test, so the test of the present embodiment to MTU value has automation, comprehensively and simple advantage, efficiently solves in prior art loaded down with trivial details to the test and comparison of MTU value, the large and test coverage not comprehensively problem of test job amount.
In addition, in the present embodiment, can also judge whether the MTU value of current configuration mates with required maximum MTU value according to test result.So the method for the present embodiment is by under certain fixing network access, the scope of the correct MTU value of full test whether can comes into force, and effectively can judge whether the maximum MTU value under this pattern mates with the MTU of configuration.
It should be noted that, the script method of the MTU of automatic configuration router product and the script method of full test MTU, these two kinds of methods can use other computer languages to write, and are not limited to TCL language.
second embodiment
For realizing the method for MTU value under above-mentioned test router uplink network pattern, the present embodiment correspondence provides the system of MTU value under a kind of test router uplink network pattern, the system that the present embodiment relates to is based on router, by under certain fixing network access, whether the scope of the correct MTU value of full test comes into force, and whether the maximum MTU value under effectively judging this pattern mates with the MTU of setting.
Under test router uplink network pattern in the present embodiment, the method for MTU value travels through the test of each MTU value automatically, only need click after starting test, carry out automatic operating, and verify through comprehensive MTU value, automatic Output rusults after feedback test.
Particularly, as shown in Figure 2, in the present embodiment, under test router uplink network pattern, the system 1 of MTU value comprises: configuration of routers module 11, packet arrange module 12, loop test module 13 and matching judgment module 14.
Configuration of routers module 11 at router to be measured by after Wide Area Network interface (i.e. WAN mouth) is connected with given server, for configuring the network access of described router and the MTU value that configuration will be tested in described router.
Wherein, in the present embodiment, described given server is Dynamic Host Configuration Protocol server, PPPOE server, L2TP server or PPTP server, and namely the network access of router to be measured corresponds to DHCP mode, PPPOE mode, L2TP mode or PPTP mode.
Wherein, in the present embodiment, the selection range of described MTU value is 576 ~ 1500.
Particularly, TCL language compilation can be used for configuring the script of MTU value, the MTU value of automatic configuration router product, such as MTU value is 1518, and the procedure script example of the MTU value of automatic configuration router product is as follows:
Packet arranges module 12 and is connected with described configuration of routers module 11, for arranging test packet according to described MTU value, wherein, the number of described packet is equal with described MTU value, the package length of described packet is chosen successively in order in number range 1 ~ N, and wherein, N is MTU value.
Loop test module 13 and described packet arrange module 12 and are connected, and are preset with loop tester, for the packet of to be 1 to packet length be according to the loop tester preset successively test packets length N, and output test result.Particularly, described loop test module 13 exports the test result of corresponding data bag when testing each packet.
Automatically, under configuring the condition of certain MTU value (being such as 1518), comprehensively test.Comprehensively to be meant to a coated lid of data, from 1 byte to all packet lengths of 1518 bytes, the package of totally 1518 kinds of length, after router to be measured, carry out the validation test of burst.The script example carrying out comprehensively test is as follows:
As can be seen here, the present embodiment by configuring the MTU value that will test in router, automatically the test of each MTU value can be traveled through, the packet of each packet length is tested successively comprehensively, and automatically export the test result of each packet of test, so the test of the present embodiment to MTU value has automation, comprehensively and simple advantage, efficiently solves in prior art loaded down with trivial details to the test and comparison of MTU value, the large and test coverage not comprehensively problem of test job amount.
Matching judgment module 14 is connected with described loop test module 13, judges whether the MTU value of current configuration mates with required maximum MTU value for the test result exported according to described loop test module 13.
So the method for the present embodiment is by under certain fixing network access, the scope of the correct MTU value of full test whether can comes into force, and effectively can judge whether the maximum MTU value under this pattern mates with the MTU of configuration.
It should be noted that, the script method of the MTU of automatic configuration router product and the script method of full test MTU, these two kinds of methods can use other computer languages to write, and are not limited to TCL language.
In sum, the present invention by configuring the MTU value that will test in router, automatically the test of each MTU value can be traveled through, the packet of each packet length is tested successively comprehensively, and automatically export the test result of each packet of test, so the test of the present invention to MTU value has automation, comprehensively and simple advantage, efficiently solve in prior art loaded down with trivial details to the test and comparison of MTU value, large and the test coverage not comprehensively problem of test job amount, and the present invention is by under certain fixing network access, whether the scope of the correct MTU value of full test comes into force, and effectively can judge whether the maximum MTU value under this pattern mates with the MTU of configuration.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (10)

1. the method for MTU value under test router uplink network pattern, is characterized in that: under described test router uplink network pattern, the method for MTU value comprises:
After router to be measured is connected with given server by Wide Area Network interface, configures the network access of described router and in described router, configure the MTU value that will test;
Arrange test packet according to described MTU value, wherein, the number of described packet is equal with described MTU value, and the package length of described packet is chosen successively in order in number range 1 ~ N, and wherein, N is MTU value;
According to the loop tester preset, test packets length is 1 to packet length is successively the packet of N, and outputs test result.
2. the method for MTU value under test router uplink network pattern according to claim 1, is characterized in that: also comprise and judge whether the MTU value of current configuration mates with required maximum MTU value according to test result.
3. the method for MTU value under test router uplink network pattern according to claim 1, is characterized in that: described given server is Dynamic Host Configuration Protocol server, PPPOE server, L2TP server or PPTP server.
4. the method for MTU value under test router uplink network pattern according to claim 1, is characterized in that: the selection range of described MTU value is 576 ~ 1500.
5. the method for MTU value under test router uplink network pattern according to claim 1, is characterized in that: the test result exporting corresponding data bag when testing each packet.
6. the system of MTU value under test router uplink network pattern, is characterized in that: under described test router uplink network pattern, the system of MTU value comprises:
Configuration of routers module, after router to be measured is connected with given server by Wide Area Network interface, for configuring the network access of described router and configure the MTU value that will test in described router;
Packet arranges module, is connected with described configuration of routers module, for arranging test packet according to described MTU value, wherein, the number of described packet is equal with described MTU value, and the package length of described packet is chosen successively in order in number range 1 ~ N, wherein, N is MTU value;
Loop test module, arranges module with described packet and is connected, be preset with loop tester, for the packet of to be 1 to packet length be according to the loop tester preset successively test packets length N, and outputs test result.
7. the system of MTU value under test router uplink network pattern according to claim 6, it is characterized in that: also comprise and being connected with described loop test module, judge for the test result exported according to described loop test module the matching judgment the module whether MTU value of current configuration mates with required maximum MTU value.
8. the system of MTU value under test router uplink network pattern according to claim 6, is characterized in that: described given server is Dynamic Host Configuration Protocol server, PPPOE server, L2TP server or PPTP server.
9. the system of MTU value under test router uplink network pattern according to claim 6, is characterized in that: the selection range of described MTU value is 576 ~ 1500.
10. the system of MTU value under test router uplink network pattern according to claim 6, is characterized in that: described loop test module exports the test result of corresponding data bag when testing each packet.
CN201510275758.0A 2015-05-27 2015-05-27 Method and system for testing MTU value in uplink network model of router Pending CN104993971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510275758.0A CN104993971A (en) 2015-05-27 2015-05-27 Method and system for testing MTU value in uplink network model of router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510275758.0A CN104993971A (en) 2015-05-27 2015-05-27 Method and system for testing MTU value in uplink network model of router

Publications (1)

Publication Number Publication Date
CN104993971A true CN104993971A (en) 2015-10-21

Family

ID=54305727

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510275758.0A Pending CN104993971A (en) 2015-05-27 2015-05-27 Method and system for testing MTU value in uplink network model of router

Country Status (1)

Country Link
CN (1) CN104993971A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968726A (en) * 2017-11-29 2018-04-27 重庆小目科技有限责任公司 A kind of device network management method for electric system
CN109510740A (en) * 2019-01-02 2019-03-22 郑州云海信息技术有限公司 A kind of method, apparatus, terminal and the storage medium of automatic monitoring network interface card MTU value

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100322249A1 (en) * 2009-06-23 2010-12-23 Juniper Networks, Inc. Discovering path maximum transmission unit size
CN102036304A (en) * 2009-09-28 2011-04-27 华为技术有限公司 Method for providing maximum transmission unit length for terminal and packet switch gateway
CN102420713A (en) * 2010-09-28 2012-04-18 大唐移动通信设备有限公司 Test data packet packaging method and equipment
CN103647724A (en) * 2013-12-30 2014-03-19 大唐移动通信设备有限公司 Adaptation method and device of maximum transmission unit (MTU)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100322249A1 (en) * 2009-06-23 2010-12-23 Juniper Networks, Inc. Discovering path maximum transmission unit size
CN102036304A (en) * 2009-09-28 2011-04-27 华为技术有限公司 Method for providing maximum transmission unit length for terminal and packet switch gateway
CN102420713A (en) * 2010-09-28 2012-04-18 大唐移动通信设备有限公司 Test data packet packaging method and equipment
CN103647724A (en) * 2013-12-30 2014-03-19 大唐移动通信设备有限公司 Adaptation method and device of maximum transmission unit (MTU)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "路由器mtu值怎么设置", 《百度经验》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968726A (en) * 2017-11-29 2018-04-27 重庆小目科技有限责任公司 A kind of device network management method for electric system
CN109510740A (en) * 2019-01-02 2019-03-22 郑州云海信息技术有限公司 A kind of method, apparatus, terminal and the storage medium of automatic monitoring network interface card MTU value

Similar Documents

Publication Publication Date Title
US10733088B1 (en) Methods, systems, and computer readable media for testing a network node or a related application programming interface using source code metadata
US10320651B2 (en) Hardware architecture for universal testing system: wireless router test
CN110719212A (en) Method, system, and computer readable medium for testing network nodes using source code
CN106326088B (en) Method and device for realizing construction of test object and device for realizing service configuration test
CN108449236B (en) Router function test system
CN103546344A (en) Wireless router performance testing system and method
US20140351801A1 (en) Formal verification apparatus and method for software-defined networking
CN112134759B (en) Train Ethernet test system
CN103716209A (en) Tunnel concurrent testing system and device
CN111142878A (en) SDN operation and maintenance method, device, equipment and readable storage medium
CN106294155B (en) A kind of distribution I/O Simulation Controls test method, system and simulation computer
CN110764036B (en) Intelligent distribution transformer terminal test method and system
CN110677322B (en) Python language-based industrial control safety equipment automatic test system and method
CN106126854B (en) A kind of software and hardware cooperating simulation trade device and analogue system
TWI648962B (en) Inspection device and method for multiple powered devices in a power over ethernet system
Kim et al. Formal verification of SDN-based firewalls by using TLA+
CN104993971A (en) Method and system for testing MTU value in uplink network model of router
CN106506223A (en) A kind of method that simulation large number quipments test webmaster upgrade function
CN102750143A (en) Digital signal processing (DSP) developing method based on matrix laboratory (MATLAB) component object model (COM) component calling
CN112698640A (en) ECU upgrading test system
CN104852921A (en) Test system and method for protecting open port from attacking for network equipment
US10361945B2 (en) System and method to reconcile cabling test results with cabling test configurations
CN102571474A (en) Virtualized Radius testing system and method
CN111131267A (en) Ethernet self-adaption method, device and system based on FPGA
CN105656718A (en) Stable automatic testing method for switch

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20151021