CN1514586B - Testing method of data communication equipment of imitating multiuser, multi connection - Google Patents

Testing method of data communication equipment of imitating multiuser, multi connection Download PDF

Info

Publication number
CN1514586B
CN1514586B CN021399239A CN02139923A CN1514586B CN 1514586 B CN1514586 B CN 1514586B CN 021399239 A CN021399239 A CN 021399239A CN 02139923 A CN02139923 A CN 02139923A CN 1514586 B CN1514586 B CN 1514586B
Authority
CN
China
Prior art keywords
tcp
address
message
client
data communications
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.)
Expired - Lifetime
Application number
CN021399239A
Other languages
Chinese (zh)
Other versions
CN1514586A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN021399239A priority Critical patent/CN1514586B/en
Publication of CN1514586A publication Critical patent/CN1514586A/en
Application granted granted Critical
Publication of CN1514586B publication Critical patent/CN1514586B/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

The system includes computers at client ends, computers at server ends, communication network built and network cards installed at client and server ends for communication connection. The method includes following steps: testing network initialization; using ARP request to parse MAC address of gateway device; bulding up TCP connection between client end and server end; sending TCP data message to server end; the server end answering back the said TCP data message to carry out testing data communication devices; finishing testing, based on TCP connection built, sanding message to serever end to disconnect TCP connection. In the invention, testing can be carried out fully when number of users and number of connections for a device to be tested are close to limit or exceed system limit. The invention possesses features of low testing cost, easy of implementation, and expansible quantity of device.

Description

Simulation multi-user, multi-link data communications equipment method of testing
Technical field
The present invention relates to data communications equipment, particularly relate to a kind of in the laboratory simulates real real data network communication environment, multi-user, multi-link data communications equipment test macro and method.
Background technology
When the data communication apparatus is tested, the method that the tester adopts usually is that a computer or several computers are connected, carry out transfer of data between each computer, disconnect connection, so circulate repeatedly, by the test of relatively finishing data communications equipment to the transmission data.But, use this method, if want to simulate multi-user's situation, just need multiple computers, and in the laboratory, because the restriction of condition, the user that the method for this routine will be simulated is subjected to the restriction of hardware condition, can operate as normal as surpass 100 o'clock systems at number of users, number of users surpasses 1000 o'clock system works what states, more impossiblely do abundant test and can or can not collapse when number average surpasses system limits with being connected at number of users, performance during the multi-user is as how, because it is unpractical testing in the laboratory with 1000 or more computer simultaneously, and the direct result of not doing limit test is, equipment is when approaching the limit or surpassing system limits, cause system crash probably, consequence and economic loss are self-evident;
On the other hand, some tester manufacturer has also made some special-purpose testers, can send specific message, but the situation of these instrument simulations is different with real network environment.When a real user works on network, being a different set of message organically combines by the linking between specific transmitting-receiving order and the correct message, finish the task that a user carries out, and the segment of existing tester in can only simulation process, can not simulate the whole operation process that the user carries out, so be incomplete the test of equipment under test.And these special-purpose testers, cost an arm and a leg, usually all at 1,000,000 yuan to millions of units.
Summary of the invention
The objective of the invention is with desktop computer and network interface card, simulate multi-user and the multi-link truth of on network, moving simultaneously, the whole process that the multi-user works on network is simulated, thus to tested equipment number of users and linking number near the limit or the situation when surpassing system limits test fully.
In order to achieve the above object, the invention provides a kind of multi-user of simulation, multi-link data communications equipment test macro, it comprises as the computer of client with as the computer of server end, tested data communications equipment, and the communication network of being formed, and the network interface card that communication connects that is used for that is installed in described client and server end.
The present invention also provides a kind of multi-user of simulation, multi-link data communications equipment method of testing, and this method may further comprise the steps:
(1) test network initialization;
(2) utilize the ARP request message, be resolved to the MAC Address of data communications equipment;
(3) foundation is connected with the TCP of service end;
(4) client sends the tcp data message to service end;
(5) service end is responded described tcp data message, carries out the test of data communications equipment;
(6) if the unit maximum number of connections that the TCP linking number that the current source MAC of customer end adopted and source IP address are set up is stipulated less than test macro, then keeping under the constant situation of source IP address, purpose IP address, change source tcp port number and purpose tcp port number in the TCP insulation, and repeating step (3) is to step (5);
(7) if user's network interface card number of client simulation less than system's designated value, then changes source MAC and source IP address, circulation execution in step (2) is to step (5); And
(8) test finishes, and connects according to the TCP that has set up, and client sends to service end and removes TCP connection message;
Adopt method of testing provided by the invention that the whole process that the multi-user works on network is simulated, thereby to tested equipment number of users and linking number near the limit or the situation when surpassing system limits test fully, only need cheap desktop computer and network interface card to get final product, testing cost is low, it is convenient to realize, and the quantity that can expand equipment under test at any time, easily.
Be elaborated with reference to accompanying drawing below in conjunction with embodiment, so that purpose of the present invention, feature and advantage are had more deep understanding.
Description of drawings
Fig. 1 shows test environment figure of the present invention.
Fig. 2 shows the detail flowchart that the present invention realizes.
Fig. 3 shows the data link layer message format that the present invention can support.
Embodiment
Fig. 1 is a test system environment figure of the present invention, and at first this test macro needs two computers respectively as client computer 101 and the testing server 103 tested.On the test client computer, will produce multi-user and multi-link, and testing server is used for the connection request of client computer is responded; When carrying out the test of data communications equipment 102 (hereinafter to be referred as equipment), client-server is not limited to two computers, simultaneously many computers can be arranged, constitute client-server in twos, as long as the initial configuration parameter of correct Configure Client does not cause the situation of configuration parameter conflict to occur getting final product.This data communications equipment 102 refers to can be as the gateway devices such as router of gateway use.Network interface card on client-server requires to support promiscuous mode.For example, according to the difference of tested equipment interface, the network interface card of mentioning among the present invention can be 10M network interface card, 100M network interface card or PCI-Express.
Fig. 2 is a detail flowchart of the present invention, has comprised the detailed process of technical solution of the present invention.
Below in conjunction with Fig. 2 implementation procedure is described in detail:
Many functions that data communications equipment provides as ARP, TCP, NAT, VLAN, routing function etc., all can be listed clear and definite performance index, and these indexs have determined the network size that this communication apparatus can be built.Usually the index that provides comprises the maximum TCP linking numbers that can support how many Ethernets to insert user, single user permission at most, total TCP linking number that equipment is supported, the data link layer frame format of support etc., and the present invention also needs test various parameters recited above.
For the client of test macro, details are as follows for its operating process:
The running parameter of configuration testing system at first, step 201c.Parameter type specifically comprises following content:
(1) configuration ethernet frame type,
Among the present invention, can support three kinds not with the data link layer frame format (referring to Fig. 3) of VLAN mark:
(a) Ethernet II frame format;
(b) has the IEEE802.3 ethernet frame format of 802.2 logic link controls;
(c) IEEE802.3 subnetwork access protocol (Ethernet SNAP);
If tested equipment supported vlans function, then can construct the data link layer frame format that has the VLAN mark, can support to have above-mentioned three kinds of frame formats of VLAN mark, can send the frame format that has the VLAN mark by common network interface card like this, and not need communication apparatus with other.
(2) single user's of the online machine quantity Count of emulation and emulation maximum TCP linking number MaxNum is wanted in configuration, and so, the maximum number of connections that test macro of the present invention can be simulated is the product of Count and MaxNum;
(3) configuration network interface card initial MAC Address sMAC (uchar sMAC[6], sMAC[6] expression 6 octets byte arrays, attention: sMAC increases progressively the new MAC Address of generation can not be identical with other any MAC Address of equipment under test, otherwise can cause the unusual of tested equipment); If the frame type supported vlans function of configuration then disposes VLANID, in all following frame messages make up, need frame by this VLANID structure VLAN, message format is seen Fig. 3, below narrates part omitted;
(4) configuration network interface card start ip address sIP (uchar sIP[4], sIP[4] expression 4 octets byte arrays, the Port IP address that links to each other with equipment under test should be at the same network segment, and sIP[3] greater than last byte of Port IP address, avoid in tested system the IP address that duplicates);
(5) dispose the gateway ip address GWIP of this network interface card correspondence;
(6) the IP address SvrIP of the server that will visit of configuration;
(7) the initiating terminal slogan sPort and the destination slogan dPort of configuration TCP connection;
(8) after configuration TCP connection is set up successfully, the tcp data message number DataNum of transmission;
(9) if configuration timeout interval Timeout at Timeout then, does not capture the appointment message that returns, and then abandons catching of this message.
The working method of network interface card is arranged on promiscuous mode, step 202c;
Then, by the parameter of configuration, structure ARP request message is to resolve the MAC Address of the gateway device that disposes, step 203c; Source MAC wherein and source IP address are all inequality in each ARP request message, and the two combines unique user that determines.If the port supported vlans function of equipment under test is then constructed all ethernet frame formats according to the data link layer frame format that has the VLAN mark in the accompanying drawing 3.
Then, send the ARP request message, and the contact conditions of ARP back message using is set, to capture the back message using of the ARP request message that sends, step 204c; When the contact conditions of network interface card frame is set, guarantee that this condition can capture unique correct arp response message, so just can obtain the MAC Address of the corresponding port of gateway device;
Under the situation about remaining unchanged in the IP address of the test computer (hereinafter to be referred as testing server) of source MAC and source IP address, the gateway device MAC Address that is resolved to, another emulating server, set up TCP and connect message, connect the three-way handshake mechanism of setting up according to TCP, pass through equipment under test, send correct TCP message to testing server, connect to set up TCP, simultaneously after each TCP message sends, the contact conditions of ethernet frame is set, and catch the ethernet frame that contains correct TCP back message using, step 205c;
After testing server is received the TCP message, connect the requirement of setting up according to TCP and respond correct message, the TCP successful connection is set up, and sends the tcp data message of specifying number; The filtercondition of corresponding TCP back message using is caught in setting, and catches back message using, step 206c;
If the unit maximum number of connections that the TCP linking number that adopts current source MAC and source IP address to set up is stipulated less than test macro, then keeping under the constant situation of source IP address, purpose IP address, change source tcp port number and purpose tcp port number in the TCP head, step 207c; Note, in test macro of the present invention and method, the tcp port number of forbidding known protocol, the port numbers 21 that connect as FTP etc. can be carried out special processing to these messages because the device network that has is professional,
Step 205c above repeating promptly can finish the simulation of many connections on the user to step 207c;
If user's network interface card number of simulation then changes source MAC and source IP address among the step 203c, step 208c less than system's designated value;
Step 203c above repeating is to 208c.Like this from the angle of gateway device, just there are many TCP to be connected again on many computers and each computer to visit testing server simultaneously, thereby play simulation multi-user and multi-link function as having; Therefore equipment under test promptly can reach the purpose of test at number of users linking numbers at most and the limiting case when surpassing maximum number of users linking number;
Test finishes, and connects according to the TCP that has set up, and sends out to the Server end and removes TCP connection message, step 209c.
For the server end of test macro, details are as follows for its operating process:
At first carry out the initialization of test macro, and the working method of network interface card is set to promiscuous mode, step 201s; Then according to receive from the TCP connection request message of setting up among the client step 205c, according to the three-way handshake mechanism that TCP connect to set up, return correct TCP response message to client, with client between set up TCP and be connected step 202s; Server end is responded the tcp data message of the client of receiving, step 203s; Connect message if receive the dismounting TCP from client, then service end is responded the TCP connection from client of receiving and is removed message, removes at server end to be connected step 204s with the TCP of client.
Figure 3 shows that the present invention the data link layer message format that can support, comprising not with the data link layer frame format of VLAN mark and the data link layer frame format of band VLAN mark.
The above; it only is better embodiment of the present invention; should not be considered to be limitation of the scope of the invention; and the claim scope that the present invention advocated is not limited thereto; all personages who is familiar with this field skill; according to the disclosed technology contents of the present invention, can think easily and equivalence change, all should fall into protection scope of the present invention.

Claims (6)

1. simulate multi-user, multi-link data communications equipment method of testing for one kind, may further comprise the steps:
(1) test network initialization;
(2) utilize the ARP request message, be resolved to the MAC Address of data communications equipment;
(3) setting up client is connected with the TCP of service end;
(4) client sends the tcp data message to service end;
(5) service end is responded described tcp data message, carries out the test of data communications equipment;
(6) if the unit maximum number of connections that the TCP linking number that the current source MAC of customer end adopted and source IP address are set up is stipulated less than test macro, then keeping under the constant situation of source IP address, purpose IP address, change source tcp port number and purpose tcp port number in the TCP message, and repeating step (3) is to step (5);
(7) if user's network interface card number of client simulation less than system's designated value, then changes source MAC and source IP address, circulation execution in step (2) is to step (5); And
(8) test finishes, and connects according to the TCP that has set up, and client sends to service end and removes TCP connection message.
2. simulation as claimed in claim 1 multi-user, multi-link data communications equipment method of testing, wherein said test network initialization comprise configuration client running parameter and the working method of client, service end network interface card are arranged on promiscuous mode.
3. simulation multi-user as claimed in claim 2, multi-link data communications equipment method of testing, running parameter in the wherein said configuration client running parameter step comprises ethernet frame type, want single user's of the online machine quantity Count of emulation and emulation maximum TCP linking number, the initial MAC Address of network interface card, the start ip address of network interface card, the gateway ip address GWIP of this network interface card correspondence, the IP address of the service end of visiting, initiating terminal slogan and destination slogan that configuration TCP connects, TCP connects the tcp data message number that sends when setting up successfully, timeout interval.
4. simulation as claimed in claim 1 multi-user, multi-link data communications equipment method of testing, the wherein said ARP request message that utilizes, be resolved to the step of the MAC Address of data communications equipment, also comprise parameter by configuration, structure ARP request message, and the condition of catching corresponding arp response message is set, and send the ARP request message, be resolved to the MAC Address of data communications equipment.
5. simulation as claimed in claim 1 multi-user, multi-link data communications equipment method of testing, the wherein said TCP Connection Step of setting up client and service end also is included under the situation that the IP address of the source MAC of client simulation and source IP address, the data communications equipment MAC Address that is resolved to, service end remains unchanged, structure is set up TCP and is connected message, connect the three-way handshake mechanism of setting up according to TCP, by tested data communications equipment, send correct TCP message to described service end, connect to set up TCP.
6. simulation as claimed in claim 1 multi-user, multi-link data communications equipment method of testing, the unit maximum number of connections of wherein said test macro regulation is the quantity Count of online computer and the product of the single user's who simulated maximum TCP linking number MaxNum.
CN021399239A 2002-12-31 2002-12-31 Testing method of data communication equipment of imitating multiuser, multi connection Expired - Lifetime CN1514586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN021399239A CN1514586B (en) 2002-12-31 2002-12-31 Testing method of data communication equipment of imitating multiuser, multi connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN021399239A CN1514586B (en) 2002-12-31 2002-12-31 Testing method of data communication equipment of imitating multiuser, multi connection

Publications (2)

Publication Number Publication Date
CN1514586A CN1514586A (en) 2004-07-21
CN1514586B true CN1514586B (en) 2011-05-11

Family

ID=34231946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN021399239A Expired - Lifetime CN1514586B (en) 2002-12-31 2002-12-31 Testing method of data communication equipment of imitating multiuser, multi connection

Country Status (1)

Country Link
CN (1) CN1514586B (en)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100356737C (en) * 2004-12-02 2007-12-19 华为技术有限公司 System and method for detecting large volume of medium service
CN100504410C (en) * 2005-01-14 2009-06-24 全汉企业股份有限公司 Three-layered automatic test system for safety regulations in master slaver mode
CN100361462C (en) * 2005-03-22 2008-01-09 华为技术有限公司 Method for testing transmission control protocol client
CN1327658C (en) * 2005-08-09 2007-07-18 华为技术有限公司 Detection method of network communication state
CN100382518C (en) * 2005-10-14 2008-04-16 北京启明星辰信息技术有限公司 Computer network data calogue ultimate measuring method and system
US8040835B2 (en) * 2006-02-17 2011-10-18 Cisco Technology, Inc. Troubleshooting link and protocol in a wireless network
CN101035346B (en) * 2006-03-06 2010-09-08 中兴通讯股份有限公司 Method and device for large traffic simulation test of packet data service
EP2009828B1 (en) * 2007-06-28 2016-01-27 Alcatel Lucent Method for providing unequal error protection to data packets in a burst transmission system
CN101388800B (en) * 2007-09-12 2011-03-30 北京百度网讯科技有限公司 Method, device and system for pressed test to network performance of server
CN101141477B (en) * 2007-10-19 2010-11-10 哈尔滨工业大学 Ethernet based teaching experiment device of TCP/IP communication process
CN101227343B (en) * 2008-02-01 2011-12-07 中兴通讯股份有限公司 Method and device for testing TCPv6 and UDPv6
CN101272291B (en) * 2008-04-29 2012-05-30 北京星网锐捷网络技术有限公司 Network appliance testing method and system
CN101272293B (en) * 2008-05-21 2012-02-29 北京星网锐捷网络技术有限公司 Network testing method and device
CN101478458B (en) * 2009-01-20 2013-04-17 工业和信息化部电信传输研究所 SIP protocol security test method
CN102076001B (en) * 2009-11-25 2013-06-12 中国移动通信集团广西有限公司 Method, system and equipment for testing service and obtaining terminal communication event information
CN101729312B (en) * 2009-12-03 2012-12-19 中兴通讯股份有限公司 Method and system for detecting a link based on ARP protocol
CN102256292B (en) * 2011-08-03 2013-08-07 中国人民解放军91655部队 Heterogeneous network simulation message service end-to-end testing method and system
CN103490945B (en) * 2013-08-09 2019-12-20 上海斐讯数据通信技术有限公司 Method for testing maximum telnet user number
CN107809377B (en) * 2016-09-09 2021-06-08 卡斯柯信号有限公司 Device and method for realizing universal gateway
CN111697997B (en) * 2020-05-29 2021-08-17 国网河北省电力有限公司电力科学研究院 HPLC module rapid detection device and method based on copy controller
CN113285851A (en) * 2021-04-23 2021-08-20 国网上海能源互联网研究院有限公司 Method and system suitable for testing network connection performance of power distribution safety equipment
CN114205274A (en) * 2021-11-02 2022-03-18 北京百度网讯科技有限公司 Network equipment testing method and device
CN114500351A (en) * 2022-02-09 2022-05-13 北京网测科技有限公司 Network performance test method, device, equipment and storage medium
CN115022215B (en) * 2022-05-25 2023-06-02 四川九州电子科技股份有限公司 Method and system for testing MAC address of optical network unit
CN115174433A (en) * 2022-07-07 2022-10-11 东软睿驰汽车技术(大连)有限公司 Simulation method, simulation device and simulation system for multi-terminal access gateway

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000174795A (en) * 1998-12-03 2000-06-23 Nippon Telegr & Teleph Corp <Ntt> Router testing method and device therefor
US6243832B1 (en) * 1998-08-12 2001-06-05 Bell Atlantic Network Services, Inc. Network access server testing system and methodology
WO2002087276A2 (en) * 2001-04-19 2002-10-31 Koninklijke Philips Electronics N.V. Method and device for robust real-time estimation of bottleneck bandwidth

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6243832B1 (en) * 1998-08-12 2001-06-05 Bell Atlantic Network Services, Inc. Network access server testing system and methodology
JP2000174795A (en) * 1998-12-03 2000-06-23 Nippon Telegr & Teleph Corp <Ntt> Router testing method and device therefor
WO2002087276A2 (en) * 2001-04-19 2002-10-31 Koninklijke Philips Electronics N.V. Method and device for robust real-time estimation of bottleneck bandwidth

Also Published As

Publication number Publication date
CN1514586A (en) 2004-07-21

Similar Documents

Publication Publication Date Title
CN1514586B (en) Testing method of data communication equipment of imitating multiuser, multi connection
US7440415B2 (en) Virtual network addresses
JP5585664B2 (en) Network system and route control method
US8073966B2 (en) Virtual interface
TWI244295B (en) Method and system for simulating multiple independent client devices in a wired or wireless network
Macfarlane Network routing basics: Understanding IP routing in Cisco systems
CN1323520C (en) Broad-band insertion service apparatus dialing testing method
EP2597842A1 (en) Providing network capability over a converged interconnect fabric
CN106534178B (en) System and method for realizing RapidIO network universal socket
JP3001440B2 (en) Virtual LAN method
CN115277407B (en) Internet access configuration processing method and device, electronic equipment and storage medium
US20090154464A1 (en) Method and system for simulating network address translation
KR20040066924A (en) Architecture for emulating an ethernet network interface card
JP5682846B2 (en) Network system, packet processing method, and storage medium
Chiu et al. Design the dns-like smart switch for heterogeneous network base on sdn architecture
JP3667265B2 (en) Communication protocol test equipment
CN114124714A (en) Multi-level network deployment method, device, equipment and storage medium
Wang et al. A SDN-based heterogeneous networking scheme for profinet and Modbus Networks
US10003517B2 (en) Wireless communication test system arrangement
CN214256331U (en) Serial server for remotely configuring network equipment
CN117539812A (en) Server and data transmission method
CN116938878A (en) Address allocation method, cloud control console, internet of things terminal and special gateway
CN116743889A (en) Ethernet link message processing method and system based on protocol test system
CN116389555A (en) Method, device, equipment and medium for providing service for terminal in local area network
CN117295048A (en) Method, system and storage medium for searching equipment in local area network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20110511

CX01 Expiry of patent term