CN109379248A - Protocol stack test macro and method - Google Patents

Protocol stack test macro and method Download PDF

Info

Publication number
CN109379248A
CN109379248A CN201811148465.6A CN201811148465A CN109379248A CN 109379248 A CN109379248 A CN 109379248A CN 201811148465 A CN201811148465 A CN 201811148465A CN 109379248 A CN109379248 A CN 109379248A
Authority
CN
China
Prior art keywords
network node
network
test
topology structure
bottom plate
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
Application number
CN201811148465.6A
Other languages
Chinese (zh)
Other versions
CN109379248B (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.)
Shanghai Jin Zhuo Network Technology Co Ltd
Original Assignee
Shanghai Jin Zhuo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Jin Zhuo Network Technology Co Ltd filed Critical Shanghai Jin Zhuo Network Technology Co Ltd
Priority to CN201811148465.6A priority Critical patent/CN109379248B/en
Publication of CN109379248A publication Critical patent/CN109379248A/en
Application granted granted Critical
Publication of CN109379248B publication Critical patent/CN109379248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of protocol stack test macro and methods.Wherein, system includes: test bottom plate and at least two network nodes;Test bottom plate is provided with programming device, and the programming device is connected with each network node respectively by testing bottom plate;The programming device is used for: obtaining network topology structure;Data channel according to network topology structure, between at least two network nodes of connection and/or disconnection;At least two network nodes are used for: reading the data of corresponding data channel, the data read are for carrying out data service test.The embodiment of the present invention solves the defect that true physical environment can not be simulated in analog simulation environment, improves the accuracy of protocol stack test;The device that whole system includes is less and structure is simple, can make data service test quickly come into force, be easy to operate, maintenance cost it is low.

Description

Protocol stack test macro and method
Technical field
The present embodiments relate to measuring technology more particularly to a kind of protocol stack test macros and method.
Background technique
Protocol stack (Protocol Stack) refers to that the summation of each layer protocol in network, image reflect a network The process of middle file transmission.For the consistency and safety of guarantee agreement, protocol stack test particularly significant.
Currently, protocol stack test method is analog simulation scheme.Analog simulation scheme is that hardware environment is simulated on PC, right The part of protocol stack is driven piles, and isolation carries out emulation testing.This scheme defect is that the hardware environment of PC simulation is all ideal Change, cannot be tested in true hardware entities, temporal requirement can not effectively cannot be solved emulated protocol suite The certainly real-time demand of the high frequency disruptions of physical layer, cause on entity device execute may various problems.As it can be seen that simulation is imitative True physical environment can not be very simulated, to can not accurately be debugged to protocol stack.
Summary of the invention
The embodiment of the present invention provides a kind of protocol stack test macro and method, can not mould in analog simulation environment to solve The defect for drawing up true physical environment improves the accuracy of protocol stack test.
In a first aspect, the embodiment of the invention provides a kind of protocol stack test macros, comprising: test bottom plate and at least two Network node;
The test bottom plate is provided with programming device, the programming device by test bottom plate respectively with each net Network node is connected;
The programming device is used for: obtaining network topology structure;According to network topology structure, connects and/or be disconnected to Data channel between few two network nodes;
At least two network nodes are used for: reading the data of corresponding data channel, wherein the data read are used In progress data service test.
Second aspect, the embodiment of the invention also provides a kind of protocol stack test methods, comprising:
Obtain network topology structure;
According to network topology structure, connects and/or disconnect the data channel between at least two network nodes, at least Two network nodes read the data of corresponding data channel, wherein the data read are for carrying out data service survey Examination.
In the embodiment of the present invention, test bottom plate is provided with programming device, and the programming device passes through test bottom plate point It is not connected with each network node, so that the network node of test is connected and be tested, realizes true physical device Connection;Network topology structure is obtained by programming device;According to network topology structure, connection and/or disconnection at least two Data channel between network node;At least two network nodes read corresponding data channel, for carrying out data The data of operational trials, to realize the flexible configuration of network topology structure, solving in analog simulation environment can not be simulated The defect of true physical environment, improves the accuracy of protocol stack test;The device that whole system includes is less and structure is simple It is single, data service test can be made quickly to come into force, is easy to operate, maintenance cost it is low;Moreover, being present in wireless network in network node When network transmitting scene, the embodiment of the present invention is able to solve the prior art can not be to non-stop layer, dynamic topology network structure Wireless self-networking provides the technical issues of test.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram for protocol stack test macro that the embodiment of the present invention one provides;
Fig. 2 is a kind of structural schematic diagram for protocol stack test macro that the embodiment of the present invention three provides;
Fig. 3 is a kind of structural schematic diagram for protocol stack test macro that the embodiment of the present invention three provides;
Fig. 4 is a kind of network topology structure figure that the embodiment of the present invention three provides;
Fig. 5 is another network topology structure figure that the embodiment of the present invention three provides;
Fig. 6 is the structural schematic diagram for another protocol stack test macro that the embodiment of the present invention three provides;
Fig. 7 is the structural schematic diagram for another protocol stack test macro that the embodiment of the present invention three provides;
Fig. 8 is a kind of flow chart for protocol stack test method that the embodiment of the present invention four provides;
Fig. 9 is a kind of flow chart for protocol stack test method that the embodiment of the present invention five provides;
Figure 10 is the flow chart for another protocol stack test method that the embodiment of the present invention five provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of structural schematic diagram for protocol stack test macro that the embodiment of the present invention one provides, protocol stack test System includes: test bottom plate 11 and at least two network nodes 13.
Wherein, test bottom plate 11 is provided with programming device 12, and the setting of programming device 12 is on test bottom plate 11, setting Mode include but is not limited to weld.Programming device 12 is multiplex roles, has parallel processing capability, and programmable control is single Member, such as FPGA (Field-Programmable Gate Array, i.e. field programmable gate array), CPU, SOC, TPU etc.. Wherein, FPGA has the advantage of hardware concurrent, competitively priced, and the software tool carried provides programmed environment, more stable Property.Based on this, using FPGA carry out test can quickly come into force, easy to operate, maintenance cost is low.
Testing bottom plate 11 is topological plate, the programming device 12 by test bottom plate 11 respectively with each network node 13 are connected, then the data channel Topology connection of each network node 13.Wherein, network node 13 is test node, is specially had The node, such as ad hoc network module, the network terminal, repeater, router etc. of standby communication function.If programming device 12 connects Two network nodes 13, then realize point-to-point test, if programming device 12 connects more than two network nodes 13, Realize the test of multi-point.
The programming device 12 is used for: obtaining network topology structure;It connects and/or is disconnected to according to network topology structure Data channel between few two network nodes 13.Wherein, network topology structure includes but is not limited to hub-and-spoke configuration, ring junction Structure, bus topology, distributed frame, tree structure, cellular topology etc..It further, further include that node is opened up in network The position in structure is flutterred, such as first network node is the father node in tree structure, the second network node is in tree structure Child node.Programming device 12 passes through connection 13 data channel of network node, and/or, disconnect the number between network node 13 According to channel, the Topology connection between network node 13 is realized, and then realize network topology structure.
At least two network nodes 13 are used for: reading the data of corresponding data channel, wherein the data read For carrying out data service test.The corresponding data channel of network node 13 refers to the data channel being connected with network node 13, one A network node 13 may correspond at least one data channel.It optionally, can be straight if network node 13 is configured with test platform It connects and data service test is carried out to the data of the data channel read.If test platform is not configured in network node 13, alternatively, When test case is more complicated, can by the test equipment that is connect with network node 13 to the data of the data channel read into Row data operational trials.
It is all equality between network node 13 in the embodiment of the present invention, i.e. multinode networking.Any one network section 13 failures of point exit, and network can dynamically change routing, work normally, the survivability with network, to constitute without in The network architecture of the heart.In one example, which includes multiple ad hoc network modules, then ad hoc network can be performed in protocol stack test macro Multinode, non-stop layer, dynamic topology testing scheme.
In the embodiment of the present invention, test bottom plate 11 is provided with programming device 12, and the programming device 12 passes through test Bottom plate 11 is connected with each network node 13 respectively, so that the network node 13 of test is connected and be tested, realizes true The connection of real physical device;Network topology structure is obtained by programming device 12;According to network topology structure, connection and/ Or the data channel between at least two network nodes 13 of disconnection;It is logical that at least two network nodes 13 read corresponding data Road, the data for carrying out data service test solve analog simulation to realize the flexible configuration of network topology structure The defect that true physical environment can not be simulated in environment improves the accuracy of protocol stack test;What whole system included Device is less and structure is simple, can make data service test quickly come into force, be easy to operate, maintenance cost it is low;Moreover, in network When node is present in wireless network transmissions scene, the embodiment of the present invention is able to solve the prior art can not be to non-stop layer, dynamic The wireless self-networking of state topology network architecture provides the technical issues of test.
Embodiment two
In above-described embodiment or following embodiments, optionally, the test bottom plate 11 and the network node 13 divide It is not provided with the connector to match, and the connector by matching is connected.Test connector on bottom plate 11 and programmable The interface or pin of device 12 are connected, to realize the mutually interconnection between programming device 12 and network node 13 by connector It connects and data interaction.
Optionally, test bottom plate 11 is provided at least two groups connector, and every group of connector has multiple pins.For example, surveying Examination bottom plate 11 is provided with 9 80PIN connectors, and a connector provides a data channel.Network node 13 is also equipped with 80PIN connector, and the connector on test bottom plate 11 is plugged by the 80PIN connector.As it can be seen that an above-mentioned test bottom Plate 11 can be realized 9 network nodes 13 and be connected.Optionally, which is I/Q data channel, and I (in-phase) is indicated Same phase, Q (quadrature) indicates orthogonal, with 90 degree of I phase difference.
In the present embodiment, network node 13 is attached in the corresponding input/output interface of physical layer signal, only in number It is handled in domain, is not related to analog domain signal processing, reduce system complexity;Pass through true physics I/ between network node 13 Q data channel interacts, and eliminates the signal interference of analog domain, without using adjustable attenuator, shielded box and large-scale control The test equipment 40 of the high prices such as cabinet;Moreover, the present embodiment on test bottom plate 11 and network node 13 by being arranged phase The connector matched, it is easy to operate also with regard to being not necessarily to carry out secondary development without the interface of 40 producer of test equipment, save people Power resource.
Embodiment three
In above-described embodiment or following embodiments, as shown in Fig. 2, test bottom plate 11 further includes power interface 14, electricity Source interface 14 connects power module 20.Test process includes: 1) power switch connection, system electrification;2) test bottom plate 11 is each Network node 13 provides power supply, work clock;Programming device 12 provides data channel and register, makes each network node 13 all It can work normally, independently of each other, be independent of each other;3) after each network node 13 powers on, initialization is completed, corresponding data are passed through Channel, obtains the data of other network nodes 13 transmission, and handles data, parses, and realizes that the information between module is handed over Mutually;4) programming device 12 obtains internal pre-stored network topology structure, alternatively, the network issued according to control equipment 30 Topology merging instruction determines network topology structure, and according to network topology structure, at least two nets of connection and/or disconnection Data channel between network node 13;5) test equipment 40 carries out data service test to the data that network node 13 is read.
In 2), test bottom plate 11 includes: register corresponding with network node 13, i.e. a network node 13 is corresponding One register.Wherein, register can be the internal register that programming device 12 provides, and be also possible to test bottom plate 11 Register upper, being arranged outside programming device 12, this register are connected by testing bottom plate 11 with programming device 12.It considers Requirement in protocol stack test to signaling rate, the preferential internal register provided using programming device 12.
After programming device 12 initializes, the corresponding register of each network node 13 is provided and is provided and each network node Data channel between 13.In one example, data channel is specially I/Q data channel, and I/Q data are 24bit, then provides each The corresponding 24bit register of network node 13 and corresponding 24bit I/Q data channel.Further, programming device 12 is logical Cross First Input First Output (First Input First Output, FIFO) to signal carry out caching be submitted to corresponding deposit Device.
In 3), each network node 13 is separately operable complete protocol stack, and network node 13 is from register read I/Q data It is handled, and data is sent directly to corresponding I/Q data channel, i.e., pass through I/Q data channel between network node 13, Carry out information exchange.
In 4), optionally, it is previously stored with network topology structure in programming device 12, optionally, is receiving net Before the instruction of network topology merging, a network topology structure can be obtained from pre-stored network topology structure.It is receiving To after network topology structure control instruction, if network topology structure control instruction and current network topology structure mismatch, I.e. current network topology structure needs to change, then the network topology structure control instruction issued according to control equipment 30 determines new Network topology structure.
As shown in Fig. 2, control equipment 30 is connect with test bottom plate 11, for issuing network topology to the test bottom plate 11 Structure control instruction.In one example, test bottom plate 11 includes joint test behavior tissue (Joint Test Action Group, JTAG) interface, programming device 12 by jtag interface 15 with control equipment 30 be connected.
Further, programming device 12 receives network topology structure control instruction, judges the network topology knot received Whether structure control instruction, according to network topology structure control instruction, determines with current network topology structure matching if mismatched New network topology structure;If it does, then continuing waiting for receiving network topology structure control instruction.
The make and break process of the data channel of network node 13 is described below in detail.
Assuming that the source terminal of signal is first network node, the transmitting terminal of signal is the second network node, first network section The quantity of point and the second network node is at least one.Programming device 12 is for executing following at least one operation:
The first operation: by the transmission Signal averaging of first network node to the corresponding register of the second network node, and By the transmission Signal averaging of the second network node to the corresponding register of first network node, to connect first network node and Data channel between two network nodes.
In one example, interconnection is realized between No. zero network node, No.1 network node and No. two network nodes, code is such as Under:
Second of operation: deleting the transmission signal of first network node in the corresponding register of the second network node, and The signal of the second network node transmission is deleted, in the corresponding register of first network node to disconnect first network node and the Data channel between two network nodes.
In 5), as shown in Fig. 2, test equipment 40 is connected with network node 13, for what is read to network node 13 Data carry out data service test.In one example, test equipment 40 connects the MINI PCI-E interface on network node 13 and turns USB interface carries out data service test.After network node 13 reads the data of corresponding data channel, judge that the data are The no data for this node, such as the data are null frame, then the data are not the data of this node, then abandon the data;If The data are not null frames, then determine that the data are the data of this node, further, judge whether to need to forward the data, are led to Table of query and routing is crossed, if the target MAC (Media Access Control) address of the data is not the MAC Address of this node, data are carried out by data channel Forward process;If the target MAC (Media Access Control) address of the data is the MAC Address of this node, this node handles the data.
Further, network node 13 continues in data forwarding or after abandoning data or this node processing from right Data are read in the data channel answered.
In the present embodiment, network topology structure as needed, the interface provided by test bottom plate 11 issues control life It enables, changes being connected and disconnected from for data channel, to control the variation of network topology structure.It is programmable by programming device 12 Function, realize the dynamic interaction of signal.
In the above embodiments, it is described test bottom plate 11 quantity can for one, two or more.One The number of nodes that test bottom plate 11 can be tested is limited, and at least two test bottom plates 11 are connected by connector, to realize more Plate cascade, the test scene suitable for more nodes.Wherein, connector is the 80PIN connector in above-described embodiment, two surveys Try bottom plate 11 80PIN connector between by flexible printed circuit board (Flexible Printed Circuit board, FPC it) connects.Optionally, at least two test bottom plates 11 can also be connected by bus, can for example, by using high-speed bus agreement The mating developing network management software of configuration device tests the multistage connection of bottom plate 11 to realize, any number of node may be implemented Dynamic topology test.
Three kinds of 11 cascade systems of test bottom plate and test case is described in detail below.It is worth noting that following manner and The structure and testing process for being intended to explain protocol stack test macro are tested, quantity, the network node 13 of bottom plate 11 are tested Quantity and test case be not limited to it is following listed.
The first: nine node connection type of veneer, i.e., one test bottom plate 11 connects 9 network nodes 13, such as Fig. 3 institute Show, the number of network node 13 and corresponding test equipment 40 is respectively 0~8.
Second: three plate grade union II, ten node cascade system.
As shown in fig. 6, respectively test bottom plate 11 includes 9 connectors, respectively No. zero connector to No. eight connector (numbers For CH0~CH8).No. two connectors of No. four connectors (number CH5) of the second test bottom plate 11 and the first test bottom plate 11 (number CH2) tests bottom plate by FPC15 connection, No. two connectors (number CH2) of the second test bottom plate 11 and third 11 No. four connectors (number CH5) pass through FPC15 connection.Theoretically, 23 node tests may be implemented, it is contemplated that net Network capacity, the present embodiment carry out 20 node tests.
Second test bottom plate 11 provides clock to the first test bottom plate 11 and third test bottom plate 11, it is therefore an objective to make three pieces of surveys The clock for trying bottom plate is consistent, prevents from introducing unpredictable problem since clock is asynchronous.When design principle is according to FPGA Delay characteristics, cabling is longer, and time delay is bigger, driving capability decline.
Three test bottom plates are separately connected power module 20, and three test bottom plates carry out clock synchronization and initialization after powering on Work.Three test bottom plates are respectively the network node 13 connected and provide work clock, I/Q data channel and power supply, make network Node can work normally, and independently of each other, be independent of each other.
The third: ten plates cascade 72 node cascade systems.
As shown in fig. 7, second test bottom plate to the tenth test bottom plate is connected by FPC centered on the first test bottom plate 11 It connects around the first test bottom plate 11, completes the cascade of ten plates.13 numbers of network node be (10-1) × (9-1)=72 (not It shows).
Clock is provided from the first test bottom plate 11 to the second test bottom plate to the tenth test bottom plate, it is therefore an objective to make ten tests The clock of bottom plate is consistent, prevents from introducing unpredictable problem since clock is asynchronous.Design principle is the time delay according to FPGA Characteristic, cabling is longer, and time delay is bigger, driving capability decline.
Ten test bottom plates are separately connected power module (not shown), after powering on ten test bottom plates carry out clocks it is synchronous and Initial work.Ten test bottom plates are respectively the network node connected and provide work clock, I/Q data channel and power supply, make Network node can work normally, and independently of each other, be independent of each other.
The test case that above-mentioned three kinds of cascade systems use includes but is not limited to following several:
1) N node dynamic topological structure is tested, for example, building net as shown in Figure 4 in nine node test scheme of veneer Network topological structure, N=9.In three plate grade union IIs, ten node test scheme, 2≤N≤20.72 node levels are cascaded in ten plates Join in testing scheme, 2≤N≤72.
2) non-stop layer is tested.Any one network node failure exits, and network can dynamically change routing, normal work Make, the survivability with network.
3) point-to-point time delay, multi-hop transmission time delay are measured.
4) measurement M jumps data transmission delay.Such as in nine node test scheme of veneer, 1≤N≤8, Fig. 5 show survey Amount 8 jumps required network topology structure figure.In three plate grade union IIs, ten node test scheme, 1≤N≤19.Seven are cascaded in ten plates 12 node levels join in testing scheme, 1≤N≤71.Data include but is not limited to audio, video etc..
5) measurement P jumps File Transfer Protocol (File Transfer Protocol, FTP) and downloads time delay.Such as in veneer In nine node test schemes, 1≤P≤8.In three plate grade union IIs, ten node test scheme, 1≤P≤19.70 are cascaded in ten plates Two node levels join in testing scheme, 1≤P≤71.
6) network dynamic topology networking convergence time is measured.
Table 1 shows protocol stack test macro, traditional software emulation scheme and topology simulation provided by the above embodiment The comparison of device scheme, from table 1 it follows that protocol stack test macro provided in an embodiment of the present invention is imitated with preferable technology Fruit.
Table 1
Example IV
Fig. 8 is a kind of flow chart for protocol stack test method that the embodiment of the present invention four provides, and the present embodiment is applicable to The case where testing point-to-point or multi-point protocol stack is suitable for protocol stack test macro provided by the above embodiment, the party Method can be executed by programming device 12, be specifically comprised the following steps:
S110, network topology structure is obtained.
Optionally, the network topology that programming device 12 prestores is obtained as a result, alternatively, the net issued according to control equipment 30 The instruction of network topology merging, determines network topology structure.
S120, according to network topology structure, connection and/or disconnect data channel between at least two network nodes, with The data of corresponding data channel are read at least two network nodes, wherein the data read are for carrying out data service Test.
Optionally, by the transmission Signal averaging of first network node to the corresponding register of the second network node, and by The transmission Signal averaging of two network nodes is to the corresponding register of first network node, to connect first network node and the second net Data channel between network node;And/or the transmission of first network node is deleted in the corresponding register of the second network node Signal, and the signal of the second network node transmission is deleted in the corresponding register of first network node, to disconnect first network Data channel between node and the second network node.
It is worth noting that the associated description of S110 and S120 is detailed in the various embodiments described above, details are not described herein again.
In the present embodiment, network topology structure is obtained by programming device 12;According to network topology structure, connection and/ Or the data channel between at least two network nodes 13 of disconnection;It is logical that at least two network nodes 13 read corresponding data Road, the data for carrying out data service test solve analog simulation to realize the flexible configuration of network topology structure The defect that true physical environment can not be simulated in environment improves the accuracy of protocol stack test;Moreover, in network node When being present in wireless network transmissions scene, the embodiment of the present invention is able to solve the prior art can not be to non-stop layer, dynamically open up The technical issues of wireless self-networking offer test of network structure is provided.
Embodiment five
Fig. 9 is a kind of flow chart for protocol stack test method that the embodiment of the present invention five provides, and is included the following steps:
S210, beginning.
S220, initialization.Execute S230 and S240.
S230, it provides each network node corresponding register, and the data channel between each network node is provided.It holds Row S250.
S240, power supply, clock to network node are provided.
S250, from stored network topology structure, obtain a network topology structure.
S251, led to according to new network topology structure, connection and/or the data disconnected between at least two network nodes Road.
S260, judge whether to receive network topology structure control instruction, if received, jump to S270, if not It receives, continues to execute this step.
S270, the network topology structure control instruction that receives of judgement whether with current network topology structure matching, if Matching, then jump to S260, if it does not match, continuing to execute S280.
S280, according to network topology structure control instruction, determine new network topology structure.It returns and executes S251.
If the corresponding network topology structure of network topology structure control instruction is identical as current network topology structure, recognize For network topology structure control instruction and current network topology structure matching;If the corresponding net of network topology structure control instruction Network topological structure is different from current network topology structure, then it is assumed that network topology structure control instruction and current network topology structure It mismatches, then determines new network topology structure according to network topology structure control instruction.
Below to test bottom plate software flow and ad hoc network module software process, protocol stack test is described in detail in conjunction with Figure 10 Process.
Testing bottom plate software flow includes following operation:
S300, beginning.
S310, initialization.Execute S320 and S330.
S320, power supply, clock to respective networking module are provided.Triggering executes S400.
S330, it provides respective networking module corresponding register, such as in 9 node test scheme of veneer, provides 9 tunnels 24bit sends I/Q data receiver register.Continue to execute S340.
Data channel between S340, offer and respective networking module.Such as in 9 node test scheme of veneer, provide 9 Road 24bitI/Q data channel.Continue to execute S350.
S350, from stored network topology structure, obtain a network topology structure, continue to execute S351.
S351, led to according to new network topology structure, connection and/or the data disconnected between at least two network nodes Road.Continue to execute S360 and S370.
S360, etc. network topology structure control instruction to be received.If received, S380 is jumped to;If do not received, Continue to execute this operation.
S370, I/Q data channel and data fifo caching are committed to corresponding ad hoc network module.
S380, judge whether network topology structure needs to change, specifically, judge that the network topology structure received controls Instruction whether with current network topology structure matching.If necessary to change, i.e., mismatches, then jump with current network topology structure To S390.If you do not need to changing, i.e., with current network topology structure matching, then returns and execute S360.
S390, according to network topology structure control instruction, determine new network topology structure, return and execute S351.
Ad hoc network module software process includes following operation:
S400, beginning.
S410, initialization
S420, the data for reading I/Q data channel.This operation executes after S370.
Whether the data that S430, judgement are read are the data of this ad hoc network module, if so, continuing to execute S440, such as Fruit is no, then executes S450.
S440, judge whether to need to forward the data.If so, S460 is executed, if not, executing S470.
S450, the data are abandoned, returns and executes S420.
S460, data transmission disposal is carried out, optionally, data transmission disposal is carried out by I/Q data channel.Triggering executes S370。
S470, this ad hoc network module handle the data.Triggering executes S370.
In the present embodiment, network topology structure as needed issues control command, changes the connection of data channel and breaks It opens, to control the variation of network topology structure.By the programmable function of programming device 12, realize that the dynamic of signal is handed over Mutually.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art Part can be embodied in the form of software products, which can store in computer readable storage medium In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (10)

1. a kind of protocol stack test macro characterized by comprising test bottom plate and at least two network nodes;
The test bottom plate is provided with programming device, the programming device by test bottom plate respectively with each network section Point is connected;
The programming device is used for: obtaining network topology structure;According to network topology structure, connection and/or disconnection at least two Data channel between a network node;
At least two network nodes are used for: reading the data of corresponding data channel, wherein the data read be used for into Row data operational trials.
2. system according to claim 1, which is characterized in that the test bottom plate and the network node are respectively arranged with The connector to match, and the connector by matching is connected.
3. system according to claim 1, which is characterized in that the test bottom plate includes: posts corresponding with network node Storage;
The programming device is used for the transmission Signal averaging of first network node to the corresponding register of the second network node, And by the transmission Signal averaging of the second network node to the corresponding register of first network node, with connect first network node and Data channel between second network node;And/or
Transmission signal of the programming device for the deletion first network node in the corresponding register of the second network node, And deleted in the corresponding register of first network node the second network node transmission signal, with disconnect first network node and Data channel between second network node.
4. system according to claim 1, which is characterized in that the quantity of the test bottom plate is at least two;
At least two test bottom plate is connected by connector or is connected by bus.
5. system according to claim 1, which is characterized in that further include: control equipment;
The control equipment is connect with test bottom plate, for issuing network topology structure control instruction to the test bottom plate;
The test bottom plate is used to determine network topology structure according to the network topology structure control instruction.
6. system according to claim 1-5, which is characterized in that further include test equipment;
The test equipment is connected with network node, and the data for reading to network node carry out data service test.
7. a kind of protocol stack test method characterized by comprising
Obtain network topology structure;
According to network topology structure, connects and/or disconnect the data channel between at least two network nodes, at least two The network node reads the data of corresponding data channel, wherein the data read are for carrying out data service test.
8. the method according to the description of claim 7 is characterized in that described connect and/or be disconnected to according to network topology structure Data channel between few two network nodes, comprising:
By the transmission Signal averaging of first network node to the corresponding register of the second network node, and by the second network node Signal averaging is sent to the corresponding register of first network node, to connect between first network node and the second network node Data channel;And/or
The transmission signal of first network node is deleted in the corresponding register of the second network node, and in first network node pair The signal of the second network node transmission is deleted in the register answered, to disconnect between first network node and the second network node Data channel.
9. the method according to the description of claim 7 is characterized in that the acquisition network topology structure, comprising:
According to the network topology structure control instruction that control equipment issues, network topology structure is determined.
10. according to the described in any item methods of claim 7-9, which is characterized in that before obtaining network topology structure, also wrap It includes:
Data channel between the corresponding register of each network node and offer and each network node is provided.
CN201811148465.6A 2018-09-29 2018-09-29 Protocol stack testing system and method Active CN109379248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811148465.6A CN109379248B (en) 2018-09-29 2018-09-29 Protocol stack testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811148465.6A CN109379248B (en) 2018-09-29 2018-09-29 Protocol stack testing system and method

Publications (2)

Publication Number Publication Date
CN109379248A true CN109379248A (en) 2019-02-22
CN109379248B CN109379248B (en) 2020-12-25

Family

ID=65402426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811148465.6A Active CN109379248B (en) 2018-09-29 2018-09-29 Protocol stack testing system and method

Country Status (1)

Country Link
CN (1) CN109379248B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095375A (en) * 2021-11-16 2022-02-25 烟台海颐软件股份有限公司 Network topology algorithm, industrial control safety simulation method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060039538A1 (en) * 2004-08-23 2006-02-23 Minnis John A "Software only" tool for testing networks under high-capacity, real-world conditions
CN101541098A (en) * 2008-12-19 2009-09-23 中国移动通信集团浙江有限公司 Simulation method of protocol stack in mobile communication
CN101656636A (en) * 2009-03-04 2010-02-24 北京邮电大学 Test method of multi-layer protocol stack network equipment based on OPNET
CN102420717A (en) * 2011-11-04 2012-04-18 展讯通信(上海)有限公司 Test method and system for mobile terminal protocol stack
CN103237321A (en) * 2013-05-08 2013-08-07 重庆金美通信有限责任公司 Physical layer channel analog method for testing network protocol stacks
CN104484257A (en) * 2014-12-04 2015-04-01 中国航天科技集团公司第九研究院第七七一研究所 Universal 1553B bus communication simulation testing system and method
CN107948009A (en) * 2017-10-30 2018-04-20 中国电力科学研究院有限公司 The construction method and model of the data exchange channels of PLC protocol tests

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060039538A1 (en) * 2004-08-23 2006-02-23 Minnis John A "Software only" tool for testing networks under high-capacity, real-world conditions
CN101541098A (en) * 2008-12-19 2009-09-23 中国移动通信集团浙江有限公司 Simulation method of protocol stack in mobile communication
CN101656636A (en) * 2009-03-04 2010-02-24 北京邮电大学 Test method of multi-layer protocol stack network equipment based on OPNET
CN102420717A (en) * 2011-11-04 2012-04-18 展讯通信(上海)有限公司 Test method and system for mobile terminal protocol stack
CN103237321A (en) * 2013-05-08 2013-08-07 重庆金美通信有限责任公司 Physical layer channel analog method for testing network protocol stacks
CN104484257A (en) * 2014-12-04 2015-04-01 中国航天科技集团公司第九研究院第七七一研究所 Universal 1553B bus communication simulation testing system and method
CN107948009A (en) * 2017-10-30 2018-04-20 中国电力科学研究院有限公司 The construction method and model of the data exchange channels of PLC protocol tests

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114095375A (en) * 2021-11-16 2022-02-25 烟台海颐软件股份有限公司 Network topology algorithm, industrial control safety simulation method and system
CN114095375B (en) * 2021-11-16 2024-03-15 烟台海颐软件股份有限公司 Network topology algorithm, industrial control safety simulation method and system

Also Published As

Publication number Publication date
CN109379248B (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US6714563B1 (en) Network clock synchronization scheme
CN101626383A (en) Route test method of aeronautical telecommunication network and router virtual machine
CN114422010B (en) Protocol testing method of satellite communication simulation platform based on network virtualization
CN109274603A (en) Interconnecting method and device between heterogeneous protocol data based on software definition
CN106888050B (en) MRR fault detection means and method in PNoC
CN101610275B (en) Simulation system supporting large-scale distributed P2P, device and method for realizing simulation system
CN109150645B (en) Test method and system for switching chip
CN110492984A (en) Data transmission method, device, Data Analysis Services system and computer equipment
Liu et al. PSNet: Reconfigurable network topology design for accelerating parameter server architecture based distributed machine learning
CN104410527A (en) Topological detection method, exchanger and heat stacking system
CN101330411B (en) Method and system for simulating large-scale network topological
CN105450433B (en) Configuration method, the device and system of high-speed serial bus parameter
CN110062303B (en) Mesh network-based self-adaptive high-capacity cross optical communication equipment architecture
CN109379248A (en) Protocol stack test macro and method
CN111092925B (en) Block chain capacity expansion processing method, device and equipment
CN113162816B (en) Testing method and testing system for OSPFv3 protocol of switch
CN107566098B (en) The generation method and generation system of software defined network application cycle tests
CN111585821B (en) High-speed interconnection network topology discovery method, device, medium and high-performance computing system
CN102665237A (en) Simulative Ir interface protocol conformance testing device and interoperability testing method
CN106230728A (en) The method and device of fast route convergence in the case of circuit concussion
Anderson An investigation into the use of software defined networking controllers in aerial networks
CN110460497A (en) A kind of automated testing method, apparatus and system
CN106294146B (en) Parameter replacement test method and device
CN105490874B (en) Blade switch system, the rack network equipment and blade switch test method
US5784591A (en) Parallel simulator for semiconductor integrated circuit

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Room 802a, building 5, No. 3000, Longdong Avenue, China (Shanghai) pilot Free Trade Zone, Pudong New Area, Shanghai, 201203

Applicant after: Shanghai Jinzhuo Technology Co., Ltd

Address before: 201203 Shanghai City, Pudong New Area free trade zone fanchun Road No. 400, building 1, room 301-151

Applicant before: SHANGHAI KINDROID NETWORK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant