CN115801195A - Variable frame header searching system and method - Google Patents

Variable frame header searching system and method Download PDF

Info

Publication number
CN115801195A
CN115801195A CN202211494010.6A CN202211494010A CN115801195A CN 115801195 A CN115801195 A CN 115801195A CN 202211494010 A CN202211494010 A CN 202211494010A CN 115801195 A CN115801195 A CN 115801195A
Authority
CN
China
Prior art keywords
frame header
frame
storage queue
searching
data
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.)
Pending
Application number
CN202211494010.6A
Other languages
Chinese (zh)
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.)
Tianjin Jinhang Computing Technology Research Institute
Original Assignee
Tianjin Jinhang Computing Technology Research Institute
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 Tianjin Jinhang Computing Technology Research Institute filed Critical Tianjin Jinhang Computing Technology Research Institute
Priority to CN202211494010.6A priority Critical patent/CN115801195A/en
Publication of CN115801195A publication Critical patent/CN115801195A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Communication Control (AREA)

Abstract

The invention relates to a variable frame header searching system and a variable frame header searching method, and belongs to the field of data communication. The invention can search the preset frame header aiming at the frame header dynamic change of the data frame in the data communication field. Meanwhile, dynamic changes of the frame headers of the received data frames can be processed in real time, multiple kinds of frame header information are preset in a frame header storage queue, and multiple paths of parallel frame searching are carried out after the data streams arrive, so that uninterrupted communication of data can be realized under the condition that the communication equipment is not reset and restarted, and the data transmission efficiency is improved.

Description

Variable frame header searching system and method
Technical Field
The invention belongs to the field of data communication, and particularly relates to a variable frame header searching system and a variable frame header searching method.
Background
In the field of data communication, a data frame header of the same device is usually fixed and unchanged after being powered on, and for some application scenarios, the device is restarted due to the change of the frame header, and the flexibility is poor.
Disclosure of Invention
Technical problem to be solved
The technical problem to be solved by the present invention is how to provide a variable frame header searching system and method to solve the problem that the data frame header of the same device is usually fixed and unchanged after being powered on and has poor flexibility.
(II) technical scheme
In order to solve the technical problem, the invention provides a variable frame header searching system, which comprises a frame header storage queue, a frame searching module, a message monitoring module and a frame header preset register, wherein the frame header storage queue is used for storing a frame header;
in the frame header storage queue, the current effective frame header configuration is stored for the frame searching module to search and identify;
the frame searching module carries out data frame searching work according to the frame headers configured in the frame header storage queue; after searching frame header data in the current data stream, adjusting a frame header storage queue; if the matched frame header is not searched, the message frame received from the opposite end is directly transmitted to a message monitoring module;
the message monitoring module is used for monitoring whether a message frame is added in the data stream; once the message frame is monitored, the frame header information carried in the message frame is used as new frame header information, and a write-in frame header storage queue is dynamically updated;
the frame header preset register is a group of register devices, is written and stored by an external CPU after being electrified, and is automatically filled into a frame header storage queue after the system is started to serve as initial frame header storage queue information.
Further, currently valid N frame header data are stored in the frame header storage queue.
Further, N =8.
Further, N =10.
Further, the frame header storage queues are ordered according to the priority externally set after reset when being started.
Further, the adjusting the frame header storage queue includes: the frame searching module reorders the frame header information in the frame header storage queue and arranges the matched frame header priority to be highest.
The invention also provides a variable frame header searching method, which comprises the following steps:
s101, after the equipment is started, writing preset frame header information into a frame header preset register by an external configuration processor, and then loading the preset frame header information in the register into a frame header storage queue;
s102, storing currently effective N frame header data in a frame header storage queue; sorting according to the priority externally set after resetting when starting; after data are received, reordering is carried out according to a frame searching result of actually received data;
s103, the frame searching module searches the received data according to the frame header information in the frame header storage queue; once the matched frame headers are searched, the frame searching module reorders the frame header information in the frame header storage queue and arranges the priority of the matched frame headers to be the highest; if the matched frame header is not searched, the message frame received from the opposite end is directly transmitted to a message monitoring module;
s104, the frame searching module performs frame header searching on the data stream processed in the S103 according to the frame header with the highest priority in the frame header storage queue and transmits the data to a subsequent module according to a frame format;
s105, after the steps S103 and S104 are finished, the message monitoring module starts to work; the module is responsible for monitoring the message frame, and after receiving the message frame, the message monitoring module extracts the frame header information therein and dynamically updates the write-in frame header storage queue.
Further, N =8.
Further, N =10.
Further, when the frame header storage queue is full, the oldest frame header information in the queue is overwritten, and the priority of the latest written frame header is set to be the highest.
(III) advantageous effects
The invention provides a variable frame header searching system and a variable frame header searching method, and aims to design a variable frame header searching method. The method designs a variable frame header searching system aiming at the dynamic change of the frame header of a data frame in the field of data communication, and can search a preset frame header. Meanwhile, dynamic changes of the frame headers of the received data frames can be processed in real time, multiple kinds of frame header information are preset in a frame header storage queue, and multiple paths of parallel frame searching are carried out after the data streams arrive, so that uninterrupted communication of data can be realized under the condition that the communication equipment is not reset and restarted, and the data transmission efficiency is improved.
Drawings
FIG. 1 is a block diagram of a variable frame header search system according to the present invention;
fig. 2 is a flowchart of a variable header search method.
Detailed Description
In order to make the objects, contents and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
The invention relates to a variable frame header searching method, which is applied to the situation that the frame headers of data frames in different communication channels have dynamic changes in the field of data communication.
The variable frame header searching system in the invention comprises: the device comprises a frame header storage queue, a frame searching module, a message monitoring module and a frame header preset register.
In the frame header storage queue, the current effective frame header configuration is stored for the frame searching module to search and identify.
And the frame searching module performs data frame searching according to the frame headers configured in the frame header storage queue. And adjusting the frame header storage queue after searching the frame header data in the current data stream. And if the matched frame header is not searched, directly transmitting the message frame received from the opposite end to the message monitoring module.
The message monitoring module is used for monitoring whether a message frame is added in the data stream. Once the message frame is monitored, the frame header information carried in the message frame is used as new frame header information, and the write frame header storage queue is dynamically updated.
The frame header preset register is a group of register devices, is written and stored by an external CPU after being electrified, and is automatically filled into a frame header storage queue after the system is started to serve as initial frame header storage queue information.
Further, currently valid N frame header data are stored in the frame header storage queue.
Further, N =8 or N =10.
Further, the frame header storage queues are ordered according to the priority externally set after reset when being started.
Further, adjusting the frame header storage queue comprises: the frame searching module reorders the frame header information in the frame header storage queue and arranges the matched frame header priority to be highest.
The variable frame header searching method of the invention comprises the following steps:
s101, after the equipment is started, the external configuration processor writes preset frame header information into a frame header preset register, and then the preset frame header information in the register is loaded into a frame header storage queue. And the frame header storage queue stores all information in the frame header.
S102, currently effective N frame header data are stored in the frame header storage queue. And sorting according to the priority externally set after resetting when starting. After the data is received, the data is reordered according to the frame searching result of the actually received data. N =8 or N =10.
S103, the frame searching module searches the received data according to the frame header information in the frame header storage queue. Once the matched frame headers are searched, the frame searching module reorders the frame header information in the frame header storage queue and arranges the matched frame header priority to be the highest. If the matched frame header is not searched, the message frame received from the opposite end is directly transmitted to a message monitoring module;
and S104, the frame searching module performs frame header searching on the data stream processed in the S103 according to the frame header with the highest priority in the frame header storage queue and transmits the data to a subsequent module according to a frame format.
And S105, after the steps S103 and S104 are finished, the message monitoring module starts to work. The module is responsible for monitoring message frames, which may have a fixed format. The message frame is used for informing the message monitoring module of the change of the frame head. And after receiving the message frame, the message monitoring module extracts the frame header information in the message frame and dynamically updates the write-in frame header storage queue. When the frame header storage queue is full, the oldest frame header information in the queue is covered, and the priority of the newly written frame header is set to be the highest.
The invention aims to design a variable frame header searching method. The method designs a variable frame header searching system aiming at the dynamic change of the frame header of a data frame in the field of data communication, and can search a preset frame header. Meanwhile, dynamic changes of the frame headers of the received data frames can be processed in real time, multiple kinds of frame header information are preset in a frame header storage queue, and multiple paths of parallel frame searching are carried out after the data streams arrive, so that uninterrupted communication of data can be realized under the condition that the communication equipment is not reset and restarted, and the data transmission efficiency is improved.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A variable frame header searching system is characterized by comprising a frame header storage queue, a frame searching module, a message monitoring module and a frame header preset register;
in the frame header storage queue, the current effective frame header configuration is stored for the frame searching module to search and identify;
the frame searching module carries out data frame searching work according to the frame headers configured in the frame header storage queue; after searching frame header data in the current data stream, adjusting a frame header storage queue; if the matched frame header is not searched, the message frame received from the opposite end is directly transmitted to a message monitoring module;
the message monitoring module is used for monitoring whether a message frame is added in the data stream; once the message frame is monitored, the frame header information carried in the message frame is used as new frame header information, and a write-in frame header storage queue is dynamically updated;
the frame header preset register is a group of register devices, is written and stored by an external CPU after being electrified, and is automatically filled into a frame header storage queue after the system is started to serve as initial frame header storage queue information.
2. The variable frame header search system of claim 1, wherein currently valid N frame header data are stored in a frame header storage queue.
3. A variable frame header search system as claimed in claim 2, wherein N =8.
4. A variable frame header search system as claimed in claim 2, wherein N =10.
5. The variable frame header search system of claim 1, wherein the frame header store queues are ordered at startup according to externally set priorities after reset.
6. The variable frame header search system of claim 1, wherein the adjusting the frame header storage queue comprises: the frame searching module reorders the frame header information in the frame header storage queue and arranges the matched frame header priority to be highest.
7. A variable frame header searching method based on the variable frame header searching system of any one of claims 1-6, the method comprising the steps of:
s101, after the equipment is started, writing preset frame header information into a frame header preset register by an external configuration processor, and then loading the preset frame header information in the register into a frame header storage queue;
s102, currently effective N frame header data are stored in a frame header storage queue; sorting according to the priority externally set after resetting when starting; after data are received, reordering is carried out according to a frame searching result of actually received data;
s103, the frame searching module searches the received data according to the frame header information in the frame header storage queue; once the matched frame headers are searched, the frame searching module reorders the frame header information in the frame header storage queue and arranges the priority of the matched frame headers to be the highest; if the matched frame header is not searched, the message frame received from the opposite end is directly transmitted to a message monitoring module;
s104, the frame searching module performs frame header searching on the data stream processed in the S103 according to the frame header with the highest priority in the frame header storage queue and transmits the data to a subsequent module according to a frame format;
s105, after the steps S103 and S104 are finished, the message monitoring module starts to work; the module is responsible for monitoring the message frame, and after receiving the message frame, the message monitoring module extracts the frame header information therein and dynamically updates the write-in frame header storage queue.
8. The variable header searching method of claim 7, wherein N =8.
9. The variable header searching method of claim 7, wherein N =10.
10. A method for variable frame header search according to any one of claims 7-9, wherein when the frame header storage queue is full, the oldest frame header information in the queue is overwritten, and the priority of the newest written frame header is set to be highest.
CN202211494010.6A 2022-11-25 2022-11-25 Variable frame header searching system and method Pending CN115801195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211494010.6A CN115801195A (en) 2022-11-25 2022-11-25 Variable frame header searching system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211494010.6A CN115801195A (en) 2022-11-25 2022-11-25 Variable frame header searching system and method

Publications (1)

Publication Number Publication Date
CN115801195A true CN115801195A (en) 2023-03-14

Family

ID=85441742

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211494010.6A Pending CN115801195A (en) 2022-11-25 2022-11-25 Variable frame header searching system and method

Country Status (1)

Country Link
CN (1) CN115801195A (en)

Similar Documents

Publication Publication Date Title
US9529640B2 (en) Work request processor
US9465662B2 (en) Processor with efficient work queuing
US7957392B2 (en) Method and apparatus for high-performance bonding resequencing
US20030172169A1 (en) Method and apparatus for caching protocol processing data
US8341351B2 (en) Data reception system with determination whether total amount of data stored in first storage area exceeds threshold
EP2461527A1 (en) Route switching device and data cashing method thereof
US11425057B2 (en) Packet processing
EP2219114A1 (en) Method and apparatus for allocating storage addresses
US7088731B2 (en) Memory management for packet switching device
CN111241088A (en) Data writing method, data query method, device and equipment
CN113014510A (en) Data caching method and device in distributed test of inertial navigation system
CN115801195A (en) Variable frame header searching system and method
CN116233036B (en) DMA transmission control method and device
US8904032B2 (en) Prefetch optimization of the communication of data using descriptor lists
CN111970213A (en) Queuing system
US9338219B2 (en) Direct push operations and gather operations
CN116074247A (en) Hardware flow table aging method, software flow table aging method, device and electronic equipment
CN117499351A (en) Message forwarding device and method, communication chip and network equipment
US7743182B2 (en) Method and apparatus for synchronizing a software buffer index with an unknown hardware buffer index
KR100898345B1 (en) Packet receiver hardware apparatus for tcp offload engine and system and method based on ??? packet receive hardware
US20080228823A1 (en) Frame transfer apparatus
CN115086001B (en) Sampling data caching method, device and storage medium
CN112559196B (en) Transmission method for sharing communication data between processes
US6728857B1 (en) Method and system for storing and retrieving data using linked lists
KR100725921B1 (en) Apparatus for TCP and UDP Socket Search

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination