CN105306265B - A kind of data packet method for tracing for switch system simulating, verifying - Google Patents

A kind of data packet method for tracing for switch system simulating, verifying Download PDF

Info

Publication number
CN105306265B
CN105306265B CN201510656606.5A CN201510656606A CN105306265B CN 105306265 B CN105306265 B CN 105306265B CN 201510656606 A CN201510656606 A CN 201510656606A CN 105306265 B CN105306265 B CN 105306265B
Authority
CN
China
Prior art keywords
data packet
key message
data
cell
packet
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
CN201510656606.5A
Other languages
Chinese (zh)
Other versions
CN105306265A (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201510656606.5A priority Critical patent/CN105306265B/en
Publication of CN105306265A publication Critical patent/CN105306265A/en
Application granted granted Critical
Publication of CN105306265B publication Critical patent/CN105306265B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of data packet method for tracing for switch system simulating, verifying, comprising the following steps: step 1: completing the identification of data packet key message;Step 2: in emulation, the key message of addition data packet in actuation generator (generator);Step 3: in key node acquisition, refreshing and the key message of output data packet is to text;Step 4: combining using order of the invention according to certain key message, the routing information of data packet or corresponding each cell is searched out.The present invention, pass through identification data packet key message and scanned for using key message, so that the whereabouts of data packet are very clear, does not need level-one one level search, and operating in a key reduces the human cost of orientation problem, thus the location efficiency for such issues that improve data-bag lost or mistake.

Description

A kind of data packet method for tracing for switch system simulating, verifying
Technical field
The present invention relates to network communication technology fields, and in particular to a kind of data packet for switch system simulating, verifying Method for tracing.
Background technique
With the development of the communications industry, the development of interchanger is advanced by leaps and bounds, and various consensus standards and exchange scheme are more next More complicated, switch system is more and more huger, and the emulation testing of switch system also becomes increasingly complicated.
As the difficulty of switch system emulation testing increases, test method is also more and more.Such as Chinese invention patent CN103440195A discloses the exchanger chip verification method and device of a kind of logic-based chip, describes a kind of emulate and tests The method for demonstrate,proving exchanger chip, so that configuration use-case is simpler.As Chinese invention patent CN104253723A discloses a kind of base In the method and device for the interchanger validation test that software-hardware synergism is realized, describe a kind of that software configuration and High-Speed Hardware is special Property combine method.As Chinese invention patent CN104065536A discloses a kind of Ethernet exchanging based on UVM verification method Machine FPGA verification method describes a kind of introducing UVM methodology, for the verification platform of certain class particular switch system.Such as The research and invention of the emulation verification method of such interchanger are more and more.But these methods be all absorbed in verifying methodology and The structure of verification platform does not study the positioning means for emulating the problem of detected.
In the switch system simulating, verifying to become increasingly complex, the positioning of the problem of data-bag lost or mistake will It becomes increasingly complex.It is cell, also a series of complex feelings such as multicast, broadcast that data packet can have slice in switch system Condition, the access of selection forwarding are also not that we are specified or be easy to calculate, and the trace for looking for data packet also becomes tired Such issues that difficulty, general is mostly to find from downstream toward upstream level-one level-one, and efficiency is very low, location data packet loss or mistake is consumed The human cost taken is huge.In order to solve this problem, need to study such issues that how to improve data-bag lost or mistake Location efficiency method.
Summary of the invention
The technical problem to be solved by the present invention is to solve to improve when occurring such issues that data-bag lost or mistake The problem of data packet tracking and location efficiency.
In order to solve the above-mentioned technical problem, the technical scheme adopted by the invention is that providing a kind of imitative for switch system The data packet method for tracing really verified, comprising the following steps:
Step 1: completing the identification of data packet key message, generally comprise: stream ID (stream_id) identifies the data packet Which data stream belonged to;Scene ID (scenario_id) identifies serial number of the data packet in corresponding data stream;Data packet ID (data_id), the serial number for the data packet that actuation generator generates are globally unique;Copy ID (copy_id), for multicast and Broadcasting scenario, data packet can have the case where duplication, the serial number of ID mark copy.If it is what is handled based on cell, one Packet may be sliced as multiple cells, need to increase slice ID (fragment_id), identifying the cell is corresponding data packet Which slice.
Step 2: in emulation, the key message of addition data packet in actuation generator (generator).
Step 3: in key node acquisition, refreshing and the key message of output data packet is to text.
Step 4: combining using order of the invention according to certain key message, data packet or corresponding each cell are searched out Path (cell pass through module) information.
In the above-mentioned methods, the identifier for needing voluntarily to add data packet switchs print data packet according to debugging function Key message (may be cut to one or more letters using order provided by the invention searching data packet in switch system Member) path.
In the above-mentioned methods, if it is circuit-level code, then identifier is carried in the part filling (padding);If It is transaction-level code, then constructs a key message structure, carries relevant information.
In the above-mentioned methods, the identifier requires relatively independent, does not influence the function of tested design (DUT).
The present invention scans for key message by identification data packet key message and according to order, so that data packet Whereabouts it is very clear, do not need level-one one level search, and operating in a key reduces the human cost of orientation problem, can be improved The location efficiency of such issues that data-bag lost and mistake, and have the advantage that
(1) from huge data, find needed for it is to be understood that data packet routing information, reduce positioning problems range;
(2) it is arranged according to order, intuitively show paths information result, removes the cumbersome of level-one one level search packet information from Process;
(3) above-mentioned key message, can cover each scene of current communication switchboard application, and different information combinations can be with Cope with the location requirement of different scenes.
(4) key message can be used as a part filling of data packet, or as additional data structure with data packet one Transmitting is played, the verification platform even completed, can also modify seldom part does not influence original function using the invention.
Detailed description of the invention
Fig. 1 dark parts are that a kind of data packet method for tracing for switch system simulating, verifying provided by the invention exists Position involved in verification platform and DUT;
Fig. 2 is a kind of method flow of the data packet method for tracing for switch system simulating, verifying provided by the invention Figure.
Specific embodiment
The present invention is described in detail with specific embodiment with reference to the accompanying drawings of the specification.
The embodiment of the invention provides a kind of data packet method for tracing for switch system simulating, verifying, such as Fig. 1, figure Shown in 2, it the described method comprises the following steps:
Step 1: completing the identification of data packet key message.
Data packet key message generally comprises:
Stream ID (stream_id), identifies which data stream is the data packet belong to;
Scene ID (scenario_id) identifies serial number of the data packet in corresponding data stream;
Data packet ID (data_id), the serial number for the data packet that actuation generator generates are globally unique;
It copies ID (copy_id), for multicast and broadcasting scenario, data packet can have the case where duplication, and ID mark is copied The serial number of shellfish.
If it is what is handled based on cell, a packet may be sliced as multiple cells, need to increase slice ID (fragment_id), which slice that the cell is corresponding data packet identified.
Step 2: in emulation, the key message of addition data packet in actuation generator (generator), as shown in figure 1 101.
Step 3: key node acquisition, refresh and output data packet key message to text, as shown in figure 1 102.
Step 4: searching out the road of data packet ID or corresponding each cell from text according to the combination of certain key message Diameter (module that cell passes through) information.
As shown in Fig. 2, the specific steps of second step are described as follows:
Step 201: in actuation generator add data packet key message: stream_id, scenario_id and Data_id, corresponding position is the generator in Fig. 1 in emulation platform;
Step 202: key message, which is inserted into, on the line among each adjacent modules of DUT acquires refresh module, it is flat in emulation Corresponding position is that the key message in Fig. 1 in DUT acquires refresh module in platform;
Step 203: judging whether DUT has cell slicing treatment, if there is then entering step 204, be otherwise directly entered step Rapid 205;
Step 204: in the key message acquisition refresh module with the output connection of DUT cell slicing treatment module, extracting Serial number of the cell in corresponding data packet refreshes the fragment_id of corresponding cell key message, remaining key message is constant, Subsequently into step 205;
Step 205: judge DUT whether have multicast or broadcast processing, if there is then entering step 206, otherwise directly into Enter step 207;
Step 206: it is acquired in refresh module in the key message with DUT multicast or broadcast process module output connection, The fanout for counting the data packet, successively refreshes copy_id, remaining key message is constant, subsequently into step 207;
Step 207: if debugging function is enabled, entering step 208, otherwise terminate process;
Step 208: the key message in each key message acquisition refresh module is printed, subsequently into step 209,
Step 209: using find_p_c find_module_p_c order, obtain the tune of expected data packet or cell Information and path are tried, text-independent is as a result put into, can intuitively read, finally terminate process.
It should be noted that needing voluntarily to add the value of key message using in process of the present invention.
Search command is write using bash shell in the present invention, executes at unix, also can be used shell and Perl or other scripting languages realize that implementing procedure is the same, can also run at windows and Linux system, such as:
Find_p_c: extracting related data packets or cell information from log information, this can be prompted by executing ./find_p_c Order application method is as follows:
command of mc pkt:./find_p_c stid xx scid xx did xx cid xx
command of uc pkt:./find_p_c stid xx scid xx did xx
command of mc data cell:./find_p_c stid xx scid xx did xx cid xx
command of uc data cell:./find_p_c stid xx scid xx did xx
command of some cell:./find_p_c stid xx scid xx did xx cid xx fid xx
you could choose part of the parameters
Command format is one of above-mentioned, and ./find_p_c adds each combination parameter, and stid stream_id, scid are Scenario_id, did data_id, cid copy_id, fid fragment_id.
Find_module_p_c: related packet or cell information of the extraction based on module from log information, execution/ Find_module_p_c can prompt the order application method, as follows:
command of mc pkt:./find_p_c module_name instid xx stid xx scid xx did xx cid xx
command of uc pkt:./find_p_c module_name instid xx stid xx scid xx did xx
command of mc data cell:./find_p_c module_name instid xx stid xx scid xx did xx cid xx
command of uc data cell:./find_p_c module_name instid xx stid xx scid xx did xx
command of some cell:./find_p_c module_name instid xx stid xx scid xx did xx cid xx fid xx
you could choose part of the parameters
For command format to be one of above-mentioned ./find_module_p_c adds each combination parameter, and module_name is to wish The module name checked, instid are the serial number of the module example, remaining parameter declaration and find_p_c order are consistent.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn that the knots made under the inspiration of the present invention Structure variation, the technical schemes that are same or similar to the present invention are fallen within the scope of protection of the present invention.

Claims (3)

1. a kind of data packet method for tracing for switch system simulating, verifying, which comprises the following steps:
Step 1: completing the identification of data packet key message, comprising: stream ID identifies which data stream is the data packet belong to;? Scape ID identifies serial number of the data packet in corresponding data stream;Data packet ID, the serial number for the data packet that actuation generator generates, It is globally unique;ID is copied, for multicast and broadcasting scenario, data packet can have the case where duplication, the serial number of ID mark copy; If it is what is handled based on cell, a packet can be sliced as multiple cells, increase slice ID, identifying the cell is corresponding data Which slice of packet;
Step 2: adding the key message of data packet in actuation generator in emulation;
Step 3: insertion key message acquires refresh module on the line among tested each adjacent modules of design, acquisition refreshes With the key message of output data packet to text;
Step 4: combining using search command according to certain key message, the path letter of data packet or corresponding each cell is searched out Breath, certain key message group are combined into the different information combinations of the location requirement of reply different scenes.
2. the method as described in claim 1, which is characterized in that
Key message can be used as a part filling of data packet, or transmit as additional data structure with data packet;
It in use process, needs voluntarily to add the identifier of data packet, the crucial of print data packet is switched according to debugging function and is believed Identifier is then carried the filling in data packet if it is circuit-level code by breath, the path that data packet is found using search command Part;If it is transaction-level code, then a key message structure is constructed, carries relevant information.
3. method according to claim 2, which is characterized in that the identifier requirement is relatively independent, does not influence tested design Function.
CN201510656606.5A 2015-10-12 2015-10-12 A kind of data packet method for tracing for switch system simulating, verifying Active CN105306265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510656606.5A CN105306265B (en) 2015-10-12 2015-10-12 A kind of data packet method for tracing for switch system simulating, verifying

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510656606.5A CN105306265B (en) 2015-10-12 2015-10-12 A kind of data packet method for tracing for switch system simulating, verifying

Publications (2)

Publication Number Publication Date
CN105306265A CN105306265A (en) 2016-02-03
CN105306265B true CN105306265B (en) 2019-01-04

Family

ID=55203049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510656606.5A Active CN105306265B (en) 2015-10-12 2015-10-12 A kind of data packet method for tracing for switch system simulating, verifying

Country Status (1)

Country Link
CN (1) CN105306265B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108183840A (en) * 2017-12-28 2018-06-19 天津芯海创科技有限公司 Verification method, device and the realization device of switch performance
CN109995557B (en) * 2017-12-29 2022-05-13 中国移动通信集团陕西有限公司 Communication method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142720A (en) * 2011-04-29 2011-08-03 珠海市鸿瑞软件技术有限公司 Network communication recorder and network communication record analysis system
CN102981882A (en) * 2011-09-05 2013-03-20 北京旋极信息技术股份有限公司 Analytic method and analytic device
CN103440195A (en) * 2013-07-11 2013-12-11 盛科网络(苏州)有限公司 Switch chip verification method and device based on logic chip
CN104065536A (en) * 2014-07-02 2014-09-24 浪潮集团有限公司 Ethernet switch FPGA verification method based on UVM verification method
CN104104561A (en) * 2014-08-11 2014-10-15 武汉大学 SDN (self-defending network) firewall state detecting method and system based on OpenFlow protocol
CN104579788A (en) * 2015-01-21 2015-04-29 上海交通大学 Error positioning method for distributed dynamic routing network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102142720A (en) * 2011-04-29 2011-08-03 珠海市鸿瑞软件技术有限公司 Network communication recorder and network communication record analysis system
CN102981882A (en) * 2011-09-05 2013-03-20 北京旋极信息技术股份有限公司 Analytic method and analytic device
CN103440195A (en) * 2013-07-11 2013-12-11 盛科网络(苏州)有限公司 Switch chip verification method and device based on logic chip
CN104065536A (en) * 2014-07-02 2014-09-24 浪潮集团有限公司 Ethernet switch FPGA verification method based on UVM verification method
CN104104561A (en) * 2014-08-11 2014-10-15 武汉大学 SDN (self-defending network) firewall state detecting method and system based on OpenFlow protocol
CN104579788A (en) * 2015-01-21 2015-04-29 上海交通大学 Error positioning method for distributed dynamic routing network

Also Published As

Publication number Publication date
CN105306265A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
US11848849B1 (en) Testing computer networks in real time
US20030172177A1 (en) System and method for verifying a device
US10897524B1 (en) Integrated packet generator and checker
CN106685733B (en) A kind of FC-AE-1553 network rapid configuration and automated testing method
CN109450730A (en) A kind of dynamic application layer protocol test method based on standard data interchange format
CN104391796B (en) A kind of test case analytic method
US10659571B1 (en) Network device with integrated packet generators or packet checkers
US7496801B2 (en) Method, apparatus and system for facilitating debug for link interconnects
US20140198790A1 (en) Data link layer analysis with packet trace replay
CN105306265B (en) A kind of data packet method for tracing for switch system simulating, verifying
Yao et al. Formal modeling and systematic black-box testing of sdn data plane
CN103391224B (en) Protocol hierarchy Self-adaptive method based on parallel-expansion finite state machine
CN116562225A (en) Chip verification platform, method and device
CN108028733A (en) For point-to-point interconnection with increase Test coverage from fault injection techniques
CN103440363B (en) Abnormal signal source tracing method in a kind of FPGA placement-and-routing post-simulation
CN104243243B (en) A kind of method for generating protocol test sequence
CN110321285A (en) Test case processing method and relevant device
Nair et al. Formal specification and analysis of performance variation in sensor network diffusion protocols
CN110876155A (en) Simulation system and method for wireless mesh network
Tseng et al. sPing: a user‐centred debugging mechanism for software defined networks
CN107529695A (en) The localization method and device that a kind of buffering area slowly leaks
CN113238897B (en) System-level test method and device for chip, computer equipment and storage medium
CN111061258B (en) Function testing method and device based on train control system
CN109981386A (en) Test method, testing service device and the test macro of network quality
KR102032180B1 (en) Apparatus for testing information exchange function of digital substation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant