CN110620725A - Method for expanding out-of-band interface of switching equipment and switching equipment - Google Patents

Method for expanding out-of-band interface of switching equipment and switching equipment Download PDF

Info

Publication number
CN110620725A
CN110620725A CN201810639724.9A CN201810639724A CN110620725A CN 110620725 A CN110620725 A CN 110620725A CN 201810639724 A CN201810639724 A CN 201810639724A CN 110620725 A CN110620725 A CN 110620725A
Authority
CN
China
Prior art keywords
message
chip
band
switching
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810639724.9A
Other languages
Chinese (zh)
Inventor
卢兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyland Technology Co Ltd
Original Assignee
Kyland 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 Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201810639724.9A priority Critical patent/CN110620725A/en
Publication of CN110620725A publication Critical patent/CN110620725A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/15Interconnection of switching modules
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an out-of-band interface extension method of exchange equipment and the exchange equipment, wherein the exchange equipment comprises a first exchange chip at a middle-high end and a second exchange chip at a low end; the first exchange chip comprises a first out-of-band interface, the second exchange chip comprises at least two second out-of-band interfaces, the first exchange chip can simultaneously receive first messages sent by a plurality of terminal devices through the second exchange chip, and after second messages corresponding to the first messages are generated, the second messages are sent to the terminal devices through the second exchange chip, so that the number of the out-of-band interfaces is expanded, and therefore certain middle-high-end exchange devices comprising one out-of-band interface can simultaneously perform data interaction with the plurality of terminal devices through the second exchange chip.

Description

Method for expanding out-of-band interface of switching equipment and switching equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to an out-of-band interface extension method for a switching device and a switching device.
Background
With the rapid development of communication technology in recent years, switching devices have become more and more popular. The middle-high end switching equipment can provide an exclusive signal path for the terminal equipment accessed to the switching equipment, and signal transmission between the middle-high end switching equipment and the terminal equipment is realized. The terminal equipment comprises a computer, a camera and the like. The out-of-band interface in the switching device is connected to the terminal device.
Some existing mid-to-high end switching devices include an out-of-band interface, for example, a 98DX3135 switching device includes an out-of-band interface RGMII. Such a switching device can only be directly connected with one terminal device, and data interaction between the switching device and one terminal device is realized. In more and more scenes, the medium-high end switching device is required to perform data interaction with multiple terminal devices, and the medium-high end switching device with only one out-of-band interface cannot be applied to a scene in which data interaction is performed with multiple terminal devices at the same time. In addition, although some low-end switching devices include multiple out-of-band interfaces, the low-end switching devices have poor performance and small bandwidth, and cannot replace medium-high-end switching devices at present. At present, in order to adapt to data interaction between the medium-high end switching device and a plurality of terminal devices, only the medium-high end switching device comprising a plurality of out-of-band interfaces can be selected, and some medium-high end switching devices comprising one out-of-band interface cannot be used continuously.
Disclosure of Invention
The embodiment of the invention provides an out-of-band interface extension method of switching equipment and the switching equipment, which are used for solving the problem that some middle-high-end switching equipment comprising an out-of-band interface cannot interact data with a plurality of terminal equipment simultaneously in the prior art.
The embodiment of the invention provides an out-of-band interface extension method of exchange equipment, wherein the exchange equipment comprises a first exchange chip at a middle-high end and a second exchange chip at a low end; the first exchange chip comprises a first out-of-band interface, the second exchange chip comprises at least two second out-of-band interfaces, and the method is applied to the first exchange chip and comprises the following steps:
the first switching chip receives a first message, wherein the first message is sent by the second switching chip through each second out-of-band interface receiving terminal device and is forwarded to the first switching chip;
and generating a second message corresponding to the first message, determining a second out-of-band interface corresponding to the second message according to the identification information of the terminal equipment carried in the second message and the pre-stored corresponding relationship between each terminal equipment and the at least two second out-of-band interfaces, and sending the second message to the second exchange chip, so that the second exchange chip sends the second message to the terminal equipment through the second out-of-band interface corresponding to the second message.
Further, after determining a second out-of-band interface corresponding to the second packet and before sending the second packet to the second switch chip, the method further includes:
generating a first label according to a second out-of-band interface corresponding to the determined second message, and adding the first label to the second message;
sending the second packet to the second switch chip, so that the second switch chip sends the second packet to a terminal device through a second out-of-band interface corresponding to the second packet includes:
sending a second message added with the first label to the second exchange chip; and enabling the second exchange chip to determine a second out-of-band interface corresponding to the second message according to the received first label in the second message, and sending the second message to the terminal equipment through the corresponding second out-of-band interface.
Further, the first packet is sent by the terminal device connected to the second switching chip through each second out-of-band interface, and a second label is generated according to the second out-of-band interface corresponding to the first packet, and the second label is added to the first packet and sent to the first switching chip.
Further, the receiving, by the first switch chip, the first packet includes:
when the first switching chip receives a first message, triggering an RX interrupt service program, wherein the RX interrupt service program closes RX interrupt within a preset first time period, and restarts RX message receiving tasks;
the sending of the second message by the first switching chip includes:
and when the first switching chip sends a second message, configuring a DMA to start sending the message, triggering TX interruption after sending the message, closing the TX interruption by a TX interruption service program within a preset second time length, releasing message resources in the DMA and then restarting the TX interruption.
Further, after receiving the first message or generating the second message, the method further includes:
and writing the first message or the second message into a memory of a Direct Memory Access (DMA).
In another aspect, an embodiment of the present invention provides a switching device, where the switching device includes a first switching chip at a middle-high end and a second switching chip at a low end; the first exchange chip comprises a first out-of-band interface, and the second exchange chip comprises a second interface and at least two second out-of-band interfaces;
the at least two second out-of-band interfaces of the second switching chip are used for being connected with corresponding terminal equipment; the second switching chip is configured to receive a first packet sent by each terminal device connected to the second out-of-band interface, and send the first packet to the first switching chip; receiving a second message sent by the first switching chip, and sending the second message to terminal equipment through a second out-of-band interface corresponding to the second message;
the first out-of-band interface of the first exchange chip is connected with the second interface of the second exchange chip; the first switching chip is configured to receive a first message sent by the second switching chip, generate a second message corresponding to the first message, determine a second out-of-band interface corresponding to the second message according to identification information of terminal devices carried in the second message and a pre-stored correspondence between each terminal device and the at least two second out-of-band interfaces, and send the second message to the second switching chip.
Further, the first switch chip is specifically configured to generate a first label according to a second out-of-band interface corresponding to the determined second packet, add the first label to the second packet, and send the second packet to the second switch chip;
the second switch chip is specifically configured to determine a second out-of-band interface corresponding to a second message according to a first tag in the received second message, and send the second message to a terminal device through the corresponding second out-of-band interface.
Further, the second switch chip is specifically configured to receive a first packet sent by the terminal device connected to each second out-of-band interface, generate a second label according to a second out-of-band interface corresponding to the first packet, add the second label to the first packet, and send the first packet to the first switch chip.
Furthermore, in the at least two second out-of-band interfaces, the private virtual local area networks corresponding to any two second out-of-band interfaces are different;
the at least two second out-of-band interfaces comprise:
at least one light band external interface and at least one electric band external interface.
Further, the second switch chip is preconfigured with MAC address information of the first out-of-band interface in the first switch chip;
the second switch chip is specifically configured to send the first packet to a first out-of-band interface in the first switch chip according to the MAC address information after a broadcast function of the second switch chip is started.
Furthermore, the first switch chip is further configured to trigger an RX interrupt service routine when receiving the message, where the RX interrupt service routine closes RX interrupt within a preset first time period, and restarts the RX interrupt after waking up an RX message receiving task; when sending a message, configuring a DMA to start sending the message, triggering TX interruption after sending the message, closing the TX interruption by a TX interruption service program within a preset second time length, releasing message resources in the DMA and then restarting the TX interruption.
Further, the first switch chip is specifically configured to write the first message or the second message into a memory of the DMA after receiving the first message or generating the second message.
The embodiment of the invention provides an out-of-band interface extension method of switching equipment and the switching equipment, wherein the switching equipment comprises a first switching chip at a middle-high end and a second switching chip at a low end; the first exchange chip comprises a first out-of-band interface, the second exchange chip comprises at least two second out-of-band interfaces, and the method is applied to the first exchange chip and comprises the following steps: the first switching chip receives a first message, wherein the first message is sent by the second switching chip through each second out-of-band interface receiving terminal device and is forwarded to the first switching chip; and generating a second message corresponding to the first message, determining a second out-of-band interface corresponding to the second message according to the identification information of the terminal equipment carried in the second message and the pre-stored corresponding relationship between each terminal equipment and the at least two second out-of-band interfaces, and sending the second message to the second exchange chip, so that the second exchange chip sends the second message to the terminal equipment through the second out-of-band interface corresponding to the second message.
In the embodiment of the invention, the switching equipment comprises a first switching chip at the middle-high end and a second switching chip at the low end; the first exchange chip comprises a first out-of-band interface, the second exchange chip comprises at least two second out-of-band interfaces, and the first exchange chip can realize the expansion of the number of the out-of-band interfaces through the second exchange chip, so that some middle-high-end exchange equipment comprising one out-of-band interface can perform data interaction with a plurality of terminal equipment through the second exchange chip.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an extension process of an out-of-band interface of a switching device according to embodiment 1 of the present invention;
fig. 2 is a schematic structural diagram of a switching device according to embodiment 4 of the present invention;
fig. 3 is a message format of a second message provided in embodiment 5 of the present invention;
fig. 4 is a message format of a first message provided in embodiment 6 of the present invention;
fig. 5 is a flowchart of system initialization and message interaction provided in the embodiment of the present invention;
fig. 6 is a flow chart of processing a label DSA Tag of a received message by a first switch chip according to an embodiment of the present invention;
fig. 7 is a flow chart of DSA Tag for sending a message insertion label by a first switch chip according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the attached drawings, and it should be understood that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
the embodiment of the invention provides an out-of-band interface extension method of exchange equipment, wherein the exchange equipment comprises a first exchange chip at a middle-high end and a second exchange chip at a low end; the first exchange chip comprises a first out-of-band interface, and the second exchange chip comprises at least two second out-of-band interfaces.
Fig. 1 is a schematic diagram of an out-of-band interface extension process of a switching device according to an embodiment of the present invention, where the process includes the following steps:
s101: the first switching chip receives a first message, wherein the first message is sent by the second switching chip through each second out-of-band interface receiving terminal device and is forwarded to the first switching chip;
s102: and generating a second message corresponding to the first message, determining a second out-of-band interface corresponding to the second message according to the identification information of the terminal equipment carried in the second message and the pre-stored corresponding relationship between each terminal equipment and the at least two second out-of-band interfaces, and sending the second message to the second exchange chip, so that the second exchange chip sends the second message to the terminal equipment through the second out-of-band interface corresponding to the second message.
The method for expanding the out-of-band interface of the switching equipment provided by the embodiment of the invention is applied to a first switching chip in the switching equipment.
The second exchange chip is connected with the corresponding terminal equipment through each second out-of-band interface, and the first message sent to the first exchange chip by the terminal equipment is sent to the second exchange chip firstly. And the second switching chip sends the first message to the first switching chip.
The first exchange chip receives a first message sent by the second exchange chip through the first out-of-band interface and generates a second message corresponding to the first message, wherein the second message carries identification information of the terminal device. The first switching chip prestores a corresponding relation between each terminal device and each second out-of-band interface of the second switching chip, the first switching chip determines the second out-of-band interface corresponding to the second message according to the corresponding relation between each terminal device and each second out-of-band interface of the second switching chip, the first switching chip sends the second message to the second switching chip, and the second switching chip sends the second message to the terminal device through the corresponding second out-of-band interface.
In an embodiment of the present invention, the first out-of-band interface of the first switch chip may be an RGMII interface. This is merely an example, and the specific interface is not limited. Moreover, the second out-of-band interfaces of the second switching chip may be both electric band external interfaces and optical band external interfaces, or may be partly electric band external interfaces and partly optical band external interfaces. In the embodiment of the present invention, the specific number of the second out-of-band interfaces is not limited.
In the embodiment of the invention, the switching equipment comprises a first switching chip at the middle-high end and a second switching chip at the low end; the first exchange chip comprises a first out-of-band interface, the second exchange chip comprises at least two second out-of-band interfaces, and the first exchange chip can realize the expansion of the number of the out-of-band interfaces through the second exchange chip, so that some middle-high-end exchange equipment comprising one out-of-band interface can perform data interaction with a plurality of terminal equipment through the second exchange chip.
Example 2:
on the basis of the foregoing embodiment, in the embodiment of the present invention, after determining the second out-of-band interface corresponding to the second packet and before sending the second packet to the second switch chip, the method further includes:
generating a first label according to a second out-of-band interface corresponding to the determined second message, and adding the first label to the second message;
sending the second packet to the second switch chip, so that the second switch chip sends the second packet to a terminal device through a second out-of-band interface corresponding to the second packet includes:
sending a second message added with the first label to the second exchange chip; and enabling the second exchange chip to determine a second out-of-band interface corresponding to the second message according to the received first label in the second message, and sending the second message to the terminal equipment through the corresponding second out-of-band interface.
The first switch chip determines a second out-of-band interface corresponding to the second message according to the corresponding relationship between each terminal device and each second out-of-band interface of the second switch chip and identification information of the terminal device carried in the second message, then generates a first label (DSA tag) according to the second out-of-band interface, the first label DSA tag is used for identifying the second out-of-band interface, and then adds the first label DSA tag into the second message. The second exchange chip can determine a second out-of-band interface according to the first label DSA tag in the second message, then sends the received second message sent by the first exchange chip to the second out-of-band interface, and sends the second message to the terminal device through the second out-of-band interface.
The first message is sent by the terminal equipment connected with the second switching chip through each second out-of-band interface, a second label is generated according to the second out-of-band interface corresponding to the first message, and the second label is added to the first message and sent to the first switching chip.
After receiving a first message sent by the terminal device, the second switch chip generates a second label DSA tag according to a second out-of-band interface for receiving the first message, wherein the second label DSA tag is used for identifying the second out-of-band interface, and then the second label DSA tag is added into the first message. Then, the first message added with the second label DSAtag is sent to the first switching chip, and the first switching chip 11 may determine, according to the second label DSA tag in the first message, the terminal device that sent the first message.
After receiving the first message, the first switching chip may send the first message to a corresponding TCP/IP stack for subsequent processing.
Example 3:
on the basis of the foregoing embodiments, in an embodiment of the present invention, the receiving, by the first switch chip, the first packet includes:
when the first switching chip receives a first message, triggering an RX interrupt service program, wherein the RX interrupt service program closes RX interrupt within a preset first time period, and restarts RX message receiving tasks;
the sending of the second message by the first switching chip includes:
and when the first switching chip sends a second message, configuring a DMA to start sending the message, triggering TX interruption after sending the message, closing the TX interruption by a TX interruption service program within a preset second time length, releasing message resources in the DMA and then restarting the TX interruption.
When the first switching chip receives a message, the first switching chip needs to trigger an RX interrupt service program, and the RX interrupt service program turns off RX interrupt within a preset first time period, and turns on RX interrupt again after waking up an RX message receiving task. When the first switching chip sends a message, the first switching chip needs to configure a DMA to start sending the message, a TX interrupt is triggered after sending the message, a TX interrupt service program closes the TX interrupt within a preset second time length, and restarts the TX interrupt after message resources in the DMA are released. The preset first time period and the preset second time period may be the same or different, and the preset first time period and the preset second time period are very short time periods, for example, 10 microseconds, 20 microseconds, and the like. During the message interaction process, by temporarily turning off the RX interrupt and the TX interrupt, the correct time sequence during the message transmission process can be ensured, thereby further ensuring the normal use of the switching device.
In this embodiment of the present invention, after the first switch chip receives the first packet or generates the second packet, the method further includes:
and writing the first message or the second message into a memory of a Direct Memory Access (DMA).
Example 4:
fig. 2 is a schematic structural diagram of a switching device according to an embodiment of the present invention, where the switching device includes a first switching chip 11 at a middle-high end and a second switching chip 12 at a low end; wherein, the first switch chip 11 includes a first out-of-band interface 111, and the second switch chip 12 includes a second interface 121 and at least two second out-of-band interfaces 122;
the at least two second out-of-band interfaces 122 of the second switch chip 12 are used for connecting with corresponding terminal devices; the second switch chip 12 is configured to receive a first packet sent by a terminal device connected to each second out-of-band interface 122, and send the first packet to the first switch chip 11; receiving a second packet sent by the first switch chip 11, and sending the second packet to a terminal device through a second out-of-band interface 122 corresponding to the second packet;
the first out-of-band interface 111 of the first switch chip 11 is connected to the second interface 121 of the second switch chip 12; the first switch chip 11 is configured to receive a first packet sent by the second switch chip 12, generate a second packet corresponding to the first packet, determine a second out-of-band interface 122 corresponding to the second packet according to identification information of a terminal device carried in the second packet and a pre-stored correspondence between each terminal device and the at least two second out-of-band interfaces 122, and send the second packet to the second switch chip 12.
The switching equipment provided by the embodiment of the invention is improved on the basis of the existing middle-high end switching equipment which only comprises one external interface. The expansion of the number of out-of-band interfaces is achieved by connecting a low-end switch chip comprising a plurality of out-of-band interfaces. Furthermore, since low-end switch chips are generally cheaper, the cost of improving the switch device according to the embodiment of the present invention is also low.
In the embodiment of the present invention, as shown in fig. 2, each second out-of-band interface 122 of the second switching chip 12 is connected to a corresponding terminal device, and a first message sent by the terminal device to the first switching chip 11 is sent to the second switching chip 12 first. The second switch chip 12 sends the first message to the first switch chip 11 through the second interface 121.
The first switch chip 11 receives the first packet sent by the second switch chip 12 through the first out-of-band interface 111, and generates a second packet corresponding to the first packet, where the second packet carries identification information of the terminal device. The first switching chip 11 pre-stores a corresponding relationship between each terminal device and each second out-of-band interface 122 of the second switching chip 12, the first switching chip 11 determines the second out-of-band interface 122 corresponding to the second packet according to the corresponding relationship between each terminal device and each second out-of-band interface 122 of the second switching chip 12, the first switching chip 11 sends the second packet to the second switching chip 12, and the second switching chip 12 sends the second packet to the terminal device through the corresponding second out-of-band interface 122.
In the embodiment of the present invention, the first out-of-band interface of the first switch chip may be an RGMII interface, and the second interface of the second switch chip may be a port10 interface. This is merely an example, and the specific interface is not limited. Moreover, the second out-of-band interfaces of the second switching chip may be both electric band external interfaces and optical band external interfaces, or may be partly electric band external interfaces and partly optical band external interfaces. Only two second out-of-band interfaces are shown in fig. 2, and in the embodiment of the present invention, the specific number of the second out-of-band interfaces is not limited.
In the embodiment of the invention, the switching device comprises a first switching chip 11 at the middle-high end and a second switching chip 12 at the low end; the first switch chip 11 includes a first out-of-band interface 111, the second switch chip 12 includes at least two second out-of-band interfaces 122, the second switch chip 12 is connected to corresponding terminal devices through the at least two second out-of-band interfaces 122, and the first switch chip 11 may perform data interaction with a plurality of terminal devices through the second switch chip 12. The first switching chip 11 at the middle-high end is connected with the second switching chip 12 at the low end, so that the extension of the number of out-of-band interfaces is realized.
Example 5:
on the basis of the foregoing embodiment, in the embodiment of the present invention, the first switch chip 11 is specifically configured to generate a first label according to the determined second out-of-band interface 122 corresponding to the second packet, add the first label to the second packet, and send the second packet to the second switch chip 12;
the second switch chip 12 is specifically configured to determine, according to the first tag in the received second packet, a second out-of-band interface 122 corresponding to the second packet, and send the second packet to the terminal device through the corresponding second out-of-band interface.
The first switch chip 11 determines the second out-of-band interface 122 corresponding to the second packet according to the correspondence between each terminal device and each second out-of-band interface 122 of the second switch chip 12 and the identification information of the terminal device carried in the second packet, then generates a first label DSA tag according to the second out-of-band interface 122, where the first label DSA tag is used to identify the second out-of-band interface 122, and then adds the first label DSA tag to the second packet. The second switch chip 12 may determine the second out-of-band interface 122 according to the first label DSA tag in the second message, then send the received second message sent by the first switch chip 11 to the second out-of-band interface 122, and send the second message to the terminal device through the second out-of-band interface 122.
Fig. 3 is a message format of a second message provided in the embodiment of the present invention, and as shown in fig. 3, the second message includes a first label DSA tag, and a Trg _ Port in a 23 th bit of the first label DSA tag is a second out-of-band interface 122 corresponding to the second message.
Example 6:
on the basis of the foregoing embodiments, in the embodiment of the present invention, the second switch chip 12 is specifically configured to receive a first packet sent by a terminal device connected to each second out-of-band interface 122, generate a second label according to the second out-of-band interface 122 corresponding to the first packet, add the second label to the first packet, and send the first packet to the first switch chip 11.
After receiving the first message sent by the terminal device, the second switch chip 12 generates a second tag DSAtag according to the second out-of-band interface 122 that receives the first message, where the second tag DSAtag is used to identify the second out-of-band interface 122, and then adds the second tag DSAtag to the first message. Then, the first message added with the second label DSAtag is sent to the first switching chip 11, and the first switching chip 11 can determine the terminal device sending the first message according to the second label DSA tag in the first message.
After receiving the first packet, the first switch chip 11 may send the first packet to a corresponding TCP/IP stack for subsequent processing.
Fig. 4 is a message format of a first message provided in an embodiment of the present invention, and as shown in fig. 4, the first message includes a second label DSA tag, and a Src _ Port in a 23 th bit of the second label DSA tag is a second out-of-band interface 122 corresponding to the first message.
Example 7:
in order to prevent data interaction between the second out-of-band interfaces 122 of the second switch chip 12 from affecting normal use of the switch device, on the basis of the above embodiments, in the embodiment of the present invention, in any two of the at least two second out-of-band interfaces 122, the corresponding private virtual local area networks of the second out-of-band interfaces 122 are different.
In this embodiment of the present invention, the second switch chip 12 of the switch device includes at least two second out-of-band interfaces 122, and the switch device divides each second out-of-band interface 122 into private virtual local area networks PVLANs, so that each second out-of-band interface 122 corresponds to one PVLAN, and PVLANs corresponding to any two second out-of-band interfaces 122 are different.
Since PVLANs corresponding to any two second out-of-band interfaces 122 are different, data interaction between the second out-of-band interfaces 122 cannot be performed, so that normal data interaction between the first switch chip 11 and the terminal device is ensured.
In an embodiment of the present invention, the at least two second out-of-band interfaces 122 include:
at least one light band external interface and at least one electric band external interface.
In order to enable the switching device to satisfy any form of signal interaction, in the embodiment of the present invention, the second switching chip 12 includes at least one optical tape external interface and at least one electrical tape external interface, for the terminal device performing the electrical signal interaction, the electrical tape external interface in the second switching chip 12 is connected, and for the terminal device performing the optical signal interaction, the optical tape external interface in the second switching chip 12 is connected.
Example 8:
in order to ensure that the second switch chip 12 can send the second message sent by the terminal device to the first switch chip 11, on the basis of the foregoing embodiments, in an embodiment of the present invention, the second switch chip 12 is configured with MAC address information of the first out-of-band interface 111 in the first switch chip 11 in advance;
the second switch chip 12 is specifically configured to send the first packet to the first out-of-band interface 111 in the first switch chip 11 according to the MAC address information after the broadcast function of the second switch chip is started.
In order to enable the second switch chip 12 to transmit the first message sent by the terminal device to the first switch chip 11, the second switch chip 12 is a low-end switch chip, in the second switch chip 12, the MAC address information of the first out-of-band interface 111 in the first switch chip 11 is configured in advance, and the arpcc broadcasting function of the second switch chip 12 is turned on, and the second switch chip 12 transmits the received first message to the first out-of-band interface 111 corresponding to the MAC address information configured by itself based on the arpcc broadcasting function.
Example 9:
in order to further ensure normal use of the switching device, on the basis of the foregoing embodiments, in an embodiment of the present invention, the first switching chip 11 is further configured to trigger an RX interrupt service routine when receiving a message, where the RX interrupt service routine closes an RX interrupt within a preset first time period, and restarts the RX interrupt after waking up an RX message reception task; when sending a message, configuring a DMA to start sending the message, triggering TX interruption after sending the message, closing the TX interruption by a TX interruption service program within a preset second time length, releasing message resources in the DMA and then restarting the TX interruption.
When receiving a message, the first switch chip 11 needs to trigger an RX interrupt service routine, and the RX interrupt service routine turns off the RX interrupt within a preset first time period, and turns on the RX interrupt again after waking up an RX message receiving task. When the first switch chip 11 sends a message, it needs to configure a DMA to start sending the message, and triggers TX interrupt after sending the message, and the TX interrupt service routine closes the TX interrupt within a preset second duration, and restarts the TX interrupt after releasing the message resource in the DMA. The preset first time period and the preset second time period may be the same or different, and the preset first time period and the preset second time period are very short time periods, for example, 10 microseconds, 20 microseconds, and the like. During the message interaction process, by temporarily turning off the RX interrupt and the TX interrupt, the correct time sequence during the message transmission process can be ensured, thereby further ensuring the normal use of the switching device.
In this embodiment of the present invention, the first switch chip 11 is specifically configured to write the first message or the second message into a memory of a direct memory access DMA after receiving the first message or generating the second message.
Before the switch device is used, system initialization is required. Fig. 5 is a flowchart of system initialization and message interaction provided in the embodiment of the present invention, and as shown in fig. 5, the system initialization specifically includes initialization of a system startup hardware module; initializing an interface driver of a first switching chip CHIPA, and creating a message RX receiving task and a message TX sending task; initializing a system TCP/IP protocol stack; registering a plurality of out-of-band management ports, namely a plurality of second out-of-band interfaces of the second switching chip CHIPB, in the system; initializing the transceiving function and RX interrupt enable and TX interrupt enable of a first switching chip CHIPA; initializing a plurality of second out-of-band interfaces of a second switching chip CHIPB and a first out-of-band interface RGMII of a CHIPA; the PVLAN partition function of CHIPB, unicast forwarding policy, and label enable are turned on. And finishing the system initialization.
As shown in fig. 5, the message interaction flow includes receiving a message, temporarily closing RX interrupt in triggering an RX interrupt service program, then calling an RX task, receiving the message by the RX task, analyzing a tag to obtain second out-of-band interface information, stripping the tag DSAtag, and then constructing a skb buffer to send to a protocol stack for subsequent processing. When a message is sent, a DMA is configured to start the message sending, a TX interrupt is triggered after the message is sent, the TX interrupt is temporarily closed in a TX interrupt service program, then a TX task is called, the TX task processes to release resources applied for sending, and then the TX interrupt is enabled again.
Fig. 6 is a flow chart of DSA Tag processing of a received message by a first switch chip according to an embodiment of the present invention, and as shown in fig. 6, after receiving a message, the first switch chip processes the message, analyzes the DSA Tag, strips the DSA Tag, determines a protocol type, and then constructs a skb buffer to send the skb buffer to a protocol stack for subsequent processing.
Fig. 7 is a flow chart illustrating a DSA Tag insertion process for a first switch chip sending message according to an embodiment of the present invention, and as shown in fig. 7, a corresponding destination port, that is, a corresponding second out-of-band interface, is obtained according to terminal device identification information provided by an upper layer, a DSA Tag is constructed according to the corresponding second out-of-band interface, and is added to a message, and then a DMA is started to send the message. After sending the message, the TX interruption is closed briefly, the DMA descriptor is updated, the corresponding memory is released, and then the TX interruption is enabled again.
The embodiment of the invention provides an out-of-band interface extension method of switching equipment and the switching equipment, wherein the switching equipment comprises a first switching chip at a middle-high end and a second switching chip at a low end; the first exchange chip comprises a first out-of-band interface, the second exchange chip comprises at least two second out-of-band interfaces, and the method is applied to the first exchange chip and comprises the following steps: the first switching chip receives a first message, wherein the first message is sent by the second switching chip through each second out-of-band interface receiving terminal device and is forwarded to the first switching chip; and generating a second message corresponding to the first message, determining a second out-of-band interface corresponding to the second message according to the identification information of the terminal equipment carried in the second message and the pre-stored corresponding relationship between each terminal equipment and the at least two second out-of-band interfaces, and sending the second message to the second exchange chip, so that the second exchange chip sends the second message to the terminal equipment through the second out-of-band interface corresponding to the second message.
In the embodiment of the invention, the switching equipment comprises a first switching chip at the middle-high end and a second switching chip at the low end; the first exchange chip comprises a first out-of-band interface, the second exchange chip comprises at least two second out-of-band interfaces, and the first exchange chip can realize the expansion of the number of the out-of-band interfaces through the second exchange chip, so that some middle-high-end exchange equipment comprising one out-of-band interface can perform data interaction with a plurality of terminal equipment through the second exchange chip.
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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 preferred 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. Therefore, it is intended that the appended claims be interpreted as including preferred 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 changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (12)

1. An out-of-band interface extension method of a switching device is characterized in that the switching device comprises a first switching chip at a middle-high end and a second switching chip at a low end; the first exchange chip comprises a first out-of-band interface, the second exchange chip comprises at least two second out-of-band interfaces, and the method is applied to the first exchange chip and comprises the following steps:
the first switching chip receives a first message, wherein the first message is sent by the second switching chip through each second out-of-band interface receiving terminal device and is forwarded to the first switching chip;
and generating a second message corresponding to the first message, determining a second out-of-band interface corresponding to the second message according to the identification information of the terminal equipment carried in the second message and the pre-stored corresponding relationship between each terminal equipment and the at least two second out-of-band interfaces, and sending the second message to the second exchange chip, so that the second exchange chip sends the second message to the terminal equipment through the second out-of-band interface corresponding to the second message.
2. The method of claim 1, wherein after determining the second out-of-band interface corresponding to the second packet and before sending the second packet to the second switch chip, the method further comprises:
generating a first label according to a second out-of-band interface corresponding to the determined second message, and adding the first label to the second message;
sending the second packet to the second switch chip, so that the second switch chip sends the second packet to a terminal device through a second out-of-band interface corresponding to the second packet includes:
sending a second message added with the first label to the second exchange chip; and enabling the second exchange chip to determine a second out-of-band interface corresponding to the second message according to the received first label in the second message, and sending the second message to the terminal equipment through the corresponding second out-of-band interface.
3. The method according to claim 1, wherein the first packet is sent by the second switch chip through each terminal device connected to the second out-of-band interface, and a second label is generated according to the second out-of-band interface corresponding to the first packet, and the second label is added to the first packet and sent to the first switch chip.
4. The method of claim 1, wherein the first switch chip receiving the first message comprises:
when the first switching chip receives a first message, triggering an RX interrupt service program, wherein the RX interrupt service program closes RX interrupt within a preset first time period, and restarts RX message receiving tasks;
the sending of the second message by the first switching chip includes:
and when the first switching chip sends a second message, configuring a DMA to start sending the message, triggering TX interruption after sending the message, closing the TX interruption by a TX interruption service program within a preset second time length, releasing message resources in the DMA and then restarting the TX interruption.
5. The method of claim 1, wherein after receiving the first message or after generating the second message, the method further comprises:
and writing the first message or the second message into a memory of a Direct Memory Access (DMA).
6. A switching device is characterized by comprising a first switching chip at a middle-high end and a second switching chip at a low end; the first exchange chip comprises a first out-of-band interface, and the second exchange chip comprises a second interface and at least two second out-of-band interfaces;
the at least two second out-of-band interfaces of the second switching chip are used for being connected with corresponding terminal equipment; the second switching chip is configured to receive a first packet sent by each terminal device connected to the second out-of-band interface, and send the first packet to the first switching chip; receiving a second message sent by the first switching chip, and sending the second message to terminal equipment through a second out-of-band interface corresponding to the second message;
the first out-of-band interface of the first exchange chip is connected with the second interface of the second exchange chip; the first switching chip is configured to receive a first message sent by the second switching chip, generate a second message corresponding to the first message, determine a second out-of-band interface corresponding to the second message according to identification information of terminal devices carried in the second message and a pre-stored correspondence between each terminal device and the at least two second out-of-band interfaces, and send the second message to the second switching chip.
7. The switching device according to claim 6, wherein the first switching chip is specifically configured to generate a first label according to a determined second out-of-band interface corresponding to a second packet, add the first label to the second packet, and send the second packet to the first switching chip;
the second switch chip is specifically configured to determine a second out-of-band interface corresponding to a second message according to a first tag in the received second message, and send the second message to a terminal device through the corresponding second out-of-band interface.
8. The switching device according to claim 6, wherein the second switching chip is specifically configured to receive a first packet sent by each terminal device connected to the second out-of-band interface, generate a second label according to the second out-of-band interface corresponding to the first packet, add the second label to the first packet, and send the first packet to the first switching chip.
9. The switching device of claim 6, wherein any two of the at least two second out-of-band interfaces have different corresponding private virtual local area networks;
the at least two second out-of-band interfaces comprise:
at least one light band external interface and at least one electric band external interface.
10. The switching device according to claim 6, wherein the second switching chip is preconfigured with MAC address information of the first out-of-band interface in the first switching chip;
the second switch chip is specifically configured to send the first packet to a first out-of-band interface in the first switch chip according to the MAC address information after a broadcast function of the second switch chip is started.
11. The switching device according to claim 6, wherein the first switch chip is further configured to trigger an RX interrupt service routine when receiving the message, the RX interrupt service routine turning off an RX interrupt within a preset first time period, and turning back on the RX interrupt after waking up an RX message reception task; when sending a message, configuring a DMA to start sending the message, triggering TX interruption after sending the message, closing the TX interruption by a TX interruption service program within a preset second time length, releasing message resources in the DMA and then restarting the TX interruption.
12. The switching device according to claim 6, wherein the first switch chip is specifically configured to write the first packet or the second packet into a memory of a direct memory access DMA after receiving the first packet or generating the second packet.
CN201810639724.9A 2018-06-20 2018-06-20 Method for expanding out-of-band interface of switching equipment and switching equipment Pending CN110620725A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810639724.9A CN110620725A (en) 2018-06-20 2018-06-20 Method for expanding out-of-band interface of switching equipment and switching equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810639724.9A CN110620725A (en) 2018-06-20 2018-06-20 Method for expanding out-of-band interface of switching equipment and switching equipment

Publications (1)

Publication Number Publication Date
CN110620725A true CN110620725A (en) 2019-12-27

Family

ID=68920584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810639724.9A Pending CN110620725A (en) 2018-06-20 2018-06-20 Method for expanding out-of-band interface of switching equipment and switching equipment

Country Status (1)

Country Link
CN (1) CN110620725A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115801710A (en) * 2023-01-10 2023-03-14 北京六方云信息技术有限公司 Method, device and equipment for expanding CPU interface and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130151886A1 (en) * 2011-12-09 2013-06-13 Chih-Huang WU Computing device and method for switching physical links of a sas expander of the computing device
CN105159859A (en) * 2015-09-11 2015-12-16 上海斐讯数据通信技术有限公司 Interface expansion-based data processing system and method
CN105260335A (en) * 2015-09-22 2016-01-20 上海斐讯数据通信技术有限公司 Data processing system and method for extending optical interface
CN207399226U (en) * 2017-07-31 2018-05-22 北京华电众信技术股份有限公司 Network interface expanding unit

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130151886A1 (en) * 2011-12-09 2013-06-13 Chih-Huang WU Computing device and method for switching physical links of a sas expander of the computing device
CN105159859A (en) * 2015-09-11 2015-12-16 上海斐讯数据通信技术有限公司 Interface expansion-based data processing system and method
CN105260335A (en) * 2015-09-22 2016-01-20 上海斐讯数据通信技术有限公司 Data processing system and method for extending optical interface
CN207399226U (en) * 2017-07-31 2018-05-22 北京华电众信技术股份有限公司 Network interface expanding unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115801710A (en) * 2023-01-10 2023-03-14 北京六方云信息技术有限公司 Method, device and equipment for expanding CPU interface and storage medium

Similar Documents

Publication Publication Date Title
EP3534567B1 (en) Network slice management method, management unit, and system
JP7309859B2 (en) Traffic scheduling method, device and system
EP3176979A1 (en) Information processing method and device
US11500666B2 (en) Container isolation method and apparatus for netlink resource
CN109412922B (en) Method, forwarding device, controller and system for transmitting message
US20190238949A1 (en) Multicast service providing method and software defined networking controller
CN104301298A (en) Rapid startup with dynamic reservation capabilities for network communication systems
CN111294416A (en) Method for obtaining IP address and related product
CN108259297B (en) Message processing method and device
EP3497975A1 (en) Packet forwarding in a wireless mesh network
CN109379239B (en) Method and device for configuring access switch in OpenStack environment
CN107483369B (en) Message processing method and virtual switch
CN110620725A (en) Method for expanding out-of-band interface of switching equipment and switching equipment
CN112737995A (en) Method, device and equipment for processing Ethernet frame and storage medium
CN109525479B (en) Message processing method and device
CN109150711A (en) The pretection switch method, apparatus and storage medium of point-to-multipoint Layer 2 Multicast business
CN108123865B (en) Message processing method and device
CN115665057A (en) Data processing method and device, nonvolatile storage medium and computer equipment
CN108900422A (en) Multicast forward method, device and electronic equipment
CN102006227A (en) Method and device for determining forwarding path in pseudo-wire (PW) dual homing protection environment
CN112511440B (en) Message forwarding method, system, storage medium and electronic equipment
CN104811345A (en) Internet service dial test method, correlation devices and system
CN107959603B (en) Forwarding control method and device
CN113783971A (en) Address management method, network device, and storage medium
KR20170057770A (en) Method for controlling transsion of packet in virtual switch

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191227

RJ01 Rejection of invention patent application after publication