CN110753006A - Data processing method and device and electronic equipment - Google Patents
Data processing method and device and electronic equipment Download PDFInfo
- Publication number
- CN110753006A CN110753006A CN201910875677.2A CN201910875677A CN110753006A CN 110753006 A CN110753006 A CN 110753006A CN 201910875677 A CN201910875677 A CN 201910875677A CN 110753006 A CN110753006 A CN 110753006A
- Authority
- CN
- China
- Prior art keywords
- data
- rule
- request message
- message
- terminal
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/32—Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/70—Virtual switches
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a data processing method, a device and electronic equipment.A control end receives a rule request message sent by a data end when the data end has no data forwarding rule of target data, then sends a message discarding rule to the data end and instructs the data end to stop sending the rule request message to the control end, so that the control end receives the rule request message once, the data of the rule request message received by the control end is reduced, the receiving and processing task amount of the control end is further reduced, and the burden of the control end is lightened.
Description
Technical Field
The present invention relates to the field of message processing, and in particular, to a data processing method, an apparatus, and an electronic device.
Background
In a cloud computing environment, a Virtual Switch arranged in a host machine or an intelligent gateway provides efficient Virtual network message forwarding for each Virtual machine. The Virtuall Switch is generally divided into a control end (control plane) and a data end (data forwarding plane), the control end issues a forwarding rule to the data end, and the real forwarding behavior is executed by the data end. When the data end does not have the forwarding rule, the rule request message is generated to the control end due to the rule missing. And then the control terminal issues a forwarding rule according to the rule request message.
The control end needs to consume a certain time for inquiring the forwarding rule corresponding to the rule request message, and when the data end cannot receive the forwarding rule, the control end can continuously send the rule request message to the control end, so that the control end receives and needs to process a large amount of rule request messages, and the burden of the control end is increased.
Disclosure of Invention
In view of this, the present invention provides a data processing method, an apparatus and an electronic device, so as to solve the problem that when the data end cannot receive the forwarding rule, the rule request message is continuously sent to the control end, so that the control end receives and needs to process a large number of rule request messages, thereby increasing the burden of the control end.
In order to solve the technical problems, the invention adopts the following technical scheme:
a data processing method is applied to a control end; the data processing method comprises the following steps:
receiving a rule request message sent by a data terminal; the rule request message is used for requesting a data forwarding rule of target data;
generating and issuing a message discarding rule to the data terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and inquiring a data forwarding rule corresponding to the rule request message, and issuing the data forwarding rule to the data terminal so that the data terminal forwards the target data according to the data forwarding rule.
Optionally, after receiving the rule request packet sent by the data end, the method further includes:
determining the message type of the rule request message;
and if the message type is the target message type, executing the step of generating and issuing a message discarding rule to the data end.
Optionally, after issuing the message discarding rule to the data end, the method further includes:
setting the data valid time of the message discarding rule, and sending the data valid time to the data terminal; within the data valid time, the data end stops sending the rule request message to the control end;
and if the data valid time of the message discarding rule is up, receiving the rule request message sent again by the data terminal.
Optionally, after querying the request data forwarding rule corresponding to the rule request packet, the method further includes:
and forwarding the rule request message to a target receiving object in the request data forwarding rule.
A data processing method is applied to a data end; the data processing method comprises the following steps:
when target data are forwarded, if the data forwarding rule of the target data cannot be inquired, a rule request message is sent to a control terminal; the rule request message is used for requesting a data forwarding rule of the target data;
receiving a message discarding rule issued by the control terminal, and stopping sending the rule request message to the control terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and if a data forwarding rule corresponding to the rule request message and issued by the control terminal is received, forwarding the target data according to the data forwarding rule.
Optionally, after receiving the message discard rule issued by the control end, the method further includes:
receiving the effective time of the data sent by the control end; within the data valid time, the data end stops sending the rule request message to the control end;
and judging whether the effective time of the data arrives, and if so, sending the rule request message again.
Optionally, after receiving the data forwarding rule corresponding to the rule request packet and issued by the control end, the method further includes:
and configuring an invalid identifier for the message discarding rule.
A data processing device is applied to a control end; the data processing apparatus includes:
the message receiving module is used for receiving a rule request message sent by a data terminal; the rule request message is used for requesting a data forwarding rule of target data;
the rule processing module is used for generating and sending a message discarding rule to the data terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and the rule issuing module is used for inquiring a data forwarding rule corresponding to the rule request message and issuing the rule to the data terminal so that the data terminal forwards the target data according to the data forwarding rule.
A data processing device is applied to a data end; the data processing apparatus includes:
the message sending module is used for sending a rule request message to the control terminal if the data forwarding rule of the target data cannot be inquired when the target data is forwarded; the rule request message is used for requesting a data forwarding rule of the target data;
the rule receiving module is used for receiving a message discarding rule issued by the control terminal and stopping sending the rule request message to the control terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and the data forwarding module is used for forwarding the target data according to the data forwarding rule if the data forwarding rule corresponding to the rule request message sent by the control terminal is received.
An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
receiving a rule request message sent by a data terminal; the rule request message is used for requesting a data forwarding rule of target data;
generating and issuing a message discarding rule to the data terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and inquiring a data forwarding rule corresponding to the rule request message, and issuing the data forwarding rule to the data terminal so that the data terminal forwards the target data according to the data forwarding rule.
An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
when target data are forwarded, if the data forwarding rule of the target data cannot be inquired, a rule request message is sent to a control terminal; the rule request message is used for requesting a data forwarding rule of the target data;
receiving a message discarding rule issued by the control terminal, and stopping sending the rule request message to the control terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and if a data forwarding rule corresponding to the rule request message and issued by the control terminal is received, forwarding the target data according to the data forwarding rule.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a data processing method, a device and electronic equipment.A control end receives a rule request message sent by a data end when the data end has no data forwarding rule of target data, then sends a message discarding rule to the data end and instructs the data end to stop sending the rule request message to the control end, so that the control end receives the rule request message once, the data of the rule request message received by the control end is reduced, the receiving and processing task amount of the control end is further reduced, and the burden of the control end is lightened.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a data processing apparatus applied to a control end according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a data processing apparatus applied to a data end according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a data processing method which is applied to a control end and a data end of a virtual switch. The virtual switch may be installed in a server, thereby enabling the server to function as a virtual switch.
Referring to fig. 1, the data processing method may include:
s11, the data end sends a rule request message to the control end.
The data end in this embodiment may be referred to as a data forwarding plane, and the control end may be referred to as a control plane. The data forwarding plane forwards data, for example, forwards target data, but before forwarding, it needs to query whether the target data has a corresponding data forwarding rule, if so, the target data is directly forwarded according to the data forwarding rule, if not, the control plane needs to provide the corresponding data forwarding rule, and at this time, a rule request message (packet in) is sent to the control plane, where the rule request message is used to request the data forwarding rule of the target data, so that the control plane queries the data forwarding rule corresponding to the target data.
In addition, the rule request message carries a first packet of target data to be forwarded, and is used for informing the control terminal what the message needs to be forwarded, so that the control terminal can determine the data forwarding rule according to the content of the first packet.
And S12, the control terminal generates a message discarding rule.
And S13, the control end sends the message discarding rule to the data end.
When a virtual machine migration scenario exists, if a virtual machine is migrated to another digital machine, at this time, since the data forwarding rule on the new digital machine is blank, when a data forwarding plane needs to forward a large amount of data, a large amount of rule request messages need to be sent to the control plane, and a certain time is required for the data forwarding rule corresponding to the control plane query rule request message, a large amount of rule request messages are accumulated on the control plane. On the other hand, if the data forwarding plane does not receive the data forwarding rule, the data forwarding plane may continuously send the rule request message to the control plane, which may also cause the control plane to receive a large amount of messages again, further aggravating the accumulation of the control plane, and thus the whole control plane and the data forwarding plane may be vicious and circulated, resulting in an excessive task load of the control plane.
In order to avoid the above phenomenon, in this embodiment, after receiving the rule request message, the control end generates and issues a message discarding rule to the data end, where the message discarding rule is used to instruct the data end to stop sending the rule request message to the control end. That is, after receiving the message discard rule, the data forwarding plane does not repeatedly send the rule request message, and also discards the rule request message that has just been sent. Therefore, the rule request message is sent only once, and the data receiving amount and the processing amount of the control plane are further reduced. In addition, the message discarding rule is low in priority, the data forwarding rule is higher in priority than the message discarding rule, and the data forwarding rule is preferentially executed after the data forwarding rule is received.
In a preferred implementation scheme, in order to avoid that the control plane generates and issues the message discarding rule after receiving the rule request message, the embodiment sets that the message discarding rule is issued only when receiving a specific rule request message.
Specifically, the message type of the rule request message is determined, and if the message type is the target message type, a message discarding rule is issued to the data terminal.
The control plane receives a large number of messages, some messages are used for requesting a data forwarding rule, some messages are other services, at this time, the control plane needs to analyze the message type of the received messages, and if the message type is the target message type, the control plane generates and issues a message discarding rule. The target message type is the message type of the message for requesting the data forwarding rule.
In addition, in order to ensure that the data forwarding plane can still send the rule request packet when the data forwarding plane does not receive the data forwarding rule for a long time, and the control plane is left with enough time to process the accumulated rule request packet, in this embodiment, the data valid time of the packet discarding rule is set, and the data valid time is sent to the data terminal; and within the data valid time, the data end stops sending the rule request message to the control end. And if the message forwarding plane detects that the effective data time of the message discarding rule reaches, the data end sends the rule request message to the control plane again. The control plane receives the rule request message again, wherein the data valid time may be 10 seconds.
And S14, the data end stops sending the rule request message to the control end.
And S15, the control terminal inquires the data forwarding rule corresponding to the rule request message.
The non-sequential execution sequence of step S14 and step S15 may be that the data end stops sending the rule request message to the control end in the process of the control end querying the data forwarding rule corresponding to the rule request message. Or, if the amount of data to be processed by the control end is large, the data end stops sending the rule request message to the control end before the control end queries the data forwarding rule corresponding to the rule request message.
The data forwarding rule corresponding to the rule request message is stored in the database of the control surface, and at this moment, the control surface queries the data forwarding rule corresponding to the target data according to the target data carried by the rule request message.
In this embodiment, the data forwarding rule with high priority is searched preferentially, and when the data forwarding rule with high priority does not exist, the data forwarding rule with low priority is searched again. Therefore, the highest level of the data forwarding rule can be ensured, and the data forwarding is most accurate.
In addition, when the data forwarding rule corresponding to the target data is queried, because in step S13, the data end discards the sent rule request packet, and the sent rule request packet carries a first packet of the target data to be forwarded, so as to avoid discarding the first packet of the target data because the data end does not transmit the first packet, at this time, the control plane forwards the rule request packet to a target receiving object in the requested data forwarding rule, so as to avoid adverse effect of discarding the first packet in the normal request traffic.
And S16, the control end sends the data forwarding rule to the data end.
And S17, the data terminal forwards the target data according to the data forwarding rule.
After the control terminal inquires the data forwarding rule corresponding to the rule request message, the control terminal issues the rule to the data terminal, and the data terminal forwards the target data according to the data forwarding rule.
In addition, after the data forwarding plane receives the data forwarding rule, the data forwarding plane configures an invalid identifier for the packet discarding rule, that is, the packet discarding rule issued before the control plane is an invalid rule, and the data forwarding plane does not need to execute the packet discarding rule any more.
In this embodiment, when the data end has no data forwarding rule of the target data, the control end receives a rule request message sent by the data end, and then issues a message discarding rule to the data end to instruct the data end to stop sending the rule request message to the control end, so that the control end receives the rule request message once, data of the rule request message received by the control end is reduced, and further, the receiving and processing task amount of the control end is reduced, and the burden of the control end is reduced. In addition, the stability of the control plane can be ensured when a large increment request is met.
On the basis of the above embodiment of the data processing method, another embodiment of the present invention provides a data processing apparatus applied to a control end, and referring to fig. 2, the data processing apparatus includes:
a message receiving module 11, configured to receive a rule request message sent by a data end; the rule request message is used for requesting a data forwarding rule of target data;
the rule processing module 12 is configured to generate and issue a message discarding rule to the data end; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and the rule issuing module 13 is configured to query a data forwarding rule corresponding to the rule request packet, and issue the rule to the data terminal, so that the data terminal forwards the target data according to the data forwarding rule.
Further, still include:
a type determining module, configured to determine a packet type of the rule request packet;
the rule processing module 12 is further configured to generate and issue a message discarding rule to the data terminal if the message type is the target message type.
Further, still include:
the time setting module is used for setting the data valid time of the message discarding rule and sending the data valid time to the data terminal; within the data valid time, the data end stops sending the rule request message to the control end;
the message receiving module 11 is further configured to receive the rule request message sent again by the data terminal if the data validity time of the message discarding rule reaches.
Further, still include:
and the forwarding module is used for forwarding the rule request message to a target receiving object in the request data forwarding rule.
In this embodiment, when the data end has no data forwarding rule of the target data, the control end receives a rule request message sent by the data end, and then issues a message discarding rule to the data end to instruct the data end to stop sending the rule request message to the control end, so that the control end receives the rule request message once, data of the rule request message received by the control end is reduced, and further, the receiving and processing task amount of the control end is reduced, and the burden of the control end is reduced. In addition, the stability of the control plane can be ensured when a large increment request is met.
It should be noted that, for the working process of each module in this embodiment, please refer to the corresponding description in the above embodiments, which is not described herein again.
On the basis of the embodiment of the data processing method, another embodiment of the invention provides a data processing device, which is applied to a data end; referring to fig. 3, the data processing apparatus includes:
the message sending module 21 is configured to send a rule request message to the control terminal if the data forwarding rule of the target data is not queried when the target data is forwarded; the rule request message is used for requesting a data forwarding rule of the target data;
a rule receiving module 22, configured to receive a message discarding rule issued by the control end, and stop sending the rule request message to the control end; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and the data forwarding module 23 is configured to forward the target data according to the data forwarding rule if a data forwarding rule corresponding to the rule request packet and issued by the control terminal is received.
Further, still include:
the time receiving module is used for receiving the effective time of the data sent by the control end; within the data valid time, the data end stops sending the rule request message to the control end;
the judging module is used for judging whether the effective time of the data reaches or not;
the message sending module 21 is further configured to send the rule request message again if the valid data time arrives.
Further, still include:
and the identifier distribution module is configured to configure an invalid identifier for the message discarding rule if the data forwarding module 23 receives the data forwarding rule corresponding to the rule request message and issued by the control terminal.
In this embodiment, when target data is forwarded, if the data forwarding rule of the target data is not queried, a rule request message is sent to the control end, and then after a message discard rule sent by the control end is received, the sending of the rule request message to the control end is stopped, so that the processing amount of the control end is reduced.
On the basis of the embodiment of the data processing method described above, another embodiment of the present invention provides an electronic device, including: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
receiving a rule request message sent by a data terminal; the rule request message is used for requesting a data forwarding rule of target data;
generating and issuing a message discarding rule to the data terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and inquiring a data forwarding rule corresponding to the rule request message, and issuing the data forwarding rule to the data terminal so that the data terminal forwards the target data according to the data forwarding rule.
Further, after receiving the rule request packet sent by the data end, the method further includes:
determining the message type of the rule request message;
and if the message type is the target message type, executing the step of generating and issuing a message discarding rule to the data end.
Further, after the message discarding rule is issued to the data end, the method further includes:
setting the data valid time of the message discarding rule, and sending the data valid time to the data terminal; within the data valid time, the data end stops sending the rule request message to the control end;
and if the data valid time of the message discarding rule is up, receiving the rule request message sent again by the data terminal.
Further, after querying the request data forwarding rule corresponding to the rule request packet, the method further includes:
and forwarding the rule request message to a target receiving object in the request data forwarding rule.
In this embodiment, when the data end has no data forwarding rule of the target data, the control end receives a rule request message sent by the data end, and then issues a message discarding rule to the data end to instruct the data end to stop sending the rule request message to the control end, so that the control end receives the rule request message once, data of the rule request message received by the control end is reduced, and further, the receiving and processing task amount of the control end is reduced, and the burden of the control end is reduced. In addition, the stability of the control plane can be ensured when a large increment request is met.
On the basis of the embodiment of the data processing method described above, another embodiment of the present invention provides an electronic device, including: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
when target data are forwarded, if the data forwarding rule of the target data cannot be inquired, a rule request message is sent to a control terminal; the rule request message is used for requesting a data forwarding rule of the target data;
receiving a message discarding rule issued by the control terminal, and stopping sending the rule request message to the control terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and if a data forwarding rule corresponding to the rule request message and issued by the control terminal is received, forwarding the target data according to the data forwarding rule.
Further, after receiving the message discarding rule issued by the control end, the method further includes:
receiving the effective time of the data sent by the control end; within the data valid time, the data end stops sending the rule request message to the control end;
and judging whether the effective time of the data arrives, and if so, sending the rule request message again.
Further, after receiving the data forwarding rule corresponding to the rule request packet and issued by the control end, the method further includes:
and configuring an invalid identifier for the message discarding rule.
In this embodiment, when target data is forwarded, if the data forwarding rule of the target data is not queried, a rule request message is sent to the control end, and then after a message discard rule sent by the control end is received, the sending of the rule request message to the control end is stopped, so that the processing amount of the control end is reduced.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (11)
1. A data processing method is characterized in that the method is applied to a control end; the data processing method comprises the following steps:
receiving a rule request message sent by a data terminal; the rule request message is used for requesting a data forwarding rule of target data;
generating and issuing a message discarding rule to the data terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and inquiring a data forwarding rule corresponding to the rule request message, and issuing the data forwarding rule to the data terminal so that the data terminal forwards the target data according to the data forwarding rule.
2. The data processing method according to claim 1, further comprising, after receiving the rule request packet sent by the data terminal:
determining the message type of the rule request message;
and if the message type is the target message type, executing the step of generating and issuing a message discarding rule to the data end.
3. The data processing method according to claim 1, wherein after issuing a message discard rule to the data end, further comprising:
setting the data valid time of the message discarding rule, and sending the data valid time to the data terminal; within the data valid time, the data end stops sending the rule request message to the control end;
and if the data valid time of the message discarding rule is up, receiving the rule request message sent again by the data terminal.
4. The data processing method according to claim 1, wherein after querying the request data forwarding rule corresponding to the rule request packet, further comprising:
and forwarding the rule request message to a target receiving object in the request data forwarding rule.
5. A data processing method is characterized in that the method is applied to a data end; the data processing method comprises the following steps:
when target data are forwarded, if the data forwarding rule of the target data cannot be inquired, a rule request message is sent to a control terminal; the rule request message is used for requesting a data forwarding rule of the target data;
receiving a message discarding rule issued by the control terminal, and stopping sending the rule request message to the control terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and if a data forwarding rule corresponding to the rule request message and issued by the control terminal is received, forwarding the target data according to the data forwarding rule.
6. The data processing method according to claim 5, further comprising, after receiving the packet discard rule issued by the control end:
receiving the effective time of the data sent by the control end; within the data valid time, the data end stops sending the rule request message to the control end;
and judging whether the effective time of the data arrives, and if so, sending the rule request message again.
7. The data processing method according to claim 5, wherein after receiving the data forwarding rule corresponding to the rule request packet and issued by the control end, the method further comprises:
and configuring an invalid identifier for the message discarding rule.
8. A data processing device is characterized by being applied to a control end; the data processing apparatus includes:
the message receiving module is used for receiving a rule request message sent by a data terminal; the rule request message is used for requesting a data forwarding rule of target data;
the rule processing module is used for generating and sending a message discarding rule to the data terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and the rule issuing module is used for inquiring a data forwarding rule corresponding to the rule request message and issuing the rule to the data terminal so that the data terminal forwards the target data according to the data forwarding rule.
9. A data processing device is characterized by being applied to a data terminal; the data processing apparatus includes:
the message sending module is used for sending a rule request message to the control terminal if the data forwarding rule of the target data cannot be inquired when the target data is forwarded; the rule request message is used for requesting a data forwarding rule of the target data;
the rule receiving module is used for receiving a message discarding rule issued by the control terminal and stopping sending the rule request message to the control terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and the data forwarding module is used for forwarding the target data according to the data forwarding rule if the data forwarding rule corresponding to the rule request message sent by the control terminal is received.
10. An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
receiving a rule request message sent by a data terminal; the rule request message is used for requesting a data forwarding rule of target data;
generating and issuing a message discarding rule to the data terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and inquiring a data forwarding rule corresponding to the rule request message, and issuing the data forwarding rule to the data terminal so that the data terminal forwards the target data according to the data forwarding rule.
11. An electronic device, comprising: a memory and a processor;
wherein the memory is used for storing programs;
the processor calls a program and is used to:
when target data are forwarded, if the data forwarding rule of the target data cannot be inquired, a rule request message is sent to a control terminal; the rule request message is used for requesting a data forwarding rule of the target data;
receiving a message discarding rule issued by the control terminal, and stopping sending the rule request message to the control terminal; the message discarding rule is used for indicating the data terminal to stop sending the rule request message to the control terminal;
and if a data forwarding rule corresponding to the rule request message and issued by the control terminal is received, forwarding the target data according to the data forwarding rule.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910875677.2A CN110753006A (en) | 2019-09-17 | 2019-09-17 | Data processing method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910875677.2A CN110753006A (en) | 2019-09-17 | 2019-09-17 | Data processing method and device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110753006A true CN110753006A (en) | 2020-02-04 |
Family
ID=69276511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910875677.2A Pending CN110753006A (en) | 2019-09-17 | 2019-09-17 | Data processing method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110753006A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111600812A (en) * | 2020-05-13 | 2020-08-28 | 优刻得科技股份有限公司 | Message processing method, processing device, readable medium and system |
CN114157682A (en) * | 2021-12-22 | 2022-03-08 | 优刻得科技股份有限公司 | Message forwarding method, device and medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685009A (en) * | 2012-08-31 | 2014-03-26 | 华为技术有限公司 | Data packet processing method and system as well as controller |
CN105245428A (en) * | 2014-07-07 | 2016-01-13 | 北京东土科技股份有限公司 | Method and device for configuring message processing rule |
CN106254235A (en) * | 2016-07-27 | 2016-12-21 | 上海华为技术有限公司 | A kind of method of load sharing and equipment thereof |
CN106911588A (en) * | 2015-12-22 | 2017-06-30 | 中国电信股份有限公司 | Methods, devices and systems for realizing deep-packet detection optimization |
CN108566346A (en) * | 2018-03-14 | 2018-09-21 | 阿里巴巴集团控股有限公司 | The processing method and processing device of network request |
US20190132345A1 (en) * | 2017-10-27 | 2019-05-02 | Atto Research Co., Ltd. | Apparatus for network function virtualization using software defined networking and operation method thereof |
-
2019
- 2019-09-17 CN CN201910875677.2A patent/CN110753006A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103685009A (en) * | 2012-08-31 | 2014-03-26 | 华为技术有限公司 | Data packet processing method and system as well as controller |
CN105245428A (en) * | 2014-07-07 | 2016-01-13 | 北京东土科技股份有限公司 | Method and device for configuring message processing rule |
CN106911588A (en) * | 2015-12-22 | 2017-06-30 | 中国电信股份有限公司 | Methods, devices and systems for realizing deep-packet detection optimization |
CN106254235A (en) * | 2016-07-27 | 2016-12-21 | 上海华为技术有限公司 | A kind of method of load sharing and equipment thereof |
US20190132345A1 (en) * | 2017-10-27 | 2019-05-02 | Atto Research Co., Ltd. | Apparatus for network function virtualization using software defined networking and operation method thereof |
CN108566346A (en) * | 2018-03-14 | 2018-09-21 | 阿里巴巴集团控股有限公司 | The processing method and processing device of network request |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111600812A (en) * | 2020-05-13 | 2020-08-28 | 优刻得科技股份有限公司 | Message processing method, processing device, readable medium and system |
CN114157682A (en) * | 2021-12-22 | 2022-03-08 | 优刻得科技股份有限公司 | Message forwarding method, device and medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110768912B (en) | API gateway current limiting method and device | |
CN110661849A (en) | Request processing method and device, electronic equipment and storage medium | |
CN109669776B (en) | Detection task processing method, device and system | |
CN106844055B (en) | Task execution method and device | |
CN107276970B (en) | Unbinding and binding method and device | |
CN107105013B (en) | File processing method, server, terminal and system | |
CN109561128B (en) | Data transmission method and device | |
CN110753006A (en) | Data processing method and device and electronic equipment | |
CN107645456B (en) | Flow control method and flow control system | |
CN104794114A (en) | Data processing method and device | |
CN115190078B (en) | Access flow control method, device, equipment and storage medium | |
CN110764930B (en) | Request or response processing method and device based on message mode | |
CN112860720B (en) | Storage capacity updating method and device | |
CN110943876A (en) | URL state detection method, device, equipment and system | |
CN108124021B (en) | Method, device and system for obtaining Internet Protocol (IP) address and accessing website | |
CN112416534A (en) | Agent-based task management method and device | |
CN107169752B (en) | Resource transfer method and device | |
CN116775759A (en) | Multi-platform big data synchronization method, equipment and medium based on message queue | |
CN112579639A (en) | Data processing method and device, electronic equipment and storage medium | |
US10951732B2 (en) | Service processing method and device | |
CN115934292A (en) | Calling method, device and equipment of microservice application | |
WO2018188405A1 (en) | Method and device for allocating cloud application resources | |
CN111585908B (en) | Intelligent hotspot breaking method and device, storage medium and computer equipment | |
EP3214537A1 (en) | Storage array operation method and device | |
CN109309717B (en) | Data transmission method and device, electronic equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200204 |
|
RJ01 | Rejection of invention patent application after publication |