WO2018161794A1 - 一种设备升级方法及接入设备 - Google Patents

一种设备升级方法及接入设备 Download PDF

Info

Publication number
WO2018161794A1
WO2018161794A1 PCT/CN2018/076747 CN2018076747W WO2018161794A1 WO 2018161794 A1 WO2018161794 A1 WO 2018161794A1 CN 2018076747 W CN2018076747 W CN 2018076747W WO 2018161794 A1 WO2018161794 A1 WO 2018161794A1
Authority
WO
WIPO (PCT)
Prior art keywords
aggregation
target
access device
upgrade
access
Prior art date
Application number
PCT/CN2018/076747
Other languages
English (en)
French (fr)
Inventor
林忠芳
谢莹
吴光锐
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018161794A1 publication Critical patent/WO2018161794A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • 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/30Peripheral units, e.g. input or output ports

Definitions

  • the present invention relates to the field of communications, and in particular, to a device upgrade method and an access device.
  • an access-side device for example, an access switch
  • an aggregation device for example, an aggregation switch
  • link aggregation is a cross-device system, that is, The same type of aggregation device is a logical system built by running a specific protocol group.
  • Each of the access side devices is connected to the multiple aggregation devices by using a plurality of physical links, and the multiple physical links form a Link Aggregation Group (LAG), and the multiple physical links are called the LAG.
  • LAG Link Aggregation Group
  • a member link, the plurality of physical links are respectively connected to the port of the access side device and the multiple aggregation devices, and are called member ports of the LAG.
  • the access-side device connects to the aggregation switch through the LAG, which can increase the network bandwidth utilization and enhance the reliability.
  • the typical data flow model of the inter-device system adopts the dual-homing network access mode, that is, the access-side device or the network-side device is dual-homed to the aggregation device of the two cross-device systems through the LAG.
  • the primary aggregation device and the standby aggregation device can be upgraded separately.
  • the LAG member port is upgraded, the data stream that was originally forwarded by the standby aggregation device is switched to the primary aggregation device for forwarding.
  • the fault time points of the access-side device and the network-side device are also inconsistent because the chip types and ports of the main aggregation device and the aggregation device are inconsistent.
  • the access port of the standby aggregation device is not closed, or the port of the aggregation device is closed, and the access device is faulty, the data flow of the access device still flows to the standby aggregation device. At this time, the packets in the data stream sent to the aggregation device will be lost.
  • the embodiment of the invention provides a device upgrade method and related devices to avoid packet loss during the cross-device system upgrade process.
  • an embodiment of the present invention provides a device upgrade method, where the method is applied to a network system, where the network system includes an access device, and at least two aggregation devices respectively connected to the access device, and the method passes the following Steps to implement device upgrade.
  • the access device receives the first status indication message sent by the target aggregation device, where the first status indication message is used to notify the access device that the upgrade status of the target aggregation device is an upgrade preparation state, where the target convergence device is at least two Any one of the aggregation devices; the access device, after receiving the first status indication message, configures the target data stream that is pre-configured to be forwarded by the target aggregation device to be forwarded by other aggregation devices; The target aggregation device sends a first feedback message, and the first feedback message is used to notify the target aggregation device that the upgrade status of the access device is an upgrade preparation state, to indicate that the target aggregation device starts to upgrade.
  • the access device configured to be forwarded by the target aggregation device is configured to be forwarded by other aggregation devices, and then notified after the configuration is completed.
  • the aggregation device begins to upgrade, preventing packet loss during the cross-device system upgrade process.
  • the data flow interruption time caused by the LAG interface chip type, the port type, the port medium, the routing specification, and the like can be blocked, the system operation stability is ensured, and the user satisfaction is improved.
  • the method does not limit the access device type of the forwarding data stream and the forwarding direction of the forwarding data stream, the method can not only prevent the unicast data packet loss during the cross-device system upgrade process, but also prevent the cross-device from being lost. Loss of broadcast packets, multicast packets, and unknown unicast packets during device system upgrade.
  • the access device after the access device sends the first feedback message to the target aggregation device, the access device further receives a second status indication message sent by the target aggregation device, where the second status indication message is used to notify the connection.
  • the access device After the upgrade status of the target aggregation device is the upgrade completion status, the access device reconfigures the target data flow to be forwarded by the target aggregation device after receiving the first feedback message. To achieve the back-cut of the target data stream.
  • the access device and the target aggregation device communicate with each other through the LACP protocol, and the TLV field is extended in the LACP protocol packet, where the extended TLV field includes an upgrade status identifier, where the upgrade status identifier is used to indicate the access device or The upgrade status of the target aggregation device, so that when the access device receives the first status indication message sent by the target aggregation device through the LACP packet, the upgrade status indicator carries the current upgrade status of the target aggregation device to the upgrade preparation state; When the inbound device sends the first feedback message to the target aggregation device through the LACP packet, the upgrade status indicator carries the current upgrade status of the access device in the upgrade preparation state; the access device sends the first aggregation device through the LACP packet. In the case of the second status indication message, the upgrade status carries the current upgrade status of the target aggregation device to the upgrade completion status.
  • the access device includes a link aggregation group LAG outbound forwarding table, where the LAG outbound forwarding table is used to store a port of an access device connected to the aggregation device for forwarding the target data stream.
  • the LAG outgoing direction forwarding table is pre-configured to include a correspondence between the identifier of the port of the access device connected to the target aggregation device and the target data flow; after the access device receives the first status indication message sent by the target aggregation device, The access device removes the port of the access device connected to the target aggregation device from the LAG outgoing forwarding table, and configures the port corresponding to the target data flow in the LAG outgoing direction forwarding table as the port connecting the access device to other aggregation devices.
  • the access device after the access device receives the second status indication message sent by the target aggregation device, reconfigure the port corresponding to the target data stream in the LAG outbound direction forwarding table to connect the access device to the target aggregation.
  • the port of the device After the access device receives the second status indication message sent by the target aggregation device, reconfigure the port corresponding to the target data stream in the LAG outbound direction forwarding table to connect the access device to the target aggregation.
  • the forwarding path of the target data stream can be adjusted to ensure that the access device can forward the data stream through the aggregation device in the normal state to prevent the loss of the data stream packet.
  • the embodiment of the present invention provides a device upgrade method, where the method is applied to a network system, where the network system includes an access device and at least two aggregation devices, and the at least two aggregation devices are respectively connected to the access device.
  • the at least two aggregation devices include a target aggregation device, and the method implements the device upgrade by the following steps.
  • the target aggregation device when the target aggregation device is about to be upgraded, sends a first status indication message to the access device, where the first status indication message is used to notify the access device that the upgrade status of the target aggregation device is an upgrade preparation state;
  • the aggregation device receives the first feedback message sent by the access device, where the first feedback message is used to notify the target aggregation device that the upgrade state of the access device is an upgrade preparation state, and the upgrade preparation state is that the access device is pre-configured to pass the
  • the target data stream forwarded by the target aggregation device is configured to be forwarded by other aggregation devices, that is, the access device has completed switching the target data flow, so that the target aggregation device starts to upgrade.
  • the target aggregation device when the target aggregation device is about to be upgraded, the current upgrade state is sent to the target aggregation device, so that the access device configures the target data flow forwarded by the target aggregation device to be configured to pass other aggregation devices. After forwarding, the target aggregation device starts to upgrade after receiving the current state of the access device in the upgrade preparation state, thereby preventing packet loss during the cross-device system upgrade process.
  • the data flow interruption time caused by the LAG interface chip type, the port type, the port medium, the routing specification, and the like can be blocked, the system operation stability is ensured, and the user satisfaction is improved.
  • the method does not limit the access device type of the forwarding data stream and the forwarding direction of the forwarding data stream, the method can not only prevent the unicast data packet loss during the cross-device system upgrade process, but also prevent the cross-device from being lost. Loss of broadcast packets, multicast packets, and unknown unicast packets during device system upgrade.
  • the target aggregation device after the target aggregation device receives the first feedback message sent by the access device, and after the target aggregation device upgrade is completed, the target aggregation device sends a second status indication message to the access device, where the second status indication is The message is used to enable the access device to reconfigure the target data stream to be forwarded by the target aggregation device, and the second status indication message is used to notify the access device that the upgrade status of the target aggregation device is an upgrade completion status. To achieve back-switching of the target data stream.
  • the access device and the target aggregation device communicate with each other through the LACP protocol, and the TLV field is extended in the LACP protocol packet, where the extended TLV field includes an upgrade status identifier, where the upgrade status identifier is used to indicate the access device or The upgrade status of the target aggregation device, so that when the target aggregation device sends the first status indication message to the access device target through the LACP packet, the upgrade status indicator carries the current upgrade status of the target aggregation device to the upgrade preparation state;
  • the target aggregation device receives the first feedback message sent by the access device through the LACP packet, the upgrade state identifier carries the current upgrade state of the access device in the upgrade preparation state; the target aggregation device sends the LACP packet to the access device through the LACP packet.
  • the upgrade status carries the current upgrade status of the target aggregation device as an upgrade completion status.
  • an embodiment of the present invention provides an access device, where the access device has the function of implementing the method of the foregoing first aspect, and the function may be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • an embodiment of the present invention provides an access device, where the access device includes a processor and at least one communication port, and the processor is configured to support the access device to perform a corresponding function in the foregoing method.
  • the communication port is used to support communication between the access device and the aggregation device.
  • the access device may further comprise a memory for coupling with the processor, which stores program instructions and data necessary for accessing the device.
  • an embodiment of the present invention provides a computer storage medium for storing the computer software instructions used in the foregoing access device for the third aspect, comprising a program for executing the method of the foregoing first aspect .
  • the embodiment of the present invention provides a convergence device, where the aggregation device has the function of implementing the method of the foregoing second aspect, and the function may be implemented by using hardware or by executing corresponding software by hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • an embodiment of the present invention provides a convergence device, where the aggregation device includes a processor and a communication port, and the processor is configured to support the aggregation device to perform a corresponding function in the foregoing method.
  • the communication port is used to support communication between the aggregation device and the access device.
  • the aggregation device may further include a memory for coupling with the processor, which stores program instructions and data necessary for the aggregation device.
  • an embodiment of the present invention provides a computer storage medium for storing the computer software instructions used in the foregoing aggregation device for the sixth aspect, comprising: a program for executing the method of the second aspect above .
  • an embodiment of the present invention provides a network system, where the system includes the access device and the convergence device described in the foregoing aspects.
  • the traffic configured to be forwarded by the target aggregation device is switched to other aggregation devices in advance, thereby preventing the data packet in the process of upgrading the cross-device system. Lost.
  • the method can block the data flow interruption time caused by the LAG interface chip type, the port type, the port medium, and the routing specification, thereby ensuring system stability and improving user satisfaction.
  • the method does not limit the access device type of the forwarding data stream and the forwarding direction of the forwarding data stream, the method can not only prevent the unicast data packet loss during the cross-device system upgrade process, but also prevent the cross-device from being lost. Loss of broadcast packets, multicast packets, and unknown unicast packets during device system upgrade.
  • FIG. 1 is a schematic structural diagram of a network system according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of hardware implementation of a LAG function according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of data flow forwarding of a cross-device system according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of data flow forwarding when a first aggregation switch is upgraded and restarted in a cross-device system according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of data flow forwarding when a second aggregation switch is upgraded and restarted in a cross-device system according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a process of packet loss caused by inconsistency in failure time points of each port when the first aggregation switch is upgraded and restarted in the cross-device system according to the embodiment of the present disclosure
  • FIG. 6 is a schematic flowchart of a method for upgrading a device according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an access device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another access device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of a convergence device according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of another convergence device according to an embodiment of the present invention.
  • the network system 100 includes at least one access device 120a-120d, at least one aggregation device 130a-130b, and Network side device (device located in the Internet, not shown in the figure).
  • the access devices 120a-120d are deployed in the access layer 120, and the aggregation devices 130a-130b are deployed in the convergence layer 130.
  • Access devices 120a-120d may be access switches, and aggregation devices 130a-130b may be aggregation switches.
  • Each of the access devices 120a-120d communicates with other access devices or network side devices through the aggregation devices 130a-130b.
  • the ports of the network device are divided into an access side port and a network side port, wherein the north port (ie, the port connected upward in FIG. 1) is called a network side port, and a south direction port (ie, The port that is connected downward in FIG. 1 is called an access side port.
  • the port connecting the server 110 is an access side port
  • the port connecting the aggregation devices 130a-130b is a network side port.
  • the ports connecting the access devices 120a-120d are access side ports
  • the ports connected to the Internet are network side ports.
  • Each of the access devices 120a-120d is connected to at least one server 110.
  • the server 110 is used to store data.
  • the server 110 can also receive data from the network side through the corresponding access switch and the aggregation switch, or upload data to the network side.
  • the server 110 can be a data server.
  • the server 110 may also be replaced with other terminal devices.
  • multiple aggregation devices in the aggregation layer 130 form a cross-device logic system through an internal protocol.
  • the aggregation device 130a and the aggregation device 130b constitute a cross-device system.
  • an access device such as the access device 120c
  • communicates with the network side device through a plurality of aggregation devices such as the aggregation device 130a and the aggregation device 130b
  • the access device 120c is connected to the aggregation device 130a in a link aggregation manner.
  • the aggregation device 130b that is, the access device 120c is connected to the aggregation device 130a and the aggregation device 130b through a plurality of links, and the multiple links form a link aggregation group LAG, for example, the link in FIG. LAG1-1 and link LAG1-2 form an aggregate link group LAG1.
  • LAG1-1 and LAG1-2 are called member links of LAG1. Since the link can be represented by ports at both ends of the link, when LAG1-1 and LAG1-2 respectively indicate that the aggregation device 130a and the aggregation device 130b are connected to the port of the access device 120c, LAG1-1 and LAG1-2 can also A member port called LAG1.
  • the access device 120c After the link aggregation group LAG1 is established, the access device 120c sends the data flow in a load-sharing manner through the two member links of the LAG1, that is, the access device 120c loads the data flow load to the convergence devices 130a and 130b. Up, thereby increasing network bandwidth utilization and enhancing reliability.
  • the LAG is a bundle of a plurality of links connected to the same device. For example, the physical Ethernet ports of the access device 120c and the aggregation devices 130a and 130b are configured on the same LAG aggregation port, so that the access device 120c passes.
  • the forwarding interface is selected by a certain algorithm (such as a hash algorithm) to increase the bandwidth and improve the reliability of the link.
  • the aggregated link can be regarded as a logical link.
  • the data link aggregated by the at least one access device is regarded as a logical link, and the data flow load on the logical link is also shared on the aggregation device, that is, at least one aggregation switch. 120 on.
  • the aggregation devices 130a and 130b can also access the network side device by means of link aggregation.
  • the two links, for example, LAG2-1 and LAG2-2 are member links of LAG2 respectively.
  • the ports corresponding to LAG2-1 and LAG2-2 are called member ports of LAG2.
  • the same hardware structure may be configured on each access device, the network side device, and the aggregation device.
  • the hardware structure is specifically shown in FIG. 2. 2 is a schematic diagram of a hardware structure of an implementation of a LAG function according to an embodiment of the present invention.
  • the hardware structure shown in FIG. 2 is integrated on an access device, a network side device, and a convergence device.
  • a central processing unit (CPU) is used to control the operation of each access device, network side device, and aggregation device, for example, for each connection.
  • the LAG function of the ingress device, the network side device, and the aggregation device, and the opening and closing of the LAG member ports are controlled.
  • the LAG function may refer to a forwarding behavior of a data stream, and the LAG function is mainly implemented in a LAN switch chip (English: LAN switch, LSW).
  • the forwarding behavior of the data flow can be implemented by configuring the forwarding entry, so that the CPU can be used to control initialization, reconfiguration, and the like of the forwarding entry by the LSW.
  • the CPU is also used to control the sending and receiving of protocol packets between each access device, the network side device, and the aggregation device.
  • Random access memory is used to store the code and data used to perform the LAG function, for example, the forwarding behavior implementation program of the data stream and the above forwarding entries
  • flash memory FLASH
  • FLASH is used for Stores the currently running program and statically configured parameters, for example, an identification information that can be used to store the current upgrade status of the access device, the network side device, and the aggregation device
  • the physical layer interface PHY is used to complete each The optical interface between the access device, the network side device, and the aggregation device is connected to the Ethernet interface of the appliance.
  • FIG. 3 is a schematic diagram of data flow forwarding of a cross-device system according to an embodiment of the present invention.
  • FIG. 3 is a simplified structural diagram based on FIG. 1 to facilitate understanding of a data flow forwarding situation based on a link aggregation group.
  • the network system includes a first aggregation switch and a second aggregation switch.
  • FIG. 4-a is an embodiment of the present invention.
  • FIG. 4-b is a cross-device system according to an embodiment of the present invention. Schematic diagram of data flow forwarding when the second aggregation switch is upgraded and restarted.
  • the LAG member port on the first aggregation switch resumes normal communication, and the data stream sent by the access switch and the network side device is reloaded in the LAG of the first aggregation switch and the second aggregation switch. Sharing.
  • the LAG member port of the first aggregation switch when the first aggregation switch is upgraded and restarted, the LAG member port of the first aggregation switch is closed.
  • the access switch and the network side device need to switch the data flow to the second aggregation switch after the LAG member port of the first aggregation switch is faulty.
  • the access device and the network-side device cannot forward the data flow to the first aggregation after the LAG member port is faulty due to the network delay.
  • the data packet of the data stream is lost.
  • the access device and the network device detect that the LAG member port fault time is also inconsistent. The larger the time, the longer the packet loss is. For details, see Figure 5.
  • FIG. 5 see Figure 5.
  • FIG. 5 is a schematic diagram of a process of packet loss caused by inconsistency in failure time of each port when the first aggregation switch is upgraded and restarted in the cross-device system according to the embodiment of the present invention, as shown in FIG. 5, when the network side of the first aggregation switch is If the port is closed but the access port of the first aggregation switch is not closed, or the network side port and the access port of the first aggregation switch are both closed and the access device is aware that the port is faulty, the access device still goes to the first aggregation switch. The data stream is sent. At this time, the first aggregation switch cannot forward the data stream, and the data packet of the data stream is lost.
  • the boards of the first aggregation switch are successfully registered, and the ports are restored to the normal communication.
  • the port recovery time is delayed, or the time between the recovery of the normal communication time of the network-side port of the first aggregation switch and the normal communication of the access-side port may be different due to the difference of the chip type and the port medium of the first aggregation switch.
  • a packet loss has occurred.
  • the routing protocol needs to be re-established, and the forwarding entry is sent to the forwarding plane. If the forwarding entry is too large, the packet is not delivered and the packet is lost.
  • FIG. 6 is a schematic flowchart of a device upgrade method according to an embodiment of the present invention.
  • the device upgrade method is applied to a cross-device link aggregation scenario. As shown in FIG. 6, the method may include the following steps:
  • the target aggregation device When the target aggregation device is about to be upgraded, the target aggregation device sends a first status indication message to each access device to which it is connected.
  • each access device connected to the target aggregation device receives the first status indication message.
  • the first status indication message is used to notify the access device that the upgrade status of the target aggregation device is an upgrade preparation status.
  • the target aggregation device is an aggregation device to be upgraded, and the target aggregation device and the at least another aggregation device form a cross-device system, and the cross-device system and the access device are connected by using a cross-device link aggregation manner, that is,
  • the first link connecting the target aggregation device to the access device and the second link connecting the another aggregation device to the access device form a link aggregation group LAG, the first link and the The second link is a member link of the LAG, the port of the first link on the target aggregation device and the port of the second link on the another aggregation device are the LAG Member port.
  • the status of the target aggregation device is that the upgrade preparation state means that the LAG member port of the target aggregation device is disconnected, so that the target aggregation device cannot forward the data flow during the upgrade process, and the target convergence device may be as shown in FIG. 1 . Any of the aggregation devices in the network system shown.
  • the access device includes, but is not limited to, an access device or a network side device in the network system shown in FIG. 1. That is, when the access device forwards the data stream through the aggregation device data stream, the aggregation device needs to be upgraded, and the access device may be any access device or network side device that is currently in working state.
  • the first status indication message includes an upgrade status identifier of the target aggregation device, where the upgrade status identifier is used to indicate an upgrade status of the target aggregation device
  • the device aggregation system communicates with each access device and the network-side device (that is, another access device) through the Link Aggregation Control Protocol (LACP). Therefore, the target aggregation device sends the access device to the access device.
  • the status indication message is specifically that the target aggregation device sends the first status indication message by using an LACP packet, where the LACP protocol includes an extended type length value (TLV) field, and the extended TLV field includes the upgrade status identifier.
  • LACP Link Aggregation Control Protocol
  • the target aggregation device may also send the first status indication message to the access device by using other messages or messages.
  • the target aggregation device sends a first status indication message to the peer access device by using a LAG member port (a port belonging to any one of the LAGs).
  • the LACP module of the target aggregation device is notified that the target aggregation device is currently in the upgrade state of the cross-device system, and then the LACP module is in the standard LACP.
  • the extended TLV field is obtained in the packet, and the extended LACP packet is obtained.
  • Table 1 shows the extended LACP packet provided by the embodiment of the present invention. Compared with the standard LACP packet, the extended TLV is added. Field (shown in black).
  • the extended TLV field includes a type (TLV_type) that is upgrade information, a length (length) is an upgrade information length Update_Information_Length, and a value (value) is an upgrade status identifier Update_State.
  • TLV_type a type that is upgrade information
  • length length
  • value value
  • Update_State a value of the message extension TLV field provided by the embodiment of the present invention.
  • the cross-device system includes a first aggregation device and a second aggregation device, where the first aggregation device is a standby aggregation device, and the second aggregation device is a primary aggregation device, if first, The first aggregation device is upgraded, and the first aggregation device is the target aggregation device.
  • the user upgrade command may be first acquired by the second aggregation device, and then the second aggregation device notifies the target convergence device by using the inter-device internal protocol.
  • a device upgrade flag may be set in both the second aggregation device and the flash FLASH of the target aggregation device, where the device upgrade flag is used to record the current status of each aggregation device in real time. The upgrade status is updated and the upgrade flag is not lost after the upgrade is restarted. For example, for the target aggregation device, the device upgrade flag indicates that the device is in the upgrade state during the upgrade preparation to the end of the upgrade. When the target aggregation device is upgraded, the device upgrade flag of the target aggregation device can read the target in time.
  • the upgrade status of the aggregation device is updated, and the device upgrade flag is updated to a new state, that is, it is used to identify that the device is in the upgraded state. It can be understood that, by using the device upgrade flag, the device upgrade status of the aggregation device can be accurately recorded in real time, so that the target aggregation device can obtain the upgrade status of the target aggregation device and notify other devices by reading the device upgrade flag in time.
  • Each access device that receives the first status indication message configures a target data stream that is pre-configured to be forwarded by the target aggregation device to be forwarded by using another aggregation device.
  • each access device connected to the target aggregation device after receiving the LACP packet sent by the target aggregation device, each access device connected to the target aggregation device obtains the extended TLV field by parsing the LACP packet.
  • the upgrade status is identified as the upgrade preparation status
  • the access device is configured to be configured to forward the target data stream forwarded by the target aggregation device to be forwarded by other aggregation devices.
  • the access device modifies an egress port of the target data stream to a port that the access device connects to other aggregation devices.
  • the LAG forwarding table in the access device may be set to control which data stream is forwarded by which the aggregation device.
  • the LAG forwarding table includes a LAG outbound direction forwarding table and a LAG inbound direction forwarding table, and the LAG outbound direction forwarding table is used to determine the traffic load sharing of the LAG member ports in the outbound direction of the data packet, that is, the LAG outbound direction forwarding table.
  • the port includes a port that can be used to forward data streams to the aggregation device.
  • the LAG inbound forwarding table is used to determine whether the source port of the inbound packet belongs to the LAG member.
  • the LAG outbound forwarding table when the access device includes the LAG outbound forwarding table, is configured to store the access of the aggregation device that can forward the target data flow.
  • the LAG outgoing direction forwarding table includes an identifier of a port of the access device connected to the target aggregation device, and an identifier of a port of the access device connected to the other aggregation device, where the LAG departure is pre-configured to the forwarding table as Corresponding relationship between the identifier of the port of the access device connected to the target aggregation device and the target data flow, thereby indicating that the target data flow is pre-configured to be forwarded by the target aggregation device.
  • the access device When the target aggregation device needs to be upgraded, after the access device receives the first status indication message, the access device removes the identifier of the port of the access device connected to the target aggregation device from the LAG outbound forwarding table, and Configure the port corresponding to the target data flow in the LAG outbound forwarding table as the port connecting the access device to other aggregation devices.
  • the LAG outbound forwarding table of the access device may be configured to include the port 1 and the connection connection of the first aggregation device.
  • the access device can allocate the data stream to be forwarded to the first aggregation device and the second aggregation device through port 1 and port 2 through a certain algorithm (for example, a hash algorithm); when the access device learns that it needs
  • the access device updates the LAG outbound forwarding table on the access device, and connects the port 2 of the second aggregation device to the device.
  • the LAG outgoing direction forwarding table is removed, so that the access device does not allocate the to-be-forwarded data stream to the second aggregation device for forwarding.
  • Table 3 is a schematic diagram of a LAG outgoing direction forwarding table change according to an embodiment of the present invention.
  • the LAG hash keyword is used to identify the data stream to be forwarded
  • the LAG outbound direction forwarding table member is used to identify the port connecting the first aggregation device and the second aggregation device respectively.
  • the first aggregation device is connected.
  • the port is identified by the number 1
  • the port connected to the second aggregation device is identified by the number 2.
  • the LAG outbound forwarding table member will not include the port 2 connected to the second aggregation device, so that when the updated LAG is utilized, When the direction forwarding table forwards the data stream, the data stream will not be forwarded to the second aggregation device.
  • the target data stream refers to the part of the data stream that is pre-configured to be forwarded by the target aggregation device in the data stream forwarded by the access device.
  • the forwarding path of the target data stream can be adjusted by updating the LAG outbound forwarding table, so that the access device can forward the data stream through the aggregation device in the normal state to prevent the loss of the data stream packet.
  • the access device updates the LAG outbound forwarding table
  • the LAG inbound forwarding table is not changed and restricted, that is, the access device can receive data packets.
  • the access device receives the upgrade status of the target aggregation device
  • the access device does not forward the received data packet to the target aggregation device, but still forwards the received data packet to other aggregation devices to reduce the network system. Impact of equipment system upgrades.
  • each access device connected to the target aggregation device sends a first feedback message to the target aggregation device, and correspondingly, the target aggregation switch receives the first feedback message sent by each switch.
  • the first feedback message is used to notify the target aggregation device that the upgrade status of the target aggregation device of the access device that sends the first feedback message is an upgrade preparation state, to indicate that the target convergence device starts. upgrade.
  • the first feedback message includes an upgrade status identifier of the access device corresponding to the target aggregation device, and the upgrade status identifier corresponding to the target convergence device is used.
  • the link aggregation control protocol (LACP) message is sent to the target aggregation device when the first feedback message is sent to the target aggregation device.
  • LACP link aggregation control protocol
  • the target aggregation device sends the first feedback message, where the LACP field includes an extended TLV field, where the extended TLV field includes an upgrade status identifier of the target device corresponding to the target aggregation device, when the access device has After the data stream that is pre-configured to be the target aggregation device is switched to the other aggregation device, the upgrade state identifier indicates that the access device is in an upgrade preparation state for the target aggregation device.
  • the access device may also send the first feedback message to the target aggregation device by using other messages or messages.
  • the upgrade status of the target aggregation device corresponding to each access device is an upgrade preparation state, and the target aggregation is performed.
  • the device starts to upgrade.
  • the target aggregation device when the target aggregation device communicates with the access device through the LACP protocol, and the extended TLV field carries the device upgrade status identifier in the LACP packet, the target aggregation device traverses all accesses.
  • the target aggregation device starts to upgrade.
  • the target aggregation device sets the upgrade status indicator carried in the extended TLV field in the LACP packet sent by each access device to the upgrade status, so that the upgrade status of the target aggregation device is being upgraded.
  • the access device connected to the target aggregation device does not change the current data flow forwarding setting when the upgrade status of the target aggregation device is obtained through the LACP packet.
  • the target aggregation device After the target aggregation device is upgraded, the target aggregation device sends a second status indication message to each access device connected to the target aggregation device, and correspondingly, each access device receives the The second status indication message sent by the target aggregation device.
  • the second status indication message is used to notify the upgrade status of the target aggregation device of each access device connected to the target aggregation device as an upgrade completion status, so that each access device will use the target data.
  • the flow is reconfigured to be forwarded by the aggregation device.
  • the target aggregation device when the target aggregation device communicates with the access device through the LACP protocol, the target aggregation device sets the device upgrade status identifier carried in the extended TLV field in the sent LACP packet to be upgraded.
  • the completion status is used to indicate that the upgrade status of the target aggregation device at this time is the upgrade completion status.
  • the target aggregation device may also send the second status indication message to the access device by using other messages or messages.
  • a device upgrade flag is set in a flash FLASH of the target aggregation device, and the target aggregation device updates the device upgrade flag after the upgrade is completed, and the device upgrade flag is used to identify the target aggregation device.
  • the target aggregation device can obtain the upgrade status of the target aggregation device by completing the upgrade status of the target aggregation device, and trigger the target aggregation device to notify the connected access device of the upgrade status of the target aggregation device.
  • Each access device reconfigures the target data stream of the access device to be forwarded by using the target aggregation device.
  • the LAG outbound forwarding table when the LAG outbound forwarding table is included in the access device, the LAG outbound forwarding table is configured to store a LAG member port of the aggregation device that can be used to forward the target data stream.
  • the LAG outgoing direction forwarding table is pre-configured to include a correspondence between an identifier of a port of the access device that is connected to the target aggregation device and the target data flow, where the access device is in the LAG outbound forwarding table.
  • the port corresponding to the target data stream is reconfigured to be the port of the access device connected to the target aggregation device, and is used to indicate that the target data flow is forwarded through the LAG member port of the target aggregation device. Therefore, the target data stream to be forwarded by the access device can be forwarded again through the aggregation device, so that the network system can work normally.
  • the access device after the access device reconfigures the target data stream to be forwarded by the target aggregation device, the access device sends a second feedback message to the target aggregation device.
  • the second feedback message is used to notify the target aggregation device that the upgrade status of the target aggregation device is the upgrade completion state, that is, the target data flow forwarding configuration of the access device is switched back to the target aggregation device.
  • the access device may set the upgrade status identifier in the TLV extension field of the LACP packet.
  • the upgrade completion status is used to notify the target aggregation device that the access device has switched the data flow back to the target aggregation device.
  • the access device may also notify the target aggregation device of the access device by using other messages or messages.
  • the upgrade status is the upgrade completion status.
  • the target aggregation device receives the second feedback message sent by the access device, if the target aggregation device is the last aggregation device in all the aggregation devices, the cross-device system is illustrated.
  • the target aggregation device After the upgrade is complete, if the target aggregation device is not the last aggregation device in the aggregation device, the target aggregation device notifies other aggregation devices to upgrade through the inter-device system internal protocol, or the target aggregation device notifies the primary aggregation device in each aggregation device.
  • the target aggregation device has been upgraded so that the primary aggregation device notifies other aggregation devices to upgrade.
  • the upgrade process is the same as the upgrade process of the target aggregation device, that is, the other aggregation devices of the upgrade are re-determined as the target aggregation device, and the upgrade is performed by using the above method steps. Until the upgrade of all the aggregation devices in the cross-device system is completed.
  • the device upgrade flag is set in the flash FLASH of the target aggregation device, and after the target aggregation device receives the second feedback message sent by the access device, that is, all upgrades of the target aggregation device. After the process and the data flow switching process are completed, the target aggregation device will clear the device upgrade flag to free up memory space and improve operational efficiency. If the new target aggregation device is re-determined, the device upgrade flag can be set in the FLASH of the new target aggregation device to read the upgrade status of the new target aggregation device in real time.
  • the target aggregation device when the target aggregation device is about to be upgraded, the target aggregation device sends a first status indication message to each access device to which the connection is connected, and the first status indication message is used to notify the connection.
  • the upgrade status of the target aggregation device is the upgrade preparation state.
  • the access device After receiving the first status indication message, the access device is configured to forward the target data flow forwarded by the target aggregation device to be forwarded by other aggregation devices.
  • the target aggregation device sends a first feedback message, and the first feedback message is used to notify the target aggregation device that the upgrade status of the access device is an upgrade preparation state, to indicate that the target aggregation device starts to upgrade. Therefore, before the target aggregation device is upgraded, the access device is configured to switch to the other aggregation device through the target data flow of the target aggregation device to prevent packet loss during the cross-device system upgrade process.
  • the method can block the data flow interruption time caused by the LAG interface chip type, the port type, the port medium, and the routing specification, thereby ensuring system stability and improving user satisfaction.
  • the method does not limit the access device type of the forwarding data stream and the forwarding direction of the forwarding data stream, the method can not only prevent the unicast data packet loss during the cross-device system upgrade process, but also prevent the cross-device from being lost. Loss of broadcast packets, multicast packets, and unknown unicast packets during device system upgrade.
  • FIG. 7 is a schematic structural diagram of an access device according to an embodiment of the present invention, which is used to implement a device upgrade method according to an embodiment of the present invention.
  • the access device is applied to the network system, where the network system includes the access device and at least two aggregation devices, and the at least two aggregation devices are respectively connected to the access device, as shown in FIG.
  • An access device 700 provided by the embodiment of the present invention may include:
  • the receiving module 710 is configured to receive a first state indication message sent by the target aggregation device, where the first state indication message is used to notify the access device that the upgrade state of the target aggregation device is an upgrade preparation state;
  • the device is any one of the at least two aggregation devices;
  • the configuration module 720 is configured to configure the target data stream that is pre-configured to be forwarded by the target aggregation device to be forwarded by using another aggregation device;
  • the sending module 730 is configured to send a first feedback message to the target aggregation device, where the first feedback message is used to notify the target aggregation device that the upgrade status of the access device is an upgrade preparation state, to indicate the target The aggregation device starts to upgrade.
  • the receiving module 710 is further configured to receive a second state indication message sent by the target aggregation device, where the second state is The indication message is used to notify the access device that the upgrade status of the target aggregation device is an upgrade completion status;
  • the configuration module 720 is further configured to reconfigure the target data stream to be forwarded by the target aggregation device.
  • the access device includes a link aggregation group LAG outbound direction forwarding table, where the LAG outbound direction forwarding table is configured to store a port of the access device that is used to forward the aggregation device of the target data stream.
  • the LAG outgoing direction forwarding table is pre-configured to include a correspondence between an identifier of a port of the access device that is connected to the target aggregation device and the target data flow;
  • the configuration module 720 configures the target data stream that is pre-configured to be forwarded by the target aggregation device to be configured by using another aggregation device, including:
  • the port of the access device that is connected to the target aggregation device is removed from the LAG outgoing direction forwarding table, and the port corresponding to the target data flow is configured in the LAG outgoing direction forwarding table.
  • the configuration module 720 reconfigures the target data stream to be forwarded by using the target aggregation device, including:
  • the target aggregation device when the target aggregation device is about to be upgraded, the target aggregation device sends a first status indication message to each access device 700 to which it is connected, and the first status indication message is used to notify the connection.
  • the upgrade status of the target aggregation device is the upgrade preparation state.
  • the access device 700 After receiving the first status indication message, the access device 700 is configured to forward the target data flow forwarded by the target aggregation device to be forwarded by other aggregation devices. Sending a first feedback message to the target aggregation device, where the first feedback message is used to notify the target aggregation device that the upgrade status of the access device 700 is an upgrade preparation state, to indicate that the target aggregation device starts to upgrade. Therefore, before the target aggregation device is upgraded, the access device is configured to switch to the other aggregation device through the target data flow of the target aggregation device to prevent packet loss during the cross-device system upgrade process.
  • the method can block the data flow interruption time caused by the LAG interface chip type, the port type, the port medium, and the routing specification, thereby ensuring system stability and improving user satisfaction.
  • the method does not limit the access device type of the forwarding data stream and the forwarding direction of the forwarding data stream, the method can not only prevent the unicast data packet loss during the cross-device system upgrade process, but also prevent the cross-device from being lost. Loss of broadcast packets, multicast packets, and unknown unicast packets during device system upgrade.
  • the access device 700 is presented in the form of a unit.
  • a "unit” herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the functionality described above. .
  • ASIC application-specific integrated circuit
  • FIG. 8 is a schematic structural diagram of another access device according to an embodiment of the present invention. As shown in FIG. 8, the access device 800 includes:
  • the processor 802 may also be a controller, and the communication port 801 is configured to support the transmission and reception of information between the access device 800 (specifically, the access switch) and the at least two aggregation devices in the foregoing embodiment, and Support communication between the access device and other devices.
  • the access device 800 may further include a memory 803 for storing program codes and data of the access device 800 and being controlled by the processor 802 for execution.
  • the memory 803 can exist independently and be coupled to the processor 802 via a bus. Memory 803 can also be integrated with processor 802.
  • FIG. 8 only shows a simplified design of the access device 800.
  • the access device 800 can include any number of communication ports, a processor, a memory, and the like, and all the access devices that can implement the embodiments of the present invention are within the protection scope of the embodiments of the present invention.
  • FIG. 9 is a schematic structural diagram of a convergence device according to an embodiment of the present invention, which is used to implement a device upgrade method according to an embodiment of the present invention.
  • the aggregation device is a target aggregation device in the network system, the network system includes an access device and at least two aggregation devices, and the at least two aggregation devices are respectively connected to the access device, and the target convergence device
  • the aggregation device 900 of the embodiment of the present invention may include:
  • the sending module 910 is configured to send a first status indication message to the access device when the aggregation device is about to be upgraded, where the first status indication message is used to notify the access device of the upgrade status of the aggregation device. Prepare the status for the upgrade;
  • the receiving module 920 is configured to receive a first feedback message sent by the access device, where the first feedback message is used to notify the aggregation device that the upgrade state of the access device is an upgrade preparation state, and the upgrade preparation state is
  • the target data stream pre-configured to be forwarded by the aggregation device is configured to be forwarded by the other aggregation device for the access device.
  • the sending module 910 is further configured to send the second state to the access device after the aggregation device is upgraded.
  • An indication message the second status indication message is used to enable the access device to reconfigure the target data stream to be forwarded by the aggregation device, and the second status indication message is used to notify the access device
  • the upgrade status of the aggregation device is an upgrade completion status.
  • the aggregation device 900 when the aggregation device 900 is about to be upgraded, the aggregation device 900 sends a first status indication message to each access device to which it is connected, and the first status indication message is used to notify the access.
  • the upgrade status of the aggregation device 900 is an upgrade preparation state.
  • the access device After receiving the first status indication message, the access device is configured to forward the target data flow forwarded by the aggregation device 900 to be forwarded by other aggregation devices, and is aggregated.
  • the device 900 sends a first feedback message, which is used to notify the aggregation device 900 that the upgrade status of the access device 700 is an upgrade preparation state, to indicate that the aggregation device starts to upgrade. Therefore, before the aggregation device is upgraded, the access device is configured to switch to the other aggregation device through the target data flow of the aggregation device in advance to prevent packet loss during the cross-device system upgrade process.
  • the method can block the data flow interruption time caused by the LAG interface chip type, the port type, the port medium, and the routing specification, thereby ensuring system stability and improving user satisfaction.
  • the method does not limit the access device type of the forwarding data stream and the forwarding direction of the forwarding data stream, the method can not only prevent the unicast data packet loss during the cross-device system upgrade process, but also prevent the cross-device from being lost. Loss of broadcast packets, multicast packets, and unknown unicast packets during device system upgrade.
  • the convergence device 900 is presented in the form of a unit.
  • a "unit” herein may refer to an application-specific integrated circuit (ASIC), a processor and memory that executes one or more software or firmware programs, integrated logic circuits, and/or other devices that provide the functionality described above. .
  • ASIC application-specific integrated circuit
  • FIG. 10 is a schematic structural diagram of another aggregation device according to an embodiment of the present invention. As shown in FIG. 10, the aggregation device 1000 includes:
  • the processor 1002 can also be a controller.
  • the communication port 1001 is configured to support the aggregation and reception of information between the aggregation device 1000 (specifically, the aggregation switch) and the access device in the foregoing embodiment, and to support communication between the aggregation device and other devices.
  • the aggregation device 1000 may further include a memory 1003 for storing program codes and data of the aggregation device 1000, and is controlled by the processor 1002 for execution.
  • the memory 1003 can exist independently and be coupled to the processor 1002 via a bus.
  • the memory 1003 can also be integrated with the processor 1002.
  • FIG. 10 only shows a simplified design of the convergence device 1000.
  • the aggregation device 1000 can include any number of communication ports, a processor, a memory, and the like, and all the aggregation devices that can implement the embodiments of the present invention are within the protection scope of the embodiments of the present invention.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, and the program may implement some or all of the steps including any device upgrade method described in the foregoing method embodiments.
  • the foregoing storage medium includes: a U disk, a read-only memory (English: read-only memory), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
  • the disclosed apparatus may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.

Landscapes

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

Abstract

本发明实施例公开了一种设备升级方法及相关设备,该方法应用于网络系统中,该网络系统包括接入设备以及至少两个汇聚设备,所述至少两个汇聚设备分别连接所述接入设备,该方法包括:所述接入设备接收目标汇聚设备发送的第一状态指示消息;所述目标汇聚设备为所述至少两个汇聚设备中的任意一个;所述接入设备将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发;所述接入设备向所述目标汇聚设备发送第一反馈消息,以指示所述目标汇聚设备开始升级。本发明实施例能够避免跨设备系统升级过程中的数据包丢失。

Description

一种设备升级方法及接入设备
本申请要求于2017年3月8日提交中国专利局、申请号为201710134543.6、发明名称为“一种设备升级方法及接入设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信领域,具体涉及一种设备升级方法及接入设备。
背景技术
在大型网络接入的过程中,一般需要将接入侧设备(例如,接入交换机)通过链路聚合连接到汇聚设备(例如,汇聚交换机),通常汇聚设备为跨设备系统,也即由多台相同类型的汇聚设备通过运行特定协议组建成的一个逻辑系统。每个接入侧设备通过多条物理链路分别连接该多台汇聚设备,该多条物理链路组成链路聚合组(Link Aggregation group,LAG),该多条物理链路称为该LAG的成员链路,该多条物理链路分别连接所述接入侧设备和所述多台汇聚设备的端口,称为该LAG的成员端口。接入侧设备通过LAG连接汇聚交换机,可负载分担提高网络带宽利用率并增强可靠性。跨设备系统典型数据流模型采用双归组网的接入方式,也即接入侧设备或网络侧设备通过LAG双归接入两台跨设备系统的汇聚设备上。
当对跨设备系统进行升级时,例如当跨设备系统包括主汇聚设备和备汇聚设备时,可分别对主汇聚设备和备汇聚设备进行升级。例如当对备汇聚设备进行升级时,可在备汇聚设备的LAG成员端口关闭时将原来设置为通过备汇聚设备转发的数据流切换至主汇聚设备进行转发。但是目前在该升级过程中,由于主汇聚设备和备汇聚设备各单板芯片类型、端口不一致,接入侧设备、网络侧设备感知端口故障时间点也不一致。例如,当备汇聚设备网络侧端口关闭,备汇聚设备接入侧端口尚未关闭或备汇聚设备端口均已关闭而接入侧设备感知端口故障慢时,接入侧设备数据流仍然流向备汇聚设备,此时发往汇聚设备的数据流中的数据包会丢失。
发明内容
本发明实施例提供了一种设备升级方法及相关设备,以避免跨设备系统升级过程中的数据包丢失。
第一方面,本发明实施例提供了一种设备升级方法,该方法应用于网络系统中,该网络系统包括接入设备,以及分别连接该接入设备的至少两个汇聚设备,该方法通过以下步骤实现设备升级。首先接入设备接收目标汇聚设备发送的第一状态指示消息,该第一状态指示消息用于通知接入设备上述目标汇聚设备的升级状态为升级准备状态,其中,该目标汇聚设备为上述至少两个汇聚设备中的任意一个;然后接入设备在接收到第一状态指示消息后,将预配置为通过目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发;最后接入设备再向目标汇聚设备发送第一反馈消息,该第一反馈消息用于通知该目标汇聚设备上述接入设备的升级状态为升级准备状态,以指示目标汇聚设 备开始升级。
本发明实施例提供的方案中,接入设备在目标汇聚设备即将升级时,将配置为通过该目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发,然后在配置完成后,通知目标汇聚设备开始升级,从而防止跨设备系统升级过程中的数据包丢失。
更进一步地,通过上述方法,可以屏蔽LAG接口芯片类型、端口类型、端口介质、路由规格等导致的数据流中断时间,保证系统工作稳定性,提高用户满意度。
更进一步地,由于该方法并不限制转发数据流的接入设备类型与转发数据流的转出方向,所以使得该方法不仅能防止跨设备系统升级过程中单播数据包丢失,也能防止跨设备系统升级过程中广播数据包、组播数据包以及未知单播数据包的丢失。
在一个可能的设计中,在接入设备向目标汇聚设备发送第一反馈消息之后,接入设备还接收目标汇聚设备发送的第二状态指示消息,其中,该第二状态指示消息用于通知接入设备上述目标汇聚设备的升级状态为升级完成状态,然后接入设备在接收到该第一反馈消息之后,将目标数据流重新配置为通过该目标汇聚设备进行转发。以实现目标数据流的回切。
在一个示例中,接入设备与目标汇聚设备之间通过LACP协议进行通信,在LACP协议报文中扩展TLV字段,该扩展TLV字段包括升级状态标识,该升级状态标识用于表示接入设备或目标汇聚设备的升级状态,从而在接入设备通过LACP报文接收目标汇聚设备发送的第一状态指示消息时,在该升级状态标识中携带目标汇聚设备当前的升级状态为升级准备状态;在接入设备通过LACP报文向目标汇聚设备发送第一反馈消息时,该升级状态标识中携带接入设备当前的升级状态为升级准备状态;在接入设备通过LACP报文接收目标汇聚设备发送的第二状态指示消息时,该升级状态中携带目标汇聚设备当前的升级状态为升级完成状态。
在一个可能的设计中,该接入设备包括链路聚合组LAG出方向转发表,其中,该LAG出方向转发表用于存储用于转发目标数据流的汇聚设备连接的接入设备的端口的标识,该LAG出方向转发表预配置为包括连接目标汇聚设备的接入设备的端口的标识与目标数据流的对应关系;在接入设备接收到目标汇聚设备发送的第一状态指示消息后,接入设备将连接目标汇聚设备的接入设备的端口从LAG出方向转发表中移除,并在LAG出方向转发表中配置目标数据流对应的端口为接入设备连接其它汇聚设备的端口。
在一个可能的设计中,在接入设备接收到目标汇聚设备发送的第二状态指示消息后,在LAG出方向转发表中将目标数据流对应的端口重新配置为接入设备连接所述目标汇聚设备的端口。
通过更新LAG出方向转发表,可调整目标数据流的转发路径,从而保证接入设备能通过处于正常状态的汇聚设备转发数据流,防止数据流包的丢失。
第二方面,本发明实施例提供了一种设备升级方法,该方法应用于网络系统中,该网络系统包括接入设备以及至少两个汇聚设备,该至少两个汇聚设备分别连接接入设备,该至少两个汇聚设备包括目标汇聚设备,该方法通过以下步骤实现设备升级。首先当目标汇聚设备即将升级时,目标汇聚设备向接入设备发送第一状态指示消息,该述第一状态指示消息用于通知接入设备上述目标汇聚设备的升级状态为升级准备状态;然后 目标汇聚设备接收接入设备发送的第一反馈消息,该第一反馈消息用于通知述目标汇聚设备上述接入设备的升级状态为升级准备状态,该升级准备状态为接入设备将预配置为通过目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发,也即接入设备已完成对目标数据流的切换,从而目标汇聚设备开始升级。
本发明实施例提供的方案中,目标汇聚设备在即将升级时,向目标汇聚设备发送当前的升级状态,从而接入设备将配置为通过该目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发,然后目标汇聚设备在接收到接入设备的当前状态为升级准备状态后再开始升级,从而防止跨设备系统升级过程中的数据包丢失。
更进一步地,通过上述方法,可以屏蔽LAG接口芯片类型、端口类型、端口介质、路由规格等导致的数据流中断时间,保证系统工作稳定性,提高用户满意度。
更进一步地,由于该方法并不限制转发数据流的接入设备类型与转发数据流的转出方向,所以使得该方法不仅能防止跨设备系统升级过程中单播数据包丢失,也能防止跨设备系统升级过程中广播数据包、组播数据包以及未知单播数据包的丢失。
在一个可能的设计中,在目标汇聚设备接收接入设备发送的第一反馈消息之后,并且目标汇聚设备升级完成之后,目标汇聚设备向接入设备发送第二状态指示消息,该第二状态指示消息用于使接入设备将目标数据流重新配置为通过目标汇聚设备进行转发,该第二状态指示消息用于通知接入设备上述目标汇聚设备的升级状态为升级完成状态。以实现目标数据流的回切换。
在一个示例中,接入设备与目标汇聚设备之间通过LACP协议进行通信,在LACP协议报文中扩展TLV字段,该扩展TLV字段包括升级状态标识,该升级状态标识用于表示接入设备或目标汇聚设备的升级状态,从而在目标汇聚设备通过LACP报文向接入设备目标汇聚发送第一状态指示消息时,在该升级状态标识中携带目标汇聚设备当前的升级状态为升级准备状态;在目标汇聚设备通过LACP报文接收接入设备发送的第一反馈消息时,该升级状态标识中携带接入设备当前的升级状态为升级准备状态;在目标汇聚设备通过LACP报文向接入设备发送第二状态指示消息时,该升级状态中携带目标汇聚设备当前的升级状态为升级完成状态。
第三方面,本发明实施例提供一种接入设备,该接入设备具有实现上述第一方面的方法的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
第四方面,本发明实施例提供一种接入设备,该接入设备包括处理器和至少一个通信端口,所述处理器被配置为支持接入设备执行上述方法中相应的功能。所述通信端口用于支持接入设备与汇聚设备之间的通信。进一步的,接入设备还可以包括存储器,所述存储器用于与处理器耦合,其保存接入设备必要的程序指令和数据。
第五方面,本发明实施例提供一种计算机存储介质,用于储存为上述用于第三方面所述的接入设备所用的计算机软件指令,其包含用于执行上述第一方面的方法的程序。
第六方面,本发明实施例提供一种汇聚设备,该汇聚设备具有实现上述第二方面的方法的功能,所述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
第七方面,本发明实施例提供一种汇聚设备,该汇聚设备包括处理器、通信端口,所述处理器被配置为支持汇聚设备执行上述方法中相应的功能。所述通信端口用于支持汇聚设备与接入设备之间的通信。进一步的,汇聚设备还可以包括存储器,所述存储器用于与处理器耦合,其保存汇聚设备必要的程序指令和数据。
第八方面,本发明实施例提供一种计算机存储介质,用于储存为上述用于第六方面所述的汇聚设备所用的计算机软件指令,其包含用于执行上述第二方面所的方法的程序。
第九方面,本发明实施例提供一种网络系统,该系统包括上述方面所述的接入设备以及汇聚设备。
相较于现有技术,本发明实施例的方案中,通过在目标汇聚设备升级之前,提前将配置为目标汇聚设备进行转发的流量切换至其它汇聚设备,防止跨设备系统升级过程中的数据包丢失。
更进一步地,通过该方法,可以屏蔽LAG接口芯片类型、端口类型、端口介质、路由规格等导致的数据流中断时间,保证系统工作稳定性,提高用户满意度。
更进一步地,由于该方法并不限制转发数据流的接入设备类型与转发数据流的转出方向,所以使得该方法不仅能防止跨设备系统升级过程中单播数据包丢失,也能防止跨设备系统升级过程中广播数据包、组播数据包以及未知单播数据包的丢失。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。
图1是本发明实施例提供的一种网络系统的架构示意图;
图2是本发明实施例提供的LAG功能实现的硬件结构示意图;
图3是本发明实施例提供的一种跨设备系统数据流转发示意图;
图4-a是本发明实施例提供的一种跨设备系统中第一汇聚交换机升级重启时数据流转发示意图;
图4-b是本发明实施例提供的一种跨设备系统中第二汇聚交换机升级重启时数据流转发示意图;
图5是本发明实施例提供的一种跨设备系统中第一汇聚交换机升级重启时各端口的故障时间点不一致导致丢包的过程示意图;
图6是本发明实施例提供一种设备升级方法的流程示意图;
图7是本发明实施例提供的一种接入设备的结构示意图;
图8是本发明实施例提供的另一种接入设备的结构示意图;
图9是本发明实施例提供的一种汇聚设备的结构示意图;
图10是本发明实施例提供的另一种汇聚设备的结构示意图。
具体实施方式
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。
参见图1,图1是本发明实施例提供的一种网络系统100的架构示意图,如图1所示,该网络系统100包括至少一个接入设备120a-120d、至少一个汇聚设备130a-130b以及网络侧设备(位于因特网中的设备,图中未示出)。其中,接入设备120a-120d部署于接入层120中,汇聚设备130a-130b部署于汇聚层130中。接入设备120a-120d可以为接入交换机,汇聚设备130a-130b可以是汇聚交换机。接入设备120a-120d中的每个接入设备通过汇聚设备130a-130b与其他接入设备或网络侧设备通信。图1为了简便,仅仅示出了接入设备120c与汇聚设备130a和130b之间的连接关系。此外,为了叙述方便,本申请中将网络设备的端口分为接入侧端口和网络侧端口,其中,北向端口(即图1中向上连接的端口)称为网络侧端口,南向端口(即图1中向下连接的端口)称为接入侧端口。则对于接入设备120a-120d来说,连接服务器110的端口为接入侧端口,连接汇聚设备130a-130b的端口为网络侧端口。对于汇聚设备130a-130b来说,连接接入设备120a-120d的端口为接入侧端口,连接因特网的端口为网络侧端口。
接入设备120a-120d中的每个接入设备至少连接一台服务器110。其中,服务器110用于存储数据。服务器110还可以通过对应的接入交换机以及汇聚交换机从网络侧接收数据,或者上传数据到网络侧。具体地,该服务器110可以为数据服务器。
可选地,在本发明的一个可能的实施例中,该服务器110也可以替换为其它终端设备。
在本发明实施例中,该汇聚层130中的多个汇聚设备通过内部协议组成一个跨设备的逻辑系统。例如,汇聚设备130a和汇聚设备130b组成了一个跨设备系统。当某个接入设备,例如接入设备120c通过多个汇聚设备,例如汇聚设备130a和汇聚设备130b与网络侧设备通信时,该接入设备120c以链路聚合的方式连接到汇聚设备130a和汇聚设备130b上,也即该接入设备120c通过多条链路,分别连接汇聚设备130a和汇聚设备130b,所述多条链路组成一个链路聚合组LAG,例如,图1中的链路LAG1-1和链路LAG1-2组成了聚合链路组LAG1。LAG1-1和LAG1-2称为LAG1的成员链路。由于链路可以由该链路两端的端口来表示,当LAG1-1和LAG1-2分别指示汇聚设备130a和汇聚设备130b连接接入设备120c的端口时,则LAG1-1和LAG1-2也可以称为LAG1的成员端口。当链路聚合组LAG1建立完成后,接入设备120c将通过LAG1的两条成员链路以负载分担的方式发送数据流,即接入设备120c将所述数据流负载分担至汇聚设备130a和130b上,从而提高网络带宽利用率并增强可靠性。其中,LAG是指将多条连接到同一设备的链路捆绑在一起,例如将接入设备120c与汇聚设备130a和130b的物理以太端口配置在同一个LAG聚合端口,这样接入设备120c在通过LAG聚合端口发送数据流时,会通过一定的算法(例如哈希算法)选择转发出接口,以便于增加带宽和改善链路的可靠性,聚合的链路可以当作是一条逻辑链路。在本发明实施例中,也即将至少一个接入设备聚合后的数据链路当作一条逻辑链路,再将该逻辑链路上的数据流负载分担至汇聚设备上,也即至少一个汇聚交换机120上。
值得说明的是,汇聚设备130a和130b也可以通过链路聚合的方式接入网络侧设备,则汇聚设备130a和130b分别连接网络侧设备的两条链路组成一个链路聚合组,例如LAG2,该两条链路,例如LAG2-1和LAG2-2分别为LAG2的成员链路,相应的,对应LAG2-1和LAG2-2的端口称为LAG2的成员端口。
在本发明实施例中,为了实现在各接入设备、网络侧设备以及汇聚设备之间形成链路聚合组LAG,可通过在各接入设备、网络侧设备以及汇聚设备上配置同样的硬件结构,该硬件结构具体如图2所示。其中,图2是本发明实施例提供的LAG功能实现的硬件结构示意图,图2所示的硬件结构集成在接入设备、网络侧设备和汇聚设备上。
其中,如图2所示,该硬件结构中,中央处理器(英文:central processing unit,CPU),用于对各接入设备、网络侧设备和汇聚设备的运行进行控制,例如,对各接入设备、网络侧设备和汇聚设备的LAG功能以及LAG成员端口的开启与关闭进行控制。在本发明实施例中,该LAG功能可以是指数据流的转发行为,该LAG功能主要在局域网交换芯片(英文:LAN switch,LSW)中实现。具体地,该数据流的转发行为可通过对转发表项进行配置来实现,从而CPU可用于控制LSW对转发表项的初始化、重配置等。同时CPU还用于控制各接入设备、网络侧设备和汇聚设备之间的协议报文的收发。
随机存取存储器(英文:random-access memory,RAM)用于存储执行LAG功能时所使用的代码和数据,例如,数据流的转发行为实现程序以及上述转发表项等;闪存(FLASH)用于存储当前运行的程序以及静态配置的参数,例如,可用于存储接入设备、网络侧设备和汇聚设备的当前升级状态的一个标识信息;物理层接口(英文:physicallayer interface,PHY)用于完成各接入设备、网络侧设备以及汇聚设备之间的光口或电器的以太网接口对接。
下面对本发明实施例进行详细说明。首先参见图3,图3是本发明实施例提供的一种跨设备系统数据流转发示意图,图3是基于图1的一个简化结构图,以便于理解基于链路聚合组的数据流转发情形。如图3所示,该网络系统包括第一汇聚交换机以及第二汇聚交换机,当需要对汇聚交换机升级时,例如首先对第一汇聚交换机更换新版本并进行升级时,第一汇聚交换机重启时,第一汇聚交换机上的LAG成员端口物理关闭后,接入交换机和网络侧设备发送的数据流会全部切换到第二汇聚交换机,具体可参见图4-a,图4-a是本发明实施例提供的一种跨设备系统中第一汇聚交换机升级重启时数据流转发示意图。当第一汇聚交换机升级到新版本且启动完成后,第一汇聚交换机上的LAG成员端口恢复正常通信,第一汇聚交换机通知第二汇聚交换机升级,此时第二汇聚交换机更换新版本并重启,接入交换机和网络侧设备发送的数据流会从第二汇聚交换机全部切换到第一汇聚交换机,具体可参见图4-b,图4-b是本发明实施例提供的一种跨设备系统中第二汇聚交换机升级重启时数据流转发示意图。当第二汇聚交换机升级为新版本后,第一汇聚交换机上的LAG成员端口恢复正常通信,接入交换机和网络侧设备发送的数据流重新在第一汇聚交换机和第二汇聚交换机的LAG内负载分担。
在本发明实施例中,当第一汇聚交换机升级重启时,第一汇聚交换机的LAG成员端口关闭。接入交换机、网络侧设备需要在感知到第一汇聚交换机的LAG成员端口故障后将数据流切换至第二汇聚交换机上。而由于网络时延等的存在,接入设备、网络侧设备并无法及时感知到LAG成员端口故障,导致在LAG成员端口故障后,接入设备、网络侧设备仍然将数据流转发至第一汇聚交换机上,从而造成该数据流的数据包丢失;或者由于第二汇聚交换机中的各单板芯片类型、端口不一致,接入设备、网络侧设备感知到LAG成员端口故障时间点也不一致,此时间差越大造成丢包的时间越长,具体可参见图5。图5是本发明实施例提供的一种跨设备系统中第一汇聚交换机升级重启时各端口的故 障时间点不一致导致丢包的过程示意图,如图5所示,当第一汇聚交换机的网络侧端口关闭但第一汇聚交换机接入侧端口尚未关闭,或第一汇聚交换机的网络侧端口和接入侧端口均已关闭而接入设备感知端口故障慢时,接入设备仍然向第一汇聚交换机发送数据流,此时第一汇聚交换机不能转发数据流,导致该数据流的数据包丢失。
更进一步地,当第一汇聚交换机升级完成后,第一汇聚交换机的各单板注册成功且各端口恢复正常通信时,与第一汇聚交换机升级时场景类似,由于接入设备、网络侧设备感知端口恢复时间滞后,或由于第一汇聚交换机的单板不同芯片类型、端口介质的差异,第一汇聚交换机的网络侧端口恢复正常通信时间与接入侧端口恢复正常通信的时间可能不一致,同样会出现数据包丢失的情况。此外,由于第一汇聚交换机恢复正常通信时还需要重新建立路由协议,并向转发面下发转发表项,如果转发表项规格过大,表项未下发完成也会造成数据包丢失。
综上所述,跨设备系统升级过程中需要经过多次故障切换,且影响数据流切换及恢复的因素不可控,包括芯片差异、介质差异、端口类型差异、转发表项规格等,升级过程中丢包可能较多,影响用户体验以及增加管理维护成本。因此,本发明提出了一种设备升级方法。参见图6,为本发明实施例提供一种设备升级方法的流程示意图,该设备升级方法应用于跨设备链路聚合场景,如图6所示,该方法可以包括以下步骤:
S601、当目标汇聚设备即将升级时,目标汇聚设备向其所连接的每个接入设备发送第一状态指示消息。
相应地,与所述目标汇聚设备相连的每个接入设备接收所述第一状态指示消息。
其中,所述第一状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级准备状态。
其中,该目标汇聚设备为即将进行升级的汇聚设备,该目标汇聚设备与至少另一汇聚设备组成跨设备系统,所述跨设备系统与所述接入设备通过跨设备链路聚合方式连接,即所述目标汇聚设备连接所述接入设备的第一链路和所述另一汇聚设备连接所述接入设备的第二链路组成链路聚合组LAG,所述第一链路和所述第二链路为所述LAG的成员链路,所述第一链路在所述目标汇聚设备上的端口和所述第二链路在所述另一汇聚设备上的端口为所述LAG的成员端口。所述目标汇聚设备的状态为升级准备状态意味着该目标汇聚设备的LAG成员端口将断开,使得在该目标汇聚设备在升级的过程中无法转发数据流,该目标汇聚设备可以为图1所示的网络系统中的任一汇聚设备。
其中,该接入设备包括但不限于图1所示的网络系统中的接入设备或网络侧设备。也即当在接入设备通过汇聚设备数据流转发数据流时,汇聚设备需要升级,该接入设备可以为当前正处于工作状态的任一接入设备或网络侧设备。
可选地,在本发明的一个实施例中,所述第一状态指示消息包括所述目标汇聚设备的升级状态标识,所述升级状态标识用于表示所述目标汇聚设备的升级状态,由于跨设备系统与各接入设备、网络侧设备(也即另一接入设备)之间均通过链路汇聚控制协议(Link Aggregation Control Protocol,LACP)进行通信,故目标汇聚设备向接入设备发送第一状态指示消息具体为,目标汇聚设备通过LACP报文发送所述第一状态指示消息,所述LACP协议包括扩展类型长度值(TLV)字段,所述扩展TLV字段包括所述升级状态标识。
可选地,在本发明的一些可能的实施例中,目标汇聚设备也可以通过其它消息或报文向接入设备发送第一状态指示消息。
可选地,在本发明的一个实施例中,目标汇聚设备通过LAG成员端口(属于任意一个LAG的端口)向对端接入设备发送第一状态指示消息。
具体地,在本发明的一个实施例中,跨设备系统的目标汇聚设备升级时,通知目标汇聚设备的LACP模块当前该目标汇聚设备正处于跨设备系统升级状态中,然后LACP模块在标准的LACP报文中扩展TLV字段,得到扩展的LACP报文,具体可参见表一,表一示出了本发明实施例提供的扩展的LACP报文,相比标准的LACP报文,多了扩展的TLV字段(黑色字体所示)。如下表一所示,该扩展TLV字段包括的类型(TLV_type)为升级信息,长度(length)为升级信息长度Update_Information_Length,以及值(value)为升级状态标识Update_State。其中,表一中扩展TLV的各字段的详细说明可参见表二,表二是本发明实施例提供的报文扩展TLV字段说明。然后该目标汇聚设备通过所有LAG成员端口发送所述扩展的LACP报文,从而使得各接入设备获知目标汇聚设备的升级状态。
表一
Figure PCTCN2018076747-appb-000001
表二
Figure PCTCN2018076747-appb-000002
Figure PCTCN2018076747-appb-000003
可选地,在本发明的一个实施例中,若跨设备系统包括第一汇聚设备和第二汇聚设备,其中,第一汇聚设备为备汇聚设备,第二汇聚设备为主汇聚设备,若首先对第一汇聚设备进行升级,此时该第一汇聚设备即目标汇聚设备。本发明中,可首先由第二汇聚设备获取到用户升级命令,然后第二汇聚设备通过跨设备内部协议通知到该目标汇聚设备。
更进一步地,在本发明的一个实施例中,可以在第二汇聚设备和该目标汇聚设备的闪存FLASH中均设置设备升级标记(flag),该设备升级标记用于实时记录各汇聚设备的当前升级状态,并且在升级重启后该升级标记也不丢失。例如,对于目标汇聚设备来说,在升级准备至升级结束期间,该设备升级标记一直标识设备正处于升级状态,而当目标汇聚设备升级完成后,目标汇聚设备的设备升级标记能及时读取目标汇聚设备的升级状态,并将该设备升级标记及时更新为新的状态,也即用于标识设备处于升级完成的状态。可以理解,通过该设备升级标记,可以实时准确地记录汇聚设备的设备升级状态,以方便目标汇聚设备通过读取该设备升级标记及时准确地获取到目标汇聚设备的升级状态并通知到其它设备。
S602、每个接收到所述第一状态指示消息的接入设备将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发。
可选地,在本发明的一个实施例中,与所述目标汇聚设备连接的每个接入设备接收到目标汇聚设备发送的LACP报文后,通过解析该LACP报文,获取到扩展TLV字段的升级状态标识为升级准备状态时,该接入设备将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发。具体来说,所述接入设备将所述目标数据流的出端口修改为所述接入设备连接其他汇聚设备的端口。
在本发明实施例中,接入设备通过各个汇聚设备转发数据流时,可通过对接入设备中的LAG转发表进行设置从而控制经过哪个汇聚设备转发哪些数据流。其中,LAG转发表包括LAG出方向转发表以及LAG入方向转发表,LAG出方向转发表用于确定数据报文从哪些出端口方向的LAG成员端口进行流量负载分担,也即LAG出方向转发表中包括可用于向汇聚设备转发数据流的端口,LAG入方向转发表用于确定入方向报文的源端口是否属于LAG成员。
可选地,在本发明的一个实施例中,当接入设备中包括LAG出方向转发表时,该LAG出方向转发表用于存储可转发所述目标数据流的汇聚设备连接的该接入设备的端 口的标识,该LAG出方向转发表包括目标汇聚设备连接的该接入设备的端口的标识,以及其它汇聚设备连接的接入设备的端口的标识,该LAG出发向转发表预配置为包括连接该目标汇聚设备的该接入设备的端口的标识与目标数据流的对应关系,从而指示该目标数据流预配置为通过所述目标汇聚设备转发。当目标汇聚设备需要升级时,接入设备接收到第一状态指示消息后,接入设备将目标汇聚设备连接的该接入设备的端口的标识从所述LAG出方向转发表中移除,并在LAG出方向转发表中配置该目标数据流对应的端口为接入设备连接其它汇聚设备的端口。
举例说明,在本发明的一个实施例中,若汇聚设备包括第一汇聚设备和第二汇聚设备,可首先配置接入设备的LAG出方向转发表包括连接第一汇聚设备的端口1和连接第二汇聚设备的端口2,接入设备可通过一定的算法(例如哈希算法)将待转发数据流通过端口1和端口2分配给第一汇聚设备以及第二汇聚设备;当接入设备获知需要对第二汇聚设备进行升级时,也即此时第二汇聚设备为目标汇聚设备,接入设备更新所述接入设备上的LAG出方向转发表,将连接第二汇聚设备的端口2从所述LAG出方向转发表中移除,从而接入设备不再将待转发数据流分配至第二汇聚设备进行转发。LAG出方向转发表的变化情况可参见表三,表三是本发明实施例提供的一种LAG出方向转发表变化示意图。其中,LAG哈希关键词用于标识各待转发数据流,LAG出方向转发表成员用于分别标识连接第一汇聚设备和第二汇聚设备的端口,在该实施例中,连接第一汇聚设备的端口用数字1标识,连接第二汇聚设备的端口用数字2进行标识。可以看出,由于第二汇聚设备在升级,所以当对LAG出方向转发表进行更新后,LAG出方向转发表成员将不包括连接第二汇聚设备的端口2,从而当利用更新后的LAG出方向转发表进行数据流转发时,数据流将不会转发至第二汇聚设备中。
表三
Figure PCTCN2018076747-appb-000004
其中,目标数据流是指接入设备转发的数据流中预先配置为通过目标汇聚设备进行转发的那部分数据流。
可以理解,通过更新LAG出方向转发表,可调整目标数据流的转发路径,从而保证接入设备能通过处于正常状态的汇聚设备转发数据流,防止数据流包的丢失。
值得说明的是,在接入设备更新LAG出方向转发表时,并不更改与限制LAG入方向转发表,即该接入设备可接收数据报文。并且接入设备在接收到目标汇聚设备的升级状态时,不将接收的数据报文转发至目标汇聚设备,但依然将所述接收的数据报文转发给其它汇聚设备,以降低网络系统因为跨设备系统升级所造成的影响。
S603、所述目标汇聚设备相连的每个接入设备向所述目标汇聚设备发送第一反馈消息,相应地,所述目标汇聚交换机接收所述每个交换机发送的第一反馈消息。
其中,每个第一反馈消息用于通知所述目标汇聚设备发送所述第一反馈消息的接入设备的对应所述目标汇聚设备的升级状态为升级准备状态,以指示所述目标汇聚设备开始升级。
可选地,在本发明的一个实施例中,所述第一反馈消息包括所述接入设备对应所述目标汇聚设备的的升级状态标识,所述对应所述目标汇聚设备的升级状态标识用于标识所述接入设备相对于所述目标汇聚设备的升级状态,所述接入设备向所述目标汇聚设备发送第一反馈消息时,可通过链路汇聚控制协议(LACP)报文向所述目标汇聚设备发送所述第一反馈消息,该LACP报文包括扩展的TLV字段,该扩展的TLV字段包括所述接入设备对应所述目标汇聚设备的升级状态标识,当接入设备已将预配置为目标汇聚设备的数据流切换至其它汇聚设备后,该升级状态标识指示所述接入设备对所述目标汇聚设备为升级准备状态。可选地,在本发明的一些可能的实施例中,接入设备也可以通过其它消息或报文向目标汇聚设备发送第一反馈消息。
在本发明实施例中,当目标汇聚设备接收到连接的所有接入设备发送的第一反馈消息后,获取到各接入设备对应所述目标汇聚设备的升级状态均为升级准备状态,目标汇聚设备开始升级。
具体地,在本发明的一个实施例中,当目标汇聚设备与接入设备通过LACP协议进行通信,并且在LACP报文中扩展TLV字段携带设备升级状态标识时,目标汇聚设备通过遍历所有接入设备的双归LAG成员端口获取到各接入设备对应所述目标汇聚设备的升级状态均为升级准备状态时,目标汇聚设备开始升级。在升级过程中,目标汇聚设备将向各接入设备发送的LACP报文中的扩展TLV字段携带的升级状态标识置为升级状态,以用于表示目标汇聚设备的升级状态为正在升级。所述目标汇聚设备连接的接入设备在通过LACP报文获取到该目标汇聚设备的升级状态时,不改变当前的数据流转发设置。
S604、在所述目标汇聚设备升级完成之后,所述目标汇聚设备向所述目标汇聚设备连接的每个接入设备发送第二状态指示消息,相应地,所述每个接入设备接收所述目标汇聚设备发送的第二状态指示消息。
其中,该第二状态指示消息用于通知所述目标汇聚设备连接的每个接入设备所述目标汇聚设备的升级状态为升级完成状态,以使所述每个接入设备将所述目标数据流重新配置为通过所述汇聚设备进行转发。
具体地,在本发明的一个实施例中,当目标汇聚设备与接入设备通过LACP协议进行通信时,目标汇聚设备将发送的LACP报文中的扩展TLV字段携带的设备升级状态标识置为升级完成状态,以用于表示目标汇聚设备此时的升级状态为升级完成状态。
可选地,在本发明的另一些可能的实施例中,目标汇聚设备也可以通过其它消息或报文向接入设备发送第二状态指示消息。
更进一步地,在本发明的一个实施例中,在目标汇聚设备的闪存FLASH中设置设备升级标记,目标汇聚设备在升级完成后更新该设备升级标记,该设备升级标记用于标识该目标汇聚设备升级完成,目标汇聚设备可通过读取该设备升级标记来获取到目标汇聚设备此时的升级状态为升级完成,并触发目标汇聚设备将该目标汇聚设备的升级状态通知连接的每个接入设备。
S605、每个接入设备将所述接入设备的目标数据流重新配置为通过所述目标汇聚设备进行转发。
具体地,在本发明的一个实施例中,当在接入设备中包括LAG出方向转发表时, 该LAG出方向转发表用于存储可用于转发所述目标数据流的汇聚设备的LAG成员端口的标识,LAG出方向转发表预配置为包括连接目标汇聚设备的所述接入设备的端口的标识与所述目标数据流的对应关系,所述接入设备在该LAG出方向转发表中将目标数据流对应的端口重新配置为接入设备连接目标汇聚设备的端口,用于指示所述目标数据流通过所述目标汇聚设备的LAG成员端口进行转发。从而使得接入设备待转发的目标数据流可重新通过该汇聚设备进行转发,使得网络系统能正常工作。
更进一步地,在本发明的一个实施例中,当接入设备将目标数据流重新配置为通过目标汇聚设备进行转发后,接入设备再向目标汇聚设备发送第二反馈消息。该第二反馈消息用于通知目标汇聚设备,该接入设备对应所述目标汇聚设备的升级状态为升级完成状态,也即该接入设备的目标数据流转发配置重新切换至目标汇聚设备。
可选地,在本发明的一个实施例中,当接入设备将目标数据流重新配置为通过目标汇聚设备进行转发后,接入设备可将LACP报文的TLV扩展字段中的升级状态标识设置为升级完成状态,用于通知目标汇聚设备该接入设备已将数据流重新切换回目标汇聚设备。
可选地,在本发明的另一些可能的实施例中,接入设备在将目标数据流重新切换回至目标汇聚设备后,也可以通过其它消息或报文通知目标汇聚设备该接入设备的升级状态为升级完成状态。
更进一步地,在本发明的一个实施例中,当目标汇聚设备接收到接入设备发送的第二反馈消息后,若目标汇聚设备为所有汇聚设备中最后进行升级的汇聚设备,说明跨设备系统升级完成,若目标汇聚设备不是所有汇聚设备中最后进行升级的汇聚设备,该目标汇聚设备通过跨设备系统内部协议通知其它汇聚设备进行升级,或者该目标汇聚设备通知各汇聚设备中的主汇聚设备该目标汇聚设备已升级完成,以使得主汇聚设备再通知其它汇聚设备进行升级。
值得说明的是,当其它汇聚设备进行升级时,升级过程与该目标汇聚设备的升级过程一样,也即此时将该升级的其它汇聚设备重新确定为目标汇聚设备,并使用上述方法步骤进行升级,直至跨设备系统中所有汇聚设备升级完成。
具体地,在本发明的一个实施例中,在目标汇聚设备的闪存FLASH中设置设备升级标记,当目标汇聚设备接收到接入设备发送的第二反馈消息后,也即目标汇聚设备的所有升级过程以及数据流切换过程已完成后,该目标汇聚设备将清除该设备升级标记,以释放内存空间,提高运行效率。而此时若再重新确定新的目标汇聚设备,将可以再在该新的目标汇聚设备的FLASH中设置设备升级标记,以用于实时读取该新的目标汇聚设备的升级状态。
可以看出,本发明实施例的方案中,当目标汇聚设备即将升级时,目标汇聚设备向其所连接的每个接入设备发送第一状态指示消息,该第一状态指示消息用于通知接入设备该目标汇聚设备的升级状态为升级准备状态,接入设备接收到第一状态指示消息后,将预配置为通过目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发,并向目标汇聚设备发送第一反馈消息,该第一反馈消息用于通知所述目标汇聚设备所述接入设备的升级状态为升级准备状态,以指示所述目标汇聚设备开始升级。从而实现在目标汇聚设备升级之前,接入设备提前配置为通过目标汇聚设备的目标数据流切换 至其它汇聚设备,防止跨设备系统升级过程中的数据包丢失。
更进一步地,通过该方法,可以屏蔽LAG接口芯片类型、端口类型、端口介质、路由规格等导致的数据流中断时间,保证系统工作稳定性,提高用户满意度。
更进一步地,由于该方法并不限制转发数据流的接入设备类型与转发数据流的转出方向,所以使得该方法不仅能防止跨设备系统升级过程中单播数据包丢失,也能防止跨设备系统升级过程中广播数据包、组播数据包以及未知单播数据包的丢失。
参见图7,图7是本发明实施例提供的一种接入设备的结构示意图,用于实现本发明实施例公开的设备升级方法。其中,该接入设备应用于网络系统中,所述网络系统包括所述接入设备以及至少两个汇聚设备,所述至少两个汇聚设备分别连接所述接入设备,如图7所示,本发明实施例提供的一种接入设备700可以包括:
接收模块710,用于接收目标汇聚设备发送的第一状态指示消息,所述第一状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级准备状态;所述目标汇聚设备为所述至少两个汇聚设备中的任意一个;
配置模块720,用于将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发;
发送模块730,用于向所述目标汇聚设备发送第一反馈消息,所述第一反馈消息用于通知所述目标汇聚设备所述接入设备的升级状态为升级准备状态,以指示所述目标汇聚设备开始升级。
可选地,在所述发送模块730向所述目标汇聚设备发送第一反馈消息之后,所述接收模块710还用于接收所述目标汇聚设备发送的第二状态指示消息,所述第二状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级完成状态;
所述配置模块720还用于将所述目标数据流重新配置为通过所述目标汇聚设备进行转发。
可选地,所述接入设备包括链路聚合组LAG出方向转发表,所述LAG出方向转发表用于存储用于转发所述目标数据流的汇聚设备连接的所述接入设备的端口的标识,所述LAG出方向转发表预配置为包括连接所述目标汇聚设备的所述接入设备的端口的标识与所述目标数据流的对应关系;
所述配置模块720将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行,包括:
将连接所述目标汇聚设备的所述接入设备的端口从所述LAG出方向转发表中移除,并在所述LAG出方向转发表中配置所述目标数据流对应的端口为所述接入设备连接其它汇聚设备的端口。
可选地,所述配置模块720将所述目标数据流重新配置为通过所述目标汇聚设备进行转发,包括:
在所述LAG出方向转发表中将所述目标数据流对应的端口重新配置为所述接入设备连接所述目标汇聚设备的端口。
可以看出,本实施例的方案中,当目标汇聚设备即将升级时,目标汇聚设备向其所连接的每个接入设备700发送第一状态指示消息,该第一状态指示消息用于通知接入 设备该目标汇聚设备的升级状态为升级准备状态,接入设备700接收到第一状态指示消息后,将预配置为通过目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发,并向目标汇聚设备发送第一反馈消息,该第一反馈消息用于通知所述目标汇聚设备所述接入设备700的升级状态为升级准备状态,以指示所述目标汇聚设备开始升级。从而实现在目标汇聚设备升级之前,接入设备提前配置为通过目标汇聚设备的目标数据流切换至其它汇聚设备,防止跨设备系统升级过程中的数据包丢失。
更进一步地,通过该方法,可以屏蔽LAG接口芯片类型、端口类型、端口介质、路由规格等导致的数据流中断时间,保证系统工作稳定性,提高用户满意度。
更进一步地,由于该方法并不限制转发数据流的接入设备类型与转发数据流的转出方向,所以使得该方法不仅能防止跨设备系统升级过程中单播数据包丢失,也能防止跨设备系统升级过程中广播数据包、组播数据包以及未知单播数据包的丢失。
在本实施例中,接入设备700是以单元的形式来呈现。这里的“单元”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。
可以理解的是,本实施例的接入设备700的各功能单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
参见图8,图8为本发明实施例提供的另一种接入设备的结构示意图,如图8所示,该接入设备800包括:
通信端口801和处理器802。其中,处理器802也可以为控制器,所述通信端口801用于支持接入设备800(具体可以是接入交换机)与上述实施例中的所述至少两个汇聚设备之间收发信息,以及支持所述接入设备与其他设备之间进行通信。进一步的,接入设备800还可以包括存储器803,存储器803用于存储接入设备800的程序代码和数据,并由处理器802来控制执行。该存储器803可以独立存在,通过总线与处理器802相连接。存储器803也可以和处理器802集成在一起。
可以理解的是,图8仅仅示出了接入设备800的简化设计。在实际应用中,接入设备800可以包含任意数量的通信端口,处理器和存储器等,而所有可以实现本发明实施例的接入设备都在本发明实施例的保护范围之内。
参见图9,图9是本发明实施例提供的一种汇聚设备的结构示意图,用于实现本发明实施例公开的设备升级方法。其中,所述汇聚设备为网络系统中的目标汇聚设备,所述网络系统包括接入设备以及至少两个汇聚设备,所述至少两个汇聚设备分别连接所述接入设备,所述目标汇聚设备为所述至少两个汇聚设备中的任意一个,如图9所示,本发明实施例提供的一种汇聚设备900可以包括:
发送模块910,用于当所述汇聚设备即将升级时,向所述接入设备发送第一状态指示消息,所述第一状态指示消息用于通知所述接入设备所述汇聚设备的升级状态为升级准备状态;
接收模块920,用于接收所述接入设备发送的第一反馈消息,所述第一反馈消息用 于通知所述汇聚设备所述接入设备的升级状态为升级准备状态,所述升级准备状态为所述接入设备将预配置为通过所述汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发。
可选地,在所述接收模块920接收所述接入设备发送的第一反馈消息之后,所述发送模块910还用于在所述汇聚设备升级之后,向所述接入设备发送第二状态指示消息,所述第二状态指示消息用于使所述接入设备将所述目标数据流重新配置为通过所述汇聚设备进行转发,所述第二状态指示消息用于通知所述接入设备所述汇聚设备的升级状态为升级完成状态。
可以看出,本实施例的方案中,当汇聚设备900即将升级时,汇聚设备900向其所连接的每个接入设备发送第一状态指示消息,该第一状态指示消息用于通知接入设备该汇聚设备900的升级状态为升级准备状态,接入设备接收到第一状态指示消息后,将预配置为通过汇聚设备900转发的目标数据流配置为通过其它汇聚设备进行转发,并向汇聚设备900发送第一反馈消息,该第一反馈消息用于通知所述汇聚设备900所述接入设备700的升级状态为升级准备状态,以指示所述汇聚设备开始升级。从而实现在汇聚设备升级之前,接入设备提前配置为通过汇聚设备的目标数据流切换至其它汇聚设备,防止跨设备系统升级过程中的数据包丢失。
更进一步地,通过该方法,可以屏蔽LAG接口芯片类型、端口类型、端口介质、路由规格等导致的数据流中断时间,保证系统工作稳定性,提高用户满意度。
更进一步地,由于该方法并不限制转发数据流的接入设备类型与转发数据流的转出方向,所以使得该方法不仅能防止跨设备系统升级过程中单播数据包丢失,也能防止跨设备系统升级过程中广播数据包、组播数据包以及未知单播数据包的丢失。
在本实施例中,汇聚设备900是以单元的形式来呈现。这里的“单元”可以指特定应用集成电路(application-specific integrated circuit,ASIC),执行一个或多个软件或固件程序的处理器和存储器,集成逻辑电路,和/或其他可以提供上述功能的器件。
可以理解的是,本实施例的汇聚设备900的各功能单元的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
参见图10,图10为本发明实施例提供的另一种汇聚设备的结构示意图,如图10所示,该汇聚设备1000包括:
通信端口1001和处理器1002。其中,处理器1002也可以为控制器。所述通信端口1001用于支持汇聚设备1000(具体可以是汇聚交换机)与上述实施例中的所述接入设备之间收发信息,以及支持所述汇聚设备与其他设备之间进行通信。进一步的,汇聚设备1000还可以包括存储器1003,存储器1003用于存储汇聚设备1000的程序代码和数据,并由处理器1002来控制执行。该存储器1003可以是独立存在,通过总线与处理器1002相连接。存储器1003也可以和处理器1002集成在一起。
可以理解的是,图10仅仅示出了汇聚设备1000的简化设计。在实际应用中,汇聚设备1000可以包含任意数量的通信端口,处理器和存储器等,而所有可以实现本发明实施例的汇聚设备都在本发明实施例的保护范围之内。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时可以实现包括上述方法实施例中记载的任何设备升级方法的部分或全部步骤。前述的存储介质包括:U盘、只读存储器(英文:read-only memory)、随机存取存储器(英文:random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (12)

  1. 一种设备升级方法,其特征在于,所述方法应用于网络系统中,所述网络系统包括接入设备以及至少两个汇聚设备,所述至少两个汇聚设备分别连接所述接入设备,所述方法包括:
    所述接入设备接收目标汇聚设备发送的第一状态指示消息,所述第一状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级准备状态;所述目标汇聚设备为所述至少两个汇聚设备中的任意一个;
    所述接入设备将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发;
    所述接入设备向所述目标汇聚设备发送第一反馈消息,所述第一反馈消息用于通知所述目标汇聚设备所述接入设备的升级状态为升级准备状态,以指示所述目标汇聚设备开始升级。
  2. 根据权利要求1所述的方法,其特征在于,所述接入设备向所述目标汇聚设备发送第一反馈消息之后,所述方法还包括:
    接收所述目标汇聚设备发送的第二状态指示消息,所述第二状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级完成状态;
    所述接入设备将所述目标数据流重新配置为通过所述目标汇聚设备进行转发。
  3. 根据权利要求2所述的方法,其特征在于,所述接入设备包括链路聚合组LAG出方向转发表,所述LAG出方向转发表用于存储用于转发所述目标数据流的汇聚设备连接的所述接入设备的端口的标识,所述LAG出方向转发表预配置为包括连接所述目标汇聚设备的所述接入设备的端口的标识与所述目标数据流的对应关系;
    所述接入设备将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发,包括:
    所述接入设备将连接所述目标汇聚设备的所述接入设备的端口从所述LAG出方向转发表中移除,并在所述LAG出方向转发表中配置所述目标数据流对应的端口为所述接入设备连接其它汇聚设备的端口。
  4. 根据权利要求3所述的方法,其特征在于,所述接入设备将所述目标数据流重新配置为通过所述目标汇聚设备进行转发,包括:
    所述接入设备在所述LAG出方向转发表中将所述目标数据流对应的端口重新配置为所述接入设备连接所述目标汇聚设备的端口。
  5. 一种设备升级方法,其特征在于,所述方法应用于网络系统中,所述网络系统包括接入设备以及至少两个汇聚设备,所述至少两个汇聚设备分别连接所述接入设备,所述目标汇聚设备为所述至少两个汇聚设备中的任意一个,所述方法包括:
    当所述目标汇聚设备即将升级时,所述目标汇聚设备向所述接入设备发送第一状态指示消息,所述第一状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级准备状态;
    所述目标汇聚设备接收所述接入设备发送的第一反馈消息,所述第一反馈消息用于通知所述目标汇聚设备所述接入设备的升级状态为升级准备状态,所述升级准备状态 为所述接入设备将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发。
  6. 根据权利要求5所述的方法,其特征在于,在所述目标汇聚设备接收所述接入设备发送的第一反馈消息之后,所述方法还包括:
    在所述目标汇聚设备升级之后,所述目标汇聚设备向所述接入设备发送第二状态指示消息,所述第二状态指示消息用于使所述接入设备将所述目标数据流重新配置为通过所述目标汇聚设备进行转发,所述第二状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级完成状态。
  7. 一种接入设备,其特征在于,所述接入设备应用于网络系统中,所述网络系统包括所述接入设备以及至少两个汇聚设备,所述至少两个汇聚设备分别连接所述接入设备,所述接入设备包括:
    接入模块,用于接收目标汇聚设备发送的第一状态指示消息,所述第一状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级准备状态;所述目标汇聚设备为所述至少两个汇聚设备中的任意一个;
    配置模块,用于将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发;
    发送模块,用于向所述目标汇聚设备发送第一反馈消息,所述第一反馈消息用于通知所述目标汇聚设备所述接入设备的升级状态为升级准备状态,以指示所述目标汇聚设备开始升级。
  8. 根据权利要求7所述的接入设备,其特征在于,在所述发送模块向所述目标汇聚设备发送第一反馈消息之后,所述接收模块还用于接收所述目标汇聚设备发送的第二状态指示消息,所述第二状态指示消息用于通知所述接入设备所述目标汇聚设备的升级状态为升级完成状态;
    所述配置模块还用于将所述目标数据流重新配置为通过所述目标汇聚设备进行转发。
  9. 根据权利要求8所述的接入设备,其特征在于,所述接入设备包括链路聚合组LAG出方向转发表,所述LAG出方向转发表用于存储用于转发所述目标数据流的汇聚设备连接的所述接入设备的端口的标识,所述LAG出方向转发表预配置为包括连接所述目标汇聚设备的所述接入设备的端口的标识与所述目标数据流的对应关系;
    所述配置模块将预配置为通过所述目标汇聚设备转发的目标数据流配置为通过其它汇聚设备进行,包括:
    将连接所述目标汇聚设备的所述接入设备的端口从所述LAG出方向转发表中移除,并在所述LAG出方向转发表中配置所述目标数据流对应的端口为所述接入设备连接其它汇聚设备的端口。
  10. 根据权利要求9所述的接入设备,其特征在于,所述配置模块将所述目标数据流重新配置为通过所述目标汇聚设备进行转发,包括:
    在所述LAG出方向转发表中将所述目标数据流对应的端口重新配置为所述接入设备连接所述目标汇聚设备的端口。
  11. 一种汇聚设备,其特征在于,所述汇聚设备为网络系统中的目标汇聚设备, 所述网络系统包括接入设备以及至少两个汇聚设备,所述至少两个汇聚设备分别连接所述接入设备,所述目标汇聚设备为所述至少两个汇聚设备中的任意一个,所述汇聚设备包括:
    发送模块,用于当所述汇聚设备即将升级时,向所述接入设备发送第一状态指示消息,所述第一状态指示消息用于通知所述接入设备所述汇聚设备的升级状态为升级准备状态;
    接收模块,用于接收所述接入设备发送的第一反馈消息,所述第一反馈消息用于通知所述汇聚设备所述接入设备的升级状态为升级准备状态,所述升级准备状态为所述接入设备将预配置为通过所述汇聚设备转发的目标数据流配置为通过其它汇聚设备进行转发。
  12. 根据权利要求11所述的汇聚设备,其特征在于,在所述接收模块接收所述接入设备发送的第一反馈消息之后,所述发送模块还用于在所述汇聚设备升级之后,向所述接入设备发送第二状态指示消息,所述第二状态指示消息用于使所述接入设备将所述目标数据流重新配置为通过所述汇聚设备进行转发,所述第二状态指示消息用于通知所述接入设备所述汇聚设备的升级状态为升级完成状态。
PCT/CN2018/076747 2017-03-08 2018-02-13 一种设备升级方法及接入设备 WO2018161794A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710134543.6A CN108574583A (zh) 2017-03-08 2017-03-08 一种设备升级方法及接入设备
CN201710134543.6 2017-03-08

Publications (1)

Publication Number Publication Date
WO2018161794A1 true WO2018161794A1 (zh) 2018-09-13

Family

ID=63447229

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/076747 WO2018161794A1 (zh) 2017-03-08 2018-02-13 一种设备升级方法及接入设备

Country Status (2)

Country Link
CN (1) CN108574583A (zh)
WO (1) WO2018161794A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109951324B (zh) * 2019-02-28 2022-04-26 新华三技术有限公司 一种网板隔离实现方法及装置
CN110572284B (zh) * 2019-08-30 2022-05-13 华为云计算技术有限公司 一种虚拟网元的升级方法、装置及系统
WO2021145939A1 (en) * 2020-01-14 2021-07-22 Vmware, Inc. Transparent demilitarized zone providing stateful service between physical and logical networks
US11411777B2 (en) 2020-01-14 2022-08-09 Vmware, Inc. Port mapping for bonded interfaces of ECMP group
CN114095361B (zh) * 2021-11-22 2023-11-17 迈普通信技术股份有限公司 设备汇聚维护方法、装置及网络系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130268590A1 (en) * 2012-04-04 2013-10-10 Ramasubramani Mahadevan System and method for reducing information loss in an aggregated information handling system
US8943490B1 (en) * 2012-09-28 2015-01-27 Juniper Networks, Inc. Intelligent non-stop software upgrade

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882704B (zh) * 2012-09-03 2016-06-29 杭州华三通信技术有限公司 一种issu的软重启升级过程中的链路保护方法和设备

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130268590A1 (en) * 2012-04-04 2013-10-10 Ramasubramani Mahadevan System and method for reducing information loss in an aggregated information handling system
US8943490B1 (en) * 2012-09-28 2015-01-27 Juniper Networks, Inc. Intelligent non-stop software upgrade

Also Published As

Publication number Publication date
CN108574583A (zh) 2018-09-25

Similar Documents

Publication Publication Date Title
WO2018161794A1 (zh) 一种设备升级方法及接入设备
US10686749B2 (en) Packet sending method and network device
US8943490B1 (en) Intelligent non-stop software upgrade
EP1982447B1 (en) System and method for detecting and recovering from virtual switch link failures
RU2526719C2 (ru) Сетевая система и способ избыточности сети
EP2985952B1 (en) Method and device for protecting service reliability, and network virtualization system
US9703747B2 (en) Remote console access of port extenders using protocol extension
KR101562726B1 (ko) 통신 경로 제어 시스템, 및 통신 경로 제어 방법
KR101881434B1 (ko) 포워딩 테이블 동기화 방법, 네트워크 장치, 및 시스템
CN105450779B (zh) 一家电设备连接多服务器的方法
WO2015167597A1 (en) Data plane to forward traffic based on communications from a software defined networking (sdn) controller during control plane failure
US20220255847A1 (en) Packet Sending Method and First Network Device
WO2020114017A1 (zh) 数据中心流量互通方法、装置、设备及存储介质
GB2485026A (en) Routed Split Multi-Link Trunking (RSMLT) resiliency for Wireless Local Area Network (WLAN) split-plane environments
TW202008756A (zh) 網路自動鏈結備援方法與網路系統
US9596129B2 (en) Communication system, control apparatus, communication apparatus, information-relaying method, and program
JP6118464B2 (ja) ポートステータス同期化方法、関連のデバイス、及びシステム
WO2018121067A1 (zh) 网络设备的更新方法和网络设备
US20220094569A1 (en) Method and system to selectively flush filtering databases in a major ring of an ethernet ring protection switching network
CN108282346B (zh) 软件升级方法及装置
US11870646B2 (en) Fabric availability and synchronization
US11245644B2 (en) Automatic multi-chassis link aggregation configuration
WO2015100551A1 (zh) 发送信息的方法、装置及系统
KR102092091B1 (ko) 소프트웨어 정의 네트워크에서 고가용성 및 고신뢰성을 제공하는 방법, 장치 및 컴퓨터 프로그램
JP6282222B2 (ja) 通信装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18764891

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18764891

Country of ref document: EP

Kind code of ref document: A1