CN113794657B - MAC address migration processing method and device and switching equipment - Google Patents

MAC address migration processing method and device and switching equipment Download PDF

Info

Publication number
CN113794657B
CN113794657B CN202111075393.9A CN202111075393A CN113794657B CN 113794657 B CN113794657 B CN 113794657B CN 202111075393 A CN202111075393 A CN 202111075393A CN 113794657 B CN113794657 B CN 113794657B
Authority
CN
China
Prior art keywords
mac address
message
processing
migration
type identifier
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
CN202111075393.9A
Other languages
Chinese (zh)
Other versions
CN113794657A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN202111075393.9A priority Critical patent/CN113794657B/en
Publication of CN113794657A publication Critical patent/CN113794657A/en
Application granted granted Critical
Publication of CN113794657B publication Critical patent/CN113794657B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • H04L49/252Store and forward routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application provides a method and a device for processing MAC address migration and switching equipment, wherein the method comprises the following steps: when the occurrence of MAC address migration is monitored according to a currently received message, a type identifier corresponding to a source MAC address in the message is obtained from a corresponding relation table of the MAC address and the type identifier; processing the message according to a message processing mode corresponding to the type identifier; wherein: different type identifiers correspond to different message processing modes. Therefore, when different messages are monitored to have the MAC address migration, different processing can be realized through the corresponding type identifiers, so that the processing requirements of the diversified messages of users are met, and finer control is realized compared with the existing mode.

Description

MAC address migration processing method and device and switching equipment
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 exchanger receives various messages, the exchanger learns source MAC (Media Access Control ) addresses of the messages, writes the learned MAC addresses and corresponding message input ports into the MAC address table of the exchanger according to the information such as VLAN (Virtual Local Area Network ) and the like to which the messages belong, and uses the MAC address table as the basis for message forwarding. The address learned by the hardware of the switching chip is called a dynamic MAC address. In addition, the user can actively issue the MAC address of the connection device in the network, the corresponding port, VLAN and the like to the MAC address table of the switch according to the networking requirement, and the address issued by the user is called a static MAC address. When a plurality of messages with the same source MAC address enter the switch equipment from different ports in the same VLAN, the switch considers that the migration of the MAC address occurs.
The MAC address migration may occur due to the existence of a two-layer loop or a change in the ports of the device access switch, etc. The exchange chip can autonomously learn to complete the migration of the dynamic MAC address, but for the migration of the static MAC address, service software intervention is needed to control the migration behavior of the MAC address. The exchange chip can control the message forwarding or discarding or uploading the message to a CPU (Central Processing Unit/Processor) for processing aiming at the message migrated by the static MAC address.
However, these processes are all set based on the whole switching device or port, so that the messages migrated to the static MAC address are all forwarded, all discarded, or all sent to the CPU. However, this approach cannot achieve finer management, and cannot meet the flexible demands of users.
In addition, since the MAC entry size is huge, if control is performed for each MAC issue ACL (Access Control List ) entry, ACL resources are exhausted, which may cause malfunction of the switching device.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for processing migration of an MAC address and switching equipment, which are used for realizing the fine processing of a migration message of the MAC address.
The embodiment of the application provides a MAC address migration processing method, which comprises the following steps: when the MAC address migration is monitored according to the current received message, the type identifier corresponding to the source MAC address in the message is obtained from the corresponding relation table of the MAC address and the type identifier; processing the message according to a message processing mode corresponding to the type identifier; wherein: different type identifiers 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 application, different message processing modes corresponding to different type identifiers are preset, so that the processing mode corresponding to the message can be determined through the type identifier corresponding to the message, and further the message can be processed according to the processing mode. Therefore, 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 finer control is realized compared with the existing mode.
For example, the user has the following needs: some networking equipment needs to timely send the message with the MAC address migration to a CPU for processing, so that the service timely recognizes that the migration occurs and processes the message correspondingly; and some messages with MAC address migration need to be discarded. For the user requirements, the scheme provided by the embodiment of the application can be effectively satisfied by configuring 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.
In addition, because the scheme of the application carries out different control on the type corresponding to the message, ACL table items do not need to be issued for each MAC address for control, so that the increased data volume can be controlled within an acceptable range for equipment, and the application can be popularized and applied in industry.
Further, before the occurrence of the MAC address migration is monitored according to the currently received message, 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 a corresponding relation table of the MAC address and the type identifier.
In the implementation process, when static MAC address configuration information is issued and static MAC address configuration is carried out, the type identifier can be carried in the static MAC address configuration information, so that association is realized, and further, when the subsequent message with the static MAC address has MAC address migration, the subsequent message can be processed correctly according to the user requirement.
Further, according to the message processing mode corresponding to the type identifier, processing the message includes: acquiring an ACL table item corresponding to the type identifier; and processing the message according to the ACL table item.
It should be appreciated that ACL entries may be used to specify 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 by means of the ACL table entry.
Further, the corresponding relation table of the MAC address and the type identifier is an MAC address table.
In the implementation process, the MAC address table is adopted as the corresponding relation table of the MAC address and the type identifier, so that a new table entry in the equipment is not needed, and precious resources in the equipment can be effectively saved.
Further, when the occurrence of the MAC address migration is monitored according to the currently received message, the method further includes: marking a first mark for representing the message as the message with MAC address migration.
It should be understood that in a switching device, multiple messages may be received by the switching device at the same time. In the practical application process, only part of the messages may have MAC address migration. By the method, whether the message has the first mark or not can be accurately judged from the plurality of messages, and the message with the MAC address migration is identified, so that each message can be accurately processed.
Further, the processing the message according to the message processing mode corresponding to the type identifier includes: when the message processing mode corresponding to the type identifier is the uploading CPU, marking a second mark representing that the MAC address migration occurs for the message, and uploading the message to the CPU for processing.
In the implementation process, when the message with the MAC address migration is sent to the CPU, the second mark representing 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 mark exists in the received message, and the service can determine which equipment has the MAC address migration according to the source MAC address in the message, and further the service can quickly perform actions such as networking switching and the like, so that the normal function of the service is ensured.
Further, the second mark is: hit MetaData (MetaData) in ACL entries; and the hit ACL table entry indicates that the message processing mode corresponding to the message is an ACL table entry of an uplink CPU.
It should be appreciated that MetaData is one piece of designated data that exists in the ACL entry set for a message. In the implementation process, the MetaData hit in the ACL table entry is used as the second mark, so that the message can be effectively indicated to be the message sent to the CPU and having the MAC address migration, and the service identification is facilitated.
The embodiment of the application also provides a MAC address migration processing device, which comprises: the device comprises an acquisition module and a processing module; the acquisition module is used for acquiring a type identifier corresponding to a source MAC address in a message from a corresponding relation table of the MAC address and the type identifier when the MAC address migration is monitored according to the message received currently; the processing module is used for processing the message according to the message processing mode corresponding to the type identifier; wherein: different type identifiers correspond to different message processing modes.
In the implementation structure, when different messages are monitored to be 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 finer control is realized compared with the existing mode.
In addition, the device can control the types corresponding to the messages differently, so that the device does not need to issue ACL (access control list) items for each MAC address to control, and the increased data volume can be controlled within an acceptable range, thereby being popularized and applied in industry.
Further, the processing module is further configured to mark a first flag indicating that the MAC address migration occurs for the packet when the MAC address migration is monitored to occur according to the packet currently received.
Further, when the message processing mode corresponding to the type identifier is a upload CPU, the processing module is specifically configured to: marking a second mark representing the occurrence of MAC address migration for 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 one of the MAC address migration processing methods described above.
The embodiment of the application also provides a readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement any one of the above MAC address migration processing methods.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed 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 should not be considered as limiting the scope, and other related drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart 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 flow chart of a more specific MAC address migration process 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 accompanying drawings in the embodiments of the present application.
Embodiment one:
in order to solve the problem that the existing switching equipment can only perform unified processing on all messages with MAC address migration and cannot realize the fine processing on the messages with MAC address migration, the embodiment of the application provides a MAC address migration processing method. Referring to fig. 1, fig. 1 is a flow chart of a MAC address migration processing method provided in an embodiment of the present application, including:
s101: and when the MAC address migration is monitored according to the current received message, acquiring 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, a MAC address table is configured in the switching device, where a VLAN and a message input port corresponding to each MAC address are recorded, and when the input port of the currently received message is found to be inconsistent with the message input port in the MAC address table, the message is considered to have MAC address migration, and at this time, the message is the message with MAC address migration.
It should also be appreciated that in embodiments of the present application, the table of MAC address to type identifier correspondence may be configured during configuration of static MAC addresses.
For example, when receiving the static MAC address configuration information, the switching device may write the MAC address and the type identifier carried in the static MAC address configuration information into the table of correspondence between the MAC address and the type identifier.
It should be appreciated that in the above example, the received static MAC address configuration information may be configuration input directly by the user on the switching device, so as to implement the issuing; or the static MAC address configuration information is transmitted by other equipment to realize the issuing.
It should also be understood that, in the embodiment of the present application, the static MAC address configuration information may not carry the type identifier, but send the static MAC address and the type identifier to the switching device through other information, so that the switching device writes the association between the MAC address and the type identifier into the table of correspondence between the MAC address and the type identifier.
It should be understood that in the practical application process, the type identifier may be categorized by an engineer or a user according to the actual requirement, and the type identifier corresponding to each type of MAC address is set.
For example, static MAC addresses actively configured by a service may be classified into a class, an allocation type is identified as classID1, static MAC addresses synchronized by other boards are classified into a class, and an allocation type is identified as classID2.
For example, the user may classify the MAC addresses of all devices in the first private network into a class according to the flexible networking requirement, the allocation type is identified as class id1, the MAC addresses of all devices in the second private network are classified into a class, and the allocation type is identified as class id2.
In the embodiment of the application, the corresponding relation table of the MAC address and the type identifier can be directly realized by adopting the MAC address table in the switching equipment so as to avoid generating new table items. For example, referring to fig. 2, fig. 2 is a schematic diagram of a MAC address table according to an embodiment of the present application, where classID 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 preset for different types of identifiers according to service requirements, so that different processing modes can be adopted for processing different types of messages with MAC address migration, different processing of different types of messages with MAC address migration is realized, and the refinement processing of the messages with 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 the message with the MAC address migration to the CPU, discarding the message with the MAC address migration, and forwarding the message with the MAC address migration normally.
In the switching device, the processing of the message may be controlled by an ACL table. Therefore, in the embodiment of the present application, ACL entries corresponding to various types of identifiers may be predefined, so that after the type identifier corresponding to the message with MAC address migration is obtained, the ACL entry corresponding to the type identifier is obtained (i.e., the ACL entry is hit), so that the current message is processed according to the action specified in the ACL entry.
It should be noted that, in the embodiment of the present application, for the processing manner of discarding the message with the MAC address migration, the corresponding ACL entry may not be configured, so that when a message with the MAC address migration is not obtained, if the ACL entry corresponding to the type identifier of the message with the MAC address migration is not obtained, the message with the MAC address migration may be discarded, thereby further reducing the data burden in the switching device.
It should be noted that, in the actual message processing process, after the message enters the switch, the processing of the switch two-layer forwarding flow is performed, and whether the message is the message with the MAC address migration is identified in the process, and then the next processing flow is entered.
In each flow, there are a large number of messages to be processed in the switching device. In order to ensure that the switching device can accurately identify that the messages are the messages with the MAC address migration in the subsequent processing flow, in the embodiment of the present application, when the MAC address migration is monitored according to the currently received message, a first flag indicating that the MAC address migration occurs may be further marked on the message.
Thus, after entering the message processing flow, the switching device 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 mark corresponding to the message with the MAC address migration and the message processing mode corresponding to the type mark.
It should be noted that, in the embodiment of the present application, for a message with MAC address migration that is sent to the CPU in a processing manner, when the message with MAC address migration is sent to the CPU, a second flag indicating that MAC address migration is generated may be marked on the message. Thus, when the CPU receives the message, whether the message is the message with the MAC address migration or not 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 equipment has the MAC address migration according to the source MAC address in the message, so that the service can quickly perform actions such as networking switching and the like, and the normal function of the service is ensured.
It should be understood that, in the embodiment of the present application, the second flag may be carried in the message with the MAC address migration, and sent to the CPU together with the message with the MAC address migration.
It should also be understood that, in the embodiment of the present application, marking the first flag or marking the second flag 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 message with the MAC address migration may be sent to the CPU through the ACL entry. For convenience of description, it is assumed that the ACL entry indicating the message processing manner is to be sent to the CPU is the hit ACL entry.
And there is an act of marking the message with a second flag indicating that MAC address migration is occurring in the hit ACL entry. In the embodiment of the application, the action of which the added MetaData (MetaData) exists in the hit ACL table entry as a second mark is hit, so that the service identification is facilitated.
It should be understood that the second flag may be implemented 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 occurrence of MAC address migration is monitored, the type identifier corresponding to the message with the occurrence of 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 application, different message processing modes corresponding to different type identifiers are preset, so that the processing mode corresponding to the message can be determined through the type identifier corresponding to the message, and further the message can be processed according to the processing mode. Therefore, 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 finer control is realized compared with the existing mode.
For example, the user has the following needs: some networking equipment needs to timely send the message with the MAC address migration to a CPU for processing, so that the service timely recognizes that the migration occurs and processes the message correspondingly; and some messages with MAC address migration need to be discarded. For the user requirements, the scheme provided by the embodiment of the application can be effectively satisfied by configuring 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.
In addition, because the scheme of the embodiment of the application is different control for the type corresponding to the message, ACL table entries do not need to be issued for each MAC address for control, so that the increased data volume of the equipment can be controlled within an acceptable range, and the method and the device can be popularized and applied in industry.
In addition, in the scheme of the embodiment of the application, the second mark representing the current message as the message with the MAC address migration can be sent to the CPU when 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 mark exists in the received message, the service can determine which device has the MAC address migration according to the source MAC address in the message, and the service can further quickly perform actions such as networking switching and the like, thereby guaranteeing the normal function of the service.
Embodiment two:
the present embodiment further illustrates the present application based on the first embodiment by taking a more specific implementation flow as an example.
In a complex networking scheme, a service may send out a large number of MAC addresses to network with the peer device. In this embodiment, the MAC addresses related to a service may be categorized, and the same type identifier (classId) is set for the MAC addresses with the same processing requirements. For example, the MAC addresses actively configured by the service may be classified as one type, and the MAC addresses synchronized by other boards may be classified as one type. After categorizing as required, each class is assigned a classId. And then when the service issues a static MAC address, the classId is written into the MAC address table of the exchange 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 solution provided in this embodiment, including:
firstly, a message enters a switch to carry out two-layer forwarding flow processing.
The exchanger judges whether the message hits the MAC address table (namely, judges whether the source MAC address in the message is in the MAC address table, if yes, hits, if not, misses).
If the MAC address table is hit, judging whether the MAC address migration occurs. If not, the message can be forwarded normally. If the MAC address migration occurs, marking a mark (first mark) of address migration (Station Move) 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 item. If so, then the action specified by the ACL entry is performed. If not, the message is discarded.
It should be understood that the traffic will issue an ACL entry in the direction, the hit condition of which is a type identification (classId) and address migration (Station Move) flag. The action specified by the ACL table item can be set according to the requirement, and the action can be to discard the message, or to forward the message, or to send the message to a CPU for processing, etc.
Therefore, the service can send some messages to the CPU for subsequent processing according to the requirement, thus avoiding all messages from being sent to the CPU and reducing the impact on the CPU.
It should be noted that, because a large number of protocol messages are sent to the CPU for processing in the actual networking, after the messages received when the MAC address migration occurs are sent to the CPU through the ACL entries, the service needs to further have the function of quickly identifying 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.
For this reason, in the present embodiment, when the action to be performed on the hit ACL entry is to upload the CPU, an action to upload the specified MetaData (MetaData) is also performed. The message hitting the ACL entry carries the designated MetaData while being sent to the CPU. Therefore, through the designated MetaData, the service can quickly identify that the message sent to the CPU is subjected to MAC address migration, and then according to the source MAC address in the message, the specific equipment can be determined to be migrated, and further actions such as networking switching and the like can be quickly performed, so that the normal function of the service is ensured.
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 migration occurs, different requirements of different users can be met, the impact on a CPU (Central processing Unit) is reduced, the use of ACL hardware resources is saved, and the service is ensured to rapidly identify equipment with address migration to perform corresponding processing.
Embodiment III:
based on the same inventive concept, the embodiment of the application also provides a MAC address migration processing apparatus 400. Referring to fig. 4, fig. 4 illustrates a MAC address migration processing apparatus employing the method illustrated in fig. 1. It should be appreciated that the specific functions of the apparatus 400 may be found in the above description, and detailed descriptions are omitted herein as appropriate to avoid repetition. The apparatus 400 includes at least one software functional module that can be stored in memory in the form of software or firmware or cured in the operating system of the apparatus 400.
Specifically:
referring to fig. 4, an apparatus 400 includes: an acquisition module 401 and a processing module 402. Wherein:
the obtaining module 401 is configured to obtain, from a table of correspondence between MAC addresses and type identifiers, a type identifier corresponding to a source MAC address in a message when it is monitored that the MAC address migration occurs according to a currently received message;
the processing module 402 is configured to process the message according to a message processing manner corresponding to the type identifier; wherein: different type identifiers correspond to different message processing modes.
In the 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 table of correspondence between the MAC address and the type identifier.
In the 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 table item.
In the embodiment of the application, the corresponding relation table of the MAC address and the type identifier is an MAC address table item.
In this embodiment of the present application, when it is detected that the current packet has MAC address migration, the processing module 402 is further configured to allocate, to the packet, a first flag indicating that the packet is a packet having MAC address migration when it is detected that the MAC address migration has occurred according to the currently received packet.
In a possible implementation manner of the embodiment of the present application, when a message processing manner corresponding to the message is an upload CPU, the processing module is specifically configured to: marking a second mark representing the occurrence of MAC address migration for the message, and uploading the second mark to a CPU for processing.
In the foregoing possible implementation manner, the second flag is: metaData data in the target ACL entry; the target ACL table entry indicates that the message processing mode corresponding to the message is an ACL table entry of an uplink CPU.
It should be understood that, for simplicity of description, the descriptions in the first embodiment are omitted in this embodiment.
Embodiment four:
this embodiment provides a switching device, see fig. 5, comprising a processor 501, a memory 502 and a communication bus 503. Wherein:
a communication bus 503 is used to enable connected 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 and/or second embodiments.
It will be appreciated that the configuration shown in fig. 5 is merely illustrative, and that the switching device may also include more or fewer components than shown in fig. 5, or have a different configuration than shown in fig. 5.
In the embodiment of the application, the interaction device can be a switch, a router and the like.
The present embodiment also provides a readable storage medium, such as a floppy disk, an optical disk, a hard disk, a flash memory, a usb disk, an SD (Secure Digital Memory Card, secure digital Card) Card, an MMC (Multimedia Card) Card, or the like, in which one or more programs implementing the above steps are stored, and the one or more programs may be executed by one or more processors to implement the MAC address migration processing method in the above embodiment one and/or embodiment two. 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 manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
Further, the units described as separate units may or may not be physically separate, and units displayed as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
Furthermore, functional modules in various embodiments of the present application may be integrated together to form a single portion, or each module may exist alone, or two or more modules may be integrated to form a single portion.
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.
Herein, a plurality refers to 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 variations will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A MAC address migration processing method, comprising:
when the MAC address migration is monitored according to the current received message, the type identifier corresponding to the source MAC address in the message is obtained from the corresponding relation table of the MAC address and the type identifier;
processing the message according to a message processing mode corresponding to the type identifier; wherein: different type identifiers correspond to different message processing modes.
2. The MAC address migration processing method of claim 1, wherein before the occurrence of MAC address migration is monitored from the currently received message, 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 a corresponding relation table of the MAC address and the type identifier.
3. The MAC address migration processing method as claimed in claim 1, wherein processing the message according to a message processing manner corresponding to the type identifier includes:
acquiring an ACL table item corresponding to the type identifier;
and processing the message according to the ACL table item.
4. The MAC address migration processing method of claim 1, wherein the table of correspondence between MAC addresses and type identifiers is a MAC address table.
5. The MAC address migration processing method of claim 1, wherein when occurrence of MAC address migration is monitored from a currently received message, the method further comprises:
marking a first mark for representing the occurrence of MAC address migration for the message.
6. The method for MAC address migration processing according to any one of claims 1 to 5, wherein the processing the message according to the message processing manner corresponding to the type identifier includes:
when the message processing mode corresponding to the type identifier is the uploading CPU, marking a second mark representing that the MAC address migration occurs for the message, and uploading the message to the CPU for processing.
7. A MAC address migration processing apparatus, comprising: the device comprises an acquisition module and a processing module;
the acquisition module is used for acquiring a type identifier corresponding to a source MAC address in a message from a corresponding relation table of the MAC address and the type identifier when the MAC address migration is monitored according to the message received currently;
the processing module is used for processing the message according to the message processing mode corresponding to the type identifier; wherein: different type identifiers correspond to different message processing modes.
8. The MAC address migration processing apparatus according to claim 7, wherein,
the processing module is further configured to mark a first flag indicating that MAC address migration occurs for a message when the occurrence of MAC address migration is monitored according to a currently received message.
9. The MAC address migration processing apparatus according to claim 7 or 8, wherein,
when the message processing mode corresponding to the type identifier is the uploading CPU, the processing module is specifically configured to: marking a second mark representing the occurrence of MAC address migration for 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 as claimed in any one of claims 1 to 6.
CN202111075393.9A 2021-09-14 2021-09-14 MAC address migration processing method and device and switching equipment Active CN113794657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111075393.9A CN113794657B (en) 2021-09-14 2021-09-14 MAC address migration processing method and device and switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111075393.9A CN113794657B (en) 2021-09-14 2021-09-14 MAC address migration processing method and device and switching equipment

Publications (2)

Publication Number Publication Date
CN113794657A CN113794657A (en) 2021-12-14
CN113794657B true CN113794657B (en) 2023-10-31

Family

ID=78880219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111075393.9A Active CN113794657B (en) 2021-09-14 2021-09-14 MAC address migration processing method and device and switching equipment

Country Status (1)

Country Link
CN (1) CN113794657B (en)

Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079809A (en) * 2007-06-12 2007-11-28 中兴通讯股份有限公司 An Ethernet service processing method in Gbit passive optical network
CN101087251A (en) * 2007-06-30 2007-12-12 华为技术有限公司 A message forwarding method, system and communication device
CN101582834A (en) * 2008-05-16 2009-11-18 华为技术有限公司 Updating method, equipment and system of forwarding table during service transmission of Ethernet
CN101605084A (en) * 2009-06-29 2009-12-16 北京航空航天大学 Virtual network message processing method and system based on virtual machine
WO2010031295A1 (en) * 2008-09-22 2010-03-25 中兴通讯股份有限公司 Control method for ethernet failure recovery
CN101764753A (en) * 2009-12-28 2010-06-30 中兴通讯股份有限公司 Method and device for preventing switch ports from MAC address transfer
CN102316523A (en) * 2010-06-29 2012-01-11 ***通信集团公司 Load reallocation and migration methods and equipment, and system
CN104506462A (en) * 2014-12-16 2015-04-08 福建星网锐捷网络有限公司 MAC (Media Access Control) address management method and equipment in distributed switch
CN106412996A (en) * 2016-09-30 2017-02-15 杭州迪普科技有限公司 Message forwarding method and device
WO2017054718A1 (en) * 2015-09-29 2017-04-06 杭州华三通信技术有限公司 User migration
CN107154898A (en) * 2016-03-02 2017-09-12 中兴通讯股份有限公司 A kind of connection control method and device
CN107819708A (en) * 2016-09-12 2018-03-20 阿里巴巴集团控股有限公司 Data processing method, system and equipment based on virtual machine (vm) migration
CN108418740A (en) * 2018-02-28 2018-08-17 新华三技术有限公司 Message processing method and device
CN108429687A (en) * 2018-05-31 2018-08-21 新华三技术有限公司 Message forwarding method and device
CN108965131A (en) * 2018-07-27 2018-12-07 新华三技术有限公司 A kind of method and device of message forwarding
WO2020135567A1 (en) * 2018-12-28 2020-07-02 Alibaba Group Holding Limited Offload controller control of programmable switch
CN112543919A (en) * 2018-07-16 2021-03-23 亚马逊技术股份有限公司 Address migration service
CN112688940A (en) * 2020-12-23 2021-04-20 新华三技术有限公司 Message processing method and device
CN112968978A (en) * 2021-05-19 2021-06-15 南京烽火星空通信发展有限公司 Internet traffic distribution method based on SDN technology

Patent Citations (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079809A (en) * 2007-06-12 2007-11-28 中兴通讯股份有限公司 An Ethernet service processing method in Gbit passive optical network
CN101087251A (en) * 2007-06-30 2007-12-12 华为技术有限公司 A message forwarding method, system and communication device
CN101582834A (en) * 2008-05-16 2009-11-18 华为技术有限公司 Updating method, equipment and system of forwarding table during service transmission of Ethernet
WO2010031295A1 (en) * 2008-09-22 2010-03-25 中兴通讯股份有限公司 Control method for ethernet failure recovery
CN101605084A (en) * 2009-06-29 2009-12-16 北京航空航天大学 Virtual network message processing method and system based on virtual machine
CN101764753A (en) * 2009-12-28 2010-06-30 中兴通讯股份有限公司 Method and device for preventing switch ports from MAC address transfer
CN102316523A (en) * 2010-06-29 2012-01-11 ***通信集团公司 Load reallocation and migration methods and equipment, and system
CN104506462A (en) * 2014-12-16 2015-04-08 福建星网锐捷网络有限公司 MAC (Media Access Control) address management method and equipment in distributed switch
WO2017054718A1 (en) * 2015-09-29 2017-04-06 杭州华三通信技术有限公司 User migration
CN107154898A (en) * 2016-03-02 2017-09-12 中兴通讯股份有限公司 A kind of connection control method and device
CN107819708A (en) * 2016-09-12 2018-03-20 阿里巴巴集团控股有限公司 Data processing method, system and equipment based on virtual machine (vm) migration
CN106412996A (en) * 2016-09-30 2017-02-15 杭州迪普科技有限公司 Message forwarding method and device
CN108418740A (en) * 2018-02-28 2018-08-17 新华三技术有限公司 Message processing method and device
CN108429687A (en) * 2018-05-31 2018-08-21 新华三技术有限公司 Message forwarding method and device
CN112543919A (en) * 2018-07-16 2021-03-23 亚马逊技术股份有限公司 Address migration service
CN108965131A (en) * 2018-07-27 2018-12-07 新华三技术有限公司 A kind of method and device of message forwarding
WO2020135567A1 (en) * 2018-12-28 2020-07-02 Alibaba Group Holding Limited Offload controller control of programmable switch
CN112688940A (en) * 2020-12-23 2021-04-20 新华三技术有限公司 Message processing method and device
CN112968978A (en) * 2021-05-19 2021-06-15 南京烽火星空通信发展有限公司 Internet traffic distribution method based on SDN technology

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
A novel Routing and service migration scheme for communication among heterogeneous devices in pervasive environment;R.S. Shaji;《2011 International Conference on Computer, Communication and Electrical Technology (ICCCET)》;全文 *
基于VXLAN的跨数据中心虚拟机动态迁移组网设计实现;魏雪梅;《中国优秀硕士论文全文数据库》;全文 *
基于商用多媒体云平台的终端推送服务设计;王钰;叶徳建;微型电脑应用(第06期);全文 *
王钰;叶徳建.基于商用多媒体云平台的终端推送服务设计.微型电脑应用.2017,(第06期),全文. *

Also Published As

Publication number Publication date
CN113794657A (en) 2021-12-14

Similar Documents

Publication Publication Date Title
US10411971B2 (en) Method for unified communication of server, baseboard management controller, and server
CN109302466B (en) Data processing method, related device and computer storage medium
CN111988230B (en) Virtual machine communication method, device and system and electronic equipment
CN104579695A (en) Data forwarding device and method
CN109617816B (en) Data message transmission method and device
CN110224917B (en) Data transmission method, device and system and server
CN103986585A (en) Message preprocessing method and device
CN107547675B (en) User equipment migration method and device
CN109756490B (en) MDC (media data center) implementation method and device
CN104144130A (en) Virtual machine system interconnection method and system and access switch
CN112333733A (en) Network connection establishing method and electronic equipment
US8935696B2 (en) Communication method of virtual machines and server-end system
CN107896196B (en) Method and device for distributing messages
CN109286564B (en) Message forwarding method and device
CN112583655B (en) Data transmission method and device, electronic equipment and readable storage medium
CN113794657B (en) MAC address migration processing method and device and switching equipment
CN106375219B (en) Method and device for forwarding message
CN112543137A (en) Virtual machine network acceleration system based on semi-virtualization and OVS-DPDK
CN108965093B (en) VLAN (virtual local area network) distribution method and device
CN108124285B (en) Message transmission method and device
CN105939242B (en) Realize the method and device of virtual system
WO2021109851A1 (en) Network communication method, apparatus and device, and storage medium
CN112333162B (en) Service processing method and equipment
CN108989176A (en) A kind of virtual machine exchange visit methods, devices and systems
CN111865751B (en) Centralized gateway deployment method and device, centralized gateway and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant