CN103997385B - Data playback simulating method and system - Google Patents
Data playback simulating method and system Download PDFInfo
- Publication number
- CN103997385B CN103997385B CN201410223926.7A CN201410223926A CN103997385B CN 103997385 B CN103997385 B CN 103997385B CN 201410223926 A CN201410223926 A CN 201410223926A CN 103997385 B CN103997385 B CN 103997385B
- Authority
- CN
- China
- Prior art keywords
- data
- laps
- frames
- setting time
- mark character
- 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
Links
Abstract
The invention belongs to the technical field of electronic application apparatuses, and provides a data playback simulating method and system. The method comprises the steps that a recording end converts a data package into LAPS frames according to an LAPS protocol, wherein the data package is in a form of Ethernet frames; identification characters are inserted into the LAPS frames every set time, and the LAPS frames and the identification characters serve as effective data to be stored; a downloading end downloads the effective data stored through the recording end, and the effective data are analyzed to acquire a restoring data flow comprising the LAPS frames and the identification characters; the LAPS frames in the restoring data flow are converted into the data package according to the LAPS protocol; the adjacent identification characters in the restoring data flow are delayed by the set time. By means of the data playback simulating method and system, the recorded scene is played back in a simulation mode after the event according to the speed and the time characteristics of recording when the data are stored.
Description
Technical field
The invention belongs to electronic application equipment technical field, more particularly to a kind of data readback analogy method and system.
Background technology
With the high speed development of electronic application equipment, for the recorders such as real-time data acquisition record requirement also increasingly
Height, such as test monitoring equipment.Existing record device is only resided within for the basic training of data storage itself according to the record of data
On energy, concrete pattern is as shown in Figure 1, it is impossible to according to speed and time response during the data record for preserving, afterwards to record
The simulation reduction of scene, needs user oneself to be analyzed and reduce.
The content of the invention
Embodiments provide a kind of data readback analogy method and system, it is intended to which solving prior art can not basis
Speed and time response during the data record of preservation, in the problem for reducing to the simulation for recording scene afterwards.
On the one hand, there is provided a kind of data readback analogy method, methods described includes:
Download the valid data that the record end preserves, parse the valid data obtain include the LAPS frames with
The restoring data stream of the mark character;
According to Link Access Procedure-SDH protocol, LAPS frames described in the restoring data stream are converted into into the packet;
The delay of the setting time will be done between adjacent described mark character in the restoring data stream to ensure also
It is consistent on the time that the data flow after original is recorded with the record end.
On the other hand, there is provided a kind of data readback analog systemss, the system includes record end and downloading end, wherein, institute
Stating record end includes:
First conversion unit, for the LAPS frames for being converted to packet by Link Access Procedure-SDH protocol, the packet is Ethernet
Frame;
Mark insertion unit, for insert in the LAPS frames every setting time character is identified, and by the LAPS
Frame and the mark character are preserved as valid data;
The downloading end includes:
Data resolution unit, for downloading the valid data that the record end preserves, parses the valid data and obtains
Take the restoring data stream including the LAPS frames and the mark character;
Second conversion unit, for according to Link Access Procedure-SDH protocol, LAPS frames described in the restoring data stream being converted into described
Packet;
Data convert unit, during for by doing the setting between the adjacent described mark character in the restoring data stream
Between delay ensureing to be consistent on the time that records with the record end of the data flow after reducing.
In the embodiment of the present invention, record the LAPS frames that end is converted to packet by Link Access Procedure-SDH protocol, the packet be with
Too net frame;Mark character is inserted in the LAPS frames every setting time, and the LAPS frames and the mark character are made
For valid data preservation;Downloading end downloads the valid data that the record end preserves, and parses the valid data and obtains bag
Include the restoring data stream of the LAPS frames and the mark character;According to Link Access Procedure-SDH protocol, described in the restoring data stream
LAPS frames are converted into the packet;The setting time will be done between adjacent described mark character in the restoring data stream
Delay, the present invention, realize according to preserve data record when speed and time response, afterwards to record scene return
Put simulation.
Description of the drawings
Fig. 1 is the data processing mode schematic diagram that background of invention is provided;
Fig. 2 is the flowchart that end is recorded in the data readback analogy method that the embodiment of the present invention one is provided;
Fig. 3 is data structure schematic diagram in the data readback analogy method that the embodiment of the present invention one is provided;
Fig. 4 is the flowchart of downloading end in the data readback analogy method that the embodiment of the present invention two is provided;
Fig. 5 is the data processing mode schematic diagram of the data readback analogy method that the embodiment of the present invention two is provided
Fig. 6 is the concrete structure block diagram of the data readback analog systemss that the embodiment of the present invention three is provided.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and
It is not used in the restriction present invention.
In embodiments of the present invention, the LAPS frames that end is converted to packet by Link Access Procedure-SDH protocol are recorded, the packet is
Ethernet frame;Mark character is inserted in the LAPS frames every setting time, and by the LAPS frames and the mark character
Preserve as valid data;Downloading end downloads the valid data that the record end preserves, and parses the valid data and obtains
Including the LAPS frames and the restoring data stream of the mark character;According to Link Access Procedure-SDH protocol, described in the restoring data stream
LAPS frames are converted into the packet;The setting time will be done between adjacent described mark character in the restoring data stream
Delay.
It is described in detail below in conjunction with realization of the specific embodiment to the present invention:
Embodiment one
Fig. 2 shows that the data readback analogy method that the embodiment of the present invention one is provided realizes flow process, to record end to hold
Row main body, details are as follows:
In step s 201, by packet press Link Access Procedure on SDH (Link Access Procedure-SDH,
LAPS the LAPS frames that) protocol conversion is, the packet is ethernet frame.
In the present embodiment, the record end is the intelligent terminal for preserving data, such as monitoring device.The packet be with
Too net frame.The LAPS frames are a kind of variants of HDLC protocol frame, and it can provide data link services and protocol specification, and can be special
Door is packaged to delimit to the ethernet frame after encapsulation to the IP packets transmitted needed for SDH network.Record end will
The LAPS frames that packet is converted to by Link Access Procedure-SDH protocol, the packet is ethernet frame.
In step S202, every setting time mark character is inserted in the LAPS frames, and by the LAPS frames and
The mark character is preserved as valid data.
In the present embodiment, the setting time is the set time that user is arranged, and the length of the setting time is shorter,
The precision of playback simulation is higher;The length of the setting time is longer, and the precision for playing back simulation is lower.The mark character is concrete
For 0x7E.Specifically, it is as shown in Figure 3 through the above-mentioned steps valid data that obtain of process.Record end is every setting time in institute
Insertion mark character in LAPS frames is stated, and the LAPS frames and the mark character are stored in locally as valid data.
The present embodiment, according to the time of the actual reception of packet, by the record time interval between packet with identifier word
The form of symbol recorded in record data.
Embodiment two
Fig. 4 shows that the data readback analogy method that the embodiment of the present invention two is provided realizes flow process, with downloading end to hold
Row main body, details are as follows:
In step S401, the valid data that the record end preserves are downloaded, parse the valid data and obtain bag
Include the restoring data stream of the LAPS frames and the mark character.
In the present embodiment, the record end is the intelligent terminal for preserving data, such as monitoring device.The packet be with
Too net frame.The LAPS frames are a kind of variants of HDLC protocol frame, and it can provide data link services and protocol specification, and can be special
Door is packaged to delimit to the ethernet frame after encapsulation to the IP packets transmitted needed for SDH network.Under downloading end
The valid data that the record end preserves are carried, parsing the valid data and obtaining includes the LAPS frames and the identifier word
The restoring data stream of symbol, the restoring data stream is as shown in Figure 5.
In step S402, according to the Link Access Procedure (Link Access Procedure-SDH, LAPS) on SDH
Agreement, by LAPS frames described in the restoring data stream packet is converted into.
In the present embodiment, the packet is ethernet frame.Downloading end is according to the Link Access Procedure (Link on SDH
Access Procedure-SDH, LAPS) agreement, LAPS frames described in the restoring data stream are converted into into the packet.
In step S403, the setting time will be done between the adjacent described mark character in the restoring data stream
Postpone to ensure to be consistent on the time that the data flow after reducing is recorded with the record end.
In the present embodiment, downloading end will do the setting between the adjacent described mark character in the restoring data stream
The delay of time is ensureing to be consistent on the time that records with the record end of the data flow after reducing.
The present embodiment, can reach according to the speed and time response during the data record for preserving, afterwards to recording field
The playback simulation of scape.
Embodiment two
Fig. 6 shows the concrete structure block diagram of the data readback analog systemss that the embodiment of the present invention two is provided, for the ease of
Illustrate, illustrate only the part related to the embodiment of the present invention.In the present embodiment, the data readback analog systemss include:Note
Record end 1 and downloading end 2, wherein, the record end 1 includes:
First conversion unit 11, for the LAPS frames for being converted to packet by Link Access Procedure-SDH protocol, the packet is ether
Net frame;
Mark insertion unit 12, for mark character to be inserted in the LAPS frames every setting time, and will be described
LAPS frames and the mark character are preserved as valid data;
The downloading end 2 includes:
Data resolution unit 21, for downloading the valid data that the record end preserves, parses the valid data
Acquisition includes the restoring data stream of the LAPS frames and the mark character;
Second conversion unit 22, for according to Link Access Procedure-SDH protocol, LAPS frames described in the restoring data stream being converted into into institute
State packet;
Data convert unit 23, for the setting will to be done between the adjacent described mark character in the restoring data stream
The delay of time is ensureing to be consistent on the time that records with the record end of the data flow after reducing.
The present embodiment, can reach downloading end according to record end preserve data record when speed and time response,
Playback to recording scene afterwards is simulated.
Further, the setting time is the set time that user is arranged, and the length of the setting time is shorter, playback
The precision of simulation is higher;The length of the setting time is longer, and the precision for playing back simulation is lower.
Further, the mark character is specially 0x7E.
Data readback analog systemss provided in an embodiment of the present invention can be applied in aforementioned corresponding embodiment of the method one,
Details will not be described here referring to the description of above-described embodiment one.
It should be noted that in said system embodiment, included unit simply carries out drawing according to function logic
Point, but above-mentioned division is not limited to, as long as corresponding function can be realized;In addition, each functional unit is concrete
Title is also only to facilitate mutually differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in the various embodiments described above method
Program be can be by instruct the hardware of correlation to complete, corresponding program can be stored in embodied on computer readable storage and be situated between
In matter, described storage medium, such as ROM/RAM, disk or CD.
Presently preferred embodiments of the present invention is the foregoing is only, not to limit the present invention, all essences in the present invention
Any modification, equivalent and improvement made within god and principle etc., should be included within the scope of the present invention.
Claims (6)
1. a kind of data readback analogy method, it is characterised in that methods described includes:
The valid data that Download History end preserves, parse the valid data and obtain the reduction number for including LAPS frames and mark character
According to stream;
According to Link Access Procedure-SDH protocol, LAPS frames described in the restoring data stream are converted into into packet;
By the delay that setting time is done between the adjacent mark character in the restoring data stream with ensure reduce after the number
It is consistent on the time recorded with the record end according to flowing;
Methods described also includes:
The LAPS frames that packet is converted to by Link Access Procedure-SDH protocol, the packet is ethernet frame;
Mark character is inserted in the LAPS frames every setting time, and using the LAPS frames and the mark character as having
Effect data are preserved.
2. the method for claim 1, it is characterised in that the setting time is the set time that user is arranged, described
The length of setting time is shorter, and the precision for playing back simulation is higher;The length of the setting time is longer, and the precision for playing back simulation is got over
It is low.
3. the method for claim 1, it is characterised in that the mark character is specially 0x7E.
4. a kind of data readback analog systemss, it is characterised in that the system includes record end and downloading end, wherein, the note
Record end includes:
First conversion unit, for the LAPS frames for being converted to packet by Link Access Procedure-SDH protocol, the packet is ethernet frame;
Mark insertion unit, for every setting time insert in the LAPS frames mark character, and by the LAPS frames with
The mark character is preserved as valid data;
The downloading end includes:
Data resolution unit, for downloading the valid data that the record end preserves, parses the valid data and obtains bag
Include the restoring data stream of the LAPS frames and the mark character;
Second conversion unit, for according to Link Access Procedure-SDH protocol, LAPS frames described in the restoring data stream being converted into into the data
Bag;
Data convert unit, for the setting time will to be done between the adjacent described mark character in the restoring data stream
Postpone to ensure to be consistent on the time that the data flow after reducing is recorded with the record end.
5. system as claimed in claim 4, it is characterised in that the setting time is the set time that user is arranged, described
The length of setting time is shorter, and the precision for playing back simulation is higher;The length of the setting time is longer, and the precision for playing back simulation is got over
It is low.
6. system as claimed in claim 4, it is characterised in that the mark character is specially 0x7E.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410223926.7A CN103997385B (en) | 2014-05-23 | 2014-05-23 | Data playback simulating method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410223926.7A CN103997385B (en) | 2014-05-23 | 2014-05-23 | Data playback simulating method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103997385A CN103997385A (en) | 2014-08-20 |
CN103997385B true CN103997385B (en) | 2017-05-03 |
Family
ID=51311397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410223926.7A Active CN103997385B (en) | 2014-05-23 | 2014-05-23 | Data playback simulating method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103997385B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278219B (en) * | 2018-03-14 | 2022-03-04 | 吉旗(成都)科技有限公司 | Procedural Internet of things equipment simulation tool and simulation method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282251A (en) * | 2008-05-08 | 2008-10-08 | 中国科学院计算技术研究所 | Method for digging recognition characteristic of application layer protocol |
CN101860738A (en) * | 2010-04-02 | 2010-10-13 | 武汉微创光电股份有限公司 | Ethernet-based transmitting and receiving method of uncompressed video |
CN101964798A (en) * | 2010-10-15 | 2011-02-02 | 德讯科技股份有限公司 | Multi-graphic protocol unified proxy system based on remote desktop protocol |
CN102722375A (en) * | 2012-06-08 | 2012-10-10 | 四川川大智胜软件股份有限公司 | Implementation method for recording and replaying images based on X protocol |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7548657B2 (en) * | 2005-06-25 | 2009-06-16 | General Electric Company | Adaptive video compression of graphical user interfaces using application metadata |
-
2014
- 2014-05-23 CN CN201410223926.7A patent/CN103997385B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101282251A (en) * | 2008-05-08 | 2008-10-08 | 中国科学院计算技术研究所 | Method for digging recognition characteristic of application layer protocol |
CN101860738A (en) * | 2010-04-02 | 2010-10-13 | 武汉微创光电股份有限公司 | Ethernet-based transmitting and receiving method of uncompressed video |
CN101964798A (en) * | 2010-10-15 | 2011-02-02 | 德讯科技股份有限公司 | Multi-graphic protocol unified proxy system based on remote desktop protocol |
CN102722375A (en) * | 2012-06-08 | 2012-10-10 | 四川川大智胜软件股份有限公司 | Implementation method for recording and replaying images based on X protocol |
Also Published As
Publication number | Publication date |
---|---|
CN103997385A (en) | 2014-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103188260B (en) | Use method and the gateway of IP-based real-time performance CCN in gateway | |
CN102291291B (en) | For the method that would know that the built-in Remote Switched Port Analyzer of time | |
CN105591912B (en) | A kind of selection method and device of forward-path | |
CN107995503B (en) | Audio and video playing method and device | |
CN104602105B (en) | The player method and user equipment of video file | |
WO2012070859A3 (en) | Broadcast signal transmitting apparatus, broadcast signal receiving apparatus, and broadcast signal transceiving method in broadcast signal transmitting and receiving apparatuses | |
EP1168721A4 (en) | Packet communication apparatus, packet communication method, and storage medium | |
WO2016015511A1 (en) | Method, apparatus and computer storage medium for simulating data packet in network management test event | |
CN101548510A (en) | Method and apparatus for transmitting transport stream packets | |
CN103795762A (en) | Reverse agent test system and method | |
CN106559289A (en) | The concurrent testing method and device of SSLVPN gateways | |
CN105610641B (en) | A kind of switch test system and its test method based on HWIL simulation | |
CN107104782A (en) | Data transmission method and device | |
CN106911588A (en) | Methods, devices and systems for realizing deep-packet detection optimization | |
CN103986788A (en) | Data fetching method and device of OTT (over the top) application | |
US20140003454A1 (en) | Method and system for recording, synchronizing and analysing data by means of analysis devices which are spatially distributed in a communication network | |
CN106911927A (en) | Assess method, device and the DPI equipment of Internet video user experience quality | |
CN103997385B (en) | Data playback simulating method and system | |
Farooq et al. | Poster: Extended LoRaSim to Simulate Multiple IoT Applications in a LoRaWAN. | |
CN106454249A (en) | Device for simulating multipath high-definition real-time audio and video transmission and method thereof | |
Agrawal et al. | Trace based application layer modeling in ns-3 | |
CN103634365A (en) | Third party application platform in wireless access network and communication method thereof | |
CN108063986A (en) | Frame number bearing method, the apparatus and system of multichannel passive optical network | |
CN105472339B (en) | For realizing the method for playing back videos, server and system | |
WO2007095593A3 (en) | Diagnostic functions in an in-line device |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201030 Address after: Room 1103, No.8, Jingang Avenue, Nansha street, Nansha District, Guangzhou City, Guangdong Province Patentee after: Guangzhou Zhongguang Guoke measurement and Control Technology Co., Ltd Address before: 100000 Beijing Tongzhou District brocade 52 North Building Room 1308 Patentee before: BEIJING ZHONGHE ZHUOYUAN TECHNOLOGY Co.,Ltd. |