CN108667765A - A kind of data processing method and device - Google Patents

A kind of data processing method and device Download PDF

Info

Publication number
CN108667765A
CN108667765A CN201710193820.0A CN201710193820A CN108667765A CN 108667765 A CN108667765 A CN 108667765A CN 201710193820 A CN201710193820 A CN 201710193820A CN 108667765 A CN108667765 A CN 108667765A
Authority
CN
China
Prior art keywords
data packet
data
processors
network interface
processing
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.)
Withdrawn
Application number
CN201710193820.0A
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.)
Sanechips Technology Co Ltd
Shenzhen ZTE Microelectronics Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics 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 Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201710193820.0A priority Critical patent/CN108667765A/en
Publication of CN108667765A publication Critical patent/CN108667765A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/126Applying verification of the received information the source of the received data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The invention discloses a kind of data processing methods, including:Pre-set external data processor and internal data processor;The method further includes:Determine the source of the data packet received;According to the source-information of the data packet, the data packet is placed in the external data processor or internal data processor carries out respective handling;By treated, allocation of packets carries out business data processing to central processing unit (CPU) is middle.The present invention further simultaneously discloses a kind of data processing equipment.

Description

A kind of data processing method and device
Technical field
The present invention relates in mobile communication field business data processing technology more particularly to a kind of data processing method and Device.
Background technology
In traditional wireless traffic process flow, typically use after the network interface of Ethernet receives data, A series of processing, packet only are carried out to the data received by central processing unit (CPU, Central Processing Unit) It includes:The parsing that layer 2 arrives layer 5 is carried out to data packet, and the processing such as encryption and decryption, integrity protection and verification are carried out to data packet. In general, can also preferably realize the processing such as the fragment to service message, forwarding, recombination using CPU.
Currently, with the continuous development of long term evolution (LTE, Long Term Evolution) technology, user is to mobile band Wide and service rate demand is higher and higher, adds the volume production of chip, leads to requirement to chip manufacturing cost also increasingly It is high.As it can be seen that if being continuing with traditional wireless traffic process flow carrys out processing business data, at traditional wireless traffic Reason process all uses software control, and therefore, the huge increasing of wireless traffic can bring prodigious challenge to the performance of CPU, The processing speed of CPU is directly influenced, often aggravates the burden of CPU in this way so that the flexibility of CPU is inadequate, processing capacity Deficiency, to reduce the traffic handing capacity of entire chip.It will be apparent that traditional wireless traffic process flow cannot be satisfied user This high demand.Therefore, there is an urgent need for a kind of wireless service processing methods can adapt to business demand for this field.
Invention content
In view of this, an embodiment of the present invention is intended to provide a kind of data processing method and devices, at least solve existing wireless The above problem present in method for processing business, can offloading the CPU, meet need of the user to wireless traffic well It asks.
In order to achieve the above objectives, the technical solution of the embodiment of the present invention is realized in:
The embodiment of the present invention provides a kind of data processing method, pre-sets external data processor and internal data processing Device;The method further includes:
Determine the source of the data packet received;
According to the source-information of the data packet, the data packet is placed in the external data processor or internal data Processor carries out respective handling;
Business data processing will be carried out in treated allocation of packets to CPU.
In said program, the external data processor includes:At least two dual gigabit ethernet (DGE, Double Gigabit Ethernet) processor;The internal data processor includes:Encryption and decryption (SEC, security) processor;
The data packet is placed in the external data processor or internal data processor carries out respective handling, including: Data packet from different network interfaces is placed in the corresponding DGE processors of different network interfaces and carries out dissection process;Or by the number from CPU It is placed in the SEC processors according to packet and carries out safety processing.
In said program, the method further includes:Be pre-configured with queue decisional table, and configure buffering queue management (BQM, Buffer Queue Management) processor;
It is described to carry out business data processing in treated allocation of packets to CPU, including:Processing data packets complete and After the BQM processors receive the request that application is joined the team, according to the queue decisional table, by treated, allocation of packets arrives Business data processing is carried out in CPU.
In said program, the method further includes:During the DGE processor processes datas packet, there is network interface to insert When pulling out event generation, changed network interface state is detected, and give CPU to carry out business transmitting-receiving the network interface state reporting detected The adjustment of state.
In said program, the difference network interface includes:The interior network interface of Ethernet, the outer network interface of Ethernet;
It is described the data packet from different network interfaces is placed in the corresponding DGE processors of different network interfaces to carry out dissection process;Or Data packet from CPU is placed in the SEC processors and carries out safety processing, including:
When the data packet come from Ethernet interior network interface or Ethernet outer network interface when, by the data packet be placed in In the interior network interface of the Ethernet or the corresponding DGE processors of the outer network interface of Ethernet, and layer 2 is carried out to the data packet and arrives layer 5 dissection process;
When the data packet comes from CPU, the data packet is placed in the SEC processors, and to the data Packet carries out at least one of encryption and decryption, integrity protection, completeness check processing.
The embodiment of the present invention also provides a kind of data processing equipment, and described device includes:Setup module, determining module, place Manage module;Wherein,
The setup module, for pre-setting external data processor and internal data processor;
The determining module, the source for determining the data packet received;
The data packet is placed in the external number by the processing module for the source-information according to the data packet Respective handling is carried out according to processor or internal data processor;Being additionally operable to will be in treated allocation of packets to CPU into industry Business data processing.
In said program, the external data processor includes:At least two DGE processors;The internal data processing Device includes:SEC processors;
The processing module, is specifically used for:Data packet from different network interfaces is placed in the corresponding DGE processing of different network interfaces Device carries out dissection process;Or the data packet from CPU is placed in the SEC processors and carries out safety processing.
In said program, the setup module is additionally operable to be pre-configured with queue decisional table, and configures BQM processors;
The processing module, is specifically used for:Processing data packets are completed and the BQM processors receive the request that application is joined the team Afterwards, according to the queue decisional table, business data processing will be carried out in treated allocation of packets to CPU.
In said program, the processing module is additionally operable to during the DGE processor processes datas packet, there is net When mouth hot plug event occurs, changed network interface state is detected, and give CPU to carry out business the network interface state reporting detected The adjustment of reiving/transmitting state.
In said program, the difference network interface includes:The interior network interface of Ethernet, the outer network interface of Ethernet;
The processing module, is specifically used for:When the data packet comes from the interior network interface of Ethernet or the outer net of Ethernet When mouth, the data packet is placed in DGE processors corresponding with the interior network interface of the Ethernet or the outer network interface of Ethernet, and The dissection process that layer 2 arrives layer 5 is carried out to the data packet;
When the data packet comes from CPU, the data packet is placed in the SEC processors, and to the data Packet carries out at least one of encryption and decryption, integrity protection, completeness check processing.
The data processing method and device that the embodiment of the present invention is provided pre-set external data processor and internal number According to processor;Determine the source of the data packet received;According to the source-information of the data packet, the data packet is placed in institute It states external data processor or internal data processor carries out respective handling;It will be carried out in treated allocation of packets to CPU Business data processing.In this way, by flexible configuration external data processor and internal data processor, using software and hardware combining Mode handles radio service data, can not only greatly offloading the CPU, moreover it is possible to neatly according to user demand Resource is allocated, the efficient utilization of resource is reached, to the spy high with integrated level, configuration is flexible, efficient, at low cost Point, to meet the needs of user is to wireless traffic well.
Description of the drawings
Fig. 1 is the flow diagram of data processing method of the embodiment of the present invention;
Fig. 2 is the specific implementation flow schematic diagram of data processing method of the embodiment of the present invention;
Fig. 3 is the workflow schematic diagram of DGE processors of the embodiment of the present invention;
Fig. 4 is the workflow schematic diagram of SEC processors of the embodiment of the present invention;
Fig. 5 is the workflow schematic diagram of the BQM processors of scene of the embodiment of the present invention once;
Fig. 6 is the workflow schematic diagram of the BQM processors under scene of the embodiment of the present invention two;
Fig. 7 is the composed structure schematic diagram of data processing equipment of the embodiment of the present invention.
Specific implementation mode
The characteristics of in order to more fully hereinafter understand the embodiment of the present invention and technology contents, below in conjunction with the accompanying drawings to this hair The realization of bright embodiment is described in detail, appended attached drawing purposes of discussion only for reference, is not used for limiting the present invention.
As shown in Figure 1, in the embodiment of the present invention data processing method implementation process, include the following steps:
Step 101:Pre-set external data processor and internal data processor;
Here, the external data processor includes:At least two DGE processors;The internal data processor includes: SEC processors.
Here, the method further includes:It is pre-configured with queue decisional table, and configures BQM processors.
Here, can according to actual conditions of the disposition and queue resource of each layer in ethernet communication protocol, handle up The factors such as amount configure queue decisional table;Wherein, be stored in the queue decisional table data packet and the affiliated queue number of data packet it Between correspondence, in this way, by identifying that queue decisional table can determine which corresponding queue is certain data packet is put into.
Here, the DGE processors, BQM processors, SEC processors need to be integrated on same embedded chip, respectively Data packet is controlled and is managed.Wherein, the DGE processors are mainly responsible for the transmission, reception and parsing of data packet;It is described BQM processors are mainly responsible for which queue is data packet is sent to by decision;The SEC processors be mainly responsible for data packet plus solution The processing of close, integrity protection, completeness check.
Step 102:Determine the source of the data packet received;
Here, the source of the data packet can be divided into:The interior network interface of Ethernet, outer network interface, the CPU of Ethernet.
Step 103:According to the source-information of the data packet, by the data packet be placed in the external data processor or Internal data processor carries out respective handling;
This step specifically includes:Data packet from different network interfaces is placed in the corresponding DGE processors of different network interfaces to carry out Dissection process;Or the data packet from CPU is placed in the SEC processors and carries out safety processing.
Wherein, the different network interfaces include:The interior network interface of Ethernet, the outer network interface of Ethernet;Specifically, when the number According to packet come from Ethernet interior network interface or Ethernet outer network interface when, start the corresponding DGE processors of different network interfaces, will be described Data packet is placed in DGE processors corresponding with the interior network interface of the Ethernet or the outer network interface of Ethernet, and to the data Packet carries out the dissection process that layer 2 arrives layer 5;When the data packet comes from CPU, start the SEC processors, by the data Packet is placed in the SEC processors, and is carried out in encryption and decryption, integrity protection, completeness check processing to the data packet It is at least one.
Here, after the completion of the DGE processors or SEC processors are to processing data packets, the method further includes:To institute It states BQM processors and sends the request that application is joined the team.
Here, automatic to detect when having the generation of network interface hot plug event during the DGE processor processes datas packet Changed network interface state, and by the network interface state reporting detected to the adjustment of CPU progress business reiving/transmitting states.
Step 104:Business data processing will be carried out in treated allocation of packets to CPU.
This step specifically includes:After processing data packets completion and the BQM processors receive the request that application is joined the team, according to The queue decisional table will carry out business data processing in treated allocation of packets to CPU.
Here, it should be strongly noted that in above-mentioned data handling procedure, when the BQM processors receive data After the request joined the team of packet application, judgement of joining the team is carried out according to the queue decisional table, i.e. general's treated allocation of packets to institute It states in the corresponding queue of BQM processors;When an interrupt occurs, DGE processors initiate out team's application to corresponding queue, read team Data in row, and the data read out are sent to CPU, so that CPU carries out subsequent business data processing.
Here, CPU is as needed handled business datum, including:Different agreement is constructed on downlink road The data message of level, the processes such as data message of parsing verification different agreement level on up data link.
Compared with prior art, the embodiment of the present invention is by flexible configuration DGE processors, BQM processors, SEC processors, It can not only realize simple recept and the transmission of data packet, moreover it is possible to parse to data packet;At the same time it can also logarithm as needed The processing of encryption and decryption or integrity protection, completeness check is carried out according to packet, and since queue decisional table is with property so that Resource can be flexibly used, and CPU processing data asynchronous can carry out, and increase flexibility;In addition, using hardware-accelerated, soft The mode that part control is combined carrys out processing business data, moreover it is possible to improve efficiency, meet the needs of current wireless traffic well.
Fig. 2 gives the specific implementation flow schematic diagram of data processing method of the embodiment of the present invention, as shown in Fig. 2, including Following steps:
Step 201:After system electrification, DGE processors, BQM processors, SEC processors are carried out just according to user demand Beginningization configures;
Here, the initial configuration carried out to DGE processors, BQM processors, SEC processors, refers to at DGE Manage the configuration of device, BQM processors, SEC processors correlation function and parameter.
Step 202:After receiving data packet, the source of data packet is first determined whether;
Here, the source of the data packet is broadly divided into three types, is respectively:The interior network interface of Ethernet, Ethernet Outer network interface, CPU.
Step 203:Judge whether data packet derives from the interior network interface of Ethernet, if so, being transferred to step 204;Otherwise, turn Enter step 205;
Step 204:Data packet is placed in the corresponding DGE processors of network interface in Ethernet to handle, after the completion of processing, is turned Enter step 208;
Here, to distinguish the processor that DGE processors are interior network interfaces, or the processor of outer network interface, in general, will be with Intranet The corresponding DGE processors of mouth are denoted as DGE1 processors, and DGE processors corresponding with outer network interface are denoted as DGE2 processors;DGE1 Processor is mainly used for carrying out the dissection process that layer 2 arrives layer 5 to data packet.
Step 205:Judge whether data packet derives from the outer network interface of Ethernet, if so, being transferred to step 206;Otherwise, turn Enter step 207;
Step 206:Data packet is placed in the corresponding DGE processors of network interface outside Ethernet to handle, after the completion of processing, is turned Enter step 208;
Here, the dissection process that layer 2 arrives layer 5 is carried out to data packet using DGE2 processors.
Step 207:Data packet is placed in SEC processors and carries out safety processing;
Here, the safety, which is handled, includes:Encryption and decryption, integrity protection, completeness check processing are carried out to data packet At least one of.
Step 208:It joins the team to BQM processor applications;
Step 209:BQM processors receive join the team application after, will be in allocation of packets to corresponding queue;
Here, it needs to be pre-configured with queue decisional table;According to queue decisional table, by allocation of packets to corresponding queue In;Wherein, the queue decisional table can be according to the reality of the disposition and queue resource of each layer in ethernet communication protocol Situation, handling capacity etc. are because usually being configured.Be stored in the queue decisional table data packet and the affiliated queue number of data packet it Between correspondence, in this way, by identifying that queue decisional table can determine which corresponding queue is certain data packet is put into.
Step 210:CPU reads the data packet in queue by way of going out team, and carries out business to the data packet of reading Data processing.
Here, business data processing is carried out to the data packet of reading, including:Different agreement is constructed on downlink road The data message of level, the processes such as data message of parsing verification different agreement level on up data link.
The data processing method of the present invention is described in detail with reference to concrete application scene.
Application scenarios one:By come from the interior network interface of Ethernet, the outer network interface of Ethernet, CPU data packet be respectively put into In corresponding different queue.Under this scene, data handling procedure of the invention is as follows:
When data packet comes from the interior network interface of Ethernet:DGE1 processors configure the data packet to receiving according to itself Carry out the dissection process that layer 2 arrives layer 5;After dissection process is completed, the request that application is joined the team, BQM processing are sent to BQM processors Device carries out judgement of joining the team according to preconfigured queue decisional table, and data packet is put into corresponding queue by treated;When When interrupting generation, DGE1 processors carry out out team's application to corresponding queue, and send the data to CPU, after being carried out so as to CPU Continuous processing;
When data packet comes from the outer network interface of Ethernet:DGE2 processors configure the data packet to receiving according to itself Carry out the dissection process that layer 2 arrives layer 5;After dissection process is completed, the request that application is joined the team, BQM processing are sent to BQM processors Device carries out judgement of joining the team according to preconfigured queue decisional table, and data packet is put into corresponding queue by treated;When When interrupting generation, DGE2 processors carry out out team's application to corresponding queue, and send the data to CPU, after being carried out so as to CPU Continuous processing;
When data packet comes from CPU:According to business demand, CPU applications enter the queue of SEC processors, at this point, starting After SEC processors receive task, encryption and decryption or integrity protection are carried out according to itself configuration to data packet for SEC processors Or the processing of completeness check;After processing is completed, the request joined the team of application is sent to BQM processors, BQM processors according to Preconfigured queue decisional table carries out judgement of joining the team, and data packet is put into the corresponding queues of CPU by treated;CPU roots According to own situation, data are read from corresponding queue, so as to the subsequent processing of CPU.
During above-mentioned DGE processor processes datas packet, when having the generation of network interface hot plug event, system can be examined automatically The variation of survey grid mouth state, and by changed network interface state reporting to CPU, so that CPU can adjust business transmitting-receiving in real time State.
Application scenarios two:The fragment message for the interior network interface for coming from Ethernet and non-fragment message are respectively put into and corresponded to not In same queue;The fragment message for the outer network interface for coming from Ethernet and non-fragment message are respectively put into corresponding different queue In;For coming from the message of CPU, it is put into according to the difference of data type in different queues, i.e.,:If it is downlink data without Line carries (DRB, Data Radio Bearer) data, then is put into corresponding queue, is wirelessly held if it is downlink signaling (SRB, signaling radio bearers) data are carried, then are put into corresponding queue, if it is uplink DRB data, It is then put into corresponding queue, if it is uplink SRB data, is then put into corresponding queue.Under this scene, this The data handling procedure of invention is as follows:
When data packet comes from the interior network interface of Ethernet:DGE1 processors configure the data packet to receiving according to itself Carry out the dissection process that layer 2 arrives layer 5;After dissection process is completed, the request that application is joined the team, BQM processing are sent to BQM processors It after device receives request, checks whether data packet is fragment message, if it is fragment message, then enters team corresponding with fragment message In row, otherwise, into queue corresponding with non-fragment message;When an interrupt occurs, DGE1 processors to corresponding queue into Row goes out team's application, and sends the data to CPU, so that CPU carries out subsequent processing;
When data packet comes from the outer network interface of Ethernet:DGE2 processors configure the data packet to receiving according to itself Carry out the dissection process that layer 2 arrives layer 5;After dissection process is completed, the request that application is joined the team, BQM processing are sent to BQM processors It after device receives request, checks whether data packet is fragment message, if it is fragment message, then enters team corresponding with fragment message In row, otherwise, into queue corresponding with non-fragment message;When an interrupt occurs, DGE2 processors to corresponding queue into Row goes out team's application, and sends the data to CPU, so that CPU carries out subsequent processing;
When data packet comes from CPU:According to business demand, CPU applications enter the queue of SEC processors, at this point, starting After SEC processors receive task, encryption and decryption or integrity protection are carried out according to itself configuration to data packet for SEC processors Or the processing of completeness check;After processing is completed, the request joined the team of application is sent to BQM processors, BQM processors according to Preconfigured queue decisional table carries out judgement of joining the team, for example, if message characteristic is 0x8c00, enters the corresponding teams of CPU In row;If message characteristic is 0xc400, enter in the corresponding queues of CPU;If message characteristic is 0xd000, enter In the corresponding queues of CPU;If message characteristic is 0xd400, enter in the corresponding queues of CPU;CPU according to own situation, from Data are read in corresponding queue, so as to the subsequent processing of CPU.
The course of work of the DGE processors of configuration of the embodiment of the present invention, BQM processors, SEC processors is done separately below It is further described.
Fig. 3 gives the workflow schematic diagram of DGE processors of the embodiment of the present invention, as shown in figure 3, including following step Suddenly:
Step 301:Receive the data packet from network interface;
Here, the data packet received can come from the data packet of the interior network interface of Ethernet, can also be to come From the data packet of the outer network interface in Ethernet.
Step 302:Judge whether to need to carry out the dissection process that layer 2 arrives layer 5 to data packet, if so, being transferred to step 303, otherwise, it is transferred to step 304;
Step 303:The dissection process that layer 2 arrives layer 5 is carried out to data packet, terminates present treatment flow;
Step 304:Application of joining the team is initiated to BQM processors;
Step 305:DGE processors initiate out team's application to corresponding queue;
Step 306:When an interrupt occurs, the data in queue are read, and the data read out are sent to CPU.
It should be noted that during DGE processor processes data packets, when having the generation of network interface hot plug event, automatically Changed network interface state is detected, and the network interface state reporting detected is carried out to the adjustment of business reiving/transmitting state to CPU.
Fig. 4 gives the workflow schematic diagram of SEC processors of the embodiment of the present invention, as shown in figure 4, including following step Suddenly:
Step 401:When business needs SEC processors to participate in, start SEC processors and BQM processors, and CPU is to BQM Processor initiates enqueue request;
Step 402:After BQM processors receive enqueue request, to SEC processor transmission data packets;
Step 403:After SEC processors receive data packet, judge whether to need to carry out encryption and decryption processing to data packet, if It is then to be transferred to step 404, otherwise, is transferred to step 407;
Step 404:Judge whether data packet is downlink data, if so, being transferred to step 405, otherwise, is transferred to step 406;
Here, DRB data, SRB data can be divided into upstream data and downlink data.
Step 405:Data packet is encrypted, step 410 is transferred to after the completion of processing;
Step 406:Data packet is decrypted, step 410 is transferred to after the completion of processing;
Step 407:Judge whether data packet is downlink data, if so, being transferred to step 408, otherwise, is transferred to step 409;
Step 408:Integrity protection processing is carried out to data packet, step 410 is transferred to after the completion of processing;
Step 409:Completeness check processing is carried out to data packet, step 410 is transferred to after the completion of processing;
Step 410:It joins the team to BQM processor applications;
Here, BQM processors can carry out enqueue operations according to decisional table of joining the team to the processing queue of SEC, i.e., by data packet It is assigned in the corresponding queue of SEC processors.
Step 411:When machine occurs as interrupted in due course, team's application is carried out out, and send the data to CPU.
Fig. 5 gives the workflow schematic diagram of the BQM processors of scene of the embodiment of the present invention once, as shown in figure 5, packet Include following steps:
Step 501:BQM processors receive the enqueue request of data packet transmission;
Step 502:Judge whether the data packet received is IP fragmentation data packet, if so, being transferred to step 503, otherwise, turns Enter step 506;
Step 503:Judge whether IP fragmentation data packet comes from the interior network interface of Ethernet, if so, it is transferred to step 504, Otherwise, it is transferred to step 505;
Step 504:By in the corresponding queue of interior network interface of IP fragmentation allocation of packets to Ethernet, it is transferred to step later 513;
Step 505:By in the corresponding queue of outer network interface of IP fragmentation allocation of packets to Ethernet, it is transferred to step later 513;
Step 506:Judge whether non-IP fragmentation data packet comes from the interior network interface of Ethernet, if so, being transferred to step 507, otherwise, it is transferred to step 508;
Step 507:By in the corresponding queue of interior network interface of non-IP fragmentation allocation of packets to Ethernet, it is transferred to step later 513;
Step 508:Judge whether non-IP fragmentation data packet comes from the outer network interface of Ethernet, if so, being transferred to step 509, otherwise, it is transferred to step 510;
Step 509:By in the corresponding queue of outer network interface of non-IP fragmentation allocation of packets to Ethernet, it is transferred to step later 513;
Step 510:Judge whether non-IP fragmentation data packet comes from CPU, if so, being transferred to step 511, otherwise, is transferred to Step 512;
Step 511:By in non-IP fragmentation allocation of packets to the corresponding queue of SEC processors, it is transferred to step 513 later;
Step 512:It will be in non-IP fragmentation allocation of packets to default queue;
Step 513:Judgement terminates, and terminates currently processed flow.
Fig. 6 gives the workflow schematic diagram of the BQM processors under scene of the embodiment of the present invention two, as shown in fig. 6, packet Include following steps:
Step 601:BQM processors receive the enqueue request of data packet transmission;
Step 602:Judge whether the data packet received is IP fragmentation data packet, if so, being transferred to step 603, otherwise, turns Enter step 606;
Step 603:Judge whether IP fragmentation data packet comes from the interior network interface of Ethernet, if so, it is transferred to step 604, Otherwise, it is transferred to step 605;
Step 604:By in the corresponding IP fragmentation packet queue of the interior network interface of IP fragmentation allocation of packets to Ethernet, Zhi Houzhuan Enter step 619;
Step 605:By in the corresponding IP fragmentation packet queue of the outer network interface of IP fragmentation allocation of packets to Ethernet, Zhi Houzhuan Enter step 619;
Step 606:Judge whether non-IP fragmentation data packet comes from the interior network interface of Ethernet, if so, being transferred to step 607, otherwise, it is transferred to step 608;
Step 607:By in the corresponding non-IP fragmentation packet queue of the interior network interface of non-IP fragmentation allocation of packets to Ethernet, it After be transferred to step 619;
Step 608:Judge whether non-IP fragmentation data packet comes from the outer network interface of Ethernet, if so, being transferred to step 609, otherwise, it is transferred to step 610;
Step 609:By in the corresponding non-IP fragmentation packet queue of the outer network interface of non-IP fragmentation allocation of packets to Ethernet, it After be transferred to step 619;
Step 610:Judge whether the message characteristic of non-IP fragmentation data packet is 0x8c00, if so, it is transferred to step 611, Otherwise, it is transferred to step 612;
Step 611:By in non-IP fragmentation allocation of packets to the corresponding queues of CPU, it is transferred to step 619 later;
Step 612:Judge whether the message characteristic of non-IP fragmentation data packet is 0xc400, if so, it is transferred to step 613, Otherwise, it is transferred to step 614;
Step 613:By in non-IP fragmentation allocation of packets to the corresponding queues of CPU, it is transferred to step 619 later;
Step 614:Judge whether the message characteristic of non-IP fragmentation data packet is 0xd000, if so, it is transferred to step 615, Otherwise, it is transferred to step 619;
Step 615:By in non-IP fragmentation allocation of packets to the corresponding queues of CPU, it is transferred to step 619 later;
Step 616:Judge whether the message characteristic of non-IP fragmentation data packet is 0xd400, if so, it is transferred to step 617, Otherwise, it is transferred to step 618;
Step 617:By in non-IP fragmentation allocation of packets to the corresponding queues of CPU, it is transferred to step 619 later;
Step 618:It will be in non-IP fragmentation allocation of packets to default queue;
Step 619:Judgement terminates, and terminates currently processed flow.
Compared with prior art, the embodiment of the present invention is by flexible configuration DGE processors, BQM processors, SEC processors, It can not only realize simple recept and the transmission of data packet, moreover it is possible to parse to data packet;At the same time it can also logarithm as needed The processing of encryption and decryption or integrity protection, completeness check is carried out according to packet, and since queue decisional table is with property so that Resource can be flexibly used, and CPU processing data asynchronous can carry out, and increase flexibility;In addition, using hardware-accelerated, soft The mode that part control is combined carrys out processing business data, moreover it is possible to improve efficiency, meet the needs of current wireless traffic well.
To realize the above method, the embodiment of the present invention additionally provides a kind of data processing equipment, as shown in fig. 7, the device Including setup module 701, determining module 702, processing module 703;Wherein,
The setup module 701, for pre-setting external data processor and internal data processor;
The determining module 702, the source for determining the data packet received;
The data packet is placed in the outside by the processing module 703 for the source-information according to the data packet Data processor or internal data processor carry out respective handling;It is additionally operable to carry out in treated allocation of packets to CPU Business data processing.
Here, the external data processor includes:At least two DGE processors;The internal data processor includes: SEC processors;
The processing module 703, is specifically used for:Data packet from different network interfaces is placed in the corresponding DGE of different network interfaces Processor carries out dissection process;Or the data packet from CPU is placed in the SEC processors and carries out safety processing.
Here, the setup module 701 is additionally operable to be pre-configured with queue decisional table, and configures BQM processors;
The processing module 703, is specifically used for:Processing data packets are completed and the BQM processors receive what application was joined the team After request, according to the queue decisional table, business data processing will be carried out in treated allocation of packets to CPU.
It should be noted that the setup module 701 can according to the disposition of each layer in ethernet communication protocol, and Actual conditions, handling capacity of queue resource etc. are because usually configuring queue decisional table;Wherein, it is stored with number in the queue decisional table According to the correspondence between packet and the affiliated queue number of data packet, in this way, by identifying that queue decisional table can determine certain data Which corresponding queue packet is put into.
In addition, DGE processors, BQM processors, SEC processors that the setup module 701 is arranged need to be integrated in it is same embedding Enter on formula chip, data packet is controlled and managed respectively.
It is described difference network interface include:The interior network interface of Ethernet, the outer network interface of Ethernet.
Here, the processing module 703, is specifically used for:When the data packet comes from the interior network interface or ether of Ethernet When the outer network interface of net, the data packet is placed at DGE corresponding with the interior network interface of the Ethernet or the outer network interface of Ethernet It manages in device, and the dissection process that layer 2 arrives layer 5 is carried out to the data packet;
When the data packet comes from CPU, the data packet is placed in the SEC processors, and to the data Packet carries out at least one of encryption and decryption, integrity protection, completeness check processing.
Here, the processing module 703 is additionally operable to during the DGE processor processes datas packet, has network interface to insert When pulling out event generation, changed network interface state is detected, and give CPU to carry out business transmitting-receiving the network interface state reporting detected The adjustment of state.
In practical applications, the setup module 701, determining module 702, processing module 703 can be embedded by being located at CPU, microprocessor (MPU, Micro Processor Unit), digital signal processor (DSP, Digital on chip Signal Processor) or field programmable gate array (FPGA, Field Programmable Gate Array) etc. it is real It is existing.
The embodiment of the present invention pre-sets external data processor and internal data processor;Determine the data packet received Source;According to the source-information of the data packet, the data packet is placed in the external data processor or internal data Processor carries out respective handling;Business data processing will be carried out in treated allocation of packets to CPU.In this way, by flexible Configure external data processor and internal data processor, by the way of software and hardware combining to radio service data at Reason, can not only greatly offloading the CPU, moreover it is possible to is neatly allocated to resource according to user demand, reach resource Efficient utilization, to have the characteristics that integrated level is high, it is flexible, efficient, at low cost to configure, to meet user couple well The demand of wireless traffic.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention can be used can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention, it is all All any modification, equivalent and improvement made by within the spirit and principles in the present invention etc. should be included in the protection of the present invention Within the scope of.

Claims (10)

1. a kind of data processing method, which is characterized in that pre-set external data processor and internal data processor;It is described Method further includes:
Determine the source of the data packet received;
According to the source-information of the data packet, the data packet is placed in the external data processor or internal data is handled Device carries out respective handling;
Business data processing will be carried out in treated allocation of packets to central processor CPU.
2. data processing method according to claim 1, which is characterized in that the external data processor includes:At least Two dual gigabit ethernet DGE processors;The internal data processor includes:Encryption and decryption SEC processors;
The data packet is placed in the external data processor or internal data processor carries out respective handling, including:In the future It is placed in the corresponding DGE processors of different network interfaces from the data packet of different network interfaces and carries out dissection process;Or by the data packet from CPU It is placed in the SEC processors and carries out safety processing.
3. data processing method according to claim 1 or 2, which is characterized in that the method further includes:It is pre-configured with team Row decisional table, and configure buffering queue management BQM processors;
It is described to carry out business data processing in treated allocation of packets to CPU, including:Processing data packets complete and it is described It, will be in treated allocation of packets to CPU according to the queue decisional table after BQM processors receive the request joined the team of application Carry out business data processing.
4. data processing method according to claim 2, which is characterized in that the method further includes:In the DGE processing It during device handles data packet, when having the generation of network interface hot plug event, detects changed network interface state, and will detect Network interface state reporting carries out the adjustment of business reiving/transmitting state to CPU.
5. data processing method according to claim 2, which is characterized in that it is described difference network interfaces include:Ethernet it is interior The outer network interface of network interface, Ethernet;
It is described the data packet from different network interfaces is placed in the corresponding DGE processors of different network interfaces to carry out dissection process;Or in the future It is placed in the SEC processors from the data packet of CPU and carries out safety processing, including:
When the data packet come from Ethernet interior network interface or Ethernet outer network interface when, by the data packet be placed in it is described In the interior network interface of Ethernet or the corresponding DGE processors of the outer network interface of Ethernet, and layer 2 is carried out to layer 5 to the data packet Dissection process;
When the data packet comes from CPU, the data packet is placed in the SEC processors, and to the data packet into At least one of row encryption and decryption, integrity protection, completeness check processing.
6. a kind of data processing equipment, which is characterized in that described device includes:Setup module, determining module, processing module;Its In,
The setup module, for pre-setting external data processor and internal data processor;
The determining module, the source for determining the data packet received;
The data packet is placed at the external data by the processing module for the source-information according to the data packet It manages device or internal data processor carries out respective handling;It is additionally operable to that business number will be carried out in treated allocation of packets to CPU According to processing.
7. data processing equipment according to claim 6, which is characterized in that the external data processor includes:At least Two DGE processors;The internal data processor includes:SEC processors;
The processing module, is specifically used for:By the data packet from different network interfaces be placed in the corresponding DGE processors of different network interfaces into Row dissection process;Or the data packet from CPU is placed in the SEC processors and carries out safety processing.
8. the data processing equipment described according to claim 6 or 7, which is characterized in that the setup module is additionally operable to match in advance Queue decisional table is set, and configures BQM processors;
The processing module, is specifically used for:After processing data packets completion and the BQM processors receive the request that application is joined the team, According to the queue decisional table, business data processing will be carried out in treated allocation of packets to CPU.
9. data processing equipment according to claim 7, which is characterized in that the processing module is additionally operable in the DGE During processor processes data packet, when having the generation of network interface hot plug event, changed network interface state is detected, and will detection The network interface state reporting arrived carries out the adjustment of business reiving/transmitting state to CPU.
10. data processing equipment according to claim 7, which is characterized in that it is described difference network interfaces include:Ethernet it is interior The outer network interface of network interface, Ethernet;
The processing module, is specifically used for:When the data packet come from Ethernet interior network interface or Ethernet outer network interface when, The data packet is placed in DGE processors corresponding with the interior network interface of the Ethernet or the outer network interface of Ethernet, and to institute It states data packet and carries out the dissection process that layer 2 arrives layer 5;
When the data packet comes from CPU, the data packet is placed in the SEC processors, and to the data packet into At least one of row encryption and decryption, integrity protection, completeness check processing.
CN201710193820.0A 2017-03-28 2017-03-28 A kind of data processing method and device Withdrawn CN108667765A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710193820.0A CN108667765A (en) 2017-03-28 2017-03-28 A kind of data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710193820.0A CN108667765A (en) 2017-03-28 2017-03-28 A kind of data processing method and device

Publications (1)

Publication Number Publication Date
CN108667765A true CN108667765A (en) 2018-10-16

Family

ID=63786041

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710193820.0A Withdrawn CN108667765A (en) 2017-03-28 2017-03-28 A kind of data processing method and device

Country Status (1)

Country Link
CN (1) CN108667765A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115099978A (en) * 2022-08-25 2022-09-23 深圳星云智联科技有限公司 Data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222431A (en) * 2008-01-23 2008-07-16 中兴通讯股份有限公司 Cable fastener device with strong service quality function and its design method
CN101777037A (en) * 2010-02-03 2010-07-14 中兴通讯股份有限公司 Method and system for searching data transmission in engine real-time system
CN101908035A (en) * 2010-07-30 2010-12-08 北京华傲精创科技开发有限公司 Video coding and decoding method, GPU (Graphics Processing Unit) as well as interacting method and system of same and CPU (Central Processing Unit)
US20120278800A1 (en) * 2011-04-27 2012-11-01 Microsoft Corporation Virtual Processor Allocation Techniques
CN106330762A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Method of switch to accelerate data processing, CPU core for carrying out acceleration processing on data and switch

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101222431A (en) * 2008-01-23 2008-07-16 中兴通讯股份有限公司 Cable fastener device with strong service quality function and its design method
CN101777037A (en) * 2010-02-03 2010-07-14 中兴通讯股份有限公司 Method and system for searching data transmission in engine real-time system
CN101908035A (en) * 2010-07-30 2010-12-08 北京华傲精创科技开发有限公司 Video coding and decoding method, GPU (Graphics Processing Unit) as well as interacting method and system of same and CPU (Central Processing Unit)
US20120278800A1 (en) * 2011-04-27 2012-11-01 Microsoft Corporation Virtual Processor Allocation Techniques
CN106330762A (en) * 2015-06-26 2017-01-11 中兴通讯股份有限公司 Method of switch to accelerate data processing, CPU core for carrying out acceleration processing on data and switch

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115099978A (en) * 2022-08-25 2022-09-23 深圳星云智联科技有限公司 Data processing method and device

Similar Documents

Publication Publication Date Title
CN105230068B (en) Data transmission method and equipment
CN104685920B (en) The methods, devices and systems of transmission data
CN104244426B (en) A kind of resource allocation methods and device of Data Radio Bearer DRB
CN104982006B (en) For providing the system and method for software definition protocol stack
US9924530B2 (en) Data transmission method, apparatus, and system
CN110213799A (en) A kind of downlink small data transmission method and device
JP2017513403A (en) Method and apparatus for triggering buffer status report (BSR)
CN103814596B (en) Transmit the methods, devices and systems of data
CN103369616B (en) Data transmission method under a kind of alternative working mode and device
CN105530681B (en) Method for processing business and device
RU2744016C1 (en) Realization of service quality for separation of the user's plane
CN109548085A (en) Transmit method, access network equipment and the terminal device of data
CN108234049B (en) Terminal communicating method, device, storage medium and computer equipment
CN110505714A (en) Multi-link communication means, equipment and terminal
CN105323867A (en) Business data transmission control method, apparatus and system
CN107770807A (en) A kind of data processing method and device
CN110366140A (en) A kind of data transmission method and device
US20220015107A1 (en) Communications Method and Apparatus
CN110035437A (en) A kind of user face data safeguard method and device
CN107347199B (en) It is a kind of switching and its control method, device
WO2016019833A1 (en) Data transmission method and device
CN104685959B (en) Passive radio link control entity with unified interface
CN105471763A (en) Control message transmission method and device
CN104301106B (en) Wireless communication system and its authentication method
CN105517020B (en) A kind of method and device of update configuration parameter

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20181016