CN110798414B - Port mirroring method and router - Google Patents

Port mirroring method and router Download PDF

Info

Publication number
CN110798414B
CN110798414B CN201911221839.7A CN201911221839A CN110798414B CN 110798414 B CN110798414 B CN 110798414B CN 201911221839 A CN201911221839 A CN 201911221839A CN 110798414 B CN110798414 B CN 110798414B
Authority
CN
China
Prior art keywords
message
mirror image
cache region
port
router
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911221839.7A
Other languages
Chinese (zh)
Other versions
CN110798414A (en
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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201911221839.7A priority Critical patent/CN110798414B/en
Publication of CN110798414A publication Critical patent/CN110798414A/en
Application granted granted Critical
Publication of CN110798414B publication Critical patent/CN110798414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/20Support for services
    • H04L49/208Port mirroring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/60Router architectures

Abstract

The invention relates to a method for port mirroring and a router, relating to the technical field of routers and aiming at solving the problem that the efficiency of a processor for processing normal services is reduced because the processor seizes instruction resources for processing the normal services when the processor processes mirroring services in the prior art, wherein the method is applied to the router comprising a first processing unit and a second processing unit and comprises the following steps: if the first processing unit receives a message through a mirror image port with mirror image service in the router or needs to send the message through the mirror image port with mirror image service in the router, the first processing unit applies for a first cache region from the memory and informs a second processing unit; the second processing unit copies the message into a cache region to obtain a mirror image message; and the first processing unit forwards the mirror image message to a preset monitoring port. The embodiment of the invention can distribute the mirror image service which consumes the normal service resource of the processor to the two processing units, thereby improving the processing capacity of the router for processing the normal service.

Description

Port mirroring method and router
Technical Field
The present invention relates to the technical field of routers, and in particular, to a port mirroring method and a router.
Background
In the process of network operation and maintenance, in order to facilitate service monitoring and fault location, the message can be copied by using port mirror image service without affecting the normal processing of the message by the equipment. The port mirroring refers to copying a packet passing through a designated mirror port (which may also be referred to as a source port) to another designated observation port (which may also be referred to as a provisioned monitor port). The network administrator can analyze the message copied from the observation port through the network monitoring equipment, so that whether the service running in the network is normal can be judged.
Specifically, a processor of the router applies for a cache region in the memory, then copies a packet of the source port in the cache region, and finally forwards the copied packet to a pre-configured monitor port. However, the processor needs to adopt the instruction of the processor in the process of data replication, and meanwhile, the processor needs to adopt the instruction in the processor in normal service forwarding, so that the instruction resource of the processor is occupied by the processing mirror image service, and the processing capability of processing normal service is reduced.
For example, when the router receives a plurality of messages, the processor applies for a cache region in the memory, consumes a large amount of instruction resources to copy the message of the source port in the cache region, and forwards the copied message to the pre-configured monitor port.
In summary, under the condition that the processor processes a plurality of messages, since the instruction of the processor has no use right, the instruction resource required for processing the normal service is occupied by the mirror image service, and the processing capability of the processor for processing the normal service is seriously affected.
Disclosure of Invention
The invention provides a port mirroring method and a router, which are used for solving the technical problem that efficiency is reduced when normal services are processed due to the fact that a large number of instruction resources for processing the normal services are seized when a processor processes mirroring services under the condition of processing a plurality of messages in the prior art.
In a first aspect, an embodiment of the present invention provides a method for port mirroring, where the method is applied to a router including a first processing unit and a second processing unit, and the method includes:
if the first processing unit receives a message through a mirror image port with mirror image service in the router or needs to send the message through the mirror image port with mirror image service in the router, applying for a first cache region from a memory and informing the second processing unit;
the second processing unit copies the message into the first cache region to obtain a mirror image message;
and the first processing unit forwards the mirror image message to a preset monitoring port.
In the method, when the mirror image service is processed, the first processing unit applies for the first cache region from the memory and informs the second processing unit, the second processing unit copies the message into the first cache region to obtain the mirror image message, and after the copying is finished, the first processing unit forwards the mirror image message to the pre-configured monitoring port.
In a possible implementation manner, the first processing unit is a processor, and the second processing unit is a DMA controller.
According to the method, when the mirror image service is processed, the processor applies for the first cache region from the memory and informs the DMA controller, the DMA controller copies the message into the first cache region to obtain the mirror image message, and after the copying is finished, the processor forwards the mirror image message to the pre-configured monitoring port.
In a possible implementation manner, before the first processing unit applies for the first cache region from the memory, the method further includes:
the processor applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
the first processing unit applies for a first cache region from the memory, including:
the processor applies for a first cache region in a mirror image message pool of the memory;
the second processing unit copies the packet to the first cache region to obtain a mirror image packet, including:
and the DMA controller copies the message in the second cache region to the first cache region to obtain a mirror image message.
According to the method, the processor applies for the second cache region in the non-mirror image message pool of the memory and applies for the first cache region in the mirror image message pool of the memory, namely, the mirror image message and the corresponding original message, namely, the message places are stored in different places, the DMA controller copies the message in the second storage region to the first cache region to obtain the mirror image message, and the mirror image message and the corresponding original message are divided, so that the mirror image message and the corresponding original message can be prevented from being mixed, and the normal forwarding of the original message is prevented from being influenced.
In one possible implementation, the processor includes at least one dedicated core for processing port mirroring traffic;
if the first processing unit receives a message through the mirror image port with the mirror image service in the router or needs to send the message through the mirror image port with the mirror image service in the router, applying for a first cache region from a memory and notifying the second processing unit, including:
if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router, the special core applies for a first cache region from a memory and informs the DMA controller;
the first processing unit forwards the mirror image message to a pre-configured monitoring port, including:
and the special core forwards the mirror image message to a pre-configured monitoring port.
According to the method, when the processor comprises at least one special core for processing the port mirror image service, the special core is adopted to apply for the first cache region from the memory and inform the DMA controller, the message is copied to the first cache region in the DMA controller to obtain the mirror image message, and the special core forwards the mirror image message to the pre-configured monitoring port, so that the special core can be adopted to specially perform relevant operations of the mirror image service, and the normal service processing service is relieved.
In a possible implementation manner, the first processing unit and the second processing unit are a same dedicated core for processing port mirroring services.
In a possible implementation manner, the router includes at least one non-dedicated core, and before the first processing unit applies for the first cache region from the memory, the method further includes:
the non-special core applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
the first processing unit applies for a first cache region from the memory, including:
the special core applies for a first cache region in a mirror image message pool of the memory;
the second processing unit copies the packet to the first cache region to obtain a mirror image packet, including:
and the special core copies the message in the second cache region into the first cache region to obtain a mirror image message.
According to the method, the non-special core applies for the second cache region in the non-mirror image message pool of the memory, the special core applies for the first cache region in the mirror image message pool of the memory, namely, the mirror image message and the corresponding original message, namely, the message places are stored in different places, the special core copies the message in the second storage region to the first cache region to obtain the mirror image message, and the mirror image message and the corresponding original message are separated, so that the mirror image message and the corresponding original message can be prevented from being mixed, and the normal forwarding of the original message is influenced.
In a second aspect, an embodiment of the present invention provides a router, where the router includes a first processing unit and a second processing unit;
the first processing unit is used for applying for a first cache region from a memory and informing the second processing unit if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router;
the second processing unit is used for copying the message into the first cache region to obtain a mirror image message;
and the first processing unit is used for forwarding the mirror image message to a preset monitoring port.
In a possible implementation manner, the first processing unit is a processor, and the second processing unit is a DMA controller.
In a possible implementation manner, the processor is specifically configured to apply for a second cache region in a non-mirror message pool of a memory of the router, and store the message in the second cache region;
the processor is used for applying for a first cache region in a mirror image message pool of the memory;
the DMA controller is used for copying the message in the second cache region into the first cache region to obtain a mirror image message.
In one possible implementation, the processor includes at least one dedicated core for processing port mirroring traffic;
the special core is used for applying for a first cache region from a memory and informing the DMA controller if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router;
and the special core is used for forwarding the mirror image message to a pre-configured monitoring port.
In a possible implementation manner, the first processing unit and the second processing unit are a same dedicated core for processing port mirroring services.
In one possible implementation, the router includes at least one non-dedicated core,
the non-dedicated core is used for applying for a second cache region in a non-mirror image message pool of the memory of the router before applying for a first cache region from the memory, and storing the message in the second cache region;
the special core is used for applying for a first cache region in a mirror image message pool of the memory;
the special core is used for copying the message in the second cache region into the first cache region to obtain a mirror image message.
In a third aspect, the present application also provides a computer storage medium having a computer program stored thereon, which when executed by a processing unit, performs the steps of the method of the first aspect or the steps of the method of the second aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect and the third aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention and are not to be construed as limiting the invention.
FIG. 1 is a flow chart of a method for port mirroring provided in accordance with an embodiment of the present invention;
fig. 2 is a flow chart of a first method of port mirroring provided in accordance with example 1 of the present invention;
fig. 3 is a schematic application scenario diagram of a method for port mirroring according to example 1 of the present invention;
FIG. 4 is a flow chart of a second method of port mirroring provided in accordance with example 1 of the present invention;
fig. 5 is a schematic diagram illustrating that a DMA controller copies a memory-partitioned non-mirrored message pool to a non-mirrored message pool according to an embodiment of the present invention;
fig. 6 is a flowchart of a method for port mirroring when a packet is received through a mirror port having mirroring service in a router according to example 1 of the present invention;
fig. 7 is a flowchart of a method for port mirroring when a message needs to be sent through a mirroring port having mirroring service in a router according to example 1 of the present invention;
FIG. 8 is a flow chart of a method of port mirroring when a processor is a multi-core processor provided in accordance with example 1 of the present invention;
FIG. 9 is a schematic diagram providing for partitioning of specialized cores when the processor is a multi-core processor, according to an embodiment of the present invention;
FIG. 10 is a flow diagram of another method of port mirroring when a processor is a multi-core processor provided in accordance with example 1 of the present invention;
FIG. 11 is a flow chart of a method of port mirroring provided in accordance with example 2 of the present invention;
FIG. 12 is a flow chart of another method of port mirroring provided in accordance with example 2 of the present invention;
fig. 13 is a flow chart of yet another method of port mirroring provided in accordance with example 2 of the present invention;
fig. 14 is a flowchart of a method for port mirroring when a packet is received through a mirror port having mirroring service in a router according to example 2 of the present invention;
fig. 15 is a flowchart of another port mirroring method when a packet needs to be sent through a mirror port having mirroring service in a router according to example 2 of the present invention;
fig. 16 is a schematic diagram of a router provided in accordance with an embodiment of the present invention;
fig. 17 is a schematic diagram of a router provided in accordance with example 1 of the present invention;
fig. 18 is a schematic diagram of a router provided according to example 2 of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The application scenario described in the embodiment of the present invention is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided in the embodiment of the present invention, and it can be known by a person skilled in the art that with the occurrence of a new application scenario, the technical solution provided in the embodiment of the present invention is also applicable to similar technical problems. Wherein, in the description of the present invention, unless otherwise indicated, "a plurality" means.
At present, when a message is received through a source port of a router, a processor can normally forward the message, and meanwhile, the processor stores the message in a memory, copies the message in the memory, and also consumes resources to perform mirroring on the message, so that all processing of port mirroring service is performed by the processor, a large amount of resources of the processor are consumed, and the processing capability of the processor is reduced.
Based on this, the present invention provides a method for port mirroring, which is applied in a router including a first processing unit and a second processing unit, and as shown in fig. 1, the method includes:
s101: if the first processing unit receives a message through a mirror image port with mirror image service in the router or needs to send the message through the mirror image port with mirror image service in the router, the first processing unit applies for a first cache region from the memory and informs a second processing unit;
s102: the second processing unit copies the message to the first cache region to obtain a mirror image message;
s103: and the first processing unit forwards the mirror image message to a preset monitoring port.
In the method, the steps in the port mirror image service are divided into two processing units, wherein a first processing unit can apply for a first cache region from a memory, inform a second processing unit and forward a mirror image message to a pre-configured monitoring port; the second processing unit copies the message to the first cache region to obtain the mirror image message, thus the invention adopts a shunting method when processing the port mirror image service, and improves the processing capacity of the processor for processing normal service.
In an alternative example 1, the first processing unit is a processor and the second processing unit is a DMA controller. Based on the embodiment, the method is applied to a router comprising a processor and a Direct Memory Access (DMA) controller, after a message is received through a source port of the router, the processor applies for a first cache region from a Memory and informs the DMA controller, the DMA controller is adopted to copy the message into the first cache region to obtain a mirror image message, namely, the work of copying the message of the processor is transferred to the DMA controller for processing, and finally, the processor transfers the mirror image message to a pre-configured monitoring port, so that processor resources occupied by port mirror image services are reduced, and the performance of the router is improved. The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
As shown in fig. 2, the method specifically includes the following steps:
s201: if the processor receives a message through a mirror image port with mirror image service in the router or needs to send the message through the mirror image port with mirror image service in the router, the processor applies for a first cache region from the memory and informs the DMA controller;
s202: and the DMA controller copies the message into the first cache region to obtain a mirror image message.
S203: and the processor forwards the mirror image message to a preset monitoring port.
Through the scheme, firstly, when the mirror image service is processed, the processor applies for the first cache region from the memory and informs the DMA controller, the DMA controller copies the message into the first cache region to obtain the mirror image message, after the copying action is completed, the processor forwards the mirror image message to the pre-configured monitoring port, the message is copied into the first cache region by the processor to obtain the copying action of the mirror image message, and the copying action is forwarded to the DMA controller for processing, so that the processing capacity of the processor for processing the normal service can be improved.
For example, taking a company intranet as an example, the company includes a plurality of branches that can request data from a headquarters or between different branches of the company, or the headquarters can send data to branches or between different branches of the company, and since the branches of the company are physically different locations, routers can be laid for each branch, which may also be called a site, and data transfer between different locations can be realized by a plurality of routers.
As shown in fig. 3, a router 1 is disposed in a mesh point 1, and the router 1 is connected to a user a, a user B, and a user C, so that the user a, the user B, and the user C can request data from a router N of a headquarters through the router 1, when monitoring the router 1, a port of the router 1 is provided with a source port and a pre-configured monitoring port, where the pre-configured monitoring port is connected to a network monitoring device 1, and the router 1 is connected to the user a, the user B, and the user C, where the router 1 includes a processor and a DMA controller, when the user a needs to request data from other mesh points through the router 1, the user a sends a request message to the router 1, and in the router 1, the processor of the router 1 applies for a first cache region from a memory and notifies the DMA controller of the router 1, and the DMA controller of the router 1 copies the request message into the first cache region, obtaining the mirror image message, the processor of the router 1 forwards the mirror image message to the preconfigured monitoring port, and the processor of the router 1 forwards the request message to the routers of other nodes, so that the user a can normally access data of other nodes, and meanwhile, the network monitoring device 1 can also monitor the request message sent by the user a to other nodes through the router 1.
For example, each router in fig. 3 may be provided with a network monitoring device, and the network monitoring device may monitor a message received by the router connected correspondingly or a message sent by the router.
Based on example 1, optionally, when the first processing unit is a processor and the second processing unit is a DMA controller, before the first processing unit applies for the first cache region from the memory, the method further includes: the processor applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
the first processing unit applies for a first cache region from the memory, including: the processor applies for a first cache region in a mirror image message pool of the memory;
the second processing unit copies the message to the first cache region to obtain a mirror image message, including: and the DMA controller copies the message in the second cache region into the first cache region to obtain a mirror image message.
Based on the above disclosure, shown in fig. 4, another method for port mirroring is shown, which includes:
s401: the processor applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
s402: the processor applies for a first cache region in a mirror image message pool of the memory and informs the DMA controller;
s403: and the DMA controller copies the message in the second cache region to the first cache region to obtain a mirror image message.
S404: and the processor forwards the mirror image message to a preset monitoring port.
In the port mirroring method, the aforementioned non-mirrored message pool and mirrored message pool may be divided from the memory, and as shown in fig. 5, the left frame in the memory 500 is a mirrored message pool, the right frame in the memory is a non-mirrored message pool, that is, a storage message, that is, an original message, the processor may apply for the second cache region from the non-mirrored message pool of the memory, and store the original message a1 in the second cache region, and then apply for the first cache region from the mirrored message pool of the memory, and the DMA controller copies the original message a1 in the second cache region to the first cache region to obtain the mirrored message a 2. Similarly, for the original message b1 and the original message c1, the DMA controller is also used to copy the original message b1 and the original message c1 into the first buffer area, respectively, so as to obtain the mirror message b2 and the original message c 2. Therefore, the mirror image message and the corresponding original message can be separated, and the condition that the messages of two services are mixed with each other and the normal forwarding of the original message is influenced is avoided.
In example 1, optionally, when the first processing unit is a processor and the second processing unit is a DMA controller, and the processor receives a packet through a mirror port with mirror traffic in a router, that is, when processing the packet received by the router, as shown in fig. 6, the port mirror processing procedure may include:
s601: and the processor applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region.
S602: the processor applies for the first cache region in a mirror image message pool of the memory and informs the DMA controller.
S603: and the DMA controller copies the message in the second cache region into the first cache region to obtain a mirror image message.
S604: and the processor determines the destination address corresponding to the message according to the routing table.
S605: and the processor forwards the message to a port corresponding to the destination address. Then, the processor forwards the message to the device connected with the port through the port corresponding to the destination address.
S606: and the processor forwards the mirror image message to a preset monitoring port.
The router comprises a plurality of ports, one router can be physically connected with another router through the ports, each port has a corresponding address, the addresses are stored in a memory of the router, a routing table is the address of each port of the router, and in the normal message forwarding process, when a processor of one router receives a message, the processor needs to search the addresses in the routing table to find out a target address corresponding to the message. And forwarding the message to a port corresponding to the destination address, and then sending the message to another router which is physically connected with the port corresponding to the destination address through the port corresponding to the destination address.
In example 1, optionally, when the first processing unit is a processor and the second processing unit is a DMA controller, the processor needs to send a message through a mirror port with mirror traffic in a router, that is, in a process of sending a message by the router, with reference to fig. 7, a port mirror processing process may include:
s701: the processor applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
s702: and the processor determines the destination address corresponding to the message according to the routing table.
S703: and the processor forwards the message to a port corresponding to the destination address.
S704: and when the port corresponding to the destination address has the mirror image service, the processor applies for a first cache region in a mirror image message pool of the memory and informs the DMA controller.
S705: and the DMA controller copies the message in the second cache region into the first cache region to obtain a mirror image message.
S706: and the processor forwards the mirror image message to a preset monitoring port.
After step S705, the processor sends the message to the device connected to the port through the port.
When the processor is a multi-core processor, the processor includes cores 0 to N-1, and generally, in the multi-core processor, each core resource is uniformly managed by an operating system, and the core resources are scheduled to be processed when a service occurs. When the port mirror image service occurs, the port mirror image service occupies core resources in the multi-core processor, so that the core resources obtained by normal service development are less than the core resources without the port mirror image service.
On this premise, in example 1, optionally, when the first processing unit is a processor, the second processing unit is a DMA controller, and the processor includes at least one dedicated core for processing port mirroring traffic,
if the first processing unit receives a message through a mirror image port with mirror image service in the router or needs to send the message through the mirror image port with mirror image service in the router, the first processing unit applies for a first cache region from the memory and notifies the DMA controller, and the method comprises the following steps:
if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router, the special core applies for a first cache region from the memory and informs the DMA controller;
the first processing unit forwards the mirror image message to a pre-configured monitoring port, and the method comprises the following steps: and the special core forwards the mirror image message to a preset monitoring port.
Based on the above disclosure, as shown in fig. 8, the port mirroring process may include:
s801: if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router, the special core applies for the first cache region from the memory and informs the DMA controller.
S802: and the DMA controller copies the message into the first cache region to obtain a mirror image message.
S803: and the special core forwards the mirror image message to a preset monitoring port.
For example, as shown in fig. 9, when the processor is a multi-core processor, the processor includes cores 0 to N-1, that is, N cores, and a dedicated core dedicated to processing port mirroring services may be randomly preset from core 0 to core N-1. For example, if the core N-1 is a dedicated core, when the mirror image service is generated, the core N-1 applies for the first cache region from the memory and notifies the DMA controller, and the core N-1 forwards the mirror image packet to the preconfigured monitor port. And any core from the core 0 to the core N-2 applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region. After the message is stored in the second cache region, any core from the core 0 to the core N-2 may determine a destination address corresponding to the message according to the routing table, and forward the message stored in the second cache region to the destination address. Any core from core 0 to core N-2 that processes the service may be processed according to a priority mechanism or a polling manner. When the port mirroring service is not performed, the dedicated core may also be used for a normal forwarding service.
Optionally, when the first processing unit is a processor, the second processing unit is a DMA controller, and the processor includes a plurality of dedicated cores for processing port mirroring services, as shown in fig. 10, the port mirroring processing procedure may include:
s1001: if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router, the message is distributed to a special core for processing the service of the message to apply for a first cache region from the memory and inform the DMA controller.
S1002: and the DMA controller copies the message into the first cache region to obtain a mirror image message.
S1003: and the special core distributed to the service for processing the message forwards the mirror image message to a pre-configured monitoring port.
For example, as shown in fig. 9, in the case of a multi-core processor, the processor includes cores 0 to N-1, and a plurality of dedicated cores dedicated to processing port mirroring services may be randomly preset from core 0 to core N-1. For example, the core N-1, the core N-2, and the core N-3 are dedicated cores, when the mirror image service is generated, any one of the core N-1, the core N-2, and the core N-3 applies for the first cache region to the memory, and notifies the DMA controller, and any one of the core N-1, the core N-2, and the core N-3 forwards the mirror image packet to the pre-configured monitoring port. And any core from the core 0 to the core N-4 applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region. After the packet is stored in the second cache region, any core from core 0 to core N-4 may determine a destination address corresponding to the packet according to the routing table, and forward the packet stored in the second cache region to the destination address. Any core from core 0 to core N-4 that processes the service may be processed according to a priority mechanism or a polling manner.
Any one of the cores N-1, N-2 and N-3 may be selected to apply for the first cache region from the memory in the following manner, and notify the DMA controller, and forward the mirror image packet to the pre-configured monitor port:
the multi-core processor also comprises a distribution core for distributing the special core, and if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router, the special core for processing the service of the message is distributed according to a polling mode or a priority mechanism method.
For example, the polling method is that when the core N-1, the core N-2, and the core N-3 perform polling in sequence, and the current dedicated core for processing the port mirror image service is the core N-1, the current dedicated core for processing the port mirror image service is the core N-2, and the next dedicated core for processing the port mirror image service is the core N-3.
The priority mechanism is that a core N-1 is preferentially adopted to process port mirror image service, a second core N-2 is preferentially adopted to process port mirror image service, a third core N-3 is preferentially adopted to process port mirror image service, when the core N-1, the core N-2 and the core N-3 are detected not to be occupied, the core N-1 is adopted to apply for a first cache region from the memory, the DMA controller is informed, and mirror image messages are forwarded to a pre-configured monitoring port. And when detecting that the core N-1 is occupied, applying for a first cache region from the memory by adopting the core N-2, informing the DMA controller, and forwarding the mirror image message to a pre-configured monitoring port. And when detecting that the core N-1 and the core N-2 are occupied, applying the core N-3 to the memory for a first cache region, informing the DMA controller, and forwarding the mirror image message to a pre-configured monitoring port.
In the present invention, the number of dedicated cores for processing port mirror traffic can be determined in the following manner:
and determining the number of special cores for processing the port mirror image service according to a preset proportion. For example, the dedicated cores may be allocated at a rate of 5%, and when the multi-core processor includes 20 cores, the number of dedicated cores is 20 times 5% to 1.
When the processor is a multi-core processor, it is mentioned above that when the port mirror image service occurs, the port mirror image service occupies core resources in the multi-core processor, so that core resources obtained by normal service development are less than core resources without the port mirror image service, and the performance of the router is reduced.
In an alternative example 2, the first processing unit and the second processing unit are the same dedicated core for processing port mirroring traffic. In this case, the router contains at least one dedicated core for handling port mirroring traffic.
Based on example 2, the present invention provides a port mirroring method, which is shown in fig. 11 and specifically includes the following steps:
s1101: if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router, the special core applies for a first cache region from the memory;
s1102: and the special core copies the message into the first cache region to obtain a mirror image message.
S1103: and the special core forwards the mirror image message to a preset monitoring port.
By the scheme, the replication task which can consume the normal service resources of the processor is transferred to the special core, so that the resources for processing the normal service cannot be occupied when the router receives a plurality of messages, and the processing capacity of the router for processing the normal service is improved.
For example, as shown in fig. 9, when the processor is a multi-core processor, the processor includes cores 0 to N-1, and a dedicated core dedicated to processing port mirror traffic may be randomly preset from core 0 to core N-1. For example, if the core N-1 is a dedicated core and the cores 0 to N-2 are non-dedicated cores for processing non-mirror image services, when the mirror image services are generated, the core N-1 applies for a first cache region to the memory, the core N-1 copies the packet to the first cache region to obtain a mirror image packet, and the core N-1 forwards the mirror image packet to a pre-configured monitoring port. And any core from the core 0 to the core N-2 applies for a second cache region in the memory of the router and stores the message in the second cache region. After being stored in the second cache region, any core from core 0 to core N-2 may determine a destination address corresponding to the packet according to the routing table, and forward the packet stored in the second cache region to the destination address. Any core from core 0 to core N-2 that processes the service may be processed according to a priority mechanism or a polling manner.
For example, a router 1 is arranged in a node 1, and the router 1 is connected to a user a, a user B, and a user C, so that the user a, the user B, and the user C can request data from a router N of a headquarters through the router 1, and when monitoring the router 1, the port of the router 1 is provided with a source port and a pre-configured monitoring port, where the pre-configured monitoring port is connected to a network monitoring device 1, and the router 1 is connected to the user a, the user B, and the user C, where the router 1 includes at least one dedicated core for processing port mirroring service, when the user a needs to request data from other nodes through the router 1, the user a sends a request message to the router 1, the dedicated core of the router 1 applies for a first cache region to the memory, the dedicated core of the router 1 copies the request message into the first cache region to obtain a mirror message, the special core of the router 1 forwards the mirror image message to the pre-configured monitoring port, and the non-special core (not a preset special core for processing port mirror image service) of the router 1 forwards the request message to the routers of other nodes, so that the user a can normally access data of other nodes, and meanwhile, the network monitoring device 1 can also monitor the request message sent by the user a to the routers of other nodes through the pre-configured monitoring port of the router 1.
In example 2, optionally, when the first processing unit and the second processing unit are the same dedicated core for processing port mirroring traffic and the router includes at least a plurality of dedicated cores for processing port mirroring traffic, as shown in fig. 12, the port mirroring processing procedure may include:
s1201: if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router, the message is distributed to a special core for processing the service of the message to apply for a first cache region from the memory.
S1202: and copying the message to a first cache region by the special core distributed to the service for processing the message to obtain a mirror image message.
S1203: and the special core distributed to the service for processing the message forwards the mirror image message to a pre-configured monitoring port.
For example, as shown in fig. 9, in the case of a multi-core processor, the processor includes cores 0 to N-1, and a plurality of dedicated cores dedicated to processing port mirroring services may be randomly preset from core 0 to core N-1. For example, the core N-1, the core N-2, and the core N-3 are dedicated cores, and any one of the cores 0 to N-4 is a non-dedicated core for processing non-mirror image services, when mirror image services are generated, any one of the cores N-1, N-2, and N-3 applies for a first cache region to the memory, any one of the cores N-1, N-2, and N-3 copies a packet into the first cache region to obtain a mirror image packet, and any one of the cores N-1, N-2, and N-3 forwards the mirror image packet to a pre-configured monitoring port. And any core from the core 0 to the core N-4 applies for a second cache region in the memory of the router and stores the message in the second cache region. After the packet is stored in the second cache region, any one of the cores 0 to N-4 may determine a destination address corresponding to the packet according to the routing table, and forward the packet stored in the second cache region to the destination address. Any core from core 0 to core N-4 that processes the service may be processed according to a priority mechanism or a polling manner.
Any one of the cores N-1, N-2 and N-3 can be selected to apply a first cache region to the memory in the following mode, the message is copied to the first cache region to obtain a mirror image message, and the mirror image message is forwarded to a pre-configured monitoring port:
the multi-core processor also comprises a distribution core for distributing the special core, and after receiving the message through the source port of the router, the distribution core distributes the special core for processing the service of the message according to a polling mode or a priority mechanism method.
For example, the polling method is that when the core N-1, the core N-2, and the core N-3 perform polling in sequence, and the current dedicated core for processing the port mirror image service is the core N-1, the current dedicated core for processing the port mirror image service is the core N-2, and the next dedicated core for processing the port mirror image service is the core N-2.
The priority level mechanism is that a core N-1 is preferentially adopted to process port mirror image service, a second core N-2 is preferentially adopted to process port mirror image service, a third core N-3 is preferentially adopted to process port mirror image service, when the core N-1, the core N-2 and the core N-3 are detected not to be occupied, the core N-1 is adopted to apply for a first cache region to the memory, the message is copied to the first cache region to obtain a mirror image message, and the mirror image message is forwarded to a pre-configured monitoring port. When the core N-1 is detected to be occupied, the core N-2 is adopted to apply for a first cache region to the memory, the message is copied to the first cache region, a mirror image message is obtained, and the mirror image message is forwarded to a pre-configured monitoring port. When the core N-1 and the core N-2 are detected to be occupied, the core N-3 is adopted to apply for a first cache region from the memory, the message is copied to the first cache region, a mirror image message is obtained, and the mirror image message is forwarded to a preset monitoring port.
In the present invention, the number of dedicated cores for processing port mirror traffic can be determined in the following manner:
and determining the number of special cores for processing the port mirror image service according to a preset proportion. For example, the dedicated cores may be allocated at a rate of 5%, and when the multi-core processor includes 20 cores, the number of dedicated cores is 20 times 5% to 1. According to the preset proportion, the number of the special cores is determined, the situation of occupying a plurality of core resources can be reduced, for example, if a large number of mirror image services are needed, 10 core processing is probably needed, 50% of the core resources for processing normal services are consumed, and if the number of the special cores is set to be 1, only 5% of the core resources are consumed, so that the situation that a plurality of core processing mirror image services occupy a large number of core resources when the number of mirror image services is large can be avoided, and the performance of the router is improved.
In example 2, optionally, when the first processing unit and the second processing unit are the same dedicated core for processing port mirroring traffic, and the router includes at least one non-dedicated core.
Before the first processing unit applies for the first cache region from the memory, the method further includes: the non-special core applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
the first processing unit applies for a first cache region from the memory, including: the special core applies for a first cache region in a mirror image message pool of the memory;
the second processing unit copies the message to the first cache region to obtain a mirror image message, which includes: and the special core copies the message in the second cache region into the first cache region to obtain a mirror image message.
Based on the above, as shown in fig. 13, a method for port mirroring is shown, which includes:
s1301: the non-special core applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
s1302: the special core applies for a first cache region in a mirror image message pool of the memory;
s1303: and the special core copies the message in the second cache region into the first cache region to obtain a mirror image message.
S1304: and the special core forwards the mirror image message to a preset monitoring port.
In the port mirroring method, the aforementioned non-mirrored message pool and mirrored message pool are firstly divided in the memory, and as shown in fig. 5, the left frame in the memory 500 is a mirrored message pool, the right frame in the memory is a non-mirrored message pool, that is, a storage message, that is, an original message, the non-dedicated core may apply for a second cache region from the non-mirrored message pool, and store the original message a1 in the second cache region, then the dedicated core 1500 applies for a first cache region from the mirrored message pool in the memory, and the dedicated core copies the original message a1 in the second cache region to the first cache region to obtain the mirrored message a 2. Similarly, for the original packet b1 and the original packet c1, the original packet b1 and the original packet c1 are respectively copied into the first buffer by using a dedicated core, so as to obtain the mirror packet b2 and the original packet c 2. Therefore, the mirror image message and the corresponding original message can be separated, and the condition that the messages of two services are mixed with each other and the normal forwarding of the original message is influenced is avoided.
In example 2, optionally, when the first processing unit and the second processing unit are the same dedicated core for processing port mirroring service, and a packet is received through a mirroring port with mirroring service in the router, that is, when the packet received by the router is processed, as shown in fig. 14, the port mirroring processing procedure may include:
s1401: and the non-special core applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region.
S1402: the special core applies for a first cache region in a mirror image message pool of the memory.
S1403: and the special core copies the message in the second cache region into the first cache region to obtain a mirror image message.
S1404: and the non-special core determines the destination address corresponding to the message according to the routing table.
S1405: and the non-special core forwards the message to a port corresponding to the destination address. Then, the non-dedicated core forwards the message to the device connected with the port through the port corresponding to the destination address.
S1406: and the special core forwards the mirror image message to a preset monitoring port.
In example 2, optionally, when the first processing unit and the second processing unit are the same dedicated core for processing port mirroring service, and a packet needs to be sent through a mirroring port with mirroring service in the router, as shown in fig. 15, a port mirroring processing process may include:
s1501: the non-special core applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
s1502: and the non-special core determines the destination address corresponding to the message according to the routing table.
S1503: and the non-special core forwards the message to a port corresponding to the destination address.
S1504: after the port corresponding to the destination address has the mirror image service, the special core applies for a first cache region in a mirror image message pool of the memory.
S1505: and the special core copies the message in the second cache region into the first cache region to obtain a mirror image message.
S1506: and the special core forwards the mirror image message to a preset monitoring port.
After step S1505 is performed, the non-dedicated core sends the message through the egress port to the device connected to the egress port.
As shown in fig. 16, an embodiment of the present invention further provides a router, where the router includes a first processing unit 1610 and a second processing unit 1620.
The first processing unit 1610 is configured to apply for a first cache region from a memory and notify the second processing unit if a packet is received through a mirror port with mirror image service in the router or a packet needs to be sent through a mirror port with mirror image service in the router;
the second processing unit 1620 is configured to copy the packet into the first cache region, so as to obtain a mirror packet;
the first processing unit 1610 is configured to forward the mirror packet to a preconfigured monitor port.
Optionally, the first processing unit 1610 is a processor and the second processing unit 1620 is a DMA controller.
Optionally, the processor is specifically configured to apply for a second cache region in a non-mirror image packet pool of the memory of the router, and store the packet in the second cache region;
the processor is used for applying for a first cache region in a mirror image message pool of the memory;
the DMA controller is used for copying the message in the second cache region into the first cache region to obtain a mirror image message.
Optionally, the processor includes at least one dedicated core for processing port mirroring traffic;
the special core is used for applying for a first cache region from a memory and informing the DMA controller if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router;
and the special core is used for forwarding the mirror image message to a pre-configured monitoring port.
For the case where the first processing unit 1610 is a processor and the second processing unit 1620 is a DMA controller, referring to fig. 17, a structure diagram of a router is shown, where the elements in the router include: a first port 1701, a CPU (central processing unit) 1702, a DMA controller 1703, a first provisioned monitor port 1704, and a first memory 1705. When a first port 1701 of a router receives a message, a CPU1702 applies for a second cache region in a non-mirror image message pool of a first memory 1705 of the router and stores the message in the second cache region, the CPU1702 judges whether the first port 1701 has mirror image service, if the first port does not have the mirror image service, the port carries out normal forwarding service, the CPU1702 determines a destination address corresponding to the message according to a routing table, and the CPU1702 forwards the message to the port corresponding to the destination address and then sends the message to equipment connected with the port through the port corresponding to the destination address. Where the CPU1702 encapsulates the message before forwarding it to the device connected to the port.
If the CPU1702 determines that the port has the mirror image service, the CPU1702 applies for the first cache region in the mirror image packet pool of the first memory 1705 and notifies the DMA controller 1703, and the DMA controller 1703 copies the packet in the second cache region to the first cache region to obtain the mirror image packet. The CPU1702 determines a destination address corresponding to the message according to the routing table, the CPU1702 forwards the message to the destination address, and then sends the message to a device connected with the destination address through a port corresponding to the destination address, and the CPU1702 forwards the mirror image message to a first provisioned monitor port 1704.
For another example, when the router processes a sent message, the CPU1702 applies for a second cache region in the non-mirror image message pool of the first memory 1705 of the router, and stores the message in the second cache region, the CPU1702 determines a destination address corresponding to the message according to the routing table, and the CPU1702 forwards the message to a port corresponding to the destination address. The CPU1702 determines whether the first port 1701 has a mirror image service, and if not, it is a normal forwarding service, and then sends the packet to the device connected to the port through the port corresponding to the destination address.
If the CPU1702 determines that the first port 1701 has the mirror image service, the CPU1702 applies for the first cache region in the mirror image message pool of the first memory 1705 and notifies the DMA controller 1703, the DMA controller 1703 copies the message in the second cache region to the first cache region to obtain the mirror image message, and the CPU1702 forwards the mirror image message to the first preconfigured monitor port 1704.
Optionally, the first processing unit and the second processing unit are the same dedicated core for processing port mirror image services.
Optionally, the router comprises at least one non-dedicated core,
the non-dedicated core is used for applying for a second cache region in a non-mirror image message pool of the memory of the router before applying for a first cache region from the memory, and storing the message in the second cache region;
the special core is used for applying for a first cache region in a mirror image message pool of the memory;
the special core is used for copying the message in the second cache region into the first cache region to obtain a mirror image message.
For the first processing unit and the second processing unit are the same dedicated core for processing port mirroring service, as shown in fig. 18, a message processing process inside a router is provided, where elements in the router include: a second port 1801, a non-dedicated core 1802, a dedicated core 1803, a second provisioned monitor port 1804, and a second memory 1805. When a second port 1801 of the router, that is, a second port receives a packet, the non-dedicated core 1802 applies for a second cache region in a non-mirror packet pool of a second memory 1805 of the router, and stores the packet in the second cache region, whether the port of the non-dedicated core 1802 has a mirror service is determined, if the port does not have the mirror service, the port performs a normal forwarding service, the non-dedicated core 1802 determines a destination address corresponding to the packet according to the routing table, and the non-dedicated core 1802 forwards the packet to the destination address, and then sends the packet to a device connected to the port through the port corresponding to the destination address. Where the non-specialized core 1802 encapsulates the message before forwarding it to the device connected to the port.
If the non-dedicated core 1802 determines that the second port 1801 has the mirror image service, the dedicated core 1803 applies for the first cache region in the mirror image packet pool of the memory 1905, and the dedicated core 1803 copies the packet in the second cache region to the first cache region to obtain the mirror image packet. The non-dedicated core 1802 determines a destination address corresponding to the packet according to the routing table, the non-dedicated core 1802 forwards the packet to the destination address, then the packet is sent to a device connected to the destination address through a port corresponding to the destination address, and the dedicated core 1803 forwards the mirror packet to a second preconfigured monitor port 1804.
For another example, in an event of processing a message sent by a router, the non-dedicated core 1802 applies for a second cache region in a non-mirror message pool of a second memory 1805 of the router, and stores the message in the second cache region, the non-dedicated core 1802 determines a destination address corresponding to the message according to a routing table, the non-dedicated core 1802 determines whether a second port 1801 corresponding to the destination address has a mirror service, and if the second port does not have the mirror service, the service is forwarded normally, and then the message is sent to a device connected to the port through a port corresponding to the destination address.
If the second port 1901 of the non-dedicated core 1802 has the mirror image service, the non-dedicated core 1802 applies for the first cache region in the mirror image packet pool of the second memory 1805, and the dedicated core 1803 copies the packet in the second cache region to the first cache region to obtain the mirror image packet. The non-dedicated core 1802 forwards the encapsulated packet to a destination address, and the dedicated core 1803 forwards the mirror packet to a second provisioned monitor port 1804.
In an exemplary embodiment, a storage medium comprising instructions, such as a memory comprising instructions, executable by processor 1610 of router 1600 to perform the above-described method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
An embodiment of the present invention further provides a computer program product, which, when running on an electronic device, enables the electronic device to execute a method for implementing any one of the port images described above in the embodiment of the present invention.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (4)

1. A method of port mirroring, the method being applied to a router comprising a first processing unit and a second processing unit, the method comprising:
if the first processing unit receives a message through a mirror image port with mirror image service in the router or needs to send the message through the mirror image port with mirror image service in the router, applying for a first cache region from a memory and informing the second processing unit;
the second processing unit copies the message into the first cache region to obtain a mirror image message;
the first processing unit forwards the mirror image message to a pre-configured monitoring port;
if the first processing unit is a processor, the second processing unit is a DMA controller;
before the first processing unit applies for the first cache region from the memory, the method further includes:
the processor applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
the first processing unit applies for a first cache region from the memory, including:
the processor applies for a first cache region in a mirror image message pool of the memory;
the second processing unit copies the packet to the first cache region to obtain a mirror image packet, including:
the DMA controller copies the message in the second cache region to the first cache region to obtain a mirror image message;
if the first processing unit and the second processing unit are the same special core for processing port mirror image service;
then, the router includes at least one non-dedicated core, and before the first processing unit applies for the first cache region from the memory, the method further includes:
the non-special core applies for a second cache region in a non-mirror image message pool of the memory of the router and stores the message in the second cache region;
the first processing unit applies for a first cache region from the memory, including:
the special core applies for a first cache region in a mirror image message pool of the memory;
the second processing unit copies the packet to the first cache region to obtain a mirror image packet, including:
and the special core copies the message in the second cache region into the first cache region to obtain a mirror image message.
2. The method of port mirroring according to claim 1, wherein the processor comprises at least one dedicated core for processing port mirroring traffic;
if the first processing unit receives a message through the mirror image port with the mirror image service in the router or needs to send the message through the mirror image port with the mirror image service in the router, applying for a first cache region from a memory and notifying the second processing unit, including:
if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router, the special core applies for a first cache region from a memory and informs the DMA controller;
the first processing unit forwards the mirror image message to a pre-configured monitoring port, including:
and the special core forwards the mirror image message to a pre-configured monitoring port.
3. A router, characterized in that the router comprises a first processing unit and a second processing unit,
the first processing unit is used for applying for a first cache region from a memory and informing the second processing unit if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router;
the second processing unit is used for copying the message into the first cache region to obtain a mirror image message;
the first processing unit is used for forwarding the mirror image message to a pre-configured monitoring port;
wherein, if
The first processing unit is a processor, and the second processing unit is a DMA controller;
the processor is specifically configured to apply for a second cache region in a non-mirror image packet pool of the memory of the router, and store the packet in the second cache region;
the processor is used for applying for a first cache region in a mirror image message pool of the memory;
the DMA controller is used for copying the message in the second cache region into the first cache region to obtain a mirror image message;
if the first processing unit and the second processing unit are the same special core for processing port mirror image service;
then, the router contains at least one non-dedicated core,
the non-dedicated core is used for applying for a second cache region in a non-mirror image message pool of the memory of the router before applying for a first cache region from the memory, and storing the message in the second cache region;
the special core is used for applying for a first cache region in a mirror image message pool of the memory;
the special core is used for copying the message in the second cache region into the first cache region to obtain a mirror image message.
4. The router of claim 3, wherein the processor comprises at least one dedicated core for processing port mirroring traffic;
the special core is used for applying for a first cache region from a memory and informing the DMA controller if a message is received through a mirror image port with mirror image service in the router or the message needs to be sent through the mirror image port with mirror image service in the router;
and the special core is used for forwarding the mirror image message to a pre-configured monitoring port.
CN201911221839.7A 2019-12-03 2019-12-03 Port mirroring method and router Active CN110798414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911221839.7A CN110798414B (en) 2019-12-03 2019-12-03 Port mirroring method and router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911221839.7A CN110798414B (en) 2019-12-03 2019-12-03 Port mirroring method and router

Publications (2)

Publication Number Publication Date
CN110798414A CN110798414A (en) 2020-02-14
CN110798414B true CN110798414B (en) 2022-03-18

Family

ID=69447145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911221839.7A Active CN110798414B (en) 2019-12-03 2019-12-03 Port mirroring method and router

Country Status (1)

Country Link
CN (1) CN110798414B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111970203A (en) * 2020-08-03 2020-11-20 江苏创通电子股份有限公司 Method for realizing port mirror image based on router
CN112468416B (en) * 2020-10-23 2022-08-30 曙光网络科技有限公司 Network flow mirroring method and device, computer equipment and storage medium
CN113938441B (en) * 2021-10-15 2022-07-12 南京金阵微电子技术有限公司 Data caching method, resource allocation method, cache, medium and electronic device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065017A (en) * 2010-12-31 2011-05-18 成都市华为赛门铁克科技有限公司 Message processing method and device
CN106559233A (en) * 2015-09-28 2017-04-05 中兴通讯股份有限公司 The mirror processing method and device of data flow
CN109120533A (en) * 2018-11-19 2019-01-01 迈普通信技术股份有限公司 A kind of file transmitting method and routing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7200144B2 (en) * 2001-10-18 2007-04-03 Qlogic, Corp. Router and methods using network addresses for virtualization

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102065017A (en) * 2010-12-31 2011-05-18 成都市华为赛门铁克科技有限公司 Message processing method and device
CN106559233A (en) * 2015-09-28 2017-04-05 中兴通讯股份有限公司 The mirror processing method and device of data flow
CN109120533A (en) * 2018-11-19 2019-01-01 迈普通信技术股份有限公司 A kind of file transmitting method and routing device

Also Published As

Publication number Publication date
CN110798414A (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN110798414B (en) Port mirroring method and router
US11700312B2 (en) Method and system for user plane path selection
JP6026705B2 (en) Update management system and update management method
US10534632B2 (en) Computer system and maintenance method of computer system
CN105323136B (en) Information processing method and device
US9999030B2 (en) Resource provisioning method
JP6520959B2 (en) Node system, server device, scaling control method and program
CN108418900B (en) Caching method, write-in point client and read client in server cluster system
US8908603B2 (en) MME restoration
CN110535676B (en) SMF dynamic disaster tolerance realization method, device, equipment and storage medium
WO2018171458A1 (en) Method and apparatus for operating network slices using shared risk groups
CN108632063B (en) Method, device and system for managing network slice instances
CN108924268A (en) A kind of container cloud service system and pod creation method, device
CN109155994A (en) A kind of user face method for managing resource, user's veil member and control plane network element
US10225232B2 (en) Method and system for idle mode transfer for load balancing across distributed data plane processing entities for mobile core network
JP6161784B2 (en) Enhancements to resource allocation for MBSFN transmission within MBSFN areas
US20180004563A1 (en) Orchestrator apparatus, system, virtual machine creation method, and computer-readable recording medium
CN110661894A (en) User IP address allocation method, network device and storage medium
CN106464516B (en) Event handling in a network management system
JP2000207370A (en) Distributed file management device and distributed file management system
JP2016086225A (en) Network system, program for gateway device, and program for management device
CN108989476A (en) A kind of address distribution method and device
WO2022007908A1 (en) Method for service collaboration between network element devices, and network element device
CN108009018B (en) Load adjusting method, device and system
Mishra et al. Pareto-optimal cost optimization for large scale cloud systems using joint allocation of resources

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
GR01 Patent grant
GR01 Patent grant