CN100546261C - The method and system of Wireless LAN testing - Google Patents

The method and system of Wireless LAN testing Download PDF

Info

Publication number
CN100546261C
CN100546261C CNB2007101181822A CN200710118182A CN100546261C CN 100546261 C CN100546261 C CN 100546261C CN B2007101181822 A CNB2007101181822 A CN B2007101181822A CN 200710118182 A CN200710118182 A CN 200710118182A CN 100546261 C CN100546261 C CN 100546261C
Authority
CN
China
Prior art keywords
wireless lan
test
lan testing
message
command
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 - Fee Related
Application number
CNB2007101181822A
Other languages
Chinese (zh)
Other versions
CN101072135A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB2007101181822A priority Critical patent/CN100546261C/en
Publication of CN101072135A publication Critical patent/CN101072135A/en
Application granted granted Critical
Publication of CN100546261C publication Critical patent/CN100546261C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a kind of method of Wireless LAN testing: WLAN (wireless local area network) analog simulation instruction control unit transmission configuring request and command request message are to WLAN (wireless local area network) analog simulation command processor, WLAN (wireless local area network) analog simulation command processor is carried out test according to configuring request and command request message, and test result is returned to WLAN (wireless local area network) analog simulation instruction control unit.A kind of system of Wireless LAN testing is also disclosed simultaneously, comprise: main frame and WLAN devices, main frame comprises modules such as WLAN (wireless local area network) analog simulation instruction control unit, and WLAN devices comprises modules such as WLAN (wireless local area network) analog simulation command processor, 802.11 agreement wireless device modules.The present invention has realized multinomial test to WLAN (wireless local area network) by cooperatively interacting of WLAN (wireless local area network) analog simulation instruction control unit and WLAN (wireless local area network) analog simulation command processor.

Description

The method and system of Wireless LAN testing
Technical field
The present invention relates to the wireless network test technology, be meant the method and system of a kind of WLAN (wireless local area network) (WLAN, Wireless Local Area Network) test especially.
Background technology
In the epoch of Information technology high speed development, be accompanied by the extensive use of cable network, with quickness and high efficiency, networking flexibility is that the radio network technique of advantage is also in develop rapidly.WLAN (wireless local area network) is the product that computer network combines with wireless communication technology.From professional angle, WLAN (wireless local area network) has utilized a kind of effective ways of wireless multiple access channel to support communication between the computer, and for mobile, personalization and the multimedia application of communication provides may.
But, also do not have the comparatively perfect test system of a cover to realize testing at present to WLAN (wireless local area network).The test of WLAN (wireless local area network) comprises channel test, applied in network performance test, protocal analysis, failure diagnosis and applicating maintenance etc.The continuing to optimize and improve the extensive use and the development that will promote WLAN (wireless local area network) of these measuring technologies.
The method and apparatus that existing Wireless LAN testing technology provides some to be used for Wireless LAN testing is realized relevant Wireless LAN testing by the dynamic management of carrying out to 802.11 agreement hardware devices with control.Wherein, the main task that is included as standard base station and access point provides a series of dynamic-configuration management and control.But the function that existing these method of testings and device are realized is very limited, and is subjected to the restriction of a lot of situations.For example, how to finish once test in the crash time, test as why not following medium access rules, the Frame of transmission is greater than 1524 bytes.So-called crash time environment is meant the environment of finishing test operation in the microsecond level time range between two time points, sends a user-defined protocol data frame as the Wireless LAN testing processor immediately after receiving specific 802.11 protocol data frames, 10 microseconds.In addition, existing Wireless LAN testing method and apparatus is all more single on function realizes, each method of testing and equipment can only be finished a corresponding test function.
In sum, existing Wireless LAN testing method and apparatus exists bigger limitation and unicity on function realizes.Therefore, the tester has to select different method of testing and device at different environmental testings.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of method and system of Wireless LAN testing, by setting up a simple and effective WLAN (wireless local area network) multifunctional test system, in the limitation and the monistic while that overcome existing Wireless LAN testing technology, realize multinomial test to WLAN (wireless local area network).
Based on above-mentioned purpose, the invention provides a kind of method of Wireless LAN testing, at host computer side the Wireless LAN testing controller is set, in the WLAN devices side Wireless LAN testing processor is set, between Wireless LAN testing controller and Wireless LAN testing processor, interface channel is set; This method may further comprise the steps:
A) the Wireless LAN testing controller sends test command to the Wireless LAN testing processor by described interface channel;
B) the Wireless LAN testing processor is configured Devices to test according to test command by described interface channel acceptance test order, builds test environment, and the control Devices to test is tested, and test result is sent to the Wireless LAN testing controller.
This method step a) described Wireless LAN testing controller is ranked to a plurality of test commands, and formation sends to the Wireless LAN testing processor after sending message queue one by one; A plurality of test commands that the described Wireless LAN testing processor of step b) will receive are ranked, and after formation receives message queue, handle the message that receives in the message queue one by one.
The described test command of this method is the order that is used for a plurality of functional tests of WLAN devices.
This method step b) process of described Wireless LAN testing processor processing test command comprises three kinds of operating states: idle condition, transmit status and accepting state;
Under idle condition, the Wireless LAN testing processor obtains test command from the test command formation;
Under transmit status, the Wireless LAN testing processor sends user-defined 802.11 protocol data frames according to every the rule that defines in the test command;
Under accepting state, the Wireless LAN testing processor is waited for receiving needed user-defined 802.11 protocol data frames according to every the rule that defines in the test command.
The described test command of this method comprises configuration request message and command request message; Described configuration request message is used to dispose Devices to test, and described command request message is used to build test environment.
The described configuration request message of this method, command request message and test result are sent out and receive with the form of encapsulation messages.
The described encapsulation messages of this method comprises type of message, message parameter, message element, and type of message is determined the function of order, and message parameter comprises and the corresponding command information of type of message; Message element comprises the message element identifier, length and message element value, and the message element identifier is determined the information type in message element value zone, length is determined the byte number in message element value zone.
The described encapsulation messages of this method comprises the message of byte number greater than 1524 bytes.
This method step b) describedly according to test command the information that Devices to test is configured to carrying according to configuration request message is configured Devices to test, described information comprises passage, transmitted power, transmission rate, wireless protocols type, media access control address and primary service area indications.
This method step b) describedly builds test environment according to test command and build test environment for the information of carrying according to command request message.
In this method, when test command comprised needs and send to confirm information to the Wireless LAN testing controller, the Wireless LAN testing processor sends to be confirmed to the Wireless LAN testing controller.
The described interface channel of this method is the Wireless LAN testing passage, and this passage is supported the wired connection under the Ethernet protocol, and supports the transmission of messages of byte number greater than 1524 bytes.
The present invention also provides a kind of system of Wireless LAN testing, comprising: main frame and WLAN devices, WLAN devices comprise wireless device module and antenna; It is characterized in that comprise the Wireless LAN testing passage, main frame further comprises the Wireless LAN testing controller; WLAN devices further comprises the Wireless LAN testing processor;
The Wireless LAN testing controller is used to generate test command, by the Wireless LAN testing passage test command is sent to the Wireless LAN testing processor; And reception is from the test result of Wireless LAN testing processor;
The Wireless LAN testing processor is tested Devices to test according to test command, and test result is sent to the Wireless LAN testing controller by the test command of Wireless LAN testing passage reception from the Wireless LAN testing controller.
The described Wireless LAN testing passage of this system comprises sockets interface module, the transmission control protocol (TCP that is arranged in main frame, Transformation Control Protocol) module, Internet protocol (IP, InternetProtocol) module, ethernet module and be arranged in sockets interface module, tcp module, IP module and the ethernet module of WLAN devices.
In this system, main frame and WLAN devices connect with wired form by ethernet module separately.
The present invention also provides a kind of WLAN devices, it is characterized in that, comprise an interface unit and test processor, described interface unit, in order to a test main control system passage that connects, described test processor receives the test command of self-test main control system by described interface channel, according to test command Devices to test is configured, build test environment, the control Devices to test is tested, and test result is sent to the Wireless LAN testing controller.
The described interface unit of this equipment is that ethernet module is in order to set up ethernet channel with the test main control system.
From above as can be seen, the method and system of Wireless LAN testing provided by the invention can be selected the tester neatly and are set the test environment that needs for Wireless LAN testing, as realizing the uniformity test of 802.11 agreements by being sent in the Frame that has improper value in the Frame parameter; The Frame of the command information element that comprises or do not comprise by transmission perhaps sends the Frame that comprises or do not comprise the medium access rules, creates various abnormality test environment; By under particular state, send have a mind or be not intended to Frame, make under normal and unusual test environment, all can carry out the state machine verification; Adopt the mode of direct intervention base station to carry out unusual environmental testing, as send the invalid Frame that some are used to test by WLAN base station.In addition, the method and system of Wireless LAN testing provided by the invention are supported the mode of operation of many base stations and multiple access point, and the various attack test environment that allows the establishment prior art not have, realize the message complete property testing of WLAN (wireless local area network), the test of mistake security parameter, and the abnormality test of network security aspect.
Description of drawings
Fig. 1 is a Wireless LAN testing system architecture diagram of the present invention;
Fig. 2 is WLAN (wireless local area network) analog simulation channel design figure among the present invention;
Fig. 3 is encapsulation messages basic block diagram among the present invention;
Fig. 4 is WLAN (wireless local area network) analog simulation instruction control unit (WSCC among the present invention, WLANSimulator Command Controller) and the basic messae processing procedure schematic diagram between the WLAN (wireless local area network) analog simulation command processor (WSCH, WLAN Simulator Command Handler);
Fig. 5 is the periodic state figure of WSCH processing command among the present invention.
Embodiment
Thinking of the present invention is for setting up a Wireless LAN testing system, and this system comprises two nucleus module WSCC and WSCH, and the WLAN (wireless local area network) analog simulation of setting up between these two nucleus modules (WS, WLAN Simulator) passage.WSCC sends test command to WSCH by the WS passage with the form of encapsulation messages, and these test commands are used to dispose 802.11 agreement WLAN devices and test.WSCH is as a remote radio frequency interface module of being controlled by WSCC, after receiving the test command of WSCC, according to the requirement of test command command response message sent to WSCC.WSCC issues the test command of WSCH and WSCH offers WSCC after receiving test command command response message all transmits in the WS passage with the form of encapsulation messages.
The present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
Wireless LAN testing system architecture diagram of the present invention is referring to shown in Figure 1, comprise main frame 101,802.11 agreement WLAN devices 102 and WLAN (wireless local area network) analog simulation path 10 3, main frame 101 further comprises WLAN (wireless local area network) analog simulation instruction control unit (WSCC) 1011; 802.11 agreement WLAN devices (WLAN Hardware) 102 further comprises WLAN (wireless local area network) analog simulation command processor (WSCH) 1021.
The structure chart of WLAN (wireless local area network) analog simulation path 10 3 is referring to shown in Figure 2, this passage comprises sockets interface module 1014, the transmission control protocol (TCP that is arranged in main frame 101, Transformation ControlProtocol) module 1015, Internet protocol (IP, Internet Protocol) module 1016 and ethernet module 1017, and the sockets interface module 1024, tcp module 1025, IP module 1026 and the ethernet module 1027 that are arranged in 802.11 agreement WLAN devices 102.Main frame 101 and 802.11 agreement WLAN devices 102 connect with wired form by ethernet module 1017 and ethernet module 1027.
WSCC 1011 is used to generate configuration request message and command request message, by WLAN (wireless local area network) analog simulation path 10 3 configuration request message and command request message is sent to WSCH 1021 with the form of encapsulation messages; In addition, WSCC 1011 also is used to receive the command response message from WSCH 1021.
The encapsulation messages that WSCH 1021 receives from WSCC 1011 by WLAN (wireless local area network) analog simulation path 10 3, the encapsulation messages that receives is carried out decapsulation obtain configuration request message and command request message, control 802.11 agreement hardware devices according to order in configuration request message and the command request message and protocol information and test, and will test gained information and send to WSCC 1011 with the command response message mode.
802.11 agreement wireless device module 1022 and antenna 1023 are used for carrying out communication with the wireless subtest equipment of 802.11 agreements, wireless transmission and reception 802.11 protocol data frames.
802.11 agreement WLAN devices 102 comprises 802.11 agreement wireless chips, Ethernet chip, and functional timer etc., it also comprises and is used to move TCP/IP software, the processor of Ethernet software and operating system and memory.
In actual test process, WSCC 1011 is modules that are embedded in the main frame, it passes through sockets interface, transmission control protocol (TCP, Transmission Control Protocol)/Internet protocol (IP, Internet Protocol) storehouse and ethernet driver send encapsulation messages to WSCH 1021 or receive encapsulation messages from WSCH 1021.WSCH 1021 is modules that are embedded in the 802.11 agreement WLAN devices, and it is by sockets interface, and tcpip stack and ethernet driver send encapsulation messages to WSCC 1011 or receive encapsulation messages from WSCH 1021.WSCH 1021 carries out communication by 802.11 agreement wireless device modules 1022 and antenna 1023 and the wireless subtest equipment of 802.11 agreements, wireless transmission and reception 802.11 protocol data frames, as collect the information that the wireless subtest equipment of 802.11 agreements sends, and send to WSCC 1011.
In time period before carrying out to next test command after a test command is complete, WSCC 1011 and WSCH 1021 keep separate state respectively.
Below in conjunction with accompanying drawing encapsulation messages is described in detail.Encapsulation messages shown in Figure 3 comprises, type of message 301, and message parameter 302, message element 303, message element 304 ..., message element 305.Each message element comprises message element identifier, length and message element value.For example, message element 303 comprises message element identifier 13031, length 3032 and message element value 3033.
Type of message 301 is used for determining the function of test command.Message parameter 302 carries and the corresponding test command information of certain message types. Message element identifier 3031,3041 and 3051 carries information specific, is used to determine the information type in message element value zone.Length 3032,3042 and 3052 is used to determine the byte number in message element value zone.The different messages type can be carried identical message element identifier.According to the function that WSCC 1011 will realize, WSCC 1011 both can carry message element, also can not carry message element.
In addition, because in the actual test process, some encapsulation messages is the Frame greater than 1524 bytes, and Ethernet protocol can not send the Frame greater than 1524 bytes, therefore select User Datagram Protoco (UDP) (UDP, User Datagram Protocol) as the transmission mode of encapsulation messages, this agreement can be supported the encapsulation messages transmission greater than 1524 bytes.
Fig. 4 has provided the detailed process that WSCC and WSCH carry out Wireless LAN testing, and concrete steps are as follows:
Step 401, WSCC sends configuration request message to WSCH, and configuration request message is used for according to specific test environment 802.11 agreement wireless device modules being configured.Comprise the multiple message element that hardware device is configured based on 802.11 agreements in the configuration request message, these message elements have some customizing messages, as passage, transmitted power, transmission rate, wireless protocols type 802.11a/802.11b/802.11g, media access control address, primary service area indications (BSSID, Basic Service Set Identifier).
Step 402, the configuration request message that WSCH receives and storage WSCC sends, 802.11 agreement wireless device modules are given in configuration then.After finishing configuration, WSCH is in idle condition.Need send the information of acknowledge message if configuring request carries WSCH, then only send acknowledge message to WSCC by WSCH to WSCH.
Step 403, WSCC sends command request message to WSCH, and the various test environments that WSCH forms according to the type of message in the command request message, message parameter and message element are controlled 802.11 agreement hardware devices and are carried out test operation.The entrained information of described message parameter and different message elements is as follows:
The current time that needs setting;
There are how many user-defined 802.11 protocol data frames to be sent out;
Delay duration before sending user-defined 802.11 protocol data frames;
When sending user-defined 802.11 protocol data frames, whether need to send acknowledge message to the transmission confirmation of WSCC;
After finishing user-defined 802.11 protocol data frames of transmission, when WSCH receives one 802.11 protocol validation message again, how long need to wait for;
Before sending user-defined 802.11 protocol data frames, what have need user-defined 802.11 protocol data frames that receive;
Before sending user-defined 802.11 protocol data frames, what the user-defined 802.11 protocol data frame types that will receive are;
Whether need to send user-defined 802.11 protocol data frames that receive to WSCC; If this demand is arranged, whether all carry out for user-defined 802.11 protocol data frames of each reception, still only carry out at user-defined 802.11 protocol data frames of last reception;
When receiving each user-defined 802.11 protocol data frame, how long WSCH need wait for;
Whether need to follow 802.11 protocol media access rules;
Whether produce sequence number;
Whether 802.11 protocol data frames for receiving the unicast user definition send acknowledge message;
Whether need from a specific infrastructure service is provided with, to receive user-defined 802.11 protocol data frames;
Whether need to receive a packet from the specific media accessing to control address;
Whether carry out verification;
User-defined 802.11 protocol data frames that are sent out;
Need which media access control address of analog simulation;
Except that above-mentioned information, message element also may carry some more filtering informations and be used to receive and dispatch user-defined 802.11 protocol data frames.
In step 401 and 403, when WSCC need send one or more command configuration message or command request message, WSCC will form the transmission message queue to described one or more command configuration message or command request message queueing, the message that sends in the message queue is sent one by one, WLAN (wireless local area network) analog simulation command processor will form the reception message queue to one or more command configuration message or the command request message queueing that receives, and the message that receives in the message queue is handled one by one.
Step 404 need send the information of affirmation to WSCC if command request has been carried WSCH, will only send acknowledge message to WSCC by WSCH.
In the above-mentioned steps, WSCH has several different states in the actual command processing procedure, and for different states, the action of WSCH and scope all change to some extent.Therefore, below the state of WSCH processing command and the redirect between the state are described in detail, specifically referring to shown in Figure 4, Fig. 4 has provided three kinds of operating states of WSCH processing command: idle condition 501, transmit status 502 and accepting state 503.
Idle condition 501: under this state, WSCH obtains the command process request from the command process request queue, and wherein, the command process request queue is the formation that forms arranging from the order of WSCC.
Transmit status 502: under this state, WSCH sends user-defined 802.11 protocol data frames according to every the rule that defines in the command request.Then, WSCH waits for the affirmation from the wireless subtest equipment of 802.11 agreements, and this affirmation comprises two kinds of situations: send successfully and send failure.When receiving the confirmation, WSCH controls 802.11 agreement wireless device modules and the wireless subtest equipment of 802.11 agreements carries out communication, as sends user-defined 802.11 protocol data frames and receive user-defined 802.11 protocol data frames that the wireless subtest equipment of 802.11 agreements sends.
Accepting state 503: under this state, WSCH waits for receiving needed user-defined 802.11 protocol data frames according to every the rule that defines in the command request.Reception result comprises the user-defined 802.11 protocol data frames success of reception or receives user-defined 802.11 protocol data frames failure because of overtime causing taken place.
Below the transfer process between each state is described in detail:
Idle condition 501 is to transmit status 502, and before sending packet, and when order indicates the demand that does not receive packet, WSCH will enter transmit status 502 from idle condition 501.
Transmit status 502 is to idle condition 501, in case the packet that the command process that is used to send is finished and do not needed to receive, WSCH will enter idle condition 501 from transmit status 502.
Idle condition 501 is to accepting state 503, and before receiving packet, and when order indicates the demand that does not send packet, WSCH will enter transmit status 502 from idle condition 501.
Accepting state 503 is to idle condition 501, in case the command process that is used to receive is finished and do not needed data packets for transmission, WSCH will enter idle condition 501 from transmit status 502.
Transmit status 502 is to accepting state 503, in case the packet that and then has needs to receive after the command process that is used to send is finished, WSCH will enter accepting state 503 from transmit status 502.
Accepting state 503 is to transmit status 502, in case the packet that and then has needs to send after the command process that is used to receive is finished, WSCH will enter transmit status 502 from accepting state 503.
Step 405, WSCH tests according to the command request message from WSCC that receives, and test result is sent to WSCC with the form of command response message, comprises message parameter and various message element in the command response message.Carry dependence test information in message parameter and the various message element, comprising: timestamp, user want 802.11 protocol data frames and the state information that receive.State information further comprises:
Success;
Failure;
Redundant cyclic check mistake;
Because it is overtime to send affirmation, there are not user-defined 802.11 protocol data frames to send;
Receive the verification failure owing to send, do not have user-defined 802.11 protocol data frames to send;
Owing to send traffic indicator diagram (TIM, traffic indication map) verification failure, do not have user-defined 802.11 protocol data frames to send;
In the time-out time scope, do not receive user-defined 802.11 protocol data frames;
In the time-out time scope, there is not the user to want 802.11 protocol data frames that receive;
Order is confirmed successfully;
Failure is confirmed in order;
User-defined 802.11 protocol data frames of the mistake of sending from WSCH;
Except these information of listing above, message element can also carry more error code.
In test process, because every functional test all is to finish in the crash time territory, therefore, WSCC need rank to these test commands when sending test command, forms the test command formation.WSCH will receive a plurality of test commands of WSCC transmission and in chronological sequence also rank in proper order, form and the corresponding command queue of WSCC test command formation, carry out the order in this command queue then successively.
With a plurality of specific embodiments WSCC among the present invention and WSCH are cooperatively interacted below and carry out the test of WLAN (wireless local area network) analog simulation and narrate one by one:
Specific embodiment 1:
Order 1: follow or do not follow medium access rules, send user-defined 802.11 protocol data frames in real time.
Follow medium access rules:
Step 1:WSCC encapsulates to user-defined 802.11 protocol data frames with at the protocol information that real-time status is followed the medium access rules, generate encapsulation messages after, send to WSCH.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH controls 802.11 agreement wireless device modules and follows the medium access rules in real-time status according to protocol information, sends user-defined 802.11 protocol data frames.
Do not follow medium access rules:
Step 1:WSCC encapsulates to user-defined 802.11 protocol data frames with at the protocol information that real-time status is not followed the medium access rules, generate encapsulation messages after, send to WSCH.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH controls 802.11 agreement wireless device modules and does not follow the medium access rules in real-time status according to protocol information, sends user-defined 802.11 protocol data frames.
Specific embodiment 2:
Order 2: receive user-defined 802.11 protocol data frames in real time, and after the time-delay of an appointment, send user-defined 802.11 protocol data frames.
User-defined 802.11 protocol data frames that step 1:WSCC is sent out needs are used for the special parameter of received user-defined 802.11 protocol data frames of needs and the protocol information of time delay encapsulates with relevant, after generating encapsulation messages, send to WSCH.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH controls 802.11 agreement wireless device modules according to protocol information and is received in user-defined 802.11 protocol data frames of mentioning in the agreement.During user-defined 802.11 protocol data frames that WSCH mentions, after preset time delay, send user-defined 802.11 protocol data frames in receiving agreement.Preset time delay refers to the time delay that configures in advance in the protocol information that WSCC sends.
Specific embodiment 3:
Order 3: user-defined 802.11 protocol data frames are carried out the real-time transmission of arbitrary number of times.
Step 1:WSCC encapsulates user-defined 802.11 protocol data frames and protocol information, after the generation encapsulation messages, sends to WSCH.Wherein, comprise WSCC need send this protocol frame of how many times in real-time status number of times in the protocol information.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH sends user-defined 802.11 protocol data frames according to the number of times of the WSCC in the protocol information at this protocol frame of real-time status needs transmission how many times by 802.11 agreement wireless device modules.
Specific embodiment 4:
Order 4: user-defined 802.11 protocol data frames are carried out the real-time reception of arbitrary number of times.
Step 1:WSCC encapsulates protocol information, generates encapsulation messages, sends to WSCH then.Wherein, comprise in the protocol information about the special parameter of received user-defined 802.11 protocol data frames of needs and the number of times of this protocol frame of reception how many times.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains protocol information.WSCH is according to protocol information, by the protocol frame of defined match parameter in the 802.11 agreement wireless device module receiving belt protocols havings.
Specific embodiment 5:
Order 5: receiving user-defined 802.11 protocol data frames of a certain specific quantity, is that this Frame sends 802.11 protocol validation information in real time then.
Step 1:WSCC encapsulates protocol information, after the generation encapsulation messages, sends to WSCH.Wherein, comprise in the protocol information about needs be received but need not to send affirmation user-defined 802.11 protocol data frames special parameter and before send confirming to enable, receive the number of times of this protocol frame of how many times.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains protocol information.WSCH is according to protocol information, by the protocol frame of defined match parameter in the 802.11 agreement wireless device module receiving belt protocols havings.WSCH can control 802.11 agreement wireless device modules and not send affirmation.During the number of times of reception how many these these protocol frames that define in surpassing protocol information, WSCH controls 802.11 agreement wireless device modules and sends affirmation.
Specific embodiment 6:
Order 6: send user-defined 802.11 protocol data frames have faulty sequence number.
Step 1:WSCC encapsulates user-defined 802.11 protocol data frames that have the faulty sequence that will send number, generate encapsulation messages after, send to WSCH.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH sends user-defined 802.11 protocol data frames according to protocol information by 802.11 agreement wireless device modules.
Specific embodiment 7:
Order 7: send user-defined 802.11 protocol data frames that have the wrong piece sign indicating number.
Step 1:WSCC encapsulates user-defined 802.11 protocol data frames that have the wrong piece sign indicating number that will send, and after the generation encapsulation messages, sends to WSCH.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH sends user-defined 802.11 protocol data frames according to protocol information by 802.11 agreement wireless device modules.
Specific embodiment 8:
Order 8: send the 802.11 user-defined protocol data frames that have the error message integrity code.
Step 1:WSCC encapsulates user-defined 802.11 protocol data frames that have the error message integrity code that will send, and after the generation encapsulation messages, sends to WSCH.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH sends user-defined 802.11 protocol data frames according to protocol information by 802.11 agreement wireless device modules.
Specific embodiment 9:
Order 9: send user-defined 802.11 protocol data frames that have the erroneous frame verification sequence.
Step 1:WSCC encapsulates user-defined 802.11 protocol data frames that have the erroneous frame verification sequence that will send, and after the generation encapsulation messages, sends to WSCH.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH sends user-defined 802.11 protocol data frames according to protocol information by 802.11 agreement wireless device modules.
Specific embodiment 10:
Order 10: send invalid user-defined 802.11 protocol data frames.
Step 1:WSCC encapsulates invalid user-defined 802.11 protocol data frames that will send, and generates encapsulation messages, sends to WSCH then.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH sends user-defined 802.11 protocol data frames according to protocol information by 802.11 agreement wireless device modules.
Specific embodiment 11:
Order 11: send user-defined 802.11 protocol data frames greater than 1524 byte numbers.
Step 1:WSCC encapsulates comprising user-defined 802.11 protocol data frames greater than 1524 bytes that will send, and generates encapsulation messages, sends to WSCH then.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH sends user-defined 802.11 protocol data frames according to protocol information by 802.11 agreement wireless device modules.
Specific embodiment 12:
Order 12: the timestamp of each that receives 802.11 protocol data frames.
WSCH is that each one of the 802.11 protocol data frames transmission and this Frame time corresponding stamp that receive return to WSCC.
Specific embodiment 13:
Order 13: simulate any media access control address.
Step 1:WSCC packaged media accessing to control address sends to WSCH then in the protocol frame frame head.
Step 2: after receiving encapsulation messages, WSCH carries out decapsulation to this message, obtains Frame and protocol information.WSCH according to Frame and protocol information to 802.11 agreement wireless device module settings media access control address.
For each above-mentioned specific embodiment, user's be free to selectively be correlated with analog simulation test, in the specific implementation process, WSCC sends configuration request message in order to passage to be set, speed, give WSCH with wireless type, after WSCH receives configuration request message, whether the requirement decision according to configuration request message sends affirmation to WSCC, then, WSCC sends corresponding command request message to WSCH at the emulation testing that will realize, WSCH is after receiving the command request message of WSCC, to the passage of 802.11 agreement wireless device modules, speed, wireless type etc. are configured, and control 802.11 agreement wireless device modules and carry out the analog simulation test.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential general hardware platform, can certainly pass through hardware, but obviously the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product comprises that some instructions are with so that a computer equipment (can be a personal computer, server, the perhaps network equipment etc.) carry out the described method of the embodiment of the invention.
Equally, can also also realize that described computer equipment comprises in order to the software of carrying out the method for the invention and moves the necessary hardware of this software by a kind of computer equipment.
The method of Wireless LAN testing of the present invention, equipment and device, be not limited in listed utilization in specification and the execution mode, it can be applied to various suitable the present invention's field fully, for those skilled in the art, can easily realize additional advantage and make amendment, therefore under the situation of the spirit and scope of the universal that does not deviate from claim and equivalency range and limited, the examples shown that the present invention is not limited to specific details, representational equipment and illustrates here and describe.

Claims (16)

1. the method for a Wireless LAN testing, it is characterized in that, at host computer side the Wireless LAN testing controller is set, the Wireless LAN testing processor is set, between Wireless LAN testing controller and Wireless LAN testing processor, interface channel is set in the WLAN devices side; This method may further comprise the steps:
A) the Wireless LAN testing controller sends test command to the Wireless LAN testing processor by described interface channel;
B) the Wireless LAN testing processor is configured Devices to test according to test command by described interface channel acceptance test order, builds test environment, and the control Devices to test is tested, and test result is sent to the Wireless LAN testing controller;
The process of described Wireless LAN testing processor processing test command comprises three kinds of operating states: idle condition, transmit status and accepting state;
Under idle condition, the Wireless LAN testing processor obtains test command from the test command formation;
Under transmit status, the Wireless LAN testing processor sends user-defined 802.11 protocol data frames according to every the rule that defines in the test command;
Under accepting state, the Wireless LAN testing processor is waited for receiving needed user-defined 802.11 protocol data frames according to every the rule that defines in the test command.
2. method according to claim 1 is characterized in that, the described Wireless LAN testing controller of step a) is ranked to a plurality of test commands, and formation sends to the Wireless LAN testing processor after sending message queue one by one; A plurality of test commands that the described Wireless LAN testing processor of step b) will receive are ranked, and after formation receives message queue, handle the message that receives in the message queue one by one.
3. method according to claim 1 and 2 is characterized in that, described test command is the order that is used for a plurality of functional tests of WLAN devices.
4. method according to claim 1 is characterized in that, described test command comprises configuration request message and command request message; Described configuration request message is used to dispose Devices to test, and described command request message is used to build test environment.
5. method according to claim 4 is characterized in that, the described configuration request message of this method, command request message and test result are sent out and receive with the form of encapsulation messages.
6. method according to claim 5 is characterized in that described encapsulation messages comprises type of message, message parameter, message element, and type of message is determined the function of order, and message parameter comprises and the corresponding command information of type of message; Message element comprises the message element identifier, length and message element value, and the message element identifier is determined the information type in message element value zone, length is determined the byte number in message element value zone.
7. method according to claim 5 is characterized in that, described encapsulation messages comprises the message of byte number greater than 1524 bytes.
8. method according to claim 5, it is characterized in that, step b) is described to be configured Devices to test the information that Devices to test is configured to carrying according to configuration request message according to test command, and described information comprises passage, transmitted power, transmission rate, wireless protocols type, media access control address and primary service area indications.
9. method according to claim 5 is characterized in that, step b) is described builds test environment according to test command and build test environment for the information of carrying according to command request message.
10. according to claim 1,4 or 5 described methods, it is characterized in that when test command comprised needs and send to confirm information to the Wireless LAN testing controller, the Wireless LAN testing processor sends to be confirmed to the Wireless LAN testing controller.
11. method according to claim 1 is characterized in that, described interface channel is the Wireless LAN testing passage, and this passage is supported the wired connection under the Ethernet protocol, and supports the transmission of messages of byte number greater than 1524 bytes.
12. the system of a Wireless LAN testing comprises: main frame and WLAN devices, WLAN devices comprise wireless device module and antenna; It is characterized in that comprise the Wireless LAN testing passage, main frame further comprises the Wireless LAN testing controller; WLAN devices further comprises the Wireless LAN testing processor;
The Wireless LAN testing controller is used to generate test command, by the Wireless LAN testing passage test command is sent to the Wireless LAN testing processor; And reception is from the test result of Wireless LAN testing processor;
The Wireless LAN testing processor is tested Devices to test according to test command, and test result is sent to the Wireless LAN testing controller by the test command of Wireless LAN testing passage reception from the Wireless LAN testing controller;
The process of described Wireless LAN testing processor processing test command comprises three kinds of operating states: idle condition, transmit status and accepting state;
Under idle condition, the Wireless LAN testing processor obtains test command from the test command formation;
Under transmit status, the Wireless LAN testing processor sends user-defined 802.11 protocol data frames according to every the rule that defines in the test command;
Under accepting state, the Wireless LAN testing processor is waited for receiving needed user-defined 802.11 protocol data frames according to every the rule that defines in the test command.
13. system according to claim 12, it is characterized in that, described Wireless LAN testing passage comprises sockets interface module, the transmission control protocol (TCP that is arranged in main frame, TransformationControl Protocol) module, Internet protocol (IP, Internet Protocol) module, ethernet module and be arranged in sockets interface module, tcp module, IP module and the ethernet module of WLAN devices.
14. system according to claim 13 is characterized in that, main frame and WLAN devices connect with wired form by ethernet module separately.
15. WLAN devices, it is characterized in that, comprise an interface unit and Wireless LAN testing processor, described interface unit, in order to a test main control system passage that connects, described Wireless LAN testing processor receives the test command of self-test main control system by described interface channel, according to test command Devices to test is configured, build test environment, the control Devices to test is tested, and test result is sent to the Wireless LAN testing controller;
The process of described Wireless LAN testing processor processing test command comprises three kinds of operating states: idle condition, transmit status and accepting state;
Under idle condition, the Wireless LAN testing processor obtains test command from the test command formation;
Under transmit status, the Wireless LAN testing processor sends user-defined 802.11 protocol data frames according to every the rule that defines in the test command;
Under accepting state, the Wireless LAN testing processor is waited for receiving needed user-defined 802.11 protocol data frames according to every the rule that defines in the test command.
16. equipment according to claim 15 is characterized in that, described interface unit is that ethernet module is in order to set up ethernet channel with the test main control system.
CNB2007101181822A 2007-06-29 2007-06-29 The method and system of Wireless LAN testing Expired - Fee Related CN100546261C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101181822A CN100546261C (en) 2007-06-29 2007-06-29 The method and system of Wireless LAN testing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101181822A CN100546261C (en) 2007-06-29 2007-06-29 The method and system of Wireless LAN testing

Publications (2)

Publication Number Publication Date
CN101072135A CN101072135A (en) 2007-11-14
CN100546261C true CN100546261C (en) 2009-09-30

Family

ID=38899136

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101181822A Expired - Fee Related CN100546261C (en) 2007-06-29 2007-06-29 The method and system of Wireless LAN testing

Country Status (1)

Country Link
CN (1) CN100546261C (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938763B (en) * 2010-09-19 2013-08-28 福建邮科通信技术有限公司 WLAN (Wireless Local Area Network) wireless network automatic monitor system
CN102083061B (en) * 2011-02-18 2013-03-20 山东省计算中心 Attack testing method of routing table security of wireless sensor network
US9742505B2 (en) * 2013-10-04 2017-08-22 Alifecom Technology Corp. Testing device and testing method thereof
CN105791032B (en) * 2016-05-04 2018-12-07 珠海格力电器股份有限公司 The test method and device of transport protocol between intelligent appliance and mobile terminal
CN107612784A (en) * 2017-10-30 2018-01-19 上海斐讯数据通信技术有限公司 A kind of router Wi Fi signal RFs index detection methods and system
CN112087351B (en) * 2020-09-24 2022-02-11 山东交通学院 Remote train network communication interface testing method

Also Published As

Publication number Publication date
CN101072135A (en) 2007-11-14

Similar Documents

Publication Publication Date Title
US11921569B2 (en) Remote debugging and management
KR20200135867A (en) Network data monitoring method and device
CN100546261C (en) The method and system of Wireless LAN testing
US20140343915A1 (en) Test environment configuration apparatus and method of operating network simulation apparatus using same
CN102972070A (en) System and method for using multiple network addresses to establish synchronization of a device under test and test equipment controlling the test
CN102291745A (en) Method and device for testing multiple access points (AP)
CN100486182C (en) Network test equipment, system and method
CN101079757A (en) A testing device and operation method for broadband aviation electronic bus
CN109923836A (en) For using non-link test resource from the method for wireless equipment under test transmission test result
Bello et al. Design and implementation of an educational testbed for experiencing with industrial communication networks
CN104426715B (en) A kind of distributed testing tool control method
CN106936658A (en) The method of testing and test platform of test case, simulation test equipment
CN101715204A (en) Consistency testing device and method of mobile terminal
EP3531739B1 (en) Testing the resource reservation behavior of at least a first device under test in an emulated device-to-device network environment
Zhang et al. Integration of 5g and opc ua for smart manufacturing of the future
Senk et al. Open-source testbeds for integrating time-sensitive networking with 5g and beyond
CN103973518A (en) Method and device for detecting virtual local area network by adopting packet internet grope
CN1741663A (en) UTRAN monitoring instrument, monitoring system and monitoring method
CN104899537B (en) A kind of data transmission method and electronic equipment
CN102036269B (en) Testing method and equipment
CN113038533A (en) Data transmission method, device, terminal equipment and storage medium
CN107466018A (en) The data transferring method and terminal device of a kind of terminal device
CN104113449A (en) Link detection method and apparatus
Nizzi et al. Protocol Prototype Implementation Using ns-3: a Use-Case
CN100338913C (en) Switch with traffic generation function

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: Huasan Communication Technology Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090930

Termination date: 20200629