CN113271266B - Message forwarding method and device of heterogeneous switching chip - Google Patents

Message forwarding method and device of heterogeneous switching chip Download PDF

Info

Publication number
CN113271266B
CN113271266B CN202110429709.3A CN202110429709A CN113271266B CN 113271266 B CN113271266 B CN 113271266B CN 202110429709 A CN202110429709 A CN 202110429709A CN 113271266 B CN113271266 B CN 113271266B
Authority
CN
China
Prior art keywords
message
forwarding
header information
packet
frame header
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
CN202110429709.3A
Other languages
Chinese (zh)
Other versions
CN113271266A (en
Inventor
高剑雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202110429709.3A priority Critical patent/CN113271266B/en
Publication of CN113271266A publication Critical patent/CN113271266A/en
Application granted granted Critical
Publication of CN113271266B publication Critical patent/CN113271266B/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/10Packet switching elements characterised by the switching fabric construction
    • H04L49/109Integrated on microchip, e.g. switch-on-chip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message forwarding method of heterogeneous exchange chips and a machine box type exchange device, wherein the method is applied to the machine box type exchange device, the machine box type exchange device comprises an exchange backboard FE and a plurality of business cards LC, the exchange chips of the FE are different from the exchange chips of the LC, the exchange chips of the LC are the same, the FE closes a message frame format detection function and an export check code calculation function, and the behaviors of an illegal address message register of the FE are set as forwarding behaviors; the method comprises the following steps: the first LC encapsulates a first message to be sent in an Ethernet format into a second message in a private frame format and sends the second message to the FE; and the FE matches a preset forwarding rule table according to the private frame header information of the second message, and forwards the second message according to a matching result. The embodiment of the invention can solve the problem that the message can not be forwarded across the service card when the heterogeneous exchange chip exists in the prior art.

Description

Message forwarding method and device of heterogeneous switching chip
Technical Field
The present invention relates to the field of data communications technologies, and in particular, to a method and an apparatus for forwarding a message of a heterogeneous switching chip.
Background
The machine box type switching device is a distributed switching device, and service data streams are deployed on a plurality of service cards (also called line cards, called LCs for short). The exchange chips among different service cards are not directly connected, but are connected through an exchange network board (FE card for short), and the working model is shown in figure 1.
In the case type switching equipment model, two service cards are respectively represented by LC-1 and LC-2, each service card comprises a switching chip, and the service cards are respectively represented by chip-1 and chip-2. The switch backplanes are denoted by FE, and each switch backplane contains one switch chip, denoted by chip-3.
Each service card LC has two ports, one is a backplane port, for connection to the backplane port of the switching backplane FE. Another panel port is used for interfacing with a service data stream.
The two business cards LC are connected through the exchange back plane FE. And forwarding the service flow in the same service card without passing through the exchange backboard FE card. Only traffic flows across the traffic cards LC need be forwarded through the switch backplane FE card.
The header of the message transmitted between the service card LC and the backplane port directly connected with the switch backplane FE card is a private agreement of each chip manufacturer, and agreements of different manufacturers are different.
Therefore, only the service card LC and the switch chip (chip-1/chip-2/chip-3) of the switch back plane FE belong to the same manufacturer's chip type, the service flow can realize the cross-card forwarding, and the forwarding process is shown in fig. 2:
1. the message of the service flow enters the service card LC-1 and is in the Ethernet frame format;
2. before the message is forwarded to the exchange backboard FE card through the backboard port of the business card LC-1, a layer of message header of private agreement of manufacturers needs to be packaged;
3. the exchange backboard FE card obtains that the forwarding outlet is to the business card LC-2 according to the private frame information of the message;
4. the service card LC-2 receives the private frame message, and the exchange chip-2 strips the private frame header to forward the service flow according to the internal analysis, and finally the message is forwarded in the Ethernet frame format.
However, the traffic in the above switch box switching scenario is forwarded across the chips of the switch backplane, and if the switch chips chip-1 and chip-2 of the traffic card LC are not identical to the switch chip-3 of the switch backplane FE, the traffic data flow cannot be forwarded across the traffic card because the proprietary frame header information agreed between the individual chip backplane ports is not identical.
Disclosure of Invention
The embodiment of the invention provides a message forwarding method and device of a heterogeneous switching chip, which are used for solving the problem that messages cannot be forwarded across service cards when the heterogeneous switching chip exists in the prior art.
According to the embodiment of the invention, a message forwarding method of a heterogeneous exchange chip is provided, the method is applied to a chassis-type exchange device, the chassis-type exchange device comprises an exchange backboard FE and a plurality of service cards LC, the exchange chips of the FE are different from the exchange chips of the LC, the exchange chips of the LC are the same, the FE closes a message frame format detection function and an export check code calculation function, and the behavior of an illegal address message register of the FE is set as forwarding behavior; the method comprises the following steps:
the first LC encapsulates a first message to be sent in an Ethernet format into a second message in a private frame format and sends the second message to the FE;
and the FE matches a preset forwarding rule table according to the private frame header information of the second message, and forwards the second message according to a matching result.
Optionally, the FE matches a preset forwarding rule table according to private frame header information of the second packet, and forwards the second packet according to a matching result, including:
the FE matches a preset access control ACL table according to the forwarding behavior in the private frame header information of the second message, and determines whether the second message is a message sent to a Central Processing Unit (CPU);
when the second message is not a message sent to the CPU, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message;
when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number;
and forwarding the second message to the LC corresponding to the target equipment number through the backboard port corresponding to the outlet port number.
Optionally, after determining whether the second packet is a packet sent to the CPU, the method further includes:
when the second message is a message sent to a CPU, according to whether the target equipment number in the private frame header information of the second message is the equipment number of the FE;
when the target equipment number is the equipment number of the FE, forwarding the second message to a CPU of the chassis type switching equipment;
when the target equipment number is not the equipment number of the FE, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message;
when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number;
and forwarding the second message to the LC corresponding to the target equipment number through the outlet port number.
Optionally, after the determining whether the second packet is a unicast packet, the method further includes:
and when the second message is a broadcast/multicast message, forwarding the second message at all other backboard ports except the backboard port for receiving the second message.
According to an embodiment of the present invention, there is further provided a chassis-type switching device, the chassis-type switching device including a switching backplane FE and a plurality of service cards LC, the switching chips of the FE being different from the switching chips of the LC, the switching chips of the plurality of LCs being identical,
the FE is used for closing a message frame format detection function and an export check code calculation function and setting the behavior of an illegal address message register of the FE as a forwarding behavior;
the LC is used for packaging a first message in an Ethernet format to be sent into a second message in a private frame format and sending the second message to the FE;
and the FE is further configured to match a preset forwarding rule table according to private frame header information of the second message, and forward the second message according to a matching result.
Optionally, the FE matches a preset forwarding rule table according to private frame header information of the second packet, and forwards the second packet according to a matching result, where the FE is specifically configured to:
determining whether the second message is a message sent to a Central Processing Unit (CPU) according to the fact that forwarding behavior in private frame header information of the second message is matched with a preset access control ACL table; when the second message is not a message sent to the CPU, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message; when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number; and forwarding the second message to the LC corresponding to the target equipment number through the backboard port corresponding to the outlet port number.
Optionally, after determining whether the second message is a message sent to the CPU, the FE is further configured to, when the second message is a message sent to the CPU, determine whether the destination device number in the private frame header information of the second message is a device number of the FE; when the target equipment number is the equipment number of the FE, forwarding the second message to a CPU of the chassis type switching equipment; when the target equipment number is not the equipment number of the FE, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message; when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number; and forwarding the second message to the LC corresponding to the target equipment number through the outlet port number.
Optionally, after determining whether the second packet is a unicast packet, the FE is further configured to forward the second packet when the second packet is a broadcast/multicast packet, except all other back plane ports that receive the back plane port of the second packet.
According to an embodiment of the present invention, there is further provided an electronic device including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the method when executing the program stored in the memory.
According to an embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the above-mentioned method steps.
The invention has the following beneficial effects:
the message forwarding method and the device for the heterogeneous exchange chip are applied to a box-type exchange device, wherein the box-type exchange device comprises FE and a plurality of LCs, the exchange chips of the FE are different from those of the LCs, the exchange chips of the LCs are the same, the FE closes a message frame format detection function and an export check code calculation function, and the behaviors of an illegal address message register of the FE are set as forwarding behaviors; packaging a first message to be sent in an Ethernet format into a second message in a private frame format through a first LC and sending the second message to the FE; and the FE matches a preset forwarding rule table according to the private frame header information of the second message, and forwards the second message according to a matching result. According to the embodiment of the invention, the special functions of the exchange chip are reasonably utilized according to the special attribute of the private frame of the LC, so that the forwarding of the heterogeneous exchange chip is realized. By closing the message frame format detection function of the FE and setting the behaviors of the illegal address message registers of the FE as forwarding behaviors, illegal MAC address message forwarding is realized, so that the private frame format message can enter the FE and be matched and forwarded through a pre-stored forwarding rule table, and the message forwarding problem of the heterogeneous switching chip is solved. The embodiment of the invention can support the data back plate forwarding among the exchange chips of different manufacturers on the premise of not changing the original design of the exchange chips of the chassis type exchange equipment and the head information of private messages of various manufacturers and the hardware design of the external network of the chip, and realize the cross-chip forwarding, thereby solving the problem that the private messages among different manufacturers cannot be forwarded and reducing the hardware cost of the exchange equipment.
Drawings
FIG. 1 is a schematic diagram of a working model of a chassis type switching device;
fig. 2 is a schematic diagram of a forwarding process message format of a chassis type switching device service flow;
FIG. 3 is a flow chart of a message forwarding method of a heterogeneous switching chip in an embodiment of the present invention;
fig. 4 is a schematic diagram of a message forwarding method of a heterogeneous switch chip implemented based on a chassis-type switching device in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Aiming at the problem that the heterogeneous exchange chip messages cannot be forwarded across service cards in the prior art, the message forwarding method of the heterogeneous exchange chip provided by the embodiment of the invention is applied to a machine box type exchange device, the machine box type exchange device comprises FE and a plurality of LCs, the exchange chips of the FE are different from the exchange chips of the LCs, the exchange chips of the LCs are the same, the FE allows private frame format messages of different types to enter the exchange chips of the FE by closing a message frame format detection function, and sets the behavior of an illegal address message register of the FE as forwarding behavior to prevent the MAC address of other private frame format messages from being identified as the illegal MAC address message and being discarded, and also closes an export check code calculation function, otherwise, the calculation modes of the private frame check codes are different due to different private frame formats, so that the problem that the message forwarding cannot be achieved due to the private frame check codes is prevented. The flow of the method of the invention is shown in figure 3, and the execution steps are as follows:
step 301, the first LC encapsulates a first packet in an ethernet format to be sent into a second packet in a private frame format and sends the second packet to the FE;
step 302, the FE matches a preset forwarding rule table according to the private frame header information of the second packet, and forwards the second packet according to the matching result.
In general, the private frame header information contains the following information { packet type, destination device number, destination port number, forwarding behavior }. Wherein,
message type: the method is generally of three types of unicast, multicast and broadcast, and some switching chips do not distinguish between multicast and broadcast;
destination device number: each device has a device number, such as chip-1, chip-2, chip-3 in FIG. 1;
destination port number: a certain port number specific to the destination device, for example port2-1 of the service card LC-2;
forwarding behavior: typically Forward, topu (send CPU) two types.
For example: a private frame header would contain { unicast, chip-2, port2-1, forward }.
The FE matches a preset forwarding rule table according to private frame header information of the second message, and forwards the second message according to a matching result, including:
the FE matches a preset access control (Access Control Lists, ACL) table according to the forwarding behavior in the private frame header information of the second message, and determines whether the second message is a message sent to a Central Processing Unit (CPU);
here, the table entry in the ACL table includes a message type, a destination device number, and a forwarding behavior, and in this step, it is determined whether the message is a message sent to the CPU according to the forwarding behavior in the private frame header information.
When the second message is not a message sent to the CPU, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message;
when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number;
and forwarding the second message to the LC corresponding to the target equipment number through the backboard port corresponding to the outlet port number.
Optionally, after determining whether the second packet is a packet sent to the CPU, the method further includes:
when the second message is a message sent to a CPU, according to whether the target equipment number in the private frame header information of the second message is the equipment number of the FE;
when the target equipment number is the equipment number of the FE, forwarding the second message to a CPU of the chassis type switching equipment;
when the target equipment number is not the equipment number of the FE, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message;
when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number; and obtaining an outlet port number corresponding to the destination device number, and sending the second message out of a physical port corresponding to the outlet port number.
And forwarding the second message to the LC corresponding to the target equipment number through the outlet port number.
Optionally, after the determining whether the second packet is a unicast packet, the method further includes:
and when the second message is a broadcast/multicast message, forwarding the second message at all other backboard ports except the backboard port for receiving the second message.
In the embodiment of the invention, the private frame format message is forwarded after being matched through the regular forwarding table, when the destination equipment number of the message to be forwarded is not the FC and the message to be forwarded is the unicast message, the equipment table is further queried for forwarding, the broadcast and multicast message is flooded, and the broadcast and multicast is performed on other back board ports after the source port is excluded from source discharging. For example, the service card LC-1 sends a broadcast message to the switching backplane FE, and enters from the backplane port 3-1, so that the broadcast message is sent from all the other backplane ports except the backplane port 3-1.
In addition, in the embodiment of the invention, the FE exchange chip can close the port to calculate the outlet check code, each message has a check code, the existing flow of the outlet of the exchange chip can recalculate the check code of the message, but the private frame check code calculation modes of different manufacturers are different, some calculate the check code of the message data, and some calculate the check code of the whole message, so the check code calculation is needed to be closed, otherwise, the check code of the private frame is wrong, and the message forwarding of the heterogeneous exchange chip cannot be completed.
The message forwarding method of the heterogeneous switch chip is further described below with reference to fig. 4 in a specific embodiment.
In this embodiment, it is assumed that a network service flow unicast message enters from port1-1 of line card LC-1, and an exit is at port2-1 of service LC-2, and the whole process is as follows:
(1) the message enters a service card LC-1, and the outlet of the flow of the exchange chip in the service card is the port2-1 of the service card LC 2;
(2) the cross-service card forwarding needs to pass through FE, and the message is packaged into a private frame format and enters the exchange backboard FE card through the backboard port 3-1;
(3) the FE receives the private frame message, and needs to allow the message to enter the exchange chip;
here, the register of the detection message frame format of the switching chip of the FE is set to be closed (or preamble detection);
because proprietary frame formats of different manufacturers are different, the message frame format detection is performed before the switch chip enters, so that the message frame format detection function needs to be closed.
In addition, the behaviors of illegal address message registers of the exchange chip of the FE are set as forwarding behaviors;
because the private frame format message enters the switching chip, the MAC address of the two-layer header is illegal according to the standard ethernet frame format, so here the illegal address message register behavior needs to be set to forward, and this register defaults to discard the message.
(4) Forwarding is performed according to the content of the private frame header information.
Specifically, according to the private frame header information, the message forwarding is performed through field matching of an ACL table.
ACL access control table: and matching the message according to a predefined rule, and designating a table of forwarding rules of the message.
The private frame header information of each manufacturer contains the following information { message type, destination device number, destination port number, forwarding behavior }.
Message type: the method is generally of three types of unicast, multicast and broadcast, and some switching chips do not distinguish between multicast and broadcast;
destination device number: each device has a device number, such as chip-1, chip-2, chip-3 in FIG. four;
destination port number: a certain port number specific to the destination device, for example port2-1 of the service card LC-2;
forwarding behavior: typically Forward, topu (send CPU) two types.
For example, the private frame header information in this embodiment includes { unicast, chip-2, port2-1, forward }.
Device table: a table for forwarding across the switch chip exists in the set-top box switch. If the forwarding destination device number of the message is not local, the device table is queried.
The device forwarding table of the back plane FE card in fig. four is as follows:
destination equipment number Outlet Port number Forwarding behavior
chip-1 Backboard port 3-1 Forward (Forwarding)
chip-2 Backboard port 3-2 Forward (Forwarding)
chip-3 N/A N/A
List one
The unicast messages of the service cards LC-1 and LC-2 hit the ACL unicast list items and are forwarded from a specific physical port through the forwarding of the equipment list. For example, the unicast message of the service card LC-1 will hit the ACL entry { unicast, chip-2}, and be forwarded from the backplane port 3-2 through the device table { chip-1, backplane port 3-2 }.
Some communication messages between the service cards LC-1 and LC-2 and the switching backplane FE need to be sent to the CPU for processing, so that an entry for sending to the local CPU needs to be specially added on the ACL entry.
Broadcast and multicast messages sent by the service cards LC-1 and LC-2 need to be flooded to other back ports except the source port. For example, the service card LC-1 sends a broadcast message to the switching backplane FE, and enters from the backplane port 3-1, so that the broadcast message is sent from all the other backplane ports except the backplane port 3-1.
(5) The FE closes the outlet check code calculation function of the port;
each message has a check code of 4 bytes, the existing outlet flow of the exchange chip can recalculate the check codes of the messages, but the check code calculation of the private frame format messages of different manufacturers is different, some are the check codes for calculating the message data, some are the check codes for calculating the whole message, the check code calculation needs to be closed, otherwise, the check codes of the private frame format messages are wrong, and message forwarding is affected.
(6) The private frame format message is forwarded to a service card LC-2 through a backboard port 3-2 of the FE, the service card LC-2 analyzes the private frame header message, a destination port is a port2-1, and the message is forwarded through the port2-1 according to the Ethernet.
The message forwarding method of the heterogeneous exchange chip is applied to a machine box type exchange device, the machine box type exchange device comprises FE and a plurality of LCs, the exchange chips of the FE are different from those of the LCs, the exchange chips of the LCs are the same, the FE closes a message frame format detection function and an export check code calculation function, and the behaviors of an illegal address message register of the FE are set as forwarding behaviors; packaging a first message to be sent in an Ethernet format into a second message in a private frame format through a first LC and sending the second message to the FE; and the FE matches a preset forwarding rule table according to the private frame header information of the second message, and forwards the second message according to a matching result. According to the embodiment of the invention, the special functions of the exchange chip are reasonably utilized according to the special attribute of the private frame of the LC, so that the forwarding of the heterogeneous exchange chip is realized. By closing the message frame format detection function of the FE and setting the behaviors of the illegal address message registers of the FE as forwarding behaviors, illegal MAC address message forwarding is realized, so that the private frame format message can enter the FE and be matched and forwarded through a pre-stored forwarding rule table, and the message forwarding problem of the heterogeneous switching chip is solved. The embodiment of the invention can support the data back plate forwarding among the exchange chips of different manufacturers on the premise of not changing the original design of the exchange chips of the chassis type exchange equipment and the head information of private messages of various manufacturers and the hardware design of the external network of the chip, and realize the cross-chip forwarding, thereby solving the problem that the private messages among different manufacturers cannot be forwarded and reducing the hardware cost of the exchange equipment.
Based on the same inventive concept, the embodiment of the invention provides a chassis-type switching device, which comprises a switching back plane FE and a plurality of service cards LC, wherein the switching chips of the FE are different from the switching chips of the LC, the switching chips of the LC are the same,
the FE is used for closing a message frame format detection function and an export check code calculation function and setting the behavior of an illegal address message register of the FE as a forwarding behavior;
the LC is used for packaging a first message in an Ethernet format to be sent into a second message in a private frame format and sending the second message to the FE;
and the FE is further configured to match a preset forwarding rule table according to private frame header information of the second message, and forward the second message according to a matching result.
Optionally, the FE matches a preset forwarding rule table according to private frame header information of the second packet, and forwards the second packet according to a matching result, where the FE is specifically configured to:
determining whether the second message is a message sent to a Central Processing Unit (CPU) according to the fact that forwarding behavior in private frame header information of the second message is matched with a preset access control ACL table; when the second message is not a message sent to the CPU, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message; when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number; and forwarding the second message to the LC corresponding to the target equipment number through the backboard port corresponding to the outlet port number.
Optionally, after determining whether the second message is a message sent to the CPU, the FE is further configured to, when the second message is a message sent to the CPU, determine whether the destination device number in the private frame header information of the second message is a device number of the FE; when the target equipment number is the equipment number of the FE, forwarding the second message to a CPU of the chassis type switching equipment; when the target equipment number is not the equipment number of the FE, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message; when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number; and forwarding the second message to the LC corresponding to the target equipment number through the outlet port number.
Optionally, after determining whether the second packet is a unicast packet, the FE is further configured to forward the second packet when the second packet is a broadcast/multicast packet, except all other back plane ports that receive the back plane port of the second packet.
It should be understood that the principles and processes for implementing the chassis-type switching device provided in the embodiments of the present invention are similar to those of the embodiments shown in fig. 3 and described above, and are not repeated herein.
The message forwarding method and the device for the heterogeneous exchange chip are applied to a box-type exchange device, wherein the box-type exchange device comprises FE and a plurality of LCs, the exchange chips of the FE are different from those of the LCs, the exchange chips of the LCs are the same, the FE closes a message frame format detection function and an export check code calculation function, and the behaviors of an illegal address message register of the FE are set as forwarding behaviors; packaging a first message to be sent in an Ethernet format into a second message in a private frame format through a first LC and sending the second message to the FE; and the FE matches a preset forwarding rule table according to the private frame header information of the second message, and forwards the second message according to a matching result. According to the embodiment of the invention, the special functions of the exchange chip are reasonably utilized according to the special attribute of the private frame of the LC, so that the forwarding of the heterogeneous exchange chip is realized. By closing the message frame format detection function of the FE and setting the behaviors of the illegal address message registers of the FE as forwarding behaviors, illegal MAC address message forwarding is realized, so that the private frame format message can enter the FE and be matched and forwarded through a pre-stored forwarding rule table, and the message forwarding problem of the heterogeneous switching chip is solved. The embodiment of the invention can support the data back plate forwarding among the exchange chips of different manufacturers on the premise of not changing the original design of the exchange chips of the chassis type exchange equipment and the head information of private messages of various manufacturers and the hardware design of the external network of the chip, and realize the cross-chip forwarding, thereby solving the problem that the private messages among different manufacturers cannot be forwarded and reducing the hardware cost of the exchange equipment.
The embodiment of the application further provides an electronic device, please refer to fig. 5, which includes a processor 310, a communication interface 320, a memory 330 and a communication bus 340, wherein the processor 310, the communication interface 320 and the memory 330 complete communication with each other through the communication bus 340.
A memory 330 for storing a computer program;
the processor 310 is configured to implement the message forwarding method of the heterogeneous switch chip according to any one of the above embodiments when executing the program stored in the memory 330.
The communication interface 320 is used for communication between the electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processing, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
According to the scheme, the data back plate forwarding among the exchange chips of different manufacturers can be supported on the premise that the original design of the exchange chips of the chassis type exchange equipment is not changed and the head information of private messages of various manufacturers and the hardware design of the off-chip network are not changed, so that the cross-chip forwarding is realized, the problem that the private messages among different manufacturers cannot be forwarded is solved, and the hardware cost of the exchange equipment is reduced.
Accordingly, an embodiment of the present application further provides a computer readable storage medium, where instructions are stored, when the computer readable storage medium runs on a computer, to cause the computer to execute the method for forwarding a message of the heterogeneous switch chip according to any one of the foregoing embodiments.
According to the scheme, the data back plate forwarding among the exchange chips of different manufacturers can be supported on the premise that the original design of the exchange chips of the chassis type exchange equipment is not changed and the head information of private messages of various manufacturers and the hardware design of the off-chip network are not changed, so that the cross-chip forwarding is realized, the problem that the private messages among different manufacturers cannot be forwarded is solved, and the hardware cost of the exchange equipment is reduced.
Those of ordinary skill in the art will appreciate that: the drawing is a schematic diagram of one embodiment and the modules or flows in the drawing are not necessarily required to practice the invention.
From the above description of embodiments, it will be apparent to those skilled in the art that the present invention may be implemented in software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, with reference to the description of method embodiments in part. The apparatus and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
In addition, in some of the above embodiments and the flows described in the drawings, a plurality of operations appearing in a specific order are included, but it should be clearly understood that the operations may be performed out of the order in which they appear herein or performed in parallel, the sequence numbers of the operations such as 201, 202, 203, etc. are merely used to distinguish between the various operations, and the sequence numbers themselves do not represent any order of execution. In addition, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first" and "second" herein are used to distinguish different messages, devices, modules, etc., and do not represent a sequence, and are not limited to the "first" and the "second" being different types.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims and the equivalents thereof, the present invention is also intended to include such modifications and variations.

Claims (10)

1. The method is applied to a case type switching device, the case type switching device comprises a switching back plane FE and a plurality of service cards LC, the switching chips of the FE and the switching chips of the LC have different private frame formats, and the switching chips of the plurality of LC have the same private frame format, and is characterized in that the FE closes a message frame format detection function and an export check code calculation function and sets the behaviors of an illegal address message register of the FE as forwarding behaviors; the method comprises the following steps:
the first LC encapsulates a first message to be sent in an Ethernet format into a second message in a private frame format and sends the second message to the FE; and the FE matches a preset forwarding rule table according to the private frame header information of the second message, and forwards the second message according to a matching result.
2. The method of claim 1, wherein the FE matches a preset forwarding rule table according to private frame header information of the second packet, and forwarding the second packet according to a matching result includes:
the FE matches a preset access control ACL table according to the forwarding behavior in the private frame header information of the second message, and determines whether the second message is a message sent to a Central Processing Unit (CPU);
when the second message is not a message sent to the CPU, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message;
when the second message is a unicast message, inquiring a preset setting according to the destination equipment number of the private frame header information
A standby table, obtaining an outlet port number corresponding to the destination equipment number; the device table comprises the corresponding relation between the target device number and the outlet port number;
and forwarding the second message to the LC corresponding to the target equipment number through the backboard port corresponding to the outlet port number.
3. The method of claim 2, wherein after determining whether the second message is a message sent to a CPU, the method further comprises:
when the second message is a message sent to a CPU, according to whether the target equipment number in the private frame header information of the second message is the equipment number of the FE;
when the target equipment number is the equipment number of the FE, forwarding the second message to a CPU of the chassis type switching equipment;
when the target equipment number is not the equipment number of the FE, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message;
when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number;
and forwarding the second message to the LC corresponding to the target equipment number through the outlet port number.
4. A method according to claim 2 or 3, wherein after said determining whether said second message is a unicast message, the method further comprises:
and when the second message is a broadcast/multicast message, forwarding the second message at all other backboard ports except the backboard port for receiving the second message.
5. A chassis-type switching device, said chassis-type switching device comprising a switching backplane FE and a plurality of service cards LC, said FE switching chips having different proprietary frame formats than LC switching chips, said plurality of LC switching chips having the same proprietary frame format, characterized in that,
the FE is used for closing a message frame format detection function and an export check code calculation function and setting the behavior of an illegal address message register of the FE as a forwarding behavior;
the LC is used for packaging a first message in an Ethernet format to be sent into a second message in a private frame format and sending the second message to the FE;
and the FE is further configured to match a preset forwarding rule table according to private frame header information of the second message, and forward the second message according to a matching result.
6. The device of claim 5, wherein the FE matches a preset forwarding rule table according to private frame header information of the second packet, and forwards the second packet according to a matching result, specifically configured to:
determining whether the second message is a message sent to a Central Processing Unit (CPU) according to the fact that forwarding behavior in private frame header information of the second message is matched with a preset access control ACL table; when the second message is not a message sent to the CPU, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message; when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number; and forwarding the second message to the LC corresponding to the target equipment number through the backboard port corresponding to the outlet port number.
7. The device of claim 6, wherein the FE, after determining whether the second packet is a packet sent to the CPU, is further configured to, when the second packet is a packet sent to the CPU, determine whether a destination device number in the private frame header information of the second packet is a device number of the FE; when the target equipment number is the equipment number of the FE, forwarding the second message to a CPU of the chassis type switching equipment; when the target equipment number is not the equipment number of the FE, determining whether the second message is a unicast message according to the message type in the private frame header information of the second message; when the second message is a unicast message, inquiring a preset device table according to a destination device number of the private frame header information to obtain an outlet port number corresponding to the destination device number; the device table comprises the corresponding relation between the target device number and the outlet port number; and forwarding the second message to the LC corresponding to the target equipment number through the outlet port number.
8. The apparatus according to claim 6 or 7, wherein after the FE determines whether the second packet is a unicast packet, the FE is further configured to forward the second packet on all other back plane ports except the back plane port that receives the second packet when the second packet is a broadcast/multicast packet.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are in communication with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-4.
CN202110429709.3A 2021-04-21 2021-04-21 Message forwarding method and device of heterogeneous switching chip Active CN113271266B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110429709.3A CN113271266B (en) 2021-04-21 2021-04-21 Message forwarding method and device of heterogeneous switching chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110429709.3A CN113271266B (en) 2021-04-21 2021-04-21 Message forwarding method and device of heterogeneous switching chip

Publications (2)

Publication Number Publication Date
CN113271266A CN113271266A (en) 2021-08-17
CN113271266B true CN113271266B (en) 2024-03-22

Family

ID=77229096

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110429709.3A Active CN113271266B (en) 2021-04-21 2021-04-21 Message forwarding method and device of heterogeneous switching chip

Country Status (1)

Country Link
CN (1) CN113271266B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113938428B (en) * 2021-09-06 2023-06-16 锐捷网络股份有限公司 Cross-chip data stream forwarding method and device
CN114157533B (en) * 2021-12-06 2023-05-26 北京锐安科技有限公司 Message cross-board multicast replication forwarding method and system based on CLOS architecture
CN114189484B (en) * 2021-12-28 2023-10-27 杭州迪普科技股份有限公司 Method and device for forwarding message internally
CN115086392B (en) * 2022-06-01 2023-07-07 珠海高凌信息科技股份有限公司 Data plane and switch based on heterogeneous chip

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070069822A (en) * 2005-12-28 2007-07-03 전자부품연구원 Switching system and its mechanism which enables data-switching of variable-length packets and heterogeneous network packets
CN101060498A (en) * 2007-06-22 2007-10-24 杭州华三通信技术有限公司 A method for realizing the gateway Mac binding, assembly, gateway and layer 2 switch
US7593427B1 (en) * 2001-09-21 2009-09-22 Cisco Technology, Inc. Method and apparatus for automatic detection and provisioning of DS3 frame formats
CN102857420A (en) * 2012-08-24 2013-01-02 中兴通讯股份有限公司 Protective method of cross line card, associated device, and method and system for accessing line card service to PTN (Packet Transport Network)
CN103236992A (en) * 2013-04-03 2013-08-07 武汉烽火网络有限责任公司 Method for interconnecting back plates of rack-mounted system
CN103312614A (en) * 2013-07-02 2013-09-18 福建星网锐捷网络有限公司 Multicast message processing method, line card and communication device
CN104283817A (en) * 2013-07-03 2015-01-14 杭州华三通信技术有限公司 Method for achieving communication of switching line card and logic line card and packet transmitting equipment
CN107342958A (en) * 2017-06-29 2017-11-10 迈普通信技术股份有限公司 Distributed communication equipment and interplate communication method
WO2017206787A1 (en) * 2016-06-02 2017-12-07 中兴通讯股份有限公司 Message forwarding control method for communication network device, and communication network device
CN108521378A (en) * 2018-04-23 2018-09-11 天津芯海创科技有限公司 Retransmission method, device and the network switching equipment of heterogeneous protocol message
CN108667732A (en) * 2018-05-22 2018-10-16 新华三技术有限公司 A kind of message forwarding method and device
CN108768866A (en) * 2018-09-06 2018-11-06 迈普通信技术股份有限公司 Across the card retransmission method of multicast message, device, the network equipment and readable storage medium storing program for executing
CN110380970A (en) * 2019-07-22 2019-10-25 北京邮电大学 A kind of self-adapting data message forwarding method and device suitable for heterogeneous network
CN111107087A (en) * 2019-12-19 2020-05-05 杭州迪普科技股份有限公司 Message detection method and device
CN111262800A (en) * 2020-01-19 2020-06-09 天津芯海创科技有限公司 Service data communication method and system of Ethernet switch
CN111935300A (en) * 2020-08-19 2020-11-13 腾讯科技(深圳)有限公司 Message processing method and device, computer equipment and storage medium
CN112422444A (en) * 2020-10-09 2021-02-26 锐捷网络股份有限公司 Method and device for forwarding message across cards
CN112486896A (en) * 2020-11-30 2021-03-12 锐捷网络股份有限公司 Service card management device, method, equipment and medium of rack-mounted switch

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8638791B2 (en) * 2009-11-24 2014-01-28 Verizon Patent And Licensing Inc. Heterogeneous forwarding information bases in line cards

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7593427B1 (en) * 2001-09-21 2009-09-22 Cisco Technology, Inc. Method and apparatus for automatic detection and provisioning of DS3 frame formats
KR20070069822A (en) * 2005-12-28 2007-07-03 전자부품연구원 Switching system and its mechanism which enables data-switching of variable-length packets and heterogeneous network packets
CN101060498A (en) * 2007-06-22 2007-10-24 杭州华三通信技术有限公司 A method for realizing the gateway Mac binding, assembly, gateway and layer 2 switch
CN102857420A (en) * 2012-08-24 2013-01-02 中兴通讯股份有限公司 Protective method of cross line card, associated device, and method and system for accessing line card service to PTN (Packet Transport Network)
CN103236992A (en) * 2013-04-03 2013-08-07 武汉烽火网络有限责任公司 Method for interconnecting back plates of rack-mounted system
CN103312614A (en) * 2013-07-02 2013-09-18 福建星网锐捷网络有限公司 Multicast message processing method, line card and communication device
CN104283817A (en) * 2013-07-03 2015-01-14 杭州华三通信技术有限公司 Method for achieving communication of switching line card and logic line card and packet transmitting equipment
WO2017206787A1 (en) * 2016-06-02 2017-12-07 中兴通讯股份有限公司 Message forwarding control method for communication network device, and communication network device
CN107342958A (en) * 2017-06-29 2017-11-10 迈普通信技术股份有限公司 Distributed communication equipment and interplate communication method
CN108521378A (en) * 2018-04-23 2018-09-11 天津芯海创科技有限公司 Retransmission method, device and the network switching equipment of heterogeneous protocol message
CN108667732A (en) * 2018-05-22 2018-10-16 新华三技术有限公司 A kind of message forwarding method and device
CN108768866A (en) * 2018-09-06 2018-11-06 迈普通信技术股份有限公司 Across the card retransmission method of multicast message, device, the network equipment and readable storage medium storing program for executing
CN110380970A (en) * 2019-07-22 2019-10-25 北京邮电大学 A kind of self-adapting data message forwarding method and device suitable for heterogeneous network
CN111107087A (en) * 2019-12-19 2020-05-05 杭州迪普科技股份有限公司 Message detection method and device
CN111262800A (en) * 2020-01-19 2020-06-09 天津芯海创科技有限公司 Service data communication method and system of Ethernet switch
CN111935300A (en) * 2020-08-19 2020-11-13 腾讯科技(深圳)有限公司 Message processing method and device, computer equipment and storage medium
CN112422444A (en) * 2020-10-09 2021-02-26 锐捷网络股份有限公司 Method and device for forwarding message across cards
CN112486896A (en) * 2020-11-30 2021-03-12 锐捷网络股份有限公司 Service card management device, method, equipment and medium of rack-mounted switch

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Energy-Efficient Time-Division Multiplexed Hybrid-Switched NoC for Heterogeneous Multicore Systems;Jieming Yin; Pingqiang Zhou; Sapatnekar, S.S.; Zhai, A;2014 IEEE International Parallel & Distributed Processing Symposium (IPDPS);全文 *
一种PCIE交换芯片交换管控方法;赵姣;杨珂;;中国集成电路(Z4);全文 *
列车通信网络异构总线互联互通技术研究;段旭良;罗显光;汤诚;沈朝喜;;电力机车与城轨车辆(第02期);全文 *
网络处理器的体系结构建模及芯片原型设计;杨勃航;中国优秀硕士论文电子期刊网;全文 *

Also Published As

Publication number Publication date
CN113271266A (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN113271266B (en) Message forwarding method and device of heterogeneous switching chip
CN110071878B (en) Message flow statistical method and device and electronic equipment
CN103858394B (en) Load reduction system and load reduction method
CN112714052B (en) Flow isolation method, device, switch and storage medium
CN105763472B (en) Cross-board forwarding method and device
CN108718258B (en) Quality detection method and equipment for inter-board link
CN108768866A (en) Across the card retransmission method of multicast message, device, the network equipment and readable storage medium storing program for executing
CN105939324A (en) Message forwarding method and device
CN108092922B (en) Method and device for transmitting message by interface board
CN111224882A (en) Message processing method and device and storage medium
CN111654437B (en) Message forwarding method and device based on data center
CN107710686A (en) The method and apparatus for managing the network equipment
CN113014502B (en) Load balancing method and device based on line card
CN108881069A (en) Retransmission method, device and the server of multicast traffic
CN103118144B (en) A kind of Radio Access Controller and long-distance port agent method thereof
EP3240251A1 (en) Line card determination, determination processing method and device, and line card determination system
CN114338569B (en) Message copying and forwarding method and device
CN112804145B (en) Flow statistical method and device based on segmented identification list
CN114338554A (en) Stream-based random packet loss method and device
EP3425857A1 (en) Forwarding method and apparatus for fast reroute, and network device
CN113114579B (en) ACL issuing method and device
CN112131154B (en) DMA transmission control method for channel and service dynamic matching
CN112737982A (en) Method for forwarding message and CLOS (clock-line-operating System) framework switch
CN108880892B (en) Message processing method and device
CN108600072B (en) Designated forwarder DF election method and device

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