CN115801808A - Mirror image flow control method and device, electronic equipment and readable storage medium - Google Patents

Mirror image flow control method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN115801808A
CN115801808A CN202211300970.4A CN202211300970A CN115801808A CN 115801808 A CN115801808 A CN 115801808A CN 202211300970 A CN202211300970 A CN 202211300970A CN 115801808 A CN115801808 A CN 115801808A
Authority
CN
China
Prior art keywords
service
gateway
mirror image
mirror
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211300970.4A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202211300970.4A priority Critical patent/CN115801808A/en
Publication of CN115801808A publication Critical patent/CN115801808A/en
Pending legal-status Critical Current

Links

Images

Abstract

The embodiment of the invention provides a mirror image flow control method and a device, wherein the method is applied to gateway equipment in a gateway cluster, the gateway cluster comprises a plurality of gateway equipment, mirror image configuration is stored in each gateway equipment, and the method comprises the following steps: and if the mirror image configuration has the gateway address of the gateway equipment, sending the service flow to a mirror image service node, wherein the mirror image configuration is used for controlling part of gateway equipment in the gateway cluster to carry out mirror image service. The method realizes that the service flow is mirrored to the test environment through mirroring configuration on the basis of not changing the existing network architecture, and realizes the control of the flow mirroring service.

Description

Mirror flow control method and device, electronic equipment and readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling a mirror flow, an electronic device, and a readable storage medium.
Background
Traffic Mirroring (Traffic Mirroring), also known as Traffic Shadowing (Traffic Shadowing), is a powerful, risk-free method of testing application versions, which sends a copy of real-time Traffic to the mirrored service. By adopting the method, the business can build an environment similar to the production environment to carry out acceptance test, thereby finding problems in advance. Because the mirror flow exists out of the main service key request path, the end user is not influenced in the whole test process.
The test acceptance environment does not need all the service flow, and only needs a certain proportion of flow to carry out the test. For a gateway cluster configured by the same database, since the databases are the same, all devices in the cluster will perform traffic mirroring, and only 1.
In the prior art, if the traffic flow of the production environment is large, the gateway forwards all traffic to the test environment at the same time, which may cause the test environment to crash and affect the traffic flow of the production environment, so how to control the proportion of the traffic mirror on the gateway is very important.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for controlling a flow rate of a mirror image, an electronic device, and a readable storage medium, so as to implement mirroring a service flow to a test environment through mirror image configuration without changing an existing network architecture, thereby implementing control over a flow mirroring service. The specific technical scheme is as follows:
in a first aspect of the present invention, a mirror image flow control method is first provided, where the mirror image flow control method is applied to a gateway device in a gateway cluster, where the gateway cluster includes a plurality of gateway devices, and each gateway device stores a mirror image configuration, and the method includes: determining a mirror image service node according to a service request, wherein the service request is used for requesting service flow from a service server; and if the mirror image configuration has the gateway address of the gateway equipment, sending the service flow to the mirror image service node, wherein the mirror image configuration is used for controlling part of the gateway equipment in the gateway cluster to carry out mirror image service.
Further, before the determining the mirror service node according to the service request, the method further includes: receiving the mirror image configuration sent by the control terminal to each gateway device; storing the mirror configuration in the gateway device.
Further, before the determining the mirror service node according to the service request, the method further includes: and selecting the partial gateway equipment to carry out mirror image service according to the flow load of each gateway equipment.
Further, before the determining the mirror service node according to the service request, the method further includes: and selecting the partial gateway equipment to carry out mirror image service according to the network parameters of the gateway equipment.
Further, still include: and if the gateway address does not exist in the mirror image configuration, the service flow is sent to a user terminal.
Further, if the mirror image configuration has a gateway address of the gateway device, sending the service traffic to the mirror image service node, including: and if the mirror image configuration comprises the gateway address and the node address, the service flow is sent to a target mirror image service node and a user terminal corresponding to the node address through the gateway equipment.
Further, if the mirror image configuration has a gateway address of the gateway device, sending the service traffic to the mirror image service node, including: and if the gateway address and the traffic parameter of the service traffic are both located in the mirror image configuration and the traffic parameter of the service traffic is matched with a preset parameter in the mirror image configuration, the service traffic is sent to the mirror image service node and the user terminal through the gateway equipment.
In a second aspect of the present invention, there is further provided a mirror flow control apparatus, where the apparatus is applied to a gateway device in a gateway cluster, where the gateway cluster includes a plurality of gateway devices, and each gateway device stores a mirror configuration, and the apparatus includes: the system comprises a determining module, a service processing module and a service processing module, wherein the determining module is used for determining a mirror image service node according to a service request, and the service request is used for requesting service flow to a service server; and the sending module is used for sending the service flow to the mirror image service node if the mirror image configuration has the gateway address of the gateway equipment, wherein the mirror image configuration is used for controlling part of the gateway equipment in the gateway cluster to carry out mirror image service.
In a third aspect of the present invention, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, where the processor and the communication interface complete communication between the processor and the memory through the communication bus; a memory for storing a computer program; and the processor is used for realizing the steps of the mirror image flow control method when executing the program stored in the memory.
In a fourth aspect of the present invention, there is further provided a readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement any of the above-mentioned image traffic control methods.
The mirror image flow control method and device provided by the embodiment of the invention are applied to gateway equipment in a gateway cluster, wherein the gateway cluster comprises a plurality of gateway equipment, mirror image configuration is stored in each gateway equipment, and a mirror image service node is determined according to a service request, wherein the service request is used for requesting service flow from a service server; and if the mirror image configuration has the gateway address of the gateway equipment, sending the service flow to a mirror image service node, wherein the mirror image configuration is used for controlling part of gateway equipment in the gateway cluster to carry out mirror image service. In the embodiment of the invention, the forwarding of the mirror flow is controlled through the mirror image configuration, so that the service flow is mirrored to the test environment through the mirror image configuration on the basis of not changing the conventional network architecture, and the control on the flow mirror service is realized.
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.
Fig. 1 is a schematic flowchart of a mirror flow control method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an application scenario according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another mirror flow control method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a mirror image flow control device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
An embodiment of the present invention provides a mirror image flow control method, as shown in fig. 1, where the method is applied to a gateway device in a gateway cluster, the gateway cluster includes a plurality of gateway devices, and each gateway device stores a mirror image configuration, and the method may include the following steps:
s102, determining a mirror image service node according to a service request, wherein the service request is used for requesting service flow from a service server;
in this embodiment, the gateway device receives a service request sent by a user terminal, and determines a corresponding mirror service node and a service server according to the service request. For example, the service server is determined according to the service request address carried in the service request, and the mirror service node is determined according to the type of the service request or the code of the user terminal. After the address of the service server is determined, the gateway device forwards the service request from the user terminal to the service server, and forwards the service flow returned by the service server.
It should be noted that the forwarding target of the traffic flow may be a user terminal, or a user terminal and a mirror service node. The gateway cluster in this embodiment includes a plurality of gateway devices, and the gateway devices include, but are not limited to, switches, routers, and other communication devices with a routing function.
In this embodiment, the mirror service node is a preset data receiving node, and is capable of receiving a service traffic forwarded by the gateway device, and the mirror service node is capable of receiving and storing the service traffic to monitor the service traffic.
The mirror service node may be an individual terminal, or may also be a mirror service corresponding to the gateway device itself, for example, a virtual mirror service node, such as a virtual host, set in the gateway device, which is not limited in this embodiment.
In addition, the service server in this embodiment is configured to receive a service request from the user terminal, respond to the service request of the user terminal, respond to the service request, and return a service traffic corresponding to the service request to the user terminal.
And S104, if the gateway address of the gateway equipment exists in the mirror image configuration, the service flow is sent to a mirror image service node, wherein the mirror image configuration is used for controlling the mirror image service of the service flow.
In this embodiment, the mirroring configuration is preset, and is used for mirroring service for controlling traffic. The mirror configuration includes, but is not limited to, a gateway address of a gateway device used for mirror service forwarding, e.g., defining that a gateway device located in the mirror configuration can forward traffic to the mirror service node. In another example, the mirror configuration may further include a gateway address of the gateway device and a node address of the mirror service node, and it is defined that the gateway device located in the mirror configuration may forward the traffic to the mirror service node located in the mirror configuration. In addition, the mirror configuration may also include definitions of traffic parameters for traffic flows.
In an example, as shown in fig. 2, which is a schematic application scenario diagram of an embodiment of the present invention, an application environment of the embodiment of the present invention includes a gateway cluster 20, a user terminal 22, a service server 24, a mirror service node 26, and a control terminal 28. The gateway cluster 20 includes a plurality of gateway devices 200, the gateway cluster 20 receives the mirror image configuration sent by the control terminal 28 in advance, and the gateway devices 200 store the mirror image configuration. When the gateway device 200 receives the service request sent from the user terminal 22, it determines the mirror service node 26 corresponding to the service request, and forwards the service request to the service server 24. The gateway device 200 receives the traffic sent by the traffic server 24, and if the gateway address of the gateway device 200 exists in the mirror configuration, sends the traffic to the mirror service node 26.
It should be noted that, according to the embodiment of the present invention, a mirror image service node is determined according to a service request, where the service request is used to request a service flow from a service server; and if the gateway address of the gateway equipment exists in the mirror image configuration, the service flow is sent to the mirror image service node. The embodiment realizes that the service flow is mirrored to the test environment through the mirror image configuration on the basis of not changing the existing network architecture, and realizes the control of the flow mirroring service.
Optionally, in this embodiment, before determining the mirror service node according to the service request, the method further includes, but is not limited to: receiving mirror image configuration sent by a control terminal to each gateway device; the mirror configuration is stored in the gateway device.
Specifically, in this embodiment, the mirror configuration sent by the control terminal to the gateway cluster is received, for example, the mirror configuration is sent by the control terminal to the gateway cluster, so as to implement that the same mirror service policy is issued to each gateway device in the gateway cluster.
It should be noted that, in this embodiment, the gateway device configured in the mirror image configuration and allowing to forward the service traffic to the mirror image service node may select the number of gateway devices in the gateway cluster according to a preset ratio, and specifically, the selection mode may be randomly selected according to an IP address, a MAC address of the gateway device, and the like, which is not specifically limited in this embodiment. And after the gateway equipment receives the mirror image configuration, storing the mirror image configuration in the flow mirror image configuration of the API.
In one example, the same gateway cluster configuration is from the same database, so that the mirror image configuration of each gateway device in the gateway cluster is the same, and during the next configuration, the control terminal may select the gateway address of the gateway device in advance in proportion at random, and configure the address list in the traffic mirror image configuration of the API of the gateway device.
For example, if the gateway device of "192.168.0.1, 192.168.0.2, 192.168.0.3" in the mirror configuration is a gateway device capable of performing mirror service, when the traffic reaches the gateway device of "192.168.0.1", "192.168.0.2", "192.168.0.3", the gateway device forwards the traffic to the specified mirror service node.
By the above example, the mirror image configuration is sent to the gateway devices in the gateway cluster through the control terminal, so that the mirror image service policy is issued to each gateway device.
Optionally, in this embodiment, before determining the mirror service node according to the service request, the method further includes: and selecting part of gateway equipment to perform mirror image service according to the traffic load of each gateway equipment.
Specifically, the gateway device that is set by the mirror configuration and allows forwarding of the traffic to the mirror service node may select a part of gateway devices that can perform the mirror service according to traffic loads of the gateway devices in the gateway cluster.
In one example, the gateway cluster includes six gateway devices, and two gateway devices with the minimum traffic load are selected as part of gateway devices that operate and forward the traffic to the mirror image service node.
By the above example, according to the traffic load of each gateway device, a part of gateway devices are selected to perform mirroring service, so as to reduce the device operating pressure of the gateway devices performing mirroring service.
Optionally, in this embodiment, before determining the mirroring service node according to the service request, the method further includes, but is not limited to: and selecting part of the gateway equipment to carry out mirror image service according to the network parameters of each gateway equipment.
Specifically, the gateway device that is set by the mirror configuration and allows forwarding of the traffic to the mirror service node may select a part of gateway devices that can perform the mirror service according to network parameters of each gateway device in the gateway cluster. The network parameters include, but are not limited to, routing overhead, packet loss rate or delay, etc.
In one example, the gateway cluster includes multiple gateway devices, and the gateway device with a packet loss rate less than 5% is selected as a part of gateway devices that operate and forward the service traffic to the mirror service node.
By the example, according to the network parameters of each gateway device, part of gateway devices are selected to perform mirror image service, and the network quality of the service flow mirror image is ensured.
Optionally, in this embodiment, the method further includes, but is not limited to: and if the mirror image configuration does not have the gateway address of the gateway equipment, the service flow is sent to the user terminal.
Specifically, if the gateway address of the gateway device does not exist in the mirror image configuration, it indicates that the gateway device is not allowed to forward the traffic sent by the traffic server to the mirror image service node, and therefore the gateway device sends the traffic to the user terminal and does not forward the traffic to the mirror image service node.
Optionally, in this embodiment, if the mirror configuration has a gateway address of the gateway device, the service traffic is sent to the mirror service node, which includes but is not limited to: and if the mirror image configuration comprises a gateway address and a node address, the service flow is sent to a target mirror image service node and a user terminal corresponding to the node address through the gateway equipment.
Specifically, in this embodiment, if the mirror configuration defines a gateway device that allows forwarding of the traffic flow and a mirror service node that performs the mirror service at the same time. Then, under the condition that the gateway address of the gateway device and the node address of the mirror image service node are both in the mirror image configuration, the traffic is sent to the mirror image service node and the user terminal corresponding to the node address through the gateway device.
In an example, after receiving a service flow sent by a service server, if the API mirror configuration includes a gateway address and a node address, the gateway address in the API mirror configuration corresponds to a gateway device a, the gateway device a sends the service flow to a mirror service node B corresponding to the node address, and the gateway device a sends the service flow to a user terminal requesting the service flow.
By the example, the service traffic is sent to the mirror service node corresponding to the node address through the gateway device corresponding to the gateway address based on mirror image configuration, and the control of the service traffic mirror service is realized.
Optionally, in this embodiment, if the mirror configuration has a gateway address of the gateway device, the service traffic is sent to the mirror service node, which includes but is not limited to: and if the gateway address is positioned in the mirror image configuration and the flow parameter of the service flow is matched with the preset parameter in the mirror image configuration, sending the service flow to a mirror image service node and a user terminal through gateway equipment.
In this embodiment, the traffic parameters include, but are not limited to, the data type of the traffic, the port traffic size, and the like. For example, the preset parameter in the mirroring configuration is to mirror the traffic of the video data/image data type.
Specifically, in this embodiment, if the gateway address of the gateway device is located in the mirror configuration, the gateway device indicating the current gateway address can send the traffic to the mirror service node. And under the condition that the traffic parameter of the service traffic is matched with the preset parameter in the mirror image configuration, wherein the preset parameter is the traffic parameter of the API set by the service interface of the gateway equipment. And then, the service flow is sent to the corresponding mirror image service node through the gateway equipment, and the service flow is sent to the user terminal requesting the service flow through the gateway equipment.
In one example, a traffic mirror parameter mirroring rule is added in the API configuration, and when the gateway device obtains the traffic parameter from the service request, if the traffic parameter of the API matches a preset parameter, mirror traffic forwarding is performed, and the service traffic is forwarded to the mirror service node.
By the embodiment, the mirror image service of the service flow is controlled by the gateway equipment based on the preset parameters set by the service interface corresponding to the mirror image configuration, so that the mirror image service based on the flow characteristics of the service flow is realized.
In a specific embodiment, as shown in fig. 3, the mirror image flow control method in this embodiment may include the following steps:
s31, the gateway equipment receives a service request sent by a user terminal;
specifically, the gateway device determines a mirror service node according to the service request, and receives a service flow returned by the service server.
S32, the gateway equipment inquires mirror image configuration;
s33, judging whether the gateway address is in mirror image configuration;
specifically, if the gateway address is located in the mirror image configuration, S34 is executed; otherwise, S38 is executed.
S34, acquiring a flow parameter of the service flow;
specifically, the traffic parameter may be determined according to the service request, or may also be determined according to the service traffic, which is not limited in this embodiment.
S35, judging whether flow parameter configuration exists in mirror image configuration of the gateway equipment;
specifically, if yes, S36 is executed; otherwise, S37 is executed.
S36, judging whether the request parameters are in flow parameter configuration;
specifically, if present, S37 is executed; otherwise, S38 is executed.
S37, sending the service flow to a mirror image service node and a user terminal;
and S38, sending the service flow to the user terminal.
According to the embodiment of the invention, a mirror image service node is determined according to a service request, wherein the service request is used for requesting service flow to a service server; and if the mirror image configuration has the gateway address of the gateway equipment, sending the service flow to a mirror image service node, wherein the mirror image configuration is used for controlling part of gateway equipment in the gateway cluster to carry out mirror image service. The implementation realizes that the service flow is mirrored to the test environment through mirror image configuration on the basis of not changing the existing network architecture, and realizes the control of the flow mirroring service.
An embodiment of the present invention further provides an image flow control apparatus, where the apparatus is applied to a gateway device in a gateway cluster, where the gateway cluster includes a plurality of gateway devices, and each gateway device stores an image configuration, as shown in fig. 4, the apparatus includes:
1) A determining module 40, configured to determine a mirror image service node according to a service request, where the service request is used to request a service flow from a service server;
2) A sending module 42, configured to send a service traffic to the mirror image service node if the mirror image configuration has a gateway address of a gateway device, where the mirror image configuration is used to control a part of gateway devices in the gateway cluster to perform mirror image service.
According to the embodiment of the invention, a mirror image service node is determined according to a service request, wherein the service request is used for requesting service flow to a service server; and if the mirror image configuration has the gateway address of the gateway equipment, sending the service flow to a mirror image service node, wherein the mirror image configuration is used for controlling part of the gateway equipment in the gateway cluster to carry out mirror image service. The implementation realizes that the service flow is mirrored to the test environment through mirror image configuration on the basis of not changing the existing network architecture, and realizes the control of the flow mirroring service.
An embodiment of the present invention further provides an electronic device, as shown in fig. 5, including a processor 51, a communication interface 52, a memory 53 and a communication bus 54, where the processor 51, the communication interface 52, and the memory 53 complete mutual communication through the communication bus 54,
a memory 53 for storing a computer program;
the processor 51 is configured to implement the following steps when executing the program stored in the memory 53:
s1, determining a mirror image service node according to a service request, wherein the service request is used for requesting service flow to a service server;
and S2, if the mirror image configuration has the gateway address of the gateway equipment, sending the service flow to the mirror image service node, wherein the mirror image configuration is used for controlling part of the gateway equipment in the gateway cluster to carry out mirror image service.
The communication bus mentioned in the above terminal may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the terminal and other devices.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a readable storage medium is further provided, where a computer program is stored, and when the computer program runs on a computer, the computer program causes the computer to execute the image flow control method in any of the above embodiments.
In yet another embodiment, the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the image flow control method according to any one of the above embodiments.
In the above embodiments, all or part of the implementation may be realized by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to be performed in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A mirror flow control method is applied to a gateway device in a gateway cluster, the gateway cluster includes a plurality of gateway devices, each gateway device stores mirror configuration therein, and the method includes:
determining a mirror image service node according to a service request, wherein the service request is used for requesting service flow from a service server;
and if the mirror image configuration has the gateway address of the gateway equipment, sending the service flow to the mirror image service node, wherein the mirror image configuration is used for controlling part of the gateway equipment in the gateway cluster to carry out mirror image service.
2. The method of claim 1, prior to determining a mirrored service node from the traffic request, further comprising:
receiving the mirror image configuration sent by the control terminal to each gateway device;
storing the mirrored configuration in the gateway device.
3. The method according to claim 1 or 2, wherein before said determining a mirrored service node from a service request, further comprising:
and selecting the partial gateway equipment to carry out mirror image service according to the flow load of each gateway equipment.
4. The method according to claim 1 or 2, wherein before said determining a mirrored service node from a service request, further comprising:
and selecting the partial gateway equipment to carry out mirror image service according to the network parameters of the gateway equipment.
5. The method of claim 1, further comprising:
and if the gateway address does not exist in the mirror image configuration, the service flow is sent to a user terminal.
6. The method of claim 1, wherein sending traffic to the mirror service node if the mirror configuration has a gateway address of a gateway device comprises:
and if the mirror image configuration comprises the gateway address and the node address, the service flow is sent to a target mirror image service node and a user terminal corresponding to the node address through the gateway equipment.
7. The method of claim 1, wherein sending traffic to the mirror service node if the mirror configuration has a gateway address of a gateway device comprises:
and if the gateway address and the traffic parameter of the service traffic are both in the mirror image configuration and the traffic parameter of the service traffic is matched with a preset parameter in the mirror image configuration, sending the service traffic to the mirror image service node and the user terminal through the gateway equipment.
8. An image flow control apparatus applied to a gateway device in a gateway cluster, the gateway cluster including a plurality of gateway devices, each gateway device having an image configuration stored therein, the apparatus comprising:
the system comprises a determining module, a service processing module and a service processing module, wherein the determining module is used for determining a mirror image service node according to a service request, and the service request is used for requesting service flow to a service server;
and the sending module is used for sending the service flow to the mirror image service node if the mirror image configuration has the gateway address of the gateway equipment, wherein the mirror image configuration is used for controlling part of the gateway equipment in the gateway cluster to carry out mirror image service.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the mirror flow control method steps of any of claims 1-5 when executing a program stored in the memory.
10. A readable storage medium having stored thereon a computer program, characterized in that the computer program, when being executed by a processor, implements the image flow control method according to any one of claims 1 to 5.
CN202211300970.4A 2022-10-24 2022-10-24 Mirror image flow control method and device, electronic equipment and readable storage medium Pending CN115801808A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211300970.4A CN115801808A (en) 2022-10-24 2022-10-24 Mirror image flow control method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211300970.4A CN115801808A (en) 2022-10-24 2022-10-24 Mirror image flow control method and device, electronic equipment and readable storage medium

Publications (1)

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

Family

ID=85433488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211300970.4A Pending CN115801808A (en) 2022-10-24 2022-10-24 Mirror image flow control method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115801808A (en)

Similar Documents

Publication Publication Date Title
CN106656800B (en) Path selection method and system, network acceleration node and network acceleration system
US20190356596A1 (en) Service link selection control method and device
CN109768879B (en) Method and device for determining target service server and server
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
CN110995873A (en) Gateway service interface discovery method, system, electronic device and storage medium
CN112929241B (en) Network testing method and device
CN111769997A (en) Method, server, device and computer readable medium for network monitoring
US10771372B2 (en) Transmitting test traffic on a communication link
CN112261133A (en) CDN node control method, device, server and storage medium
CN112311674B (en) Message sending method, device and storage medium
CN114090623A (en) Method and device for creating cache resources, electronic equipment and storage medium
CN111901240B (en) Route updating method, network acceleration system, server and switch
CN110380981B (en) Flow distribution method and equipment
WO2023173993A1 (en) Communication system and method based on dynamic gateway
CN109788075B (en) Private network system, data acquisition method and edge server
CN115190062B (en) Service processing method and device, electronic equipment and computer readable storage medium
CN108512698B (en) Network disaster tolerance method and device and electronic equipment
CN115801808A (en) Mirror image flow control method and device, electronic equipment and readable storage medium
CN110995890B (en) Domain name request scheduling method and device
CN111884932B (en) Link determining method, device, equipment and computer readable storage medium
CN111629054B (en) Message processing method, device and system, electronic equipment and readable storage medium
CN114338809A (en) Access control method, device, electronic equipment and storage medium
US7454187B2 (en) Home agent system
CN110891028B (en) Method, device and storage medium for determining load balancing strategy
CN111555918A (en) Return source optimization method and device and electronic equipment

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