MAC address migration processing method and device and switching equipment

文档序号:1965934 发布日期:2021-12-14 浏览:5次 中文

阅读说明:本技术 Mac地址迁移处理方法、装置及交换设备 (MAC address migration processing method and device and switching equipment ) 是由 刘盈 于 2021-09-14 设计创作,主要内容包括:本申请提供一种MAC地址迁移处理方法、装置及交换设备,方法包括:在根据当前接收的报文监测到发生MAC地址迁移时,从MAC地址与类型标识对应关系表中,获取所述报文中源MAC地址对应的类型标识;按照所述类型标识对应的报文处理方式,对所述报文进行处理;其中:不同的类型标识对应不同的报文处理方式。这样,当不同报文被监测到发生了MAC地址迁移时,即可通过其所对应的类型标识,实现不同的处理,从而满足用户的多样化报文处理需求,实现较现有方式更为精细的控制。(The application provides a method, a device and a switching device for MAC address migration processing, wherein the method comprises the following steps: when monitoring that MAC address migration occurs according to a currently received message, acquiring a type identifier corresponding to a source MAC address in the message from a corresponding relation table of the MAC address and the type identifier; processing the message according to the message processing mode corresponding to the type identifier; wherein: different type identifications correspond to different message processing modes. Therefore, when different messages are monitored to have MAC address migration, different processing can be realized through the corresponding type identification, so that the diversified message processing requirements of users are met, and more precise control is realized compared with the existing mode.)

1. A MAC address migration processing method is characterized by comprising the following steps:

when monitoring that MAC address migration occurs according to a currently received message, obtaining a type identifier corresponding to a source MAC address in the message from a corresponding relation table of the MAC address and the type identifier;

processing the message according to the message processing mode corresponding to the type identifier; wherein: different type identifications correspond to different message processing modes.

2. The MAC address migration processing method according to claim 1, wherein before the occurrence of MAC address migration is monitored according to the currently received packet, the method further comprises:

receiving static MAC address configuration information;

and writing the MAC address and the type identifier carried in the static MAC address configuration information into the corresponding relation table of the MAC address and the type identifier.

3. The MAC address migration processing method according to claim 1, wherein processing the packet according to the packet processing method corresponding to the type identifier includes:

obtaining an ACL table item corresponding to the type identification;

and processing the message according to the ACL list item.

4. The MAC address migration processing method according to claim 1, wherein the MAC address and type identifier correspondence table is a MAC address table.

5. The MAC address migration processing method according to claim 1, wherein when it is monitored that MAC address migration occurs according to a currently received packet, the method further comprises:

and marking a first mark representing that the MAC address migration occurs on the message.

6. The MAC address migration processing method according to any one of claims 1 to 5, wherein the processing the packet according to the packet processing mode corresponding to the type identifier includes:

and when the message processing mode corresponding to the type identifier is to be uploaded to the CPU, marking a second mark representing that MAC address migration occurs on the message, and uploading the second mark to the CPU for processing.

7. A MAC address migration processing apparatus, comprising: the device comprises an acquisition module and a processing module;

the obtaining module is used for obtaining a type identifier corresponding to a source MAC address in a message from a corresponding relation table of an MAC address and the type identifier when the MAC address migration is monitored to occur according to the currently received message;

the processing module is used for processing the message according to the message processing mode corresponding to the type identifier; wherein: different type identifications correspond to different message processing modes.

8. The MAC address migration processing apparatus of claim 7,

the processing module is further used for marking a first mark representing the occurrence of the MAC address migration for the message when the occurrence of the MAC address migration is monitored according to the currently received message.

9. The MAC address migration processing apparatus according to claim 7 or 8,

when the packet processing mode corresponding to the type identifier is to be sent to the CPU, the processing module is specifically configured to: and marking a second mark representing that the MAC address migration occurs on the message, and uploading the second mark to a CPU for processing.

10. A switching device, comprising: a processor, a memory, and a communication bus;

the communication bus is used for realizing connection communication between the processor and the memory;

the processor is configured to execute one or more programs stored in the memory to implement the MAC address migration processing method according to any one of claims 1 to 6.

Technical Field

The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for MAC address migration processing, and a switching device.

Background

In the Network, after the switch receives various messages, the switch learns the source MAC (Media Access Control) address of the message, writes the learned MAC address and information of a corresponding message ingress port, a VLAN (Virtual Local Area Network) to which the message belongs into an MAC address table of the switch, and uses the MAC address table as a basis for forwarding the message. Addresses learned by such switch chip hardware are referred to as dynamic MAC addresses. In addition, the user can also actively send the MAC address of the connection device in the network and the corresponding port, VLAN, etc. to the MAC address table of the switch according to the networking requirements, and the address sent by such user is called a static MAC address. When a plurality of messages with the same source MAC address enter the switch device from different ports in the same VLAN, the switch considers that the MAC address migration occurs.

The reason for MAC address migration may be the presence of a two-layer loop or a change in the port of the device access switch. The switching chip can autonomously learn and complete the migration of the dynamic MAC address, but for the migration of the static MAC address, business software intervention is required to control the migration behavior of the MAC address. The switch chip may control the forwarding or discarding of the message or the sending of the message to a Central Processing Unit (CPU) for Processing, for the message migrated to the static MAC address.

However, these processes are all set based on the whole switching device or port, so that currently, for a packet whose static MAC address is migrated, all packets are forwarded, or all packets are discarded, or all packets are sent to the CPU for processing. This method cannot achieve more precise management and is not suitable for the flexible requirements of users.

In addition, because the MAC entry has a huge specification, if an Access Control List (ACL) entry is issued for each MAC to perform Control, ACL resources are exhausted, which may cause a functional abnormality of the switching device.

Disclosure of Invention

An object of the present embodiment is to provide a method, an apparatus, and a switching device for MAC address migration processing, so as to implement a fine processing on a migration packet of an MAC address.

The embodiment of the application provides a method for processing MAC address migration, which comprises the following steps: when monitoring that MAC address migration occurs according to a currently received message, obtaining a type identifier corresponding to a source MAC address in the message from a corresponding relation table of the MAC address and the type identifier; processing the message according to the message processing mode corresponding to the type identifier; wherein: different type identifications correspond to different message processing modes.

In the implementation process, when the message is monitored to have the MAC address migration, the type identifier corresponding to the message can be obtained through a preset corresponding relation table of the MAC address and the type identifier. In the embodiment of the present application, different message processing manners corresponding to different type identifiers are preset, so that the processing manner corresponding to the message can be determined by using the type identifier corresponding to the message, and further, the message can be processed according to the processing manner. Therefore, when different messages are monitored to be messages with MAC address migration, different processing can be realized through the corresponding type identification, so that the diversified message processing requirements of users are met, and more precise control is realized compared with the existing mode.

For example, the user has the following requirements: some networking equipment needs to upload the message with the MAC address migration to a CPU for processing in time so that the service can recognize the migration in time and perform corresponding processing; and some messages with MAC address migration need to be discarded. For the user requirements, by adopting the scheme provided by the embodiment of the application, the type identifiers corresponding to the MAC addresses of the messages with the MAC address migration and the processing modes corresponding to the type identifiers can be configured, so that the user requirements can be effectively met.

In addition, because the scheme of the application is different control aiming at the type corresponding to the message, an ACL table entry does not need to be issued for controlling each MAC address, so that the data volume increase of the equipment can be controlled within an acceptable range, and the method and the device can be popularized and applied in industry.

Further, before the monitoring of occurrence of MAC address migration according to the currently received packet, the method further includes: receiving static MAC address configuration information; and writing the MAC address and the type identifier carried in the static MAC address configuration information into the corresponding relation table of the MAC address and the type identifier.

In the implementation process, when the static MAC address configuration information is sent down and the static MAC address configuration is performed, the type identifier may be carried in the static MAC address configuration information, so as to implement association, and further, when the MAC address migration occurs in a subsequent message with the static MAC address, the subsequent message with the static MAC address may be correctly processed according to the user requirement.

Further, processing the packet according to the packet processing mode corresponding to the type identifier includes: obtaining an ACL table item corresponding to the type identification; and processing the message according to the ACL list item.

It should be understood that ACL entries may be used to specify the particular actions and rules that a message needs to perform. In the implementation process, the effective processing of the message with the MAC address migration can be effectively realized in the ACL table form.

Further, the correspondence table between the MAC address and the type identifier is an MAC address table.

In the implementation process, the MAC address table is used as the corresponding relation table of the MAC address and the type identifier, so that no table entry needs to be newly added in the equipment, and precious resources in the equipment can be effectively saved.

Further, when it is monitored that MAC address migration occurs according to the currently received packet, the method further includes: and marking a first mark representing that the message is the message with the MAC address migration.

It should be appreciated that in a switching device, multiple messages may be received at the same time by the switching device. In the actual application process, only part of the messages may have MAC address migration. By the mode, the message with the MAC address migration can be accurately identified from the plurality of messages by judging whether the message has the first mark, so that the correct processing of each message can be ensured.

Further, the processing the packet according to the packet processing mode corresponding to the type identifier includes: and when the message processing mode corresponding to the type identifier is to be uploaded to the CPU, marking a second mark representing that MAC address migration occurs on the message, and uploading the second mark to the CPU for processing.

In the implementation process, when the message with the MAC address migration is sent to the CPU, the second flag indicating that the message is the message with the MAC address migration is sent to the CPU, so that the CPU can identify the received message with the MAC address migration according to whether the second flag exists in the received message, and thus the service can determine which specific device has the MAC address migration according to the source MAC address in the message, and further the service can rapidly perform actions such as networking switching, and the like, thereby ensuring the normal functions of the service.

Further, the second flag is: hit MetaData (MetaData) in ACL entry; and the hit ACL table item indicates that the message processing mode corresponding to the message is the ACL table item which is sent to the CPU.

It should be understood that MetaData is one of the specified data present in the ACL entry that is set for the message. In the implementation process, the MetaData hitting the ACL table entry is used as a second mark, so that the message is the message which is sent to the CPU and has MAC address migration, and service identification is facilitated.

An embodiment of the present application further provides a MAC address migration processing apparatus, including: the device comprises an acquisition module and a processing module; the obtaining module is used for obtaining a type identifier corresponding to a source MAC address in a message from a corresponding relation table of an MAC address and the type identifier when the MAC address migration is monitored to occur according to the currently received message; the processing module is used for processing the message according to the message processing mode corresponding to the type identifier; wherein: different type identifications correspond to different message processing modes.

In the implementation structure, when different messages are monitored as messages with MAC address migration, different processing can be realized through the corresponding type identifiers, so that the diversified message processing requirements of users are met, and more detailed control is realized compared with the existing mode.

In addition, the device can perform different control according to the type corresponding to the message, so the device does not need to issue an ACL table item for control according to each MAC address, the increased data volume can be controlled within an acceptable range, and the device can be popularized and applied in industry.

Further, the processing module is further configured to mark a first mark representing occurrence of MAC address migration for the message when occurrence of MAC address migration is monitored according to the currently received message.

Further, when the packet processing mode corresponding to the type identifier is to be sent to the CPU, the processing module is specifically configured to: and marking a second mark representing that the MAC address migration occurs on the message, and uploading the second mark to a CPU for processing.

The embodiment of the application also provides a switching device, which comprises a processor, a memory and a communication bus; the communication bus is used for realizing connection communication between the processor and the memory; the processor is configured to execute one or more programs stored in the memory to implement any of the MAC address migration processing methods described above.

The embodiment of the present application further provides a readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement any one of the MAC address migration processing methods described above.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.

Fig. 1 is a schematic flowchart of a MAC address migration processing method according to an embodiment of the present application;

fig. 2 is a schematic diagram of a MAC address table according to an embodiment of the present application;

fig. 3 is a flowchart illustrating a more specific MAC address migration processing procedure according to an embodiment of the present application;

fig. 4 is a schematic structural diagram of a MAC address migration processing apparatus according to an embodiment of the present application;

fig. 5 is a schematic structural diagram of a switching device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

The first embodiment is as follows:

in order to solve the problem that the existing switching device can only perform unified processing on all messages with MAC address migration and cannot perform fine processing on the messages with MAC address migration, the embodiment of the application provides a method for processing MAC address migration. As shown in fig. 1, fig. 1 is a schematic flowchart of a MAC address migration processing method provided in this embodiment, and includes:

s101: and when the MAC address migration is monitored according to the currently received message, obtaining the type identifier corresponding to the source MAC address in the message from the corresponding relation table of the MAC address and the type identifier.

It should be understood that the switching device is configured with a MAC address table, where a VLAN and a message ingress port corresponding to each MAC address are recorded in the MAC address table, and when it is found that an ingress port of a currently received message is inconsistent with a message ingress port in the MAC address table, it may be considered that the message has MAC address migration, and at this time, the message is a message with MAC address migration.

It should also be understood that, in the embodiment of the present application, the MAC address and type identifier correspondence table may be configured in the process of configuring a static MAC address.

For example, the switching device may, when receiving the static MAC address configuration information, write the MAC address and the type identifier carried in the static MAC address configuration information into the MAC address and type identifier correspondence table in an associated manner.

It should be understood that, in the above example, the received static MAC address configuration information may be configured and input by the user directly on the switching device, so as to implement issuing; or static MAC address configuration information transmitted by other equipment is transmitted to realize the down-sending.

It should also be understood that, in the embodiment of the present application, the static MAC address configuration information may also not carry the type identifier, but the static MAC address and the type identifier are issued to the switching device through other information, so that the switching device associates the MAC address and the type identifier and writes the association into the MAC address and the type identifier correspondence table.

It should be understood that, in the actual application process, the type identifier may be classified by an engineer or a user according to actual requirements, and the type identifiers corresponding to various types of MAC addresses are set.

For example, static MAC addresses actively configured by the service may be classified into one class, the assignment type is identified as class id1, static MAC addresses synchronized by other boards are classified into one class, and the assignment type is identified as class id 2.

For another example, the user may classify all the MAC addresses of the first dedicated network into one class according to the flexible networking requirements, and the assignment type is classID1, and the assignment type is classID 2.

In the embodiment of the present application, the MAC address and type identifier correspondence table may be directly implemented by using an MAC address table in the switching device, so as to avoid generating a new table entry. For example, as shown in fig. 2, fig. 2 is a schematic diagram of a MAC address table illustrated in the embodiment of the present application, where class id is a type identifier in the embodiment of the present application.

S102: and processing the currently received message according to the message processing mode corresponding to the type identifier.

In the embodiment of the application, different message processing modes can be set for different type identifiers in advance according to service needs, so that different processing modes can be adopted for different types of messages with the MAC address migration, different processing for different types of messages with the MAC address migration is realized, and fine processing for the messages with the MAC address migration is realized.

It should be understood that, in the embodiment of the present application, the message processing manner may include at least one of three processing manners, that is, uploading a message in which the MAC address migration occurs to the CPU, discarding the message in which the MAC address migration occurs, and normally forwarding the message in which the MAC address migration occurs.

It should be noted that, in the switching device, the processing of the message may be controlled by the ACL table. Therefore, in the embodiment of the present application, the ACL table entry corresponding to each type identifier may be predefined, so that after the type identifier corresponding to the message with the MAC address migration is obtained, the ACL table entry corresponding to the type identifier is obtained (that is, the ACL table entry is hit), and thus the current message is processed according to the action specified in the ACL table entry.

It should be noted that, in the embodiment of the present application, for a processing mode of discarding a packet in which MAC address migration occurs, a corresponding ACL entry may not be configured, so that when a packet in which MAC address migration occurs is obtained, if an ACL entry corresponding to a type identifier of the packet in which MAC address migration occurs is not obtained, the packet in which MAC address migration occurs may be discarded, thereby further reducing data load in the switching device.

It should be noted that, in the actual message processing process, after the message enters the switch, the process of the switch two-layer forwarding flow is performed, and in the process, it is identified whether the message is a message with MAC address migration, and then the next processing flow is performed.

In each process, there are a large number of messages to be processed in the switch. In order to ensure that the switching device can accurately identify that the messages are messages with MAC address migration in the subsequent processing flow, in this embodiment of the present application, when it is monitored that MAC address migration occurs according to a currently received message, a first flag indicating that MAC address migration occurs may be marked on the message.

Therefore, after entering the message processing flow, the switching equipment can accurately identify the message with the first mark and the MAC address migration from each message to be processed, so that the message with the MAC address migration is processed according to the type identifier corresponding to the message with the MAC address migration and the message processing mode corresponding to the type identifier.

It should be noted that, in this embodiment of the present application, for a message with a processing mode of sending the message to the CPU and having an MAC address migration, when the message with the MAC address migration is sent to the CPU, a second flag indicating that the MAC address migration occurs may be marked on the message. Therefore, when the CPU receives the message, whether the message is the message with the MAC address migration can be determined by identifying whether the message has the second mark. Furthermore, for the identified message with the MAC address migration, the service can determine which specific device has the MAC address migration according to the source MAC address in the message, and then the service can rapidly perform actions such as networking switching and the like, thereby ensuring the normal functions of the service.

It should be understood that, in the embodiment of the present application, the second flag may be carried in the message in which the MAC address migration occurs, and is uploaded to the CPU together with the message in which the MAC address migration occurs.

It should also be understood that the marking of the first flag or the marking of the second flag in this embodiment refers to configuring the first flag or the second flag in the message.

It should be noted that, in the embodiment of the present application, the report of the MAC address migration may be sent to the CPU through an ACL entry. For convenience of description, the indication message processing mode is set as that the ACL entry sent to the CPU is a hit ACL entry.

And the action of marking a second mark representing the occurrence of MAC address migration for the message exists in the hit ACL table item. In the embodiment of the application, the added MetaData (MetaData) in the hit ACL table entry serves as the action of a second mark, so that the service identification is facilitated.

It should be understood that the second flag may also be implemented by using other data, for example, a preset character or a character string, which is not limited in the embodiment of the present application.

According to the MAC address migration processing method provided by the embodiment of the application, when the MAC address migration is monitored, the type identifier corresponding to the message with the MAC address migration can be obtained through the preset corresponding relation table of the MAC address and the type identifier. In the embodiment of the present application, different message processing manners corresponding to different type identifiers are preset, so that the processing manner corresponding to the message can be determined by using the type identifier corresponding to the message, and further, the message can be processed according to the processing manner. Therefore, when different messages are monitored to be messages with MAC address migration, different processing can be realized through the corresponding type identification, so that the diversified message processing requirements of users are met, and more precise control is realized compared with the existing mode.

For example, the user has the following requirements: some networking equipment needs to upload the message with the MAC address migration to a CPU for processing in time so that the service can recognize the migration in time and perform corresponding processing; and some messages with MAC address migration need to be discarded. For the user requirements, by adopting the scheme provided by the embodiment of the application, the type identifiers corresponding to the MAC addresses of the messages with the MAC address migration and the processing modes corresponding to the type identifiers can be configured, so that the user requirements can be effectively met.

In addition, because the scheme of the embodiment of the application performs different controls on the types corresponding to the messages, an ACL entry does not need to be issued for each MAC address to perform control, so that for equipment, the data volume increase can be controlled within an acceptable range, and the method and the device can be industrially popularized and applied.

In addition, in the scheme of the embodiment of the application, when the message with the MAC address migration is sent to the CPU, the second flag that indicates that the current message is the message with the MAC address migration is sent to the CPU, so that the CPU can identify that the received message is the message with the MAC address migration according to whether the second flag exists in the received message, and thus the service can determine which specific device has the MAC address migration according to the source MAC address in the message, and further the service can perform actions such as networking switching quickly, thereby ensuring normal functions of the service.

Example two:

the present embodiment takes a more specific implementation flow as an example on the basis of the first embodiment, and further illustrates the present application.

In a complex networking scheme, a service may issue a large number of MAC addresses to perform networking with an opposite-end device. In this embodiment, each MAC address related to one service may be classified, and the same type identifier (classId) is set for MAC addresses with the same processing requirement. For example, the MAC addresses actively configured by the service may be classified into one category, and the MAC addresses synchronized by other boards may be classified into one category. After sorting as required, each class is assigned a classId. And then when the service issues the static MAC address, writing the classId into the MAC address table of the switching chip together. The information in the MAC address table is shown in fig. 2.

Thereafter, referring to fig. 3, fig. 3 is a schematic flow chart of the scheme provided in this embodiment, including:

firstly, the message enters the switch to perform two-layer forwarding process.

The switch determines whether the message hits the MAC address table (i.e., determines whether the source MAC address in the message is in the MAC address table; if so, hit; if not, miss).

If the MAC address table is hit, whether MAC address migration occurs is judged. If not, the message can be forwarded normally. If the MAC address migration occurs, a flag (first flag) of address migration (Station Move) is marked in the descriptor information corresponding to the message to indicate that the MAC address migration occurs.

Then, the switch judges whether the message hits the ACL table entry. If so, the action specified by the ACL entry is performed. If not, the message is discarded.

It should be understood that the service will issue ACL entries for the incoming direction, and the hit condition of the ACL entries is type identification (classId) and address migration (Station Move) flag. The action specified by the ACL entry can be set as required, and can be to discard the message, or to forward the message, or to upload the message to the CPU for processing.

Therefore, the service can only send some messages to the CPU for subsequent processing according to requirements, thereby avoiding sending all messages to the CPU and reducing the impact on the CPU.

It should be noted that, because there are a large number of protocol messages sent to the CPU for processing in the actual networking, after sending the message received when the MAC address migration occurs to the CPU through the ACL entry, the service also needs to quickly identify which messages are received when the MAC address migration occurs, so as to perform actions such as networking switching, and ensure the normal functions of the service.

Therefore, in this embodiment, when the action to be executed by the hit ACL entry is to upload the CPU, an action to upload the specified MetaData (MetaData) is also executed. And the message hitting the ACL table entry is uploaded to the CPU and simultaneously carries the specified MetaData. Therefore, through the appointed MetaData, the service can quickly identify that the message sent to the CPU is subjected to MAC address migration, and further can determine which specific equipment is subjected to migration according to the source MAC address in the message, so that actions such as networking switching can be quickly carried out, and the normal functions of the service are guaranteed.

Through the scheme, the inherent realization limit of the exchange chip is broken through, different actions can be executed on different MAC addresses of different services when the migration occurs, different requirements of different users can be met, the impact on a CPU is reduced, ACL hardware resources are saved, and the services are ensured to rapidly identify the equipment with the address migration to perform corresponding processing.

Example three:

based on the same inventive concept, the embodiment of the present application further provides a MAC address migration processing apparatus 400. Referring to fig. 4, fig. 4 illustrates a MAC address migration processing apparatus using the method shown in fig. 1. It should be understood that the specific functions of the apparatus 400 can be referred to the above description, and the detailed description is omitted here as appropriate to avoid redundancy. The apparatus 400 includes at least one software functional module that can be stored in a memory in the form of software or firmware or solidified in an operating system of the apparatus 400.

Specifically, the method comprises the following steps:

referring to fig. 4, the apparatus 400 includes: an acquisition module 401 and a processing module 402. Wherein:

the obtaining module 401 is configured to, when it is monitored that MAC address migration occurs according to a currently received message, obtain a type identifier corresponding to a source MAC address in the message from a correspondence table between an MAC address and the type identifier;

the processing module 402 is configured to process the packet according to the packet processing mode corresponding to the type identifier; wherein: different type identifications correspond to different message processing modes.

In this embodiment of the present application, the obtaining module 401 is further configured to receive static MAC address configuration information; the processing module 402 is further configured to write the MAC address and the type identifier carried in the static MAC address configuration information into the MAC address and type identifier correspondence table.

In this embodiment of the present application, the processing module 402 is specifically configured to obtain an ACL entry corresponding to the type identifier; and processing the message according to the ACL list item.

In this embodiment of the present application, the MAC address and type identifier correspondence table is an MAC address table entry.

In this embodiment of the present application, when it is monitored that MAC address migration occurs in a current packet, the processing module 402 is further configured to, when it is monitored that MAC address migration occurs according to a currently received packet, allocate, to the packet, a first flag indicating that the packet is a packet in which MAC address migration occurs.

In a feasible implementation manner of the embodiment of the present application, when the message processing manner corresponding to the message is to send the message to a CPU, the processing module is specifically configured to: and marking a second mark representing that the MAC address migration occurs on the message, and uploading the second mark to a CPU for processing.

In the above possible embodiment, the second flag is: MetaData data in the target ACL entry; and the target ACL table entry indicates that the message processing mode corresponding to the message is an ACL table entry which is sent to a CPU.

It should be understood that, for the sake of brevity, the contents described in some embodiments are not repeated in this embodiment.

Example four:

the present embodiment provides a switching device, which is shown in fig. 5, and includes a processor 501, a memory 502, and a communication bus 503. Wherein:

the communication bus 503 is used to realize connection communication between the processor 501 and the memory 502.

The processor 501 is configured to execute one or more programs stored in the memory 502 to implement the MAC address migration processing method in the first embodiment and/or the second embodiment.

It will be appreciated that the configuration shown in figure 5 is merely illustrative and that the switching device may also include more or fewer components than shown in figure 5 or have a different configuration than shown in figure 5.

In this embodiment, the interaction device may be a switch, a router, or the like.

The present embodiment further provides a readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash Memory, a usb (Secure Digital Memory Card), an MMC (Multimedia Card), etc., in which one or more programs for implementing the above steps are stored, and the one or more programs can be executed by one or more processors to implement the MAC address migration processing method in the first embodiment and/or the second embodiment. And will not be described in detail herein.

In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.

In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

In this document, 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.

In this context, a plurality means two or more.

The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种联合时变信道跟踪与移相器网络实时校准方法及装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!