CN103716201A - Open wireless sensing network performance test method and open wireless sensing network performance test system - Google Patents
Open wireless sensing network performance test method and open wireless sensing network performance test system Download PDFInfo
- Publication number
- CN103716201A CN103716201A CN201310683276.XA CN201310683276A CN103716201A CN 103716201 A CN103716201 A CN 103716201A CN 201310683276 A CN201310683276 A CN 201310683276A CN 103716201 A CN103716201 A CN 103716201A
- Authority
- CN
- China
- Prior art keywords
- test
- packet
- host computer
- node
- programming
- 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.)
- Granted
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to an open wireless sensing network performance test method and an open wireless sensing network performance test system and particularly relates to high-precision measurement on performances such as delay, packet loss rate and topology. The platform is composed of an upper computer, lower computers, test backplanes, programming modules and measured nodes. The test backplanes are connected by a clock synchronization signal line, and high-precision time synchronization is completed by the adoption of a software and hardware cooperation mode; the measured nodes measure variable delay of air interfaces and low-speed wired interfaces in the transmission process and are used for revising the transmission delay of a data packet; the test backplanes adopt a fixed-length segmentation method on a test data packet and converts the variable delay into fixed relay; flexible remote programming is realized by using parameters to locate a file; a stable sensing network topology is obtained by adopting a link relevance method; and a sequence number mapping algorithm is adopted to solve the problem of sequence number overflow and realize accurate packet loss rate calculation.
Description
Technical field
The present invention relates to the communications field, relate in particular to a kind of opening wireless sense network performance test methods and system.
Background technology
Wireless sense network by a large number cheaply microsensor node form, realize collaboratively perception, collection, processing and control task to environment of living in, be widely used in the numerous areas such as national defense and military, Industry Control, urban transportation, health care, environmental monitoring, building monitoring.
Wireless sensor node is all very limited in the ability of calculating, storage and aspects such as communicating by letter, and the performance test of wireless sense network is a difficult problem for the research of puzzlement wireless sense network and large-scale application always.In addition, the hardware and software platform of wireless sensor network is numerous, and hardware platform has Smart Dust, MICA, TELOS, μ AMPS, and software platform has Contiki, TinyOS, LiteOS, Nano-RK, t-Kernel etc.For the eurypalynous sensing net node of crowd provides the high-precision test macro of a unification, it is a huge technological challenge.
MoteWorks is the Sensor Network test macro for MICA node of Crossbow company research and development.MoteWorks test macro mainly contains three shortcomings: it can only provide testing service for MICA node; It understands the running status of interfering nodes when collecting test data; It can disturb the communication performance of network when transmitting test data.The MoteLab test macro of Harvard University is mainly for TMote Sky node, and the Kansei of Ohio State University is mainly for starGate, and these test macros all can not provide an opening test macro, for various kinds of sensors node provides testing service.
Summary of the invention
Technical problem to be solved by this invention is for the deficiencies in the prior art, and a kind of opening wireless sense network performance test methods and system are provided.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of opening wireless sense network performance test methods, comprises the steps:
Step 1: host computer is the tested node transmission test command to wireless sense network by wired test channel;
Step 2: the tested node of wireless sense network receives after test command, in wireless sense network running, when tested node sends or receives business data packet on wireless channel, all can produce and encapsulate business data packet, and report to host computer by wired test channel;
Step 3: the tested node of wireless sense network is received after the end test command of host computer transmission, stops reporting test packet to host computer;
Step 4: host computer carries out Treatment Analysis to the test packet receiving, calculates data packet transmission delay, network topology structure and the packet loss of wireless sense network;
Wherein, described every wired test channel comprises slave computer, testing backboard and programming module, and each slave computer is connected with a testing backboard by the high-speed interface of wired connection; Each testing backboard provides several low-speed interfaces, and each low-speed interface connects a programming module; Between described each testing backboard, be connected with clock sync signal line, for the clock between synchronous each testing backboard.
The invention has the beneficial effects as follows:
1, this test macro is realized the collection of detecting information by the low-speed interface of a standard, can provide testing service for the wireless sense network of various software and hardware structures.Because test data gathers by wired passage, can not disturb the proper testing environment of wireless channel.
2, this test macro adopts the synchronization mechanism of cooperative work of software and hardware, on hardware, by lock-out pulse regularly, just can obtain high accuracy, have under the prerequisite of higher time precision, can measure transmission delay comparatively accurately thus, and by measuring aerial transmission delay and the low-speed interface transmission delay of tested node, and offset the calculating impact of this two classes variable delay on transmission delay, finally, on testing backboard, by fixed length packetization technique, elongated receive delay process, be converted into the receive delay process of fixed length, further improved the precision of Delay computing.
3, testing backboard provides the low-speed interface of One's name is legion, and for a large amount of tested nodes provides interface channel, this mode not only can reduce manufacturing cost, and the testing backboard quantity that minimizing test experiments is needed; And then reduced backboard quantity that need to be synchronous, not only reduce hardware quantity, and improved the synchronization accuracy between testing backboard.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described test packet comprises node number field, payload length field, payload field, check code, aerial transmission delay, serial ports transmission delay, wherein in node number, storage sends the node number of the node of this test packet to host computer, the length of stored payload field in payload length field, in payload field, store the business data packet that this node sends or receives, the cyclic redundancy check (CRC) of described check code field store test data bag, the aerial transmission delay of the business data packet that this node of storing in described aerial transmission delay sends or receives, what in described serial ports transmission delay, store is the serial ports delay while this node last time sending test packet to host computer.
Further, calculated data bag transmission delay comprises the aerial transmission delay of service data transmission bag between tested node and the serial ports transmission delay that tested node is uploaded test packet, and concrete calculation procedure is as follows:
Aerial transmission delay is calculated: tested node is when wireless channel sends business data packet, record transmission stamp start-up time of each business data packet and send successful timestamp, utilize the successful timestamp of transmission to deduct and send stamp start-up time, obtain aerial transmission delay, aerial transmission delay is encapsulated in the test packet of this report and reports host computer by wired test channel, host computer, by correction algorithm, calculates aerial delay parameter accurately; Tested node receives after business data packet at wireless channel, and in the test packet reporting to host computer, aerial transmission delay is zero.
Serial ports transmission delay is calculated: when test packet reports host computer, recording each test packet reports start-up time stamp and reports successfully timestamp, utilization reports successfully timestamp to deduct and reports stamp start-up time, obtain serial ports transmission delay, serial ports transmission delay is encapsulated in the test packet next time reporting and reports host computer by wired test channel, host computer, by correction algorithm, calculates serial ports delay parameter accurately.
Further, when test packet is sent to the testing backboard place of wired test channel, testing backboard adopts fixed length to cut apart reception, for each fixed length packet marking time of reception stamp, variable delay is become to fixed delay.
Further, obtain the concrete steps of the topological structure of Sensor Network:
Host computer adopts data driven mode, according to the counting period of user's appointment, test process is divided into several time periods, within each time period, tested node sends test packet to report the business data packet transmission quantity of each tested node by wired test channel to host computer, host computer and then gather the business data packet transmission quantity of every link, obtain the degree of correlation of link, adopt the high link of the degree of correlation, according to the topological tree algorithm of depth-first, obtain stable network topology mechanism.
Adopt the beneficial effect of above-mentioned further scheme to be: this method of testing adopts the pattern of data-driven, obtain the change in topology of wireless sense network, not only there is adaptability widely, and by the degree of association index of link, overcome the impact that the transient process of change in topology is calculated topology.
Further, packet loss calculation procedure:
In the business data packet transmitting between tested node, be embedded with sequence number, tested node is when sending or receive business data packet, the business data packet sending or receive can be backuped to the payload field of test packet, be encapsulated in test packet and send host computer to by wired test channel, and be stored in database;
Host computer is from database, according to the ascending order of test packet timestamp, take out the test packet of all receptions, resolve successively each test packet, the sequence number of the packet of storing in read test packet payload field, according to sequence number, judge whether to exist out of order and overflow situation, if existed, sequence number is upgraded accordingly, sequence number after upgrading is put back in database, process next test packet, until all test packets are all finished dealing with, in sequence number ascending order mode, take out all test packets again, calculate the sequence number of disappearance, and then calculating packet loss.
Adopt the beneficial effect of above-mentioned further scheme to be: to adopt packet sequence coding techniques, efficiently solve message synchronization, repeat the packet loss error problem that the problems such as transmission, Multipath Transmission cause, realized the measurement of the Sensor Network packet loss of high accuracy.
Further, also comprise and realize the long-range programming code of tested node, concrete steps are: host computer is write all different basic programming files of at least two node numbers, channel number and transmitting power; Difference by relatively programming file causes due to node number, channel number and transmitted power, produces a parameter locating file; According to basic programming file and its corresponding parameter locating file, and the programming parameter of user's selection, required programming file produced; By wired test channel, send programming file to corresponding programming module, utilize local programming technology, by code programming to tested node.
Adopt the beneficial effect of above-mentioned further scheme to be: this method of testing is utilized parameter locating file, realized long-range programming function flexibly, can adapt to the programming code change of all kinds node, the node number of providing convenience, channel number and transmitting power configuration.
Another technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of opening wireless sense network Performance Test System, it is characterized in that, and comprise host computer, some wired test channel and several tested nodes; Described host computer is connected with some test channel by cable network, and the end of every test channel is connected with a tested node by privately owned interface;
Described host computer, it also, for the test packet of feedback is carried out to Treatment Analysis, calculates data packet transmission delay, network topology structure and the packet loss of wireless sense network for sending test command by test channel to tested node; Described test channel, it is for realizing the reporting of mutual and test data of tested node and host computer test command; Described tested node, it is for receiving test command, and produces test data, by test channel, feeds back to host computer;
Wherein, described every wired test channel comprises slave computer, testing backboard and programming module, and each slave computer is connected with a testing backboard by the high-speed interface of wired connection; Each testing backboard provides several low-speed interfaces, and each low-speed interface connects a programming module; Between described each testing backboard, be connected with clock sync signal line, for the clock between synchronous each testing backboard.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described programming module, the programming file also sending for receiving host computer, utilizes local programming technology, by code programming to tested node.
Further, described testing backboard is also cut apart reception for the data acquisition that tested node is reported by fixed length, for each fixed length packet marking time of reception stamp, variable delay is become to fixed delay.
Accompanying drawing explanation
Fig. 1 is the wireless sense network test macro schematic diagram of a kind of style of opening of the present invention;
Fig. 2 is the annexation figure of testing backboard of the present invention, programming module and tested node;
Fig. 3 is the wireless sense network method of testing flow chart of a kind of style of opening of the present invention
Fig. 4 is the format chart of the test packet that reports of the tested node of the present invention;
Fig. 5 is the clock sync signal flow graph of cooperative work of software and hardware of the present invention;
Fig. 6 is the wireless sense network packet loss calculation flow chart based on sequence number.
In accompanying drawing, the list of parts of each label representative is as follows:
1, host computer, 2, slave computer, 3, testing backboard, 4, programming module, 5, tested node.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, in this test macro, only have a host computer 1, this equipment is connected with N slave computer 2 physics by Ethernet, and host computer 1 and slave computer 2 are realized information interaction by ICP/IP protocol.Slave computer 2 utilizes high-speed interface to be connected with testing backboard 3, adopts serial peripheral agreement (SPI) to realize information interaction.8 programming modules 4 of 3 times companies of each testing backboard, each programming module 4 connects a tested node 5.
As shown in Figure 2, testing backboard 3 is connected with programming module 4 by the low speed line of 9 pins, wherein 1 and 2 lines are used to programming module for power supply, 3 and 4 lines are as serial ports (speed is 115200bps) and programming module communication, 5 and 6 lines are used to tested node power supply, and 7 communicate by letter with tested node 5 as serial ports (speed is 115200bps) with 8 lines.Programming module 4 utilizes interconnector to be connected with tested node 5, adopt proprietary protocol information interaction at present, wherein 10 lines are function altogether, and 11 and 12 as serial ports (speed is 115200bps) and tested node communication, 13 and 14 lines are used for controlling tested node, make it to enter programming state.
As shown in Figure 3, a kind of wireless sense network performance test methods of style of opening,
Step 1: host computer is the tested node transmission test command to wireless sense network by wired test channel;
Step 2: the tested node of wireless sense network receives after test command, in wireless sense network running, when tested node sends or receives business data packet on wireless channel, all can produce the test packet that has encapsulated business data packet, and report to host computer by wired test channel;
Step 3: the tested node of wireless sense network is received after the end test command of host computer transmission, stops reporting test packet to host computer;
Step 4: host computer carries out Treatment Analysis to the test packet receiving, calculates data packet transmission delay, network topology structure and the packet loss of wireless sense network;
Wherein, described every wired test channel comprises slave computer, testing backboard and programming module, and each slave computer is connected with a testing backboard by the high-speed interface of wired connection; Each testing backboard provides several low-speed interfaces, and each low-speed interface connects a programming module; Between described each testing backboard, be connected with clock sync signal line, for the clock between synchronous each testing backboard.
As shown in Figure 4, the test packet that test node reports to host computer by wired test channel comprises node number field, payload length field, payload field, check code, aerial transmission delay, serial ports transmission delay, wherein in node number, storage sends the node number of the node of this test packet to host computer, the length of stored payload field in payload length field, in payload field, store the business data packet that this node sends or receives, the cyclic redundancy check (CRC) of described check code field store test data bag, the aerial transmission delay of the business data packet that this node of storing in described aerial transmission delay sends or receives, what in described serial ports transmission delay, store is the serial ports delay while this node last time sending test packet to host computer.Wherein the length of node number is 2 bytes, and payload length is 2 bytes, and payload content is elongated, and check code length is 2 bytes; The length of aerial transmission delay is 2 bytes, and represented unit is millisecond; The length of serial ports transmission delay is 2 bytes, and represented unit is millisecond.
System of the present invention has following functions:
1. high accuracy delay measurements
A. in existing measuring technology, mostly adopt software to realize time synchronized, this time synchronized all realizes between slave computer.There are 2 deficiencies in software synchronization, and the one, synchronization accuracy is not high; The 2nd, packets need is through the buffer queue of testing backboard, and the delay causing due to buffer queue is variable, and timestamp is provided on slave computer, can cause lower time precision.
The present invention adopts the synchronization mechanism of cooperative work of software and hardware, by lock-out pulse regularly, just can obtain high-precision synchronised clock.
As shown in Figure 5, participate in N testing backboard of test, testing backboard 1 is master clock controller, and other testing backboard is from clock controller.When testing backboard 1 is spent 10 seconds at each integer minute, send a software clock and report signal S1 to slave computer 1, and be relayed to host computer.Present clock value when the content of signal S1 is testing backboard 1 transmitted signal S1.Host computer is received after signal S1, sends software clock update signal S2 to other slave computer, and is relayed to corresponding testing backboard, and the numerical value of signal S2 equals the numerical value of signal S1.Testing backboard 1 is crossed the moment of 30 seconds, transmitted signal S3 on the hardware synchronization line being connected with other testing backboard at each integer minute.Testing backboard 1 is generally low on hardware synchronization line, and signal S3 just makes hardware synchronization line moment set high.The clock synchronization algorithm of other testing backboard is as follows.Receive that after signal S2, just local clock is set to S2; Receive that, after signal S3, the number of minutes of local clock is constant, second, number was set as 30 seconds.
B. in tested internodal data communication process, business data packet transmission will be experienced a plurality of delays, dispatch delay in node, the queueing delay in wireless sending module, the retransmission delay that carrier sense delay in process of transmitting and data collision cause, these postpone length and often have elongated characteristic, can cause larger Delay computing error.Aerial transmission delay is calculated: tested node is when wireless channel sends business data packet, record transmission stamp start-up time of each business data packet and send successful timestamp, utilize the successful timestamp of transmission to deduct and send stamp start-up time, obtain aerial transmission delay, aerial transmission delay is encapsulated in the test packet of this report and reports host computer by wired test channel, host computer, by correction algorithm, calculates aerial delay parameter accurately; Tested node receives after business data packet at wireless channel, and in the test packet reporting to host computer, aerial transmission delay is zero.
Between tested node, report in the process of test packet, test packet transmission will be experienced a plurality of delays, queueing delay in dispatch delay in node, low speed sending module, these postpone length and often have elongated characteristic, can cause larger performance evaluation error.Serial ports transmission delay is calculated: when test packet reports host computer, recording each test packet reports start-up time stamp and reports successfully timestamp, utilization reports successfully timestamp to deduct and reports stamp start-up time, obtain serial ports transmission delay, serial ports transmission delay is encapsulated in the test packet next time reporting and reports host computer by wired test channel, host computer, by correction algorithm, calculates serial ports delay parameter accurately.
In addition, when test packet is sent to the testing backboard place of wired test channel, testing backboard adopts fixed length to cut apart reception, for each fixed length packet marking time of reception stamp, variable delay is become to fixed delay, has further improved the precision of computing relay.Measuring tool body can block adjustable length test packet into grouping of every 10 bytes, and is a timestamp of each grouping increase.
2. the topology of universality is calculated
Because Sensor Network wireless channel is subject to external disturbance, can there is dynamic change in topological structure, so there will be of short duration route and topological transitions phase, so conventional method is easily subject to transitional interference, the topological structure of calculating is inaccurate; Sensor Network is of a great variety, can adopt various Routing Protocols and Topology Control Algorithm, in order to make topological analysis algorithm have applicability widely, has adopted the pattern of data-driven.Although the topology of Sensor Network is controlled and route computing method is varied, by data flow, can effectively disclose the real topology of Sensor Network.This method is divided into test process the some time section of user's appointment, calculates the topological structure of this time period according to the data flow characteristic of each time period.
Host computer adopts data driven mode, according to the counting period of user's appointment, test process is divided into several time periods, within each time period, tested node sends test packet to report the business data packet transmission quantity of each tested node by wired test channel to host computer, host computer and then gather the business data packet transmission quantity of every link, obtain the degree of correlation of link, adopt the high link of the degree of correlation, according to the topological tree algorithm of depth-first, obtain stable network topology mechanism.
The implementation procedure of specifically obtaining link association degree is as follows:
First the degree of association of all tested nodes of initialization is 0, secondly, from sink node, obtains the child node of sink node, and sets these child nodes to the degree of association of sink node according to the traffic of these child nodes and sink node; Again, find the Sun Jiedian of these child nodes, and calculate Sun Jiedian to the degree of association of child node, if the degree of association obtaining is greater than the current degree of association of Sun Jiedian, just change the father node of Sun Jiedian; Otherwise, just do not upgrade.
Adopt the iterative process of above depth-first, until all nodes are all traversed.
3. packet loss is added up accurately
In the computational process of packet loss, because test starting and test the finish command are difficult between a large amount of tested nodes synchronously to carry out, repeat the reasons such as transmission and Multipath Transmission, can cause the situation of many parts of identical business data packet receiving to occur, cause the not high problem of accuracy in computation of packet loss.For this reason, in the business data packet of transmitting, can be embedded with sequence number between each tested node, in each tested node, be provided with several destination address counters, each destination address is safeguarded an independently counter, business data packet of the every transmission of this node, the counter of its corresponding destination address just increases progressively.Each tested node can report test packet to host computer when sending and receiving business data packet, wherein the business data packet (including sequence number) that is this node transmission or receives of encapsulation in the payload field of test packet.
Host computer is from database, according to the ascending order of test packet timestamp, take out all test packets, resolve successively each test packet, the sequence number of the business data packet of storing in read test packet payload field, according to sequence number, judge whether to exist out of order and overflow situation, if existed, sequence number is upgraded accordingly, sequence number after upgrading is put back in database, process next test packet, until all test packets are all finished dealing with, in sequence number ascending order mode, take out all test packets again, calculate the sequence number of disappearance, and then calculating packet loss.
For the network of single sink node, the business data packet of other node all sends to sink node, so each sensing node only need to be safeguarded a counter, after business data packet of every transmission, this counter just increases progressively.The storage size of this counter is 2 bytes, and initial value is 0x0, and maximum is 0xFFFF.After the value arrival 0xFFFF of this counter, due to counter overflow, next value is again 0x0.
When test packet is kept in the database of host computer, adopt 4 bytes to preserve business datum packet number.By the problem that algorithm solution calculator overflows as shown in Figure 6, this algorithm also needs to consider that business data packet arrives out of order impact.
Step 1: from database, according to the ascending order of test packet timestamp, take out all test packets, read in the sequence number nseq of business data packet in first test packet;
Step 2: and to parameter c ount, last_seq and M initialize, wherein count is the number of times that overflows generation, last_seq is up-to-date Receive sequence number, M is two minimum overflow values that bytes of storage space is corresponding, is 0x10000 in native system;
Step 3: judge whether to overflow according to the relation that compares nseq and last_seq, if be greater than execution step 4; Otherwise execution step 5;
Step 4: according to nseq relatively, whether in the reasonable scope judge increasing degree with the relation of last_seq+M/2, out of order to judge whether to exist, if be less than, according to (a) module renewal nseq, if be greater than, according to (b) module renewal nseq;
Step 5: whether in the reasonable scope to judge increasing degree according to the relation that relatively judges nseq and last_seq-M/2, if be less than, upgrade nseq according to (c) module, if be greater than, upgrade nseq according to (d) module;
Wherein, (a) in module, the sequence number nseq of new test packet is greater than last_seq, in rational increasing degree, represents the normal situation about increasing of sequence number again, and parameter l ast_seq is normal to be upgraded, such as nseq is that 5, last_seq is 4; (b) in module, the sequence number nseq of new test packet is greater than last_seq, but has exceeded rational increasing degree, represents to have occurred overflowing above, currently receive again an out of order business data packet, parameter l ast_seq and count do not need change, such as current last_seq is that 0, nseq is 0xFFFE, receive that continuously three sequence numbers are (0xFFFF, 0x0,0xFFFE) packet, will enter such situation; (c), in module, the sequence number nseq of new test packet is less than last_seq, but not in rational increasing degree, the situation of generation is overflowed in representative, and last_seq normally upgrades, but count parameter need to increase progressively, such as nseq is 0x0, last_seq is 0xFFFF; (d) in module, the sequence number nseq of new test packet is less than last_seq, again in rational increasing degree, represent out of order situation, parameter l ast_seq does not need to upgrade, such as nseq is that 8, last_seq is 9, show that No. 8 business data packet are than No. 9 early transmissions of business data packet, but after arrive destination node.According to the situation in a, b, c, d, the nseq of business data packet is upgraded respectively, the sequence number nseq upgrading is written back to database, then takes out the sequence number of business data packet in next test packet, and repeat above operation, until finish.
After operation, the business datum packet number of database has not just had overflow problem, then in the ascending order mode of business datum packet number, take out all test packets, then calculate the wherein sequence number of disappearance, just can obtain packet loss.
4. long-range programming
Adopting the programming code that sensor node development platform compiles out all for particular sections period, channel number and transmitting power, to configure, when long-range programming, need to be different initialization values according to test scene demand flexible configuration.By the programming code difference of more different node numbers, just obtain the coding site of node number; By the programming code difference of different channels relatively number, just obtain the coding site of channel number; By comparing the programming code difference of different transmission power, just obtain the coding site of transmitting power.Above positional information, by these coding sites being placed in the parameter locating file that programming code is corresponding, just long-range programming goes out the node of node number, channel number and the transmitting power of various needs neatly.
When the programming file of the tested node of compiling, compiling egress number is 1 and node number two the programming files that are 2, by the software difference of these two files relatively automatically, and the position of difference is outputed in the node number positioning section of parameter locating file.Compile out again channel number and be 20 and channel number two the programming files that are 21, by the software difference of these two files relatively automatically, and the position of difference is outputed in the channel number positioning section of parameter locating file.Compile out again transmitting power and be 25 and channel number two the programming files that are 26, by the software difference of these two files relatively automatically, and the position of difference is outputed in the transmitting power positioning section of parameter locating file.
When carrying out long-range programming order, take user configured node number, channel number and transmitting power as foundation, according to the node number positioning section in parameter locating file, channel number positioning section and the indicated side-play amount of transmitting power positioning section, revise programming file.Again the programming file of customization is sent to programming module, complete last local programming work, just can realize the code update function of tested node.This long-range programming ability, can facilitate the rapid deployment of test scene.
5. multifarious energy consumption is shown
Tested node is being carried out in the process of test, testing backboard is sampled to the current value of tested node with the speed of 300,000 times per second.By 10,000 sampled points, calculate a current average and variance yields.At energy, consume in exploded view, show average current curve and electric current variance curve simultaneously.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (10)
1. an opening wireless sense network performance test methods, is characterized in that, comprises the steps:
Step 1: host computer is the tested node transmission test command to wireless sense network by wired test channel;
Step 2: the tested node of wireless sense network receives after test command, in wireless sense network running, when tested node sends or receives business data packet on wireless channel, all can produce the test packet that has encapsulated business data packet, and report to host computer by wired test channel;
Step 3: the tested node of wireless sense network is received after the end test command of host computer transmission, stops reporting test packet to host computer;
Step 4: host computer carries out Treatment Analysis to the test packet receiving, calculates data packet transmission delay, network topology structure and the packet loss of wireless sense network;
Wherein, described every wired test channel comprises slave computer, testing backboard and programming module, and each slave computer is connected with a testing backboard by the high-speed interface of wired connection; Each testing backboard provides several low-speed interfaces, and each low-speed interface connects a programming module; Between described each testing backboard, be connected with clock sync signal line, for the clock between synchronous each testing backboard.
2. a kind of opening wireless sense network performance test methods according to claim 1, it is characterized in that, described test packet comprises node number field, payload length field, payload field, check code, aerial transmission delay, serial ports transmission delay, wherein in node number, storage sends the node number of the node of this test packet to host computer, the length of stored payload field in payload length field, in payload field, store the business data packet that this node sends or receives, the cyclic redundancy check (CRC) of described check code field store test data bag, the aerial transmission delay of the business data packet that this node of storing in described aerial transmission delay sends or receives, what in described serial ports transmission delay, store is the serial ports delay while this node last time sending test packet to host computer.
3. a kind of opening wireless sense network performance test methods according to claim 1, it is characterized in that, calculated data bag transmission delay comprises the aerial transmission delay of service data transmission bag between tested node and the serial ports transmission delay that tested node is uploaded test packet, and concrete calculation procedure is as follows:
Aerial transmission delay is calculated: tested node is when wireless channel sends business data packet, record transmission stamp start-up time of each business data packet and send successful timestamp, utilize the successful timestamp of transmission to deduct and send stamp start-up time, obtain aerial transmission delay, aerial transmission delay is encapsulated in the test packet of this report and reports host computer by wired test channel, host computer, by correction algorithm, calculates aerial delay parameter accurately; Tested node receives after business data packet at wireless channel, and in the test packet reporting to host computer, aerial transmission delay is zero;
Serial ports transmission delay is calculated: when test packet reports host computer, recording each test packet reports start-up time stamp and reports successfully timestamp, utilization reports successfully timestamp to deduct and reports stamp start-up time, obtain serial ports transmission delay, serial ports transmission delay is encapsulated in the test packet next time reporting and reports host computer by wired test channel, host computer, by correction algorithm, calculates serial ports delay parameter accurately.
4. a kind of opening wireless sense network performance test methods according to claim 1, it is characterized in that, when test packet is sent to the testing backboard place of wired test channel, testing backboard adopts fixed length to cut apart reception, for each fixed length packet marking time of reception stamp, variable delay is become to fixed delay.
5. a kind of opening wireless sense network performance test methods according to claim 1, is characterized in that, obtains the concrete steps of the topological structure of Sensor Network:
Host computer adopts data driven mode, according to the counting period of user's appointment, test process is divided into several time periods, within each time period, tested node sends test packet to report the business data packet transmission quantity of each tested node by wired test channel to host computer, host computer and then gather the business data packet transmission quantity of every link, obtain the degree of correlation of link, adopt the high link of the degree of correlation, according to the topological tree algorithm of depth-first, obtain stable network topology mechanism.
6. a kind of opening wireless sense network performance test methods according to claim 1, is characterized in that packet loss calculation procedure:
In the business data packet transmitting between tested node, be embedded with sequence number, tested node is when sending or receive business data packet, the business data packet sending or receive can be backuped to the payload field of test packet, be encapsulated in test packet and send host computer to by wired test channel, and be stored in database;
Host computer is from database, according to the ascending order of test packet timestamp, take out the test packet of all receptions, resolve successively each test packet, the sequence number of the business data packet of storing in read test packet payload field, according to sequence number, judge whether to exist out of order and overflow situation, if existed, sequence number is upgraded accordingly, sequence number after upgrading is put back in database, process next test packet, until all test packets are all finished dealing with, in sequence number ascending order mode, take out all test packets again, calculate the sequence number of disappearance, and then calculating packet loss.
7. a kind of opening wireless sense network performance test methods according to claim 1, it is characterized in that, also comprise and realize the long-range programming code of tested node, concrete steps are: host computer is write all different basic programming files of at least two node numbers, channel number and transmitting power; Difference by relatively programming file causes due to node number, channel number and transmitted power, produces a parameter locating file; According to basic programming file and its corresponding parameter locating file, and the programming parameter of user's selection, required programming file produced; By wired test channel, send programming file to corresponding programming module, utilize local programming technology, by code programming to tested node.
8. an opening wireless sense network Performance Test System, is characterized in that, comprises host computer, some wired test channel and several tested nodes; Described host computer is connected with some test channel by cable network, and the end of every test channel is connected with a tested node by privately owned interface;
Described host computer, it also, for the test packet of feedback is carried out to Treatment Analysis, calculates data packet transmission delay, network topology structure and the packet loss of wireless sense network for sending test command by test channel to tested node; Described test channel, it is for realizing the reporting of mutual and test data of tested node and host computer test command; Described tested node, it is for receiving test command, and produces test data, by test channel, feeds back to host computer;
Wherein, described every wired test channel comprises slave computer, testing backboard and programming module, and each slave computer is connected with a testing backboard by the high-speed interface of wired connection; Each testing backboard provides several low-speed interfaces, and each low-speed interface connects a programming module; Between described each testing backboard, be connected with clock sync signal line, for the clock between synchronous each testing backboard.
9. a kind of opening wireless sense network Performance Test System according to claim 8, is characterized in that, described programming module, the programming file also sending for receiving host computer, utilizes local programming technology, by code programming to tested node.
10. a kind of opening wireless sense network Performance Test System according to claim 8, it is characterized in that, described testing backboard is also cut apart reception for the data acquisition that tested node is reported by fixed length, for each fixed length packet marking time of reception stamp, variable delay is become to fixed delay.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310683276.XA CN103716201B (en) | 2013-12-12 | 2013-12-12 | Open wireless sensing network performance test method and open wireless sensing network performance test system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310683276.XA CN103716201B (en) | 2013-12-12 | 2013-12-12 | Open wireless sensing network performance test method and open wireless sensing network performance test system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103716201A true CN103716201A (en) | 2014-04-09 |
CN103716201B CN103716201B (en) | 2017-01-18 |
Family
ID=50408806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310683276.XA Expired - Fee Related CN103716201B (en) | 2013-12-12 | 2013-12-12 | Open wireless sensing network performance test method and open wireless sensing network performance test system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103716201B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104301060A (en) * | 2014-10-27 | 2015-01-21 | 北京必创科技股份有限公司 | Node synchronous collecting method and system based on hardware triggering sampling |
CN104703206A (en) * | 2015-02-15 | 2015-06-10 | 中国科学院上海微***与信息技术研究所 | Network protocol performance test bed system for wireless sensor network and testing method |
CN105634836A (en) * | 2014-10-27 | 2016-06-01 | 香港理工大学 | Information processing method and device |
CN106936664A (en) * | 2017-01-18 | 2017-07-07 | 中国电子科技集团公司第五十研究所 | Software defined network path performance test apparatus and method |
CN108712348A (en) * | 2018-05-18 | 2018-10-26 | 王逸人 | Flow control methods, system, equipment and computer readable storage medium |
CN109714221A (en) * | 2017-10-25 | 2019-05-03 | 阿里巴巴集团控股有限公司 | The determination method, apparatus and system of network packet |
CN111008167A (en) * | 2019-11-28 | 2020-04-14 | 四川观想科技股份有限公司 | Distributed computer bus back plate |
CN112887140A (en) * | 2021-01-25 | 2021-06-01 | 中国科学院沈阳自动化研究所 | Multi-cloud collaborative network-cut-off disaster recovery method |
CN114665990A (en) * | 2022-03-10 | 2022-06-24 | 深圳市欣博跃电子有限公司 | Wireless repeater test method, device, electronic equipment and medium |
CN115001999A (en) * | 2022-05-31 | 2022-09-02 | 北京交通大学 | Network state detection method in wireless ad hoc network |
WO2023123105A1 (en) * | 2021-12-29 | 2023-07-06 | 新华三技术有限公司 | Csqf scheduling cycle collecting method and apparatus applied to deterministic network |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711095A (en) * | 2012-05-18 | 2012-10-03 | 中国科学院信息工程研究所 | Method for updating nodes of wireless sensor network in wireless mode |
CN102752843A (en) * | 2012-06-20 | 2012-10-24 | 中国科学院信息工程研究所 | Time synchronization method |
-
2013
- 2013-12-12 CN CN201310683276.XA patent/CN103716201B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102711095A (en) * | 2012-05-18 | 2012-10-03 | 中国科学院信息工程研究所 | Method for updating nodes of wireless sensor network in wireless mode |
CN102752843A (en) * | 2012-06-20 | 2012-10-24 | 中国科学院信息工程研究所 | Time synchronization method |
Non-Patent Citations (3)
Title |
---|
KRISHNA CHINTALAPUDI等: "《Monitoring Civil Structures with a Wireless Sensor Network》", 《IEEE INTERNET COMPUTING》 * |
ZHONGHUA ZHAO等: "An Open Conformance Test Systemtowards the Standardization of Wireless Sensor Networks", 《INTERNATIONAL JOURNAL OF DISTRIBUTED SENSOR NETWORKS》 * |
赵忠华等: "基于零打扰测试背板的无线传感器网络测试平台", 《软件学报》 * |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105634836B (en) * | 2014-10-27 | 2020-03-17 | 香港理工大学 | Information processing method and device |
CN105634836A (en) * | 2014-10-27 | 2016-06-01 | 香港理工大学 | Information processing method and device |
CN104301060A (en) * | 2014-10-27 | 2015-01-21 | 北京必创科技股份有限公司 | Node synchronous collecting method and system based on hardware triggering sampling |
CN104301060B (en) * | 2014-10-27 | 2017-09-15 | 北京必创科技股份有限公司 | A kind of node synchronous collection method and system sampled based on hardware trigger |
CN104703206B (en) * | 2015-02-15 | 2018-05-18 | 中国科学院上海微***与信息技术研究所 | Towards the Network Protocol Performance Testing bed system and test method of wireless sense network |
CN104703206A (en) * | 2015-02-15 | 2015-06-10 | 中国科学院上海微***与信息技术研究所 | Network protocol performance test bed system for wireless sensor network and testing method |
CN106936664B (en) * | 2017-01-18 | 2020-04-07 | 中国电子科技集团公司第五十研究所 | Software defined network path performance testing device and method |
CN106936664A (en) * | 2017-01-18 | 2017-07-07 | 中国电子科技集团公司第五十研究所 | Software defined network path performance test apparatus and method |
CN109714221A (en) * | 2017-10-25 | 2019-05-03 | 阿里巴巴集团控股有限公司 | The determination method, apparatus and system of network packet |
CN108712348A (en) * | 2018-05-18 | 2018-10-26 | 王逸人 | Flow control methods, system, equipment and computer readable storage medium |
CN111008167A (en) * | 2019-11-28 | 2020-04-14 | 四川观想科技股份有限公司 | Distributed computer bus back plate |
CN112887140A (en) * | 2021-01-25 | 2021-06-01 | 中国科学院沈阳自动化研究所 | Multi-cloud collaborative network-cut-off disaster recovery method |
WO2023123105A1 (en) * | 2021-12-29 | 2023-07-06 | 新华三技术有限公司 | Csqf scheduling cycle collecting method and apparatus applied to deterministic network |
CN114665990A (en) * | 2022-03-10 | 2022-06-24 | 深圳市欣博跃电子有限公司 | Wireless repeater test method, device, electronic equipment and medium |
CN114665990B (en) * | 2022-03-10 | 2024-03-22 | 深圳市欣博跃电子有限公司 | Wireless repeater testing method and device, electronic equipment and medium |
CN115001999A (en) * | 2022-05-31 | 2022-09-02 | 北京交通大学 | Network state detection method in wireless ad hoc network |
CN115001999B (en) * | 2022-05-31 | 2024-04-02 | 北京交通大学 | Network state detection method in wireless ad hoc network |
Also Published As
Publication number | Publication date |
---|---|
CN103716201B (en) | 2017-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103716201A (en) | Open wireless sensing network performance test method and open wireless sensing network performance test system | |
CN103825883A (en) | Multi-protocol conversion equipment based on wireless ZigBee, CAN bus and MODBUS/TCP and realization method thereof | |
CN104426950A (en) | Electric power Internet of things intelligent communication method, system and gateway | |
CN103532790B (en) | Transformer station process layer network performance quantitative testing system | |
CN205485380U (en) | Industrial data collection system | |
CN103117900B (en) | Configurable industrial Ethernet data parsing system and parsing method | |
CN105427566A (en) | Wind power plant remote real-time monitoring system and method based on wireless sensor network | |
CN201600774U (en) | Double-channel automatic meter reading system | |
CN105450384A (en) | Synchronous clock time synchronization apparatus for communication module | |
CN110519841A (en) | Positioning system and method based on wisdom room point | |
CN102761941A (en) | Wireless intelligent network protocol with ultra-low power consumption | |
CN102523136A (en) | Wireless sensor network data link layer protocol test method and system | |
CN104053164A (en) | Internet-of-things gateway testing system and method | |
CN113036930B (en) | Power grid data communication management system | |
CN201732467U (en) | Multi-point and multi-type data acquisition system based on wireless sensor network | |
Yang et al. | A systematic network traffic emulation framework for digital twin network | |
CN102593955A (en) | Comprehensive intelligent time frequency testing system and testing method | |
CN201622685U (en) | Wireless sensor network monitoring system for field atmospheric environment and hydrologic information | |
WO2023221547A1 (en) | Device fault detection method and device, and storage medium | |
Kohtamaki et al. | Piccsim toolchain-design, simulation and automatic implementation of wireless networked control systems | |
CN106656395A (en) | Improved system and method for synchronous time measurement in power grid based on self-learning | |
Chen et al. | High-performance fieldbus application-specific integrated circuit design for industrial smart sensor networks | |
CN103246223A (en) | Zigbee-based sensing measurement and control system | |
Dobrescu et al. | Using IoT communication infrastructure for improving performance of power microgrids | |
CN108683547A (en) | A kind of wireless sensor network configuration method of software definition |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170118 Termination date: 20191212 |
|
CF01 | Termination of patent right due to non-payment of annual fee |