CN103166842B - Message forming method based on multi-core platform and generating means - Google Patents

Message forming method based on multi-core platform and generating means Download PDF

Info

Publication number
CN103166842B
CN103166842B CN201110415847.2A CN201110415847A CN103166842B CN 103166842 B CN103166842 B CN 103166842B CN 201110415847 A CN201110415847 A CN 201110415847A CN 103166842 B CN103166842 B CN 103166842B
Authority
CN
China
Prior art keywords
core
message
data
service data
address information
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.)
Active
Application number
CN201110415847.2A
Other languages
Chinese (zh)
Other versions
CN103166842A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201110415847.2A priority Critical patent/CN103166842B/en
Publication of CN103166842A publication Critical patent/CN103166842A/en
Application granted granted Critical
Publication of CN103166842B publication Critical patent/CN103166842B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of message forming method based on multi-core platform, multi-core platform includes controlling core and multiple data core, controls core and runs control process, and multiple data core are separately operable the data process of correspondence, comprise the following steps: receive configuration file;Control process selects corresponding service data core according to the number of desired data core in configuration file, and multiple address informations are respectively allocated to multiple service data core;Control process carries out process division and thinks that multiple service data core sets up corresponding data process;The data process that the verification of multiple service datas is answered is respectively according to address information and the test information generation message of distribution, and sends message to system under test (SUT).The invention also discloses a kind of message generating means based on multi-core platform.The present invention can provide bigger network traffics to test the abundant of backend application with realization under line.

Description

Message forming method based on multi-core platform and generating means
Technical field
The present invention relates to network communication technology field, raw particularly to a kind of message based on multi-core platform One-tenth method and generating means.
Background technology
Along with the high speed development of network technology, the data of high flow capacity have become as in network transmission Main flow in the data gradually network transmission of principal character, such as 10G even more high flow capacity.In order to keep away Exempt from the risk brought on line, need under line, provide the 3rd layer of (net in energy analog network seven layer protocol OSI Network layers), the 4th layer (transport layer), the equipment of the 7th layer of (application layer) network traffics, thus real Now backend application is fully tested.Then, traditional test equipment can only support the net of hundreds of million Network flow, it is impossible to meet the demand of existing network test.
Summary of the invention
The purpose of the present invention is intended at least solve above-mentioned technological deficiency.
To this end, the first of the present invention purpose is to provide a kind of message generation side based on multi-core platform Method, this message forming method can provide bigger network traffics to realize backend application under line Fully test.Second object of the present invention is to provide a kind of message based on multi-core platform to generate dress Put.
For achieving the above object, the embodiment of a first aspect of the present invention provides one of knowing clearly based on multinuclear The message forming method of platform, wherein, described multi-core platform includes controlling core and multiple data core, institute Stating control core and run control process, the plurality of data core is separately operable the data process of correspondence, described Method comprises the following steps: receiving configuration file, wherein, described configuration file includes that multiple address is believed Breath, the number of desired data core and test information;Described control process is according to institute in described configuration file The number needing data core selects corresponding service data core, and the plurality of address information is respectively allocated To the plurality of service data core;Described control process carries out process division and thinks the plurality of operation number Corresponding data process is set up according to core;And the data process that the verification of the plurality of service data is answered is respectively Address information and test information according to distribution generate message, and send described message to system under test (SUT).
Message forming method based on multi-core platform according to embodiments of the present invention, can improve multi-process Use many and equipment to carry out transmitting-receiving efficiency during data transmit-receive, and avoid between different data core The lock mechanism occurred, such that it is able to provide bigger network traffics to realize backend application under line Fully test.
The embodiment of second aspect present invention provides a kind of message generating means based on multi-core platform, Including: multiple process cores, the plurality of process core includes controlling core and multiple data core, wherein, institute Stating control core and run control process, the plurality of data core is separately operable the data process of correspondence;Receive Module, is used for receiving configuration file, and wherein, described configuration file includes multiple address information, required The number of data core and test information;Described control core farther includes: forward allocator module, for root Corresponding service data core is selected according to the number of desired data core in described configuration file, and by described many Individual address information is respectively allocated to the plurality of service data core;Process division module, be used for into Journey division thinks that the plurality of service data core sets up corresponding data process;Described data core is further Including: message generation module, generate message for the address information according to distribution and test information;Send out Send module, for sending described message to system under test (SUT).
Message generating means based on multi-core platform according to embodiments of the present invention, can improve multi-process Use many and equipment to carry out transmitting-receiving efficiency during data transmit-receive, and avoid between different data core The lock mechanism occurred, such that it is able to provide bigger network traffics to realize backend application under line Fully test.
Aspect and advantage that the present invention adds will part be given in the following description, and part will be from following Description in become obvious, or recognized by the practice of the present invention.
Accompanying drawing explanation
Present invention aspect that is above-mentioned and/or that add and advantage are from retouching embodiment below in conjunction with the accompanying drawings Will be apparent from easy to understand in stating, wherein:
Fig. 1 is the flow chart element of the message forming method based on multi-core platform according to the embodiment of the present invention Figure;
Fig. 2 is that the control core according to the embodiment of the present invention resolves configuration file and carries out preallocated stream Journey;
Fig. 3 is the flow process of the data that the data core according to the embodiment of the present invention processes;
Fig. 4 is the schematic diagram of the message generating means based on multi-core platform according to the embodiment of the present invention;
Fig. 5 is the structural representation controlling core according to the embodiment of the present invention;And
Fig. 6 is the structural representation of the data core according to the embodiment of the present invention.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, its In the most same or similar label represent same or similar element or there is same or like merit The element of energy.The embodiment described below with reference to accompanying drawing is exemplary, is only used for explaining this Bright, and be not construed as limiting the claims.
With reference to explained below and accompanying drawing, it will be clear that these and other aspects of embodiments of the invention. Describe at these and in accompanying drawing, specifically disclose some particular implementation in embodiments of the invention, Represent some modes of the principle implementing embodiments of the invention, but it is to be understood that the present invention's The scope of embodiment is not limited.On the contrary, embodiments of the invention include that falling into attached right wants Seek all changes, amendment and the equivalent in the range of the spirit of book and intension.
Below with reference to Fig. 1 to Fig. 3, message based on multi-core platform according to embodiments of the present invention is described raw One-tenth method.Multi-core platform includes controlling and multiple data core.Wherein, control core be used for running control into Journey, including: resolve configuration file, requirement according to configuration file carries out corresponding process division, is Data process allocation space and resource and add up the information etc. of all core.Multiple data core are separately operable Corresponding data process, data process is responsible to be processed the data entering turnover on each core, And reasonably distribution timeslice processes the transmitting-receiving of data.It should be noted that control process and data are entered Journey can be with parallel work-flow.
Different process etc. is carried out including for different packets.
As it is shown in figure 1, the message forming method based on multi-core platform of the embodiment of the present invention, including such as Lower step:
Step S101, receives configuration file.
In order to realize the predistribution to multiple data core, controlling core needs first to receive configuration file, so Afterwards according to the configuration information resolved in configuration file, and according to this configuration information, multiple data core are carried out Configuration.
In one embodiment of the invention, configuration file includes multiple address information, desired data core Number and test information.Control core, by resolving above-mentioned configuration file, can obtain configuration file In configuration information.
Specifically, address information includes source IP address, source port, purpose IP address and destination interface In one or more.Send to realize the linear speed of the most large quantities of pps, need to use multiple source IP and Multiple source ports process.
Owing to the most all of data core is required for running, the packet that can process as required and number Number according to type configuration desired data core.
Test information includes type of message and test-types.Wherein, type of message includes IPv4 (Internet Protocol version 4, Internet Protocol version 4) message or IPv6 (Internet Protocol Version6, Internet Protocol version 6) message, TCP (Transmission Control Protocol, Transmission control protocol) message or UDP (User Datagram Protocol, User Datagram Protocol) Message.Test-types includes synflood attack, three-way handshake, short connecting test or long connecting test Deng.
Step S102, the process that controls selects corresponding fortune according to the number of desired data core in configuration file Row data core, and multiple address informations are respectively allocated to multiple service data core.
Control process is chosen in multiple data core according to the number of the data core needed in configuration file Corresponding service data core, the part during wherein service data core is multiple data core.Control process After having chosen service data core, by the distribution of multiple address informations to multiple service data cores.Specifically Ground, control process carries out Hash (hash) computing respectively to multiple address informations, i.e. to address information In five-tuple carry out hash computing so that the process that flows in and out of each data stream with Carry out in one data core, thus avoid the lock mechanism occurred between different data core.Specifically, Owing to network test needs multiple different five-tuples to run simultaneously, in order to allow the number of same five-tuple Enter according to stream and pass in and out in same data core, need multiple address informations are carried out Hash (hash) Computing, it is achieved the entrance of same data stream passes in and out all for same data core, can avoid by one The data that individual data core flows out, are flowed in another data core when feedback.
Step S103, control process carries out process division and thinks that multiple service data core sets up corresponding number According to process.
Control process can carry out process division according to test information, is in step S102 selection many Individual service data core sets up corresponding data process.Specifically, the process that controls is to number corresponding to data core According to course allocation address information and test information, with to data process configuration testing target and test content. In one embodiment of the invention, each service data core runs a data process.
Step S104, the data process that the verification of multiple service datas is answered is respectively according to the address information of distribution Generate message with test information, and message is sent to system under test (SUT).
The data process that the verification of multiple service datas is answered is adjusted respectively according to the test information controlling course allocation With corresponding operator handler, then raw by the corresponding handler called according to address information Become message.
In one embodiment of the invention, operator handler can include transmission control protocol TCP Handler, ARP (address resolution protocol, address resolution protocol) handler, user Data pack protocol UDP handler, IPv6 handler, ICMPv6 (Internet Control Message Protocol Version 6, sixth version Internet Control Message agreement) one or more in handler.
Data process is possible not only to support two kinds of network layer protocols of IPv6 and IPv4, and can provide Data packet header for Ethernet, IPv4, IPv6, TCP, UDP customizes, such that it is able to realize TCP functional test to server.Such as: syn flood attack, three-way handshake test, TCP are even The whole procedural test connect, short connecting test and long connecting test etc..Additionally, data process is all right Realize the attack test to UDP and the stress test of DNS.
Specifically, the data of service data core are carried out in the process of implementation, are required for different data Bag carries out different disposal.Such as.In tcp data stream, data process need to syn, synack, Ack and get bag processes.In UDP message stream, data carry out needing to DNS bag Reason.Additionally, for IPv4 network, need ARP is carried out special process.For IPv6 network, Need NS is carried out special process.
The data process that the verification of multiple service datas is answered adds up the data of corresponding service data core respectively, Then the data counted on are reported control process.By controlling the process number to multiple service data cores Collect and add up according to carrying out.
In one embodiment of the invention, data process is generating test to by suitable handler After message, send test packet so that system under test (SUT) to be tested to system under test (SUT).The end of multi-core platform Layer receives the response message of system under test (SUT) feedback, and is transmitted to control core.Control core according to response message Address information response message is distributed to correspondence service data core.Corresponding service data verification should Response message is analyzed.By above-mentioned mechanism, it is possible to achieve service data core is properly positioned.
Specifically, the address information controlling verification response message carries out Hash operation, then according to Hash Operation result is by the service data core of response message distribution to correspondence.Such as, service data core A generates The test packet to system under test (SUT), system under test (SUT) responds the response message of this test packet and also have to Feeding back to this service data core A, this is to be ensured by the five-tuple in address information, thus avoids Between different IPs lock mechanism occurs.
Resolve configuration file below with reference to Fig. 2 to controlling core and carry out preallocated flow process and illustrate.
Step S201, starts, and controls to check and approve for checking to configuration file.
Step S202, the control process controlling core carries out preliminary examination (pre_check) to configuration file.
Wherein, configuration file includes multiple address information, the number of desired data core and test information.
Step S203, checks whether configuration file makes mistakes (check_failed), if made mistakes, then holds Row step S210, otherwise performs step S204.
Step S204, before controlling the division of process executive process, carries out initializing (init_before_fork).
Step S205, the process that controls resolves configuration file.
The control process of control core, by resolving above-mentioned configuration file, can obtain joining in configuration file Confidence ceases.
Multiple data core are carried out predistribution (predistribution) according to configuration file by step S206.
Control process is chosen in multiple data core according to the number of the data core needed in configuration file Corresponding service data core, the part during wherein service data core is multiple data core.Control process After having chosen service data core, by the distribution of multiple address informations to multiple service data cores.
Step S207, executive process divides.
Control process distributes address information and test information to the data process that data core is corresponding, with to number According to process configuration testing target and test content.
Step S208, carries out global memory's initialization.
Step S209, the self EMS memory performing each data core initializes, and then performs step S211.
Step S210, tenth skill.
Step S211, chooses core serial number (rank).
Each core in multinuclear is assigned a serial number, and wherein, the sequence controlling core turns to N, The Serial No. 0~N-1 of multiple data core, N is nuclear volume in multinuclear.
Step S212, performs initialization to data core internal memory.
Step S213, calls suitable operator handler process according to configuration file.
The data process that the verification of multiple service datas is answered is adjusted respectively according to the test information controlling course allocation With corresponding operator handler, then raw by the corresponding handler called according to address information Become message.
Step S214, each service data respective data of nuclear statistics data core, and report control core.
Step S215, all cores are collected and add up by the control process controlling core.
Step S216, check packet verification and or the resolving of configuration file whether make mistakes, If it is perform step S210, otherwise perform step S217.
Step S217, releasing memory (free_heaps).
Flow process data core being processed data below with reference to Fig. 3 illustrates.
Step S301, controls the division of process executive process.
Step S302, calls suitable operator handler process according to configuration file.Below As a example by TCP message, subsequent step is described.
Step S303, according to selection of configuration suitable operator handler.
Step S304, is sent syn bag by tcp_syb_handler.
Step S305, uses bottom layer driving to send syn bag.
Step S306, bottom layer driving receives packet.
Step S307, uses L2 handler to choose different operating device handler according to type of data packet.
Step S308, when type of message is 0x86DD, uses Ipv6_handler, then performs Step S314.
Step S309, when type of message is 0x800, uses Ip_handler, then performs step S311。
Step S310, when type of message is other, uses Arp_handler.
Step S311, it is judged that the type of bag, then performs step S312 if TCP bag, if UDP bag, then perform step S313.
Step S312, uses Tcp_handler.
Step S313, uses UDP_handler.
Step S314, it is judged that the type of bag, if type icmvp6 of packet, then performs step S315, if the type of packet is TCP, then performs step S316, if the type of packet is UDP, then perform step S317.
Step S315, uses Icmpv6_handler.
Step S315, uses Tcp_handler.
Step S315, uses Udp_handler.
Message forming method based on multi-core platform according to embodiments of the present invention, can be by configuration file In the distribution of multiple address informations to multiple service data cores, i.e. carry out pre-point according to different five-tuples Join.Such that it is able to set up session and keep session, for each during TCP sets up long connection Data stream sets up session.Furthermore, it is possible to simultaneously use many and equipment to carry out data transmit-receive in multi-process During improve transmitting-receiving efficiency, and avoid between different data core occur lock mechanism.Such that it is able to The abundant of backend application is tested by the network traffics providing bigger under line with realization.
Below with reference to Fig. 4 to Fig. 6, message based on multi-core platform according to embodiments of the present invention is described raw Become device 400.
As shown in Figure 4, the message generating means 400 based on multi-core platform that the embodiment of the present invention provides Including multiple process cores and receiver module 420, plurality of process core includes controlling core 411 and multiple Data core 412.Wherein, controlling core 411 and be used for running control process, multiple data core 412 are respectively Run corresponding data process.Receiver module 420 is used for receiving configuration file, wherein, and configuration file Including multiple address informations, the number of desired data core and test information.
Specifically, address information includes source IP address, source port, purpose IP address and destination interface In one or more.Owing to the most all of data core is required for running, can process as required Packet and data type configuration desired data core number.Test information includes type of message and survey Examination type.Wherein, type of message includes IPv4 message or IPv6 message, TCP message or UDP report Literary composition.Test-types includes synflood attack, three-way handshake, short connecting test or long connecting test etc..
As it is shown in figure 5, control core 411 to farther include forward allocator module 4111 and process division module 4112.Wherein, forward allocator module 4111 is for selecting according to the number of desired data core in configuration file Corresponding service data core, and multiple address informations are respectively allocated to multiple service data core.Process For carrying out process division, division module 4112 thinks that multiple service data core is set up corresponding data and entered Journey.
Specifically, forward allocator module 4111 resolves above-mentioned configuration file, can obtain in configuration file Configuration information.Forward allocator module 4111 according to the number of the data core needed in configuration file multiple Data core is chosen the service data core of correspondence, during wherein service data core is multiple data core Point.Control process is after having chosen service data core, by the distribution of multiple address informations to multiple operations Data core.Specifically, control process carries out Hash (hash) computing respectively to multiple address informations, I.e. the five-tuple in address information is carried out hash computing, so that each data stream flows in and out Process all carry out in same data core, thus avoid between different data core occur lock Mechanism.
Process division module 4112 carries out process division according to test information, for the multiple operation numbers chosen Corresponding data process is set up according to core.Specifically, process division module 4112 is to number corresponding to data core According to course allocation address information and test information, with to data process configuration testing target and test content. In one embodiment of the invention, each service data core runs a data process.
As shown in Figure 6, data core 412 farther includes message generation module 4121 and sending module 4122, wherein, message generation module 4121 generates for the address information according to distribution and test information Message, sending module 4122 is for sending message to system under test (SUT).
In message generation module 4121, storage has multiple operator handler.Message generation module 4121 The operator handler of correspondence, then base area is called respectively according to the test information controlling course allocation Location information generates message by the corresponding handler called.
In one embodiment of the invention, operator handler can include transmission control protocol TCP Handler, ARP handler, user datagram protocol UDP handler, IPv6 One or more in handler, Internet Control Message agreement ICMPv6 handler.
Data process is after to generating test packet by suitable handler, by sending module 4122 Test packet is sent so that system under test (SUT) to be tested to system under test (SUT).
In one embodiment of the invention, control core 411 and also include collecting statistical module 4113, use In the data of multiple service data cores are collected and add up.Specifically, sending module 4122 will be each The information of self-corresponding data core be sent to control core 411 collect statistical module 4113, by collecting system The information of all cores is collected and adds up by meter module 4113.
Receiver module 420 can also receive the response message of system under test (SUT) feedback, and forwards it to control Core 411 processed.Control the core 411 address information according to response message and response message is distributed to correspondence Service data core.Corresponding service data is checked this response message and is analyzed.By above-mentioned mechanism, Can realize service data core is properly positioned.
Specifically, control core 411 and the address information of response message is carried out Hash operation, then basis Hash operation result is by the service data core of response message distribution to correspondence.Such as, service data core A The test packet to system under test (SUT) generated, system under test (SUT) responds the response message of this test packet and also must Need feed back to this service data core A, this is to be ensured by the five-tuple in address information, thus Avoid and lock mechanism occurs between different IPs.
Message generating means based on multi-core platform according to embodiments of the present invention, implements according to the present invention Multiple address informations in configuration file can be divided by the message forming method based on multi-core platform of example It is assigned to multiple service data core, i.e. carries out predistribution according to different five-tuples.Such that it is able at TCP Set up session and keep session during setting up long connection, set up session for each data stream.This Outward, simultaneously many and equipment can be used to improve during carrying out data transmit-receive in multi-process and receive and dispatch efficiency, And avoid the lock mechanism occurred between different data core.Such that it is able to provide bigger network under line Flow is to realize the abundant test to backend application.
In flow chart or at this any process described otherwise above or method describe it is understood that For, represent and include one or more performing for the step that realizes specific logical function or process The module of code, fragment or the part of instruction, and the scope of the preferred embodiment of the present invention includes Realization additionally, wherein can not be by order that is shown or that discuss, including according to involved function By basic mode simultaneously or in the opposite order, performing function, these should be by embodiments of the invention Person of ordinary skill in the field is understood.
Represent in flow charts or the logic described otherwise above at this and/or step, for example, it is possible to It is considered as the sequencing list of executable instruction for realizing logic function, may be embodied in and appoint In what computer-readable medium, for instruction execution system, device or equipment (such as computer based System, include the system of processor or other can be from instruction execution system, device or equipment instruction fetch And perform the system of instruction) use, or combine these instruction execution systems, device or equipment and use. For the purpose of this specification, " computer-readable medium " can be any can comprise, store, communicate, Propagate or transmission procedure for instruction execution system, device or equipment or combine these instruction execution systems, Device or equipment and the device that uses.(non-exclusive arranges the more specifically example of computer-readable medium Table) include following: there is the electrical connection section (electronic installation) of one or more wiring, portable meter Calculation machine tray salver (magnetic device), random access memory (RAM), read only memory (ROM), Erasable read only memory (EPROM or flash memory) of editing, fiber device, and portable Formula compact disc read-only memory (CDROM).It addition, computer-readable medium can even is that can be at it The paper of the described program of upper printing or other suitable media, because can be such as by paper or other Jie Matter carries out optical scanning, then carries out editing, interpret or processing with other suitable methods if desired Electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can use hardware, software, firmware or combinations thereof Realize.In the above-described embodiment, multiple steps or method can be with storing in memory and by closing Software or firmware that suitable instruction execution system performs realize.Such as, if realized with hardware, As in another embodiment, any one in available following technology well known in the art or they Combination realize: have and patrol for the discrete of logic gates that data signal is realized logic function Collect circuit, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize that above-described embodiment method carries whole Or part steps can be by program and completes to instruct relevant hardware, described program can store In a kind of computer-readable recording medium, this program upon execution, including the step of embodiment of the method One or a combination set of.
Additionally, each functional unit in each embodiment of the present invention can be integrated in a processing module In, it is also possible to it is that unit is individually physically present, it is also possible to two or more unit are integrated in In one module.Above-mentioned integrated module both can realize to use the form of hardware, it would however also be possible to employ soft The form of part functional module realizes.If described integrated module realizes with the form of software function module And during as independent production marketing or use, it is also possible to it is stored in an embodied on computer readable storage and is situated between In matter.
Storage medium mentioned above can be read only memory, disk or CD etc..
In the description of this specification, reference term " embodiment ", " some embodiments ", " show Example ", the description of " concrete example " or " some examples " etc. means to combine this embodiment or example Describe specific features, structure, material or feature be contained in the present invention at least one embodiment or In example.In this manual, the schematic representation to above-mentioned term is not necessarily referring to identical reality Execute example or example.And, the specific features of description, structure, material or feature can be any One or more embodiments or example combine in an appropriate manner.
Although an embodiment of the present invention has been shown and described, for those of ordinary skill in the art For, it is possible to understand that without departing from the principles and spirit of the present invention can be to these embodiments Carry out multiple change, revise, replace and modification, the scope of the present invention by claims and etc. With limiting.

Claims (18)

1. a message forming method based on multi-core platform, it is characterised in that described multi-core platform includes controlling core and multiple Data core, described control core runs control process, and the plurality of data core is separately operable the data process of correspondence, described method Comprise the following steps:
Receiving configuration file, wherein, described configuration file includes multiple address information, the number of desired data core and test letter Breath;
Described control process selects corresponding service data core according to the number of desired data core in described configuration file, and by institute State multiple address information and be respectively allocated to the plurality of service data core;
Described control process carries out process division and thinks that the plurality of service data core sets up corresponding data process;And
The data process that the verification of the plurality of service data is answered generates message according to the address information distributed and test information respectively, And described message is sent to system under test (SUT).
2. message forming method based on multi-core platform as claimed in claim 1, it is characterised in that described test information bag Include type of message and test-types.
3. message forming method based on multi-core platform as claimed in claim 1, it is characterised in that described address information bag Include one or more in source IP address, source port, purpose IP address and destination interface.
4. the message forming method based on multi-core platform as described in any one of claim 1-3, it is characterised in that described control The distribution of the plurality of address information is farther included by process processed to the plurality of service data core:
Described control process carries out Hash operation to the plurality of address information respectively;And
According to described Hash operation result, the plurality of address information is respectively allocated to the plurality of service data core.
5. message forming method based on multi-core platform as claimed in claim 1, it is characterised in that the plurality of operation number The data process answered according to verification generates message according to the address information distributed and test information respectively and farther includes:
The data process that the verification of the plurality of service data is answered calls the operator of correspondence respectively according to described test information handler;And
Described message is generated by the corresponding handler called according to described address information.
6. message forming method based on multi-core platform as claimed in claim 5, it is characterised in that also include:
The data process that the verification of the plurality of service data is answered adds up the data of each service data core respectively, and by described statistics Data report to described control process;
The data of the plurality of service data core are collected and add up by described control process.
7. message forming method based on multi-core platform as claimed in claim 1, it is characterised in that also include:
Receive the response message of described system under test (SUT) feedback;
Address information according to described response message is by the service data core of described response message distribution to correspondence;And
The service data of described correspondence is checked described response message and is analyzed.
8. message forming method based on multi-core platform as claimed in claim 7, it is characterised in that described according to response report Response message distribution is farther included by the address information of literary composition to corresponding service data core:
The address information of described response message is carried out Hash operation;And
According to Hash operation result by the distribution of described response message to corresponding service data core.
9. the message forming method based on multi-core platform as described in claim 5 or 6, it is characterised in that described handler Including transmission control protocol TCP handler, ARP handler, user datagram protocol UDP handler, One or more in IPv6 handler, Internet Control Message agreement ICMPv6 handler.
10. a message generating means based on multi-core platform, it is characterised in that including:
Multiple process cores, the plurality of process core includes controlling core and multiple data core, and wherein, described control core runs and controls Process, the plurality of data core is separately operable the data process of correspondence;
Receiver module, is used for receiving configuration file, and wherein, described configuration file includes multiple address information, desired data core Number and test information;
Described control core farther includes:
Forward allocator module, for selecting corresponding service data core according to the number of desired data core in described configuration file, and The plurality of address information is respectively allocated to the plurality of service data core;
For carrying out process division, process division module, thinks that the plurality of service data core sets up corresponding data process;
Described data core farther includes:
Message generation module, generates message for the address information according to distribution and test information;
Sending module, for sending described message to system under test (SUT).
11. message generating means based on multi-core platform as claimed in claim 10, it is characterised in that described test information Including type of message and test-types.
12. message generating means based on multi-core platform as claimed in claim 10, it is characterised in that described address information Including one or more in source IP address, source port, purpose IP address and destination interface.
13. message generating means based on multi-core platform as claimed in claim 10, it is characterised in that described predistribution mould Block carries out Hash operation respectively to the plurality of address information, and according to described Hash operation result by the plurality of address information It is respectively allocated to the plurality of service data core.
14. message generating means based on multi-core platform as claimed in claim 10, it is characterised in that described message generates In module, storage has multiple handler, and described message generation module calls the handler of correspondence respectively according to described test information Generate described message.
15. message generating means based on multi-core platform as claimed in claim 10, it is characterised in that described control core is also Including:
Collect statistical module, for the data of the plurality of service data core are collected and added up.
16. message generating means based on multi-core platform as claimed in claim 10, it is characterised in that described receiver module Being additionally operable to receive the response message of described system under test (SUT) feedback, described control core is additionally operable to the address letter according to described response message Cease described response message distribution to corresponding service data core, so that the service data of described correspondence checks described response message It is analyzed.
17. message generating means based on multi-core platform as claimed in claim 16, it is characterised in that described control is checked The address information of described response message carries out Hash operation, and according to Hash operation result by the most corresponding for the distribution of described response message Service data core.
18. message generating means based on multi-core platform as claimed in claim 14, it is characterised in that described handler Including in TCP handler, ARP handler, UDP handler, IPv6handler, ICMPv6handler Plant or multiple.
CN201110415847.2A 2011-12-13 2011-12-13 Message forming method based on multi-core platform and generating means Active CN103166842B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110415847.2A CN103166842B (en) 2011-12-13 2011-12-13 Message forming method based on multi-core platform and generating means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110415847.2A CN103166842B (en) 2011-12-13 2011-12-13 Message forming method based on multi-core platform and generating means

Publications (2)

Publication Number Publication Date
CN103166842A CN103166842A (en) 2013-06-19
CN103166842B true CN103166842B (en) 2016-08-31

Family

ID=48589593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110415847.2A Active CN103166842B (en) 2011-12-13 2011-12-13 Message forming method based on multi-core platform and generating means

Country Status (1)

Country Link
CN (1) CN103166842B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103441952B (en) * 2013-08-20 2016-10-05 西安电子科技大学 Based on multinuclear or the processing method of network data packets of many-core flush bonding processor

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388800A (en) * 2007-09-12 2009-03-18 百度在线网络技术(北京)有限公司 Method, device and system for pressed test to network performance of server
CN102006616A (en) * 2010-11-09 2011-04-06 中兴通讯股份有限公司 Test system and test method
CN102185936A (en) * 2011-06-23 2011-09-14 上海牙木通讯技术有限公司 DNS (domain name system) service system and method based on Linux operation system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388800A (en) * 2007-09-12 2009-03-18 百度在线网络技术(北京)有限公司 Method, device and system for pressed test to network performance of server
CN102006616A (en) * 2010-11-09 2011-04-06 中兴通讯股份有限公司 Test system and test method
CN102185936A (en) * 2011-06-23 2011-09-14 上海牙木通讯技术有限公司 DNS (domain name system) service system and method based on Linux operation system

Also Published As

Publication number Publication date
CN103166842A (en) 2013-06-19

Similar Documents

Publication Publication Date Title
US10237172B2 (en) Using headerspace analysis to identify flow entry reachability
US7440415B2 (en) Virtual network addresses
Gibb et al. NetFPGA—an open platform for teaching how to build gigabit-rate network switches and routers
US9531620B2 (en) Control plane packet traffic statistics
US8005945B2 (en) Aggregating policy criteria parameters into ranges for efficient network analysis
CN105450476B (en) A kind of regression test system and test method
CN109617759A (en) Block catenary system stability test method, apparatus, equipment and storage medium
EP2299633A1 (en) Misdirected packet detection apparatus and method
EP2434692A1 (en) Traffic generator with dynamic MPLS label assignment
CN104410542A (en) Method and device for simulation test
CN102611756B (en) Method and system for sending access request
CN106326088B (en) Method and device for realizing construction of test object and device for realizing service configuration test
US20110069622A1 (en) Traffic Distribution Control
CN101668036A (en) Simulating system of distributed device and method for processing service by simulating distributed device
Momeni et al. Improving a computer networks course using the Partov simulation engine
CN103166842B (en) Message forming method based on multi-core platform and generating means
CN106713163A (en) Method and apparatus for deploying server load
US8687518B1 (en) Automatic address configuration in a network test system
CN101753375B (en) Device for debugging UDP network packet in avionics simulation environment and method therefor
Hashimi et al. Performance Evaluation of a Network Using Simulation Tools or Packet Tracer
CN101262482A (en) A DHCPv6 testing method for TTCN language
US8165025B2 (en) Method and apparatus for generating a unique packet identifier
Raychev et al. Development and Integration of Educational Software Defined Networking Platform in Computer Networking Classes
CN105684378A (en) Duplicating packets efficiently within a network security appliance
CN117812040A (en) Verification method and verification system for change plan

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