WO2015070412A1 - 一种网络设备版本升级的方法及网络设备 - Google Patents

一种网络设备版本升级的方法及网络设备 Download PDF

Info

Publication number
WO2015070412A1
WO2015070412A1 PCT/CN2013/087116 CN2013087116W WO2015070412A1 WO 2015070412 A1 WO2015070412 A1 WO 2015070412A1 CN 2013087116 W CN2013087116 W CN 2013087116W WO 2015070412 A1 WO2015070412 A1 WO 2015070412A1
Authority
WO
WIPO (PCT)
Prior art keywords
forwarding plane
forwarding
network device
mac address
packet
Prior art date
Application number
PCT/CN2013/087116
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 华为技术有限公司
Priority to CN201380002641.4A priority Critical patent/CN103843285B/zh
Priority to EP13897329.2A priority patent/EP3057264B1/en
Priority to PCT/CN2013/087116 priority patent/WO2015070412A1/zh
Publication of WO2015070412A1 publication Critical patent/WO2015070412A1/zh
Priority to US15/153,590 priority patent/US10116506B2/en

Links

Classifications

    • 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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/324Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Definitions

  • the present invention relates to the field of communications, and in particular, to a method for upgrading a network device version and a network device.
  • the hardware and software of a network device are complex, and there are a large number of replacement or upgrade versions, because the service interruption time caused by the version upgrade is also counted in the Mean Time Recovery Time (MTTR) of the device. Therefore, how to reduce the service interruption time during version upgrade is a problem that every equipment manufacturer needs to solve.
  • the In-Serv i ce Sof tware Upgrade (I SSU ) and zero packet loss are always operators and devices. The goal pursued by the business. In the process of forwarding the Layer 2 packet, the packet forwarding is based on the matching of the media access control (Media Accesses), and the MAC address entry is not matched. Broadcast the message and perform MAC address learning.
  • the processing of the MAC address in the process of the existing I SSU is basically as follows: During the switching between the new version and the old version of the I SSU, the old version of the MAC address entry is cleared, and the packet is triggered to be broadcasted and forwarded. The new version re-learns the MAC address and generates the MAC address entry, and then uses the generated MAC address entry to forward the message.
  • the inventor finds that during the switching between the new version and the old version, because the MAC address table needs to be regenerated, the packet matching the MAC address entry cannot be broadcasted and forwarded during this period. This will generate a large number of broadcast packets. A large number of broadcast packets will occupy too much network bandwidth and cause network congestion.
  • Embodiments of the present invention provide a method and a device for upgrading a network device, which are related to a communication field, and are used to solve the problem of network congestion caused by a large number of broadcast packets being sent due to a large number of broadcast packets. technical problem.
  • embodiments of the present invention use the following technical solutions:
  • the first aspect provides a method for upgrading a network device version, including: configuring a forwarding plane of the network device as a first forwarding plane and a second forwarding plane, where the first forwarding plane runs a first version, where The second forwarding plane runs the second version, and the first forwarding plane is used for packet forwarding of the network device before the network device version is upgraded;
  • the method includes:, a port, a packet matching the MAC address entry in the second forwarding plane pair according to the The matched MAC address entry is unicast and forwarded; the packet that is not matched to the MAC address entry is forwarded in a broadcast manner.
  • the preset The sample ratio is performed on the forwarded packet, and the sample message is obtained, and the sample message is copied to the second forwarding plane.
  • the method further includes: generating a control plane of the network device The Layer 2 forwarding entry is sent to the second forwarding plane.
  • the preset threshold value meets the following conditions: The broadcast packet occupied by the packet that does not use the MAC address in the preset threshold range does not exceed the system bandwidth of the network device.
  • a network device in a second aspect, includes: a configuration unit, configured to configure a forwarding plane of the network device as a first forwarding plane and a second forwarding plane, where the first forwarding plane runs first The second forwarding plane runs the second version.
  • the first forwarding plane is used for packet forwarding of the network device, and the sampling unit is configured to be used in the configuration unit.
  • the forwarded packet is sampled in a preset ratio on the first forwarding plane to obtain a packet, and the packet is copied to the second forwarding plane.
  • And learning by using a second forwarding plane configured by the configuration unit, to forward the packet to learn a MAC address, and generate a MAC address entry according to the learned MAC address;
  • the second forwarding plane is upgraded for packet forwarding of the network device, and the preset threshold is a non-zero positive integer.
  • the network device further includes a forwarding unit, where the forwarding unit is configured to upgrade the second forwarding plane After the packet of the network device is forwarded, the packet matching the MAC address entry is unicast and forwarded according to the matched MAC address entry by the second forwarding plane, and the MAC address is not matched to the MAC address. The packets of the entry are forwarded by broadcast.
  • the network device further includes a receiving unit, the receiving unit And transmitting, on the first forwarding plane, the forwarded packet in a predetermined proportion, obtaining a packet, and copying the packet to the second forwarding plane. And sending, by the control plane of the network device, a Layer 2 forwarding entry to the second forwarding plane.
  • the preset threshold value satisfies the following conditions:: not using the MAC address in the preset threshold value range to perform packet forwarding Message account The bandwidth used does not exceed the system bandwidth of the network device.
  • a network device is provided, where the network device is capable of packet forwarding, where the network device includes: a processor, a transmitter, a memory, and a bus, where the processor, the transmitter, and the memory The processor is configured to store the data processed by the processor by using the bus, where the processor is configured to configure a forwarding plane of the network device as a first forwarding plane and a second forwarding plane, where a forwarding plane runs the first version, and the second forwarding plane runs the second version.
  • the first forwarding plane is used for packet forwarding of the network device; Decoding the forwarded packet with a preset ratio on the first forwarding plane, obtaining a packet, and copying the packet to the second forwarding plane; The second forwarding plane learns the MAC address by performing broadcast forwarding on the sample packet through the sender, and generates a MAC address entry according to the learned MAC address; When said second number of MAC addresses reaches a preset threshold learning forwarding plane, the second forwarding plane for upgrading the network packet forwarding device, the predetermined threshold is a nonzero positive integer.
  • the processor is further configured to: after the second forwarding plane is upgraded for packet forwarding of the network device, And transmitting, by the second forwarding plane, the packet matching the MAC address entry to the unicast forwarding according to the matched MAC address entry; and broadcasting the packet that is not matched to the MAC address entry. Way to forward.
  • the processor is further configured to use the first forwarding The forwarded message is sampled in a predetermined proportion on the plane to obtain a sample message, and the second layer of the control plane is generated before the sample message is copied to the second forwarding plane.
  • the preset threshold value is as follows The broadcast packet occupied by the packet that does not use the MAC address in the preset threshold range does not exceed the system bandwidth of the network device.
  • the forwarding plane is configured as a first forwarding plane and a second forwarding plane, where the first forwarding plane runs the first version, the second forwarding plane runs the second version, and before the network device version is upgraded, the first forwarding The plane is used for packet forwarding of the network device, and the forwarded packet is sampled on the first forwarding plane with a preset proportion, and a packet is obtained, and the packet is copied. Going to the second forwarding plane, the second forwarding plane broadcasts the packet to learn the MAC address, and generates a MAC address entry according to the learned MAC address, when the second forwarding plane learns When the number of MAC addresses reaches a preset threshold, the second forwarding plane is upgraded for packet forwarding of the network device.
  • the second forwarding plane can learn a preset threshold number of MAC addresses by using the broadcast forwarding of the sample traffic, which can effectively avoid generating a large number of broadcast packets during the version upgrade process, which can reduce the excessive occupation of the network bandwidth. Avoid network congestion.
  • FIG. 1 is a schematic flowchart of a network device version upgrade method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a network device version upgrade method according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a network device according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention
  • An embodiment of the present invention provides a method for upgrading a network device version. Referring to FIG. 1, the method includes the following steps:
  • a forwarding plane of the network device as a first forwarding plane and a second forwarding plane.
  • the first forwarding plane runs the first version
  • the second forwarding plane runs the second version.
  • the first forwarding plane is used for packet forwarding of the network device.
  • the second version may be an upgraded version of the first version
  • the second version may also be a brand new version, which is not associated with the first version. Since the first forwarding plane already has the MAC address in the communication network, the MAC addresses are stored in the first forwarding plane in the format of the first version. Therefore, the first forwarding plane can perform single-wave packet forwarding through the MAC addresses.
  • the second forwarding plane perform broadcast forwarding on the second forwarding plane to learn the MAC address, and generate a MAC address entry according to the learned MAC address.
  • the ratio of the sample can be 100: 1 , that is, 1 sample is taken from 100 forwarded messages as a sample message.
  • the second forwarding plane needs to broadcast and forward the packet to learn the MAC address. Therefore, the sample size of the packet should be small, so as to avoid generating a large number of broadcast packets in the process of learning the MAC address in the second forwarding plane. Causes network congestion.
  • the second version cannot use the MAC address of the first version to forward single-wave packets, so the second version needs to relearn the MAC address.
  • the second forwarding plane learns the MAC address by broadcasting the sample message.
  • the packet forwarding according to the MAC address is implemented in the first forwarding plane, which ensures that the second forwarding plane has sufficient learning of the MAC address.
  • the time can be adapted to large-scale version upgrades.
  • the second forwarding plane is upgraded for packet forwarding of the network device, and the preset threshold is a non-zero positive integer.
  • the preset threshold value refers to a predetermined number of MAC addresses that need to be learned by the second forwarding plane, or may be a percentage of a predetermined MAC address that needs to be learned by the second forwarding plane to the total number of MAC addresses, for example, 80%.
  • the preset threshold is equal to: The bandwidth occupied by the broadcast packets that do not use the MAC address in the preset threshold range does not exceed the system bandwidth of the network device. In this way, on the second forwarding plane, most of the packets are forwarded by the learned MAC address, and the remaining packets are broadcasted. The amount of the remaining packets is smaller than that of the broadcast packets. Do not exceed the system bandwidth of the network device, so as not to cause network congestion.
  • the forwarding plane of the network device is configured as a first forwarding plane and a second forwarding plane, where the first forwarding plane runs the first version, and the second forwarding plane runs the second version, before the network device version is upgraded, the first The forwarding plane is used for packet forwarding on the network device.
  • the forwarded packet is sampled on the first forwarding plane in a preset proportion to obtain a packet, and the packet is copied to the second forwarding plane.
  • the second forwarding plane broadcasts the packet to learn the MAC address, and generates a MAC address entry according to the learned MAC address. When the number of MAC addresses learned by the second forwarding plane reaches a preset threshold, the second upgrade is performed.
  • the forwarding plane is used for packet forwarding of network devices.
  • the second forwarding plane learns the preset threshold number of MAC addresses in advance through the broadcast forwarding of the sample traffic, it can effectively avoid generating a large number of broadcast packets during the version upgrade process, which can reduce the excessive occupation of the network bandwidth and avoid the occurrence of Network congestion.
  • the method further includes:
  • the second forwarding plane forwards the packet matching the MAC address entry according to the matched MAC address entry, and forwards the packet that is not matched to the MAC address entry in a broadcast manner.
  • the second forwarding plane On the second forwarding plane, most of the packets can be matched to the MAC address entry, and the packets are not matched to the MAC address entry. If the number of texts is small, the bandwidth of broadcast packets that need to be forwarded does not exceed the system bandwidth of the network device, so that network congestion does not occur.
  • the second forwarding plane after the second forwarding plane is upgraded for the packet forwarding of the network device, the second forwarding plane can match the packet of the MAC address entry by using the single-wave forwarding, and the broadcast forwarding does not match the MAC address table.
  • the packet of the item can learn the unlearned MAC address in the communication network without causing network congestion, thereby supplementing the entry in the MAC address table.
  • the method further includes: sending, by the control plane, a Layer 2 forwarding entry to the second forwarding plane.
  • Steps 102-104 are performed according to the Layer 2 forwarding entry to implement the forwarding of the packet, and all the packets forwarded by the second forwarding plane for the network device to be forwarded in the second forwarding plane.
  • the method for providing the network device version upgrade in the foregoing embodiment is specifically described as follows: First, the forwarding plane of the network device is divided into a first forwarding plane and a second forwarding plane. The first forwarding plane runs the first version, and the second forwarding plane runs the second version. Only the first forwarding plane forwards the packet, and the second forwarding plane does not forward the packet. The second forwarding plane performs configuration recovery and receives the Layer 2 forwarding entry sent by the control plane of the network device.
  • the forwarded packet is sampled on the first forwarding plane with a preset ratio.
  • the message is copied and copied to the second forwarding plane.
  • the second forwarding plane broadcasts the packet to learn the MAC address, and generates a MAC address entry according to the learned MAC address.
  • the second forwarding plane needs to avoid generating a large number of broadcast packets during the process of learning the MAC address.
  • the network is congested, so the number of packets should be small. For example, the ratio can be taken as 1 00:1, that is, a packet is sent from 100 packets forwarded by the first forwarding plane.
  • the second forwarding plane uses the sample message to learn the MAC address. In this process, the forwarding of the message according to the MAC address is performed on the first forwarding plane to ensure the learning of the MAC address by the second forwarding plane. There is plenty of time to adapt to large-scale version upgrades.
  • the first forwarding plane learns the MAC address by using the packet obtained by the first forwarding plane.
  • the first forwarding plane stops the packet forwarding until the number of MAC addresses learned by the second forwarding plane is greater than or equal to the preset threshold.
  • the network device upgrades the second forwarding plane to forward the packet.
  • the device that forwards the second forwarding plane to perform packet forwarding includes: performing unicast forwarding on the packet matching the MAC address entry according to the matched MAC address by using the second forwarding plane; The text is forwarded by broadcast.
  • the second forwarding plane can forward the packet to the MAC address entry through the single-wave forwarding, and forward the packet that is not matched to the MAC address entry through the broadcast, so that the second forwarding plane can learn the communication network without causing network congestion.
  • the unlearned MAC address is used to supplement the MAC address table.
  • the forwarding plane of the network device is configured as a first forwarding plane and a second forwarding plane, where the first forwarding plane runs the first version, and the second forwarding plane runs the second version, before the network device version is upgraded, the first forwarding The plane is used for packet forwarding of the network device, and the forwarded packet is sampled in a preset proportion on the first forwarding plane to obtain a packet, and the packet is copied to the second forwarding plane.
  • the second forwarding plane broadcasts the packet to learn the MAC address, and generates a MAC address entry according to the learned MAC address.
  • the second forwarding is upgraded.
  • the plane is used for packet forwarding of network devices. Because the second forwarding plane learns the preset threshold number of MAC addresses in advance through the broadcast forwarding of the sample traffic, it can effectively avoid generating a large number of broadcast packets during the version upgrade process, which can reduce the excessive occupation of the network bandwidth and avoid the occurrence of Network congestion.
  • the embodiment of the present invention provides a network device 400, which is used to implement the foregoing method, and the network device 400 includes: a configuration unit 401, configured to configure a forwarding plane of the network device 400 as a first forwarding plane and The first forwarding plane runs the first version, and the second forwarding plane runs the second version.
  • the first forwarding plane is used for packet forwarding of the network device 400.
  • the second version may be an upgraded version of the first version, and the second version may also be a completely new version, which is not associated with the first version.
  • the sample unit 402 is configured to sample the forwarded message on the first forwarding plane configured by the configuration unit 401 by using a predetermined proportion, obtain a sample message, and copy the sample message. Go to the second forwarding plane.
  • the generating unit 403 is configured to learn the MAC address by performing broadcast forwarding on the second forwarding plane configured by the configuration unit 401, and generate a MAC address entry according to the learned MAC address.
  • the second forwarding plane learns the MAC address by using the broadcast packet. In this process, the packet forwarding according to the MAC address is run on the first forwarding plane, which ensures the learning of the MAC address by the second forwarding plane. There is plenty of time to adapt to large-scale version upgrades.
  • the upgrading unit 404 is configured to: when the number of MAC addresses learned by the second forwarding plane reaches a preset threshold, upgrade the second forwarding plane for packet forwarding of the network device 400, where the preset threshold is a non-zero positive integer.
  • the preset threshold is equal to: The bandwidth occupied by the broadcast packets that do not use the MAC address in the preset threshold range does not exceed the system bandwidth of the network device. In this way, on the second forwarding plane, most of the packets are forwarded by the learned MAC address, and the remaining packets are broadcasted. The amount of the remaining packets is smaller than that of the broadcast packets. Do not exceed the system bandwidth of the network device, so as not to cause network congestion.
  • the network device 400 further includes: a forwarding unit 405, configured to: after the upgrade unit 404 upgrades the second forwarding plane for the packet forwarding of the network device 400, the packet matching the MAC address entry is matched by the second forwarding plane. The unicast forwarding is performed according to the matched MAC address entry, and the packets that do not match the MAC address entry are forwarded in a broadcast manner.
  • the second forwarding plane can forward the packet to the MAC address entry through the single-wave forwarding, and the broadcast forwarding does not match the MAC address entry.
  • a packet can learn the MAC address of an unrecognized MAC address in the communication network without causing network congestion.
  • the network device further includes: a receiving unit 406, configured to perform, on a first forwarding plane, the forwarded packet by using a preset proportion, to obtain a packet, The Layer 2 forwarding entry generated by the control plane is sent to the second forwarding plane before the packet is copied to the second forwarding plane.
  • the forwarding plane of the network device 400 is configured as a first forwarding plane and a second forwarding plane, where the first forwarding plane runs the first version, and the second forwarding plane runs the second version, before the network device 400 is upgraded.
  • the first forwarding plane is used for forwarding the packet of the network device 400, and the forwarded packet is sampled on the first forwarding plane with a preset proportion, and the packet is obtained, and the packet is copied to the packet.
  • the second forwarding plane, the second forwarding plane broadcasts the packet to learn the MAC address, and generates a MAC address entry according to the learned MAC address, when the number of MAC addresses learned by the second forwarding plane reaches a preset threshold.
  • the second forwarding plane is upgraded for packet forwarding of the network device. Because the second forwarding plane learns the preset threshold number of MAC addresses in advance through the broadcast forwarding of the sample traffic, it can effectively avoid generating a large number of broadcast packets during the version upgrade process, which can reduce the excessive occupation of the network bandwidth and avoid the occurrence of Network congestion.
  • the embodiment of the present invention provides a network device 600, which is used to implement the foregoing communication version upgrade. Referring to FIG. 6, the method includes: a processor 601, a transmitter 602, a memory 603, and a bus 604, where the processor 601 sends The 602 and the memory 603 are connected by a bus 604, and the memory 603 is used to store data processed by the processor.
  • the bus 604 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus 604 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus. among them:
  • Memory 603 is for storing executable program code, including computer operating instructions.
  • the memory 603 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the processor 601 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the processor 601 is configured to configure the forwarding plane of the network device 600 as the first forwarding plane and the second forwarding plane, where the first forwarding plane runs the first version, and the second forwarding plane runs the second version.
  • the first forwarding plane is used for packet forwarding of the network device before the network device version is upgraded.
  • the second version may be an upgraded version of the first version, and the second version may also be a completely new version, which is not associated with the first version. Since the first forwarding plane already has the MAC address in the communication network, the MAC addresses are stored in the first forwarding plane in the format of the first version, so the first forwarding plane can perform single-wave forwarding through these MAC addresses.
  • the packet is also forwarded on the first forwarding plane with a preset proportion of the packet, and the packet is obtained, and the packet is copied to the second forwarding plane.
  • the method is further configured to learn a MAC address by performing broadcast forwarding on the packet through the second forwarding plane, and generate a MAC address entry according to the learned MAC address.
  • the second forwarding plane learns the MAC address by using the broadcast packet. In this process, the packet forwarding according to the MAC address is run on the first forwarding plane, which ensures the learning of the MAC address by the second forwarding plane. There is plenty of time to adapt to large-scale version upgrades.
  • the second forwarding plane is used for forwarding the packet of the network device, and the preset threshold is a non-zero positive integer when the number of the MAC addresses learned by the second forwarding plane reaches a preset threshold.
  • the preset threshold is equal to: The bandwidth occupied by the broadcast packets that do not use the MAC address in the preset threshold range does not exceed the system bandwidth of the network device. In this way, on the second forwarding plane, most of the packets are forwarded by the learned MAC address, and the remaining packets are broadcasted. The amount of the remaining packets is smaller than that of the broadcast packets. Do not exceed the system bandwidth of the network device, so as not to cause network congestion.
  • the processor 601 is further configured to: after upgrading the second forwarding plane for packet forwarding of the network device,
  • the packets matching the MAC address entries are unicast-forwarded according to the matched MAC address entries.
  • the packets that do not match the MAC address entries are forwarded in a broadcast manner.
  • the second forwarding plane can forward the packet to the MAC address entry through the single-wave forwarding, and forward the packet that does not match the MAC address entry.
  • the unlearned MAC address in the communication network can be learned without causing network congestion, thereby supplementing the MAC address table with entries.
  • the processor 601 is further configured to: in the first forwarding plane, forward the forwarded packet by using a preset proportion, obtain a packet, and copy the packet to the second packet. Before the forwarding plane, the Layer 2 forwarding entry generated by the control plane is sent to the second forwarding plane.
  • the forwarding plane of the network device 600 is configured as a first forwarding plane and a second forwarding plane, where the first forwarding plane runs the first version, and the second forwarding plane runs the second version, before the network device 600 version is upgraded.
  • the first forwarding plane is used for packet forwarding of the network device 600, and the forwarded packet is sampled in a preset proportion on the first forwarding plane to obtain a packet, and the packet is copied to the packet.
  • the second forwarding plane, the second forwarding plane broadcasts the packet to learn the MAC address, and generates a MAC address entry according to the learned MAC address, when the number of MAC addresses learned by the second forwarding plane reaches a preset threshold.
  • the second forwarding plane is upgraded for packet forwarding of the network device. Because the second forwarding plane learns the preset threshold number of MAC addresses in advance through the broadcast forwarding of the sample traffic, it can effectively avoid generating a large number of broadcast packets during the version upgrade process, which can reduce the excessive occupation of the network bandwidth and avoid the occurrence of Network congestion.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • the computer readable medium may include a RAM (Random Access Memory), a ROM (Read Only Memory), an EEPR0M (Electrical ly Erasable Programmable Read Only Memory) Read only memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, disk storage media or other magnetic storage device, or can be used to carry or store the desired form of instruction or data structure.
  • Program code and any other medium that can be accessed by a computer may be any connection may suitably be a computer readable medium.
  • Disks and discs as used in the present invention include CD (Compact Disc), laser disc, optical disc, DVD disc (Digital Versatile Disc), floppy disc and Blu-ray disc, wherein the disc is usually magnetically copied data, and The disc uses a laser to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

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

Abstract

本发明实施例公开了一种网络设备版本升级的方法及设备,涉及通信领域,解决了解决网络设备版本升级中,需要发送大量广播报文导致网络带宽过多占用,造成网络拥塞的技术问题。具体方案为:将所述网络设备的转发面配置为第一转发平面和第二转发平面,在所述第一转发平面上以预设的釆样比例对转发的报文进行釆样,获得釆样报文,所述第二转发平面对所述釆样报文进行广播转发来学习MAC地址,当所述第二转发平面学习的MAC地址数量达到预设阈值时,升级所述第二转发平面用于所述网络设备的报文转发。通过本发明实施例提供的技术方案可以有效的避免在版本升级过程中产生大量广播报文,能够有利于减少网络带宽的过多占用,避免出现网络拥塞。

Description

一种网络设备版本升级的方法及网络设备
技术领域 本发明涉及通信领域, 尤其涉及一种网络设备版本升级的方法及网 络设备。
背景技术 网络设备的硬件和软件复杂, 并且有大量更换或升级版本的需求, 因为换版本升级导致的业务中断时间也是要算进设备的平均故障修复时 间 ( Mean T ime To Recovery,简称 MTTR ) 中的, 所以如何减少版本升级 时的业务中断时间是每个设备商需要解决的问题, 无中断升级技术 ( In-Serv i ce Sof tware Upgrade , 简称 I SSU ) 和零丟包一直是运营商和 设备商追求的目标。 在对二层报文转发过程中, 报文转发是建立在媒体访问控制(Med i a Acces s Con t ro l , MAC ) 地址表项匹配的基础上的, 在匹配不到 MAC地址 表项时会对报文进行广播发送, 并进行 MAC地址学习。 现有的 I SSU处理 过程中对 MAC地址的处理基本釆用以下方式: 在 I SSU新版本和旧版本切换期间, 清除旧版本 MAC地址表项, 触发 报文进行广播转发, 在广播转发的过程中, 新版本重新学习 MAC 地址, 并生成的 MAC地址表项, 然后利用生成的 MAC地址表项进行 ^艮文转发。 在上述 I S SU版本升级的方法中,发明人发现在新版本和旧版本切换 期间, 由于 MAC地址表需要重新生成, 会造成这段时间内对匹配不到 MAC 地址表项的报文进行广播转发, 这样会产生大量的广播报文, 大量的广 播报文转发会占用过多网络带宽, 会造成网络拥塞。
发明内容 本发明的实施例提供一种网络设备版本升级的方法及设备, 涉及通 信领域, 用于解决现有版本升级方法中, 需要发送大量广播报文导致网 络带宽过多占用, 造成网络拥塞的技术问题。 为达到上述目的, 本发明的实施例釆用如下技术方案: 第一方面, 提供一种网络设备版本升级的方法, 包括: 将所述网络设备的转发面配置为第一转发平面和第二转发平面, 所 述第一转发平面运行第一版本, 所述第二转发平面运行第二版本, 在所 述网络设备版本升级之前, 所述第一转发平面用于所述网络设备的报文 转发;
在所述第一转发平面上以预设的釆样比例对转发的报文进行釆样, 获得釆样报文, 并将所述釆样报文复制到所述第二转发平面;
在所述第二转发平面对所述釆样报文进行广播转发来学习 MAC 地 址, 并根据学习到的 MAC地址生成 MAC地址表项; 当所述第二转发平面学习的 MAC地址数量达到预设阈值时, 升级所 述第二转发平面用于所述网络设备的报文转发, 所述预设阈值为非零正 整数。 结合所述第一方面, 在所述第一方面的第一种可能的实现方式中, 括: 、' 、 口 在所述第二转发平面对匹配到所述 MAC地址表项的报文根据所述匹 配到的 MAC地址表项进行单播转发; 对于未匹配到所述 MAC地址表项的报文以广播的方式进行转发。 结合所述第一方面或所述第一方面的第一种可能的实现方式, 在所 述第一方面的第二种可能的实现方式中, 在所述第一转发平面上以预设 的釆样比例对转发的报文进行釆样, 获得釆样报文, 并将所述釆样报文 复制到所述第二转发平面之前, 所述方法还包括: 将所述网络设备的控制平面生成的二层转发表项发送至所述第二转 发平面。 结合所述第一方面或所述第一方面上述任意一种可能的实现方式, 在所述第一方面的第三种可能的实现方式中, 其特征在于, 所述预设阈 值满足如下条件: 未使用所述预设阈值范围内的 MAC地址进行报文转发的广播报文占 用带宽不超过所述网络设备的系统带宽。 第二方面, 提供一种网络设备, 所述网络设备包括: 配置单元, 用于将所述网络设备的转发面配置为第一转发平面和第 二转发平面, 所述第一转发平面运行第一版本, 所述第二转发平面运行 第二版本, 在所述网络设备版本升级之前, 所述第一转发平面用于所述 网络设备的报文转发; 釆样单元, 用于在所述配置单元配置的第一转发平面上以预设的釆 样比例对转发的报文进行釆样, 获得釆样报文, 并将所述釆样报文复制 到所述第二转发平面; 生成单元, 用于通过所述配置单元配置的第二转发平面对所述釆样 才艮文进行广播转发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC 地址表项; 升级单元, 用于当所述第二转发平面学习的 MAC地址数量达到预设 阈值时, 升级所述第二转发平面用于所述网络设备的报文转发, 所述预 设阈值为非零正整数。
结合第二方面, 在所述第二方面的第一种可能的实现方式中, 所述 网络设备还包括转发单元, 所述转发单元, 用于所述升级单元升级所述第二转发平面用于所述 网络设备的报文转发之后, 通过所述第二转发平面对匹配到所述 MAC 地 址表项的报文根据匹配到的 MAC 地址表项进行单播转发, 对于未匹配到 所述 MAC地址表项的报文以广播的方式进行转发。 结合所述第二方面或所述第二方面的第一种可能的实现方式, 在所 述第二方面的第二种可能的实现方式中, 所述网络设备还包括接收单元 , 所述接收单元, 用于在所述第一转发平面上以预设的釆样比例对转 发的报文进行釆样, 获得釆样报文, 并将所述釆样报文复制到所述第二 转发平面之前, 将所述网络设备的控制平面生成的二层转发表项发送至 所述第二转发平面。 结合所述第二方面或所述第二方面上述任一种可能的实现方式中, 所述预设阈值满足如下条件: 未使用所述预设阈值范围内的 MAC地址进行报文转发的广报报文占 用带宽不超过所述网络设备的系统带宽。 第三方面, 提供一种网络设备, 所述网络设备能够进行报文转发, 其特征在于, 所述网络设备包括: 处理器、 发送器、 存储器和总线, 其 中所述处理器、 发送器、 存储器通过所述总线连接, 所述存储器用于存 储所述处理器处理的数据; 所述处理器, 用于将所述网络设备的转发面配置为第一转发平面和 第二转发平面, 所述第一转发平面运行第一版本, 所述第二转发平面运 行第二版本, 在所述网络设备版本升级之前, 所述第一转发平面用于所 述网络设备的报文转发; 还用于在所述第一转发平面上以预设的釆样比例对转发的报文进行 釆样, 获得釆样报文, 并将所述釆样报文复制到所述第二转发平面; 还用于通过所述第二转发平面对所述釆样报文通过发送器进行广播 转发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC地址表项; 还用于, 当所述第二转发平面学习的 MAC地址数量达到预设阈值时, 升级所述第二转发平面用于所述网络设备的报文转发, 所述预设阈值为 非零正整数。 结合所述第三方面, 在所述第三方面的第一种可能的实现方式中, 所述处理器, 还用于在升级所述第二转发平面用于所述网络设备的报文 转发之后, 通过所述第二转发平面对匹配到所述 MAC地址表项的报文根据匹配 到的 MAC地址表项进行单播转发; 对于未匹配到所述 MAC地址表项的才艮 文以广播的方式进行转发。 结合所述第三方面或所述第三方面的第一种可能的实现方式, 在所 述第二方面的第二种可能的实现方式中, 所述处理器还用于通过所述第 一转发平面上以预设的釆样比例对转发的报文进行釆样, 获得釆样报文, 并将所述釆样报文复制到所述第二转发平面之前, 将控制平面生成的二 层转发表项发送至所述第二转发平面。 结合所述第三方面或所述第三方面上述任意一种可能的实现方式, 在所述第三方面的第三种可能的实现方式中, 所述预设阈值满足如下条 件: 未使用所述预设阈值范围内的 MAC地址进行报文转发的广播报文占 用带宽不超过所述网络设备的系统带宽。
转发面配置为第一转发平面和第二转发平面, 所述第一转发平面运行第 一版本, 所述第二转发平面运行第二版本, 在所述网络设备版本升级之 前, 所述第一转发平面用于所述网络设备的报文转发, 在所述第一转发 平面上以预设的釆样比例对转发的报文进行釆样, 获得釆样报文, 将所 述釆样报文复制到所述第二转发平面, 所述第二转发平面对所述釆样报 文进行广播转发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC地 址表项, 当所述第二转发平面学习的 MAC 地址数量达到预设阈值时, 升 级所述第二转发平面用于所述网络设备的报文转发。 由于第二转发平面 通过广播转发所述釆样流量预先学习了预设阈值数量的 MAC 地址, 可以 有效的避免在版本升级过程中产生大量广播报文, 能够有利于减少网络 带宽的过多占用, 避免出现网络拥塞。
附图说明 为了更清楚地说明本发明实施例和现有技术中的技术方案, 下面将 对实施例和现有技术描述中所需要使用的附图作简单地介绍。 图 1 为本发明实施例提供的一种网络设备版本升级方法的流程示意 图; 图 2为本发明实施例提供的一种网络设备版本升级方法的流程示意 图; 图 3为本发明实施例提供的一种网络设备版本升级方法的示意图; 图 4为本发明实施例提供的一种网络设备的结构示意图; 图 5为本发明实施例提供的一种网络设备的结构示意图; 图 6为本发明实施例提供的一种网络设备的结构示意图。
具体实施方式 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进 行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没 有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的 范围。 本发明实施例提供了一种网络设备版本升级的方法,参照图 1所示, 包括以下步骤:
101、 将网络设备的转发面配置为第一转发平面和第二转发平面。 具体的, 第一转发平面运行第一版本, 第二转发平面运行第二版本, 在网络设备版本升级之前, 第一转发平面用于网络设备的报文转发。 其中, 第二版本可以是第一版本的升级版本, 第二版本也可以是一个 全新的版本, 与第一版本没有关联。 由于第一转发平面已经拥有通信网络 中的 MAC地址, 这些 MAC地址是以第一版本的格式存入第一转发平面的, 所以第一转发平面通过这些 MAC地址能够进行单波报文转发。
102、 在第一转发平面上以预设的釆样比例对转发的报文进行釆样, 获得釆样报文, 并将釆样报文复制到第二转发平面。
103、 在第二转发平面对釆样报文进行广播转发来学习 MAC地址, 并 根据学习到的 MAC地址生成 MAC地址表项。 例如: 釆样比例可以是 100: 1 , 就是从 100份转发报文中釆样出 1 份作为釆样报文。 第二转发平面需要对该釆样报文进行广播转发来学习 MAC 地址, 所以釆样报文的釆样量应该较少, 避免在第二转发平面学习 MAC地址的过程中产生大量广播报文而造成网络拥塞。 其中, 由于第二版本与第一版本是互不相同的两个版本, 所以第二 版本不能使用第一版本格式的 MAC 地址进行单波报文转发, 这样第二版 本需要重新学习 MAC 地址。 第二转发平面通过广播釆样报文进行对 MAC 地址的学习, 在这个过程中, 根据 MAC 地址进行的报文转发在第一转发 平面实现, 保证了第二转发平面对 MAC 地址的学习有充足的时间, 可以 适应大规模的版本升级。 104、 当第二转发平面学习的 MAC地址数量达到预设阈值时, 升级第 二转发平面用于网络设备的报文转发, 预设阈值为非零正整数。
其中,预设阈值指预定的需要第二转发平面学习的 MAC地址的数量, 也可以是预定的需要第二转发平面学习的 MAC地址占 MAC地址总数的百 分比, 比如 80%。 预设阈值满足: 未使用预设阈值范围内的 MAC地址进行报文转发的 广播报文占用带宽不超过网络设备的系统带宽。 这样在第二转发平面上, 大部分的报文通过学习的 MAC地址进行单波转发, 广播转发剩余的报文, 由于剩余的报文的量较少, 则需要转发的广播报文占用的带宽不超过网 络设备的系统带宽, 从而不会造成网络拥塞。 上述实施例中, 将网络设备的转发面配置为第一转发平面和第二转 发平面, 第一转发平面运行第一版本, 第二转发平面运行第二版本, 在 网络设备版本升级之前, 第一转发平面用于网络设备的报文转发, 在第 一转发平面上以预设的釆样比例对转发的报文进行釆样, 获得釆样报文, 将釆样报文复制到第二转发平面, 第二转发平面对釆样报文进行广播转 发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC地址表项, 当第 二转发平面学习的 MAC 地址数量达到预设阈值时, 升级第二转发平面用 于网络设备的报文转发。 由于第二转发平面通过广播转发釆样流量预先 学习了预设阈值数量的 MAC 地址, 可以有效的避免在版本升级过程中产 生大量广播报文, 能够有利于减少网络带宽的过多占用, 避免出现网络 拥塞。 可选的, 在图 1对应的实施例的基础上, 参照图 2所示, 在步骤 1 04 之后还包括:
105、 第二转发平面对匹配到 MAC地址表项的报文根据匹配到的 MAC 地址表项进行单播转发; 对于未匹配到 MAC 地址表项的 文以广播的方 式进行转发。
其中, 在第二转发平面上, 大部分的报文能够匹配到 MAC地址表项, 进行单波转发, 广播转发未匹配到 MAC 地址表项的报文, 由于未匹配到 MAC地址表项的报文的数量较少,则需要转发的广播报文占用的带宽不超 过网络设备的系统带宽, 从而不会造成网络拥塞。 上述实施例中,在升级第二转发平面用于网络设备的报文转发之后, 第二转发平面通过单波转发能够匹配到 MAC 地址表项的报文, 并通过广 播转发未匹配到 MAC地址表项的报文, 可以在不造成网络拥塞的情况下, 学习通信网络中未学习的 MAC地址, 从而对 MAC地址表进行表项补充。 进一步的, 在上述实施例的基础上, 在步骤 102之前, 该方法还包 括: 将控制平面生成的二层转发表项发送至所述第二转发平面。 以便根 据该二层转发表项执行步骤 102-104 实现对釆样报文的转发, 以及升级 第二转发平面用于网络设备的报文转发后在第二转发平面转发的所有报 文。 具体的, 参照图 3所示, 对上述实施例提供网络设备版本升级的方 法具体描述如下: 首先, 将该网络设备的转发面分为第一转发平面和第二转发平面。 第一转发平面运行第一版本, 第二转发平面运行第二版本, 这时只有第 一转发平面进行报文转发, 第二转发平面不进行报文转发。 在第一转发平面进行报文转发的同时, 第二转发平面进行配置恢复 和接收网络设备的控制平面发送的二层转发表项。
当第二转发平面配置恢复完毕并接收完毕该网络设备的控制平面发 送的二层转发表项时, 在第一转发平面上以预设的釆样比例对转发的报 文进行釆样, 获得釆样报文, 并将报文复制到第二转发平面上。
第二转发平面对釆样报文进行广播转发来学习 MAC地址, 并根据学 习到的 MAC地址生成 MAC地址表项,由于需要避免第二转发平面学习 MAC 地址的过程中产生大量广播报文而造成网络拥塞, 所以釆样报文数量应 该较少, 例如釆样比可以取 1 00: 1 , 即从 100份第一转发平面转发的报文 中釆样出一份作为釆样报文。 其中, 第二转发平面使用釆样报文进行对 MAC地址的学习, 在这个过程中, 根据 MAC地址进行的 ^艮文转发在第一转 发平面运行, 保证了第二转发平面对 MAC 地址的学习有充足的时间, 可 以适应大规模的版本升级。 第二转发平面通过第一转发平面釆样得到的 釆样报文一直学习 MAC地址, 直至第二转发平面学习到的 MAC地址数量 大于或等于预设的阈值时, 第一转发平面停止报文转发和报文釆样, 同 时该网络设备升级第二转发平面进行报文转发。 具体的, 升级第二转发平面进行报文转发包括: 通过第二转发平面 对匹配到 MAC地址表项的报文根据匹配到的 MAC地址进行单播转发; 对 于未匹配到 MAC 地址表项的报文以广播的方式进行转发。 其中, 第二转 发平面通过单波转发能够匹配到 MAC 地址表项的报文, 并通过广播转发 未匹配到 MAC 地址表项的报文, 可以在不造成网络拥塞的情况下, 学习 通信网络中未学习的 MAC地址, 从而对 MAC地址表进行表项补充。 上述方法中, 将网络设备的转发面配置为第一转发平面和第二转发 平面, 第一转发平面运行第一版本, 第二转发平面运行第二版本, 在网 络设备版本升级之前, 第一转发平面用于网络设备的报文转发, 在第一 转发平面上以预设的釆样比例对转发的报文进行釆样, 获得釆样报文, 将釆样报文复制到第二转发平面, 第二转发平面对釆样报文进行广播转 发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC地址表项, 当第 二转发平面学习的 MAC 地址数量达到预设阈值时, 升级第二转发平面用 于网络设备的报文转发。 由于第二转发平面通过广播转发釆样流量预先 学习了预设阈值数量的 MAC 地址, 可以有效的避免在版本升级过程中产 生大量广播报文, 能够有利于减少网络带宽的过多占用, 避免出现网络 拥塞。
本发明实施例提供了一种网络设备 400 , 参照图 4 所示, 用于实现 上述方法, 该网络设备 400包括: 配置单元 401 , 用于将网络设备 400 的转发面配置为第一转发平面 和第二转发平面, 第一转发平面运行第一版本, 第二转发平面运行第二 版本, 在网络设备 400 版本升级之前, 第一转发平面用于网络设备 400 的报文转发。 其中, 第二版本可以是第一版本的升级版本, 第二版本也可以是一个 全新的版本, 与第一版本没有关联。 由于第一转发平面已经拥有通信网络 中的 MAC地址, 这些 MAC地址是以第一版本的格式存入第一转发平面的, 所以第一转发平面通过这些 MAC地址能够进行单波报文转发。 釆样单元 402 , 用于在配置单元 401 配置的第一转发平面上以预设 的釆样比例对转发的报文进行釆样, 获得釆样报文, 并将釆样报文复制 到第二转发平面。
生成单元 403 , 用于通过配置单元 401 配置的第二转发平面对釆样 才艮文进行广播转发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC 地址表项。 其中, 第二转发平面通过广播釆样报文进行对 MAC地址的学习, 在 这个过程中, 根据 MAC 地址进行的报文转发靠第一转发平面运行, 保证 了第二转发平面对 MAC 地址的学习有充足的时间, 可以适应大规模的版 本升级。 升级单元 404 , 用于当第二转发平面学习的 MAC地址数量达到预设 阈值时, 升级第二转发平面用于网络设备 400 的报文转发, 预设阈值为 非零正整数。 预设阈值满足: 未使用预设阈值范围内的 MAC地址进行报文转发的 广播报文占用带宽不超过网络设备的系统带宽。 这样在第二转发平面上, 大部分的报文通过学习的 MAC地址进行单波转发, 广播转发剩余的报文, 由于剩余的报文的量较少, 则需要转发的广播报文占用的带宽不超过网 络设备的系统带宽, 从而不会造成网络拥塞。 进一步的, 该网络设备 400还包括: 转发单元 405 , 用于升级单元 404 升级第二转发平面用于网络设备 400的报文转发之后,通过第二转发平面对匹配到 MAC地址表项的报文根 据匹配到的 MAC地址表项进行单播转发, 对于未匹配到 MAC地址表项的 报文以广播的方式进行转发。
其中, 在升级第二转发平面用于网络设备 400的报文转发之后, 第 二转发平面通过单波转发能够匹配到 MAC 地址表项的报文, 并通过广播 转发未匹配到 MAC 地址表项的报文, 可以在不造成网络拥塞的情况下, 学习通信网络中未学习的 MAC地址, 从而对 MAC地址表进行表项补充。 可选的, 参照图 5所示, 该网络设备还包括: 接收单元 406 , 用于在第一转发平面上以预设的釆样比例对转发的 报文进行釆样, 获得釆样报文, 并将釆样报文复制到第二转发平面之前, 将控制平面生成的二层转发表项发送至所述第二转发平面。 在上述网络设备 400中, 网络设备 400的转发面配置为第一转发平 面和第二转发平面, 第一转发平面运行第一版本, 第二转发平面运行第 二版本, 在网络设备 400版本升级之前, 第一转发平面用于网络设备 400 的报文转发, 在第一转发平面上以预设的釆样比例对转发的报文进行釆 样, 获得釆样报文, 将釆样报文复制到第二转发平面, 第二转发平面对 釆样报文进行广播转发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC地址表项, 当第二转发平面学习的 MAC地址数量达到预设阈值时, 升 级第二转发平面用于网络设备的报文转发。 由于第二转发平面通过广播 转发釆样流量预先学习了预设阈值数量的 MAC 地址, 可以有效的避免在 版本升级过程中产生大量广播报文, 能够有利于减少网络带宽的过多占 用, 避免出现网络拥塞。 本发明实施例提供了一种网络设备 600, 用于实现上述通信版本升 级的方法, 参照图 6所示, 包括: 处理器 601、 发送器 602、 存储器 603 和总线 604, 其中处理器 601、 发送器 602、 存储器 603通过总线 604连 接, 存储器 603用于存储处理器处理的数据。
总线 604可以是 ISA ( Industry Standard Architecture, 工业标准 体系结构) 总线、 PCI ( Peripheral Component, 外部设备互连) 总线或 EISA ( Extended Industry Standard Architecture, 扩展工业标准体系结 构) 总线等。 该总线 604可以分为地址总线、 数据总线、 控制总线等。 为 便于表示, 图 6中仅用一条粗线表示, 但并不表示仅有一根总线或一种类 型的总线。 其中:
存储器 603用于存储可执行程序代码,该程序代码包括计算机操作指 令。 存储器 603可能包含高速 RAM存储器, 也可能还包括非易失性存储器 ( non-volat i le memory ) , 例如至少一个磁盘存储器。
处理器 601 可能是一个中央处理器 (Central Processing Unit, 简 称为 CPU ) , 或者是特定集成电路 ( Application Specific Integrated Circuit, 简称为 ASIC) , 或者是被配置成实施本发明实施例的一个或多
处理器 601, 用于将网络设备 600 的转发面配置为第一转发平面和 第二转发平面, 第一转发平面运行第一版本, 第二转发平面运行第二版 本, 在网络设备版本升级之前, 第一转发平面用于网络设备的报文转发。 其中, 第二版本可以是第一版本的升级版本, 第二版本也可以是一 个全新的版本, 与第一版本没有关联。 由于第一转发平面已经拥有通信 网络中的 MAC地址, 这些 MAC地址是以第一版本的格式存入第一转发平 面的, 所以第一转发平面通过这些 MAC地址能够进行单波 ^艮文转发。 还用于在第一转发平面上以预设的釆样比例对转发的报文进行釆 样, 获得釆样报文, 并将釆样报文复制到第二转发平面。 还用于通过第二转发平面对釆样报文通过发送器进行广播转发来学 习 MAC地址, 并根据学习到的 MAC地址生成 MAC地址表项。 其中, 第二转发平面通过广播釆样报文进行对 MAC地址的学习, 在 这个过程中, 根据 MAC 地址进行的报文转发靠第一转发平面运行, 保证 了第二转发平面对 MAC 地址的学习有充足的时间, 可以适应大规模的版 本升级。
还用于, 当第二转发平面学习的 MAC地址数量达到预设阈值时, 升 级第二转发平面用于网络设备的报文转发, 预设阈值为非零正整数。 预设阈值满足: 未使用预设阈值范围内的 MAC地址进行报文转发的 广播报文占用带宽不超过网络设备的系统带宽。 这样在第二转发平面上, 大部分的报文通过学习的 MAC地址进行单波转发, 广播转发剩余的报文, 由于剩余的报文的量较少, 则需要转发的广播报文占用的带宽不超过网 络设备的系统带宽, 从而不会造成网络拥塞。 可选的, 该处理器 601 , 还用于在升级第二转发平面用于网络设备 的报文转发之后,
通过第二转发平面对匹配到 MAC地址表项的报文根据匹配到的 MAC 地址表项进行单播转发; 对于未匹配到 MAC 地址表项的 文以广播的方 式进行转发。
其中, 在升级第二转发平面用于网络设备的报文转发之后, 第二转 发平面通过单波转发能够匹配到 MAC 地址表项的报文, 并通过广播转发 未匹配到 MAC 地址表项的报文, 可以在不造成网络拥塞的情况下, 学习 通信网络中未学习的 MAC地址, 从而对 MAC地址表进行表项补充。 可选的, 该处理器 601, 还用于在第一转发平面上以预设的釆样比 例对转发的报文进行釆样, 获得釆样报文, 并将釆样报文复制到第二转 发平面之前, 将控制平面生成的二层转发表项发送至所述第二转发平面。 在上述网络设备 600中, 网络设备 600的转发面配置为第一转发平 面和第二转发平面, 第一转发平面运行第一版本, 第二转发平面运行第 二版本, 在网络设备 600版本升级之前, 第一转发平面用于网络设备 600 的报文转发, 在第一转发平面上以预设的釆样比例对转发的报文进行釆 样, 获得釆样报文, 将釆样报文复制到第二转发平面, 第二转发平面对 釆样报文进行广播转发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC地址表项, 当第二转发平面学习的 MAC地址数量达到预设阈值时, 升 级第二转发平面用于网络设备的报文转发。 由于第二转发平面通过广播 转发釆样流量预先学习了预设阈值数量的 MAC 地址, 可以有效的避免在 版本升级过程中产生大量广播报文, 能够有利于减少网络带宽的过多占 用, 避免出现网络拥塞。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到 本发明可以用硬件实现, 或固件实现, 或它们的组合方式来实现。 当使用 软件实现时, 可以将上述功能存储在计算机可读介质中或作为计算机可读 介质上的一个或多个指令或代码进行传输。 计算机可读介质包括计算机存 储介质和通信介质, 其中通信介质包括便于从一个地方向另一个地方传送 计算机程序的任何介质。存储介质可以是计算机能够存取的任何可用介质。 以此为例但不限于:计算机可读介质可以包括 RAM( Random Access Memory, 随机存储器)、 R0M( Read Only Memory,只读内存 )、 EEPR0M( Electrical ly Erasable Programmable Read Only Memory, 电可擦可编程只读存储器) 、 CD-ROM ( Compact Disc Read Only Memory, 即只读光盘) 或其他光盘存储、 磁盘存储介质或者其他磁存储设备、 或者能够用于携带或存储具有指令或 数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质。 此 外。 任何连接可以适当的成为计算机可读介质。 例如, 如果软件是使用同 轴电缆、 光纤光缆、 双绞线、 DSL (Digital Subscriber Line, 数字用户 专线) 或者诸如红外线、 无线电和微波之类的无线技术从网站、 服务器或 者其他远程源传输的, 那么同轴电缆、 光纤光缆、 双绞线、 DSL 或者诸如 红外线、 无线和微波之类的无线技术包括在所属介质的定影中。 如本发明 所使用的盘和碟包括 CD ( Compact Disc, 压缩光碟) 、 激光碟、 光碟、 DVD 碟 (Digital Versatile Disc, 数字通用光) 、 软盘和蓝光光碟, 其中盘 通常磁性的复制数据, 而碟则用激光来光学的复制数据。 上面的组合也应 当包括在计算机可读介质的保护范围之内。
以上, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限于 此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种网络设备版本升级的方法, 其特征在于, 包括: 将所述网络设备的转发面配置为第一转发平面和第二转发平面, 所 述第一转发平面运行第一版本, 所述第二转发平面运行第二版本, 在所 述网络设备版本升级之前, 所述第一转发平面用于所述网络设备的报文 转发;
在所述第一转发平面上以预设的釆样比例对转发的报文进行釆样, 获得釆样报文, 并将所述釆样报文复制到所述第二转发平面; 在所述第二转发平面对所述釆样报文进行广播转发来学习 MAC 地 址, 并根据学习到的 MAC地址生成 MAC地址表项; 当所述第二转发平面学习的 MAC地址数量达到预设阈值时, 升级所 述第二转发平面用于所述网络设备的报文转发, 所述预设阈值为非零正 整数。
2、 根据权利要求 1所述的方法, 其特征在于, 所述在升级所述第二
在所述第二转发平面对匹配到所述 MAC地址表项的报文, 根据匹配 到的 MAC地址表项进行单播转发; 对于未匹配到所述 MAC地址表项的报文以广播的方式进行转发。
3、 根据权利要求 1或 2所述的方法, 其特征在于, 在所述第一转发 平面上以预设的釆样比例对转发的报文进行釆样, 获得釆样报文, 并将 所述釆样报文复制到所述第二转发平面之前, 所述方法还包括: 将所述网络设备的控制平面生成的二层转发表项发送至所述第二转 发平面。
4、 根据权利要求 1-3任一权利要求所述的方法, 其特征在于, 所述 预设阈值满足如下条件: 未使用所述预设阈值范围内的 MAC地址进行报文转发的广播报文占 用带宽不超过所述网络设备的系统带宽。
5、 一种网络设备, 其特征在于, 所述网络设备包括: 配置单元, 用于将所述网络设备的转发面配置为第一转发平面和第 二转发平面, 所述第一转发平面运行第一版本, 所述第二转发平面运行 第二版本, 在所述网络设备版本升级之前, 所述第一转发平面用于所述 网络设备的报文转发; 釆样单元, 用于在所述配置单元配置的第一转发平面上以预设的釆 样比例对转发的报文进行釆样, 获得釆样报文, 并将所述釆样报文复制 到所述第二转发平面; 生成单元, 用于通过所述配置单元配置的第二转发平面对所述釆样 才艮文进行广播转发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC 地址表项; 升级单元, 用于当所述第二转发平面学习的 MAC地址数量达到预设 阈值时, 升级所述第二转发平面用于所述网络设备的报文转发, 所述预 设阈值为非零正整数。
6、 根据权利要求 5所述的网络设备, 其特征在于, 所述网络设备还 包括转发单元, 所述转发单元, 用于所述升级单元升级所述第二转发平面用于所述 网络设备的报文转发之后, 通过所述第二转发平面对匹配到所述 MAC 地 址表项的报文根据匹配到的 MAC 地址表项进行单播转发, 对于未匹配到 所述 MAC地址表项的报文以广播的方式进行转发。
7、 根据权利要求 5或 6所述的网络设备, 其特征在于, 所述网络设 备还包括接收单元, 所述接收单元, 用于在配置单元配置的所述第一转发平面上以预设 的釆样比例对转发的报文进行釆样, 获得釆样报文, 并将所述釆样报文 复制到所述第二转发平面之前, 将所述网络设备的控制平面生成的二层 转发表项发送至所述第二转发平面。
8、 根据权利要求 5-7任一权利要求所述的网络设备, 其特征在于, 所述预设阈值满足如下条件: 未使用所述预设阈值范围内的 MAC地址进行报文转发的广报报文占 用带宽不超过所述网络设备的系统带宽。
9、 一种通信设备网络设备, 其特征在于, 所述网络设备包括: 处理 器、 发送器、 存储器和总线, 其中所述处理器、 发送器、 存储器通过所 述总线连接, 所述存储器用于存储所述处理器处理的数据; 所述处理器, 用于将所述网络设备的转发面配置为第一转发平面和 第二转发平面, 所述第一转发平面运行第一版本, 所述第二转发平面运 行第二版本, 在所述网络设备版本升级之前, 所述第一转发平面用于所 述网络设备的报文转发; 还用于在所述第一转发平面上以预设的釆样比例对转发的报文进行 釆样, 获得釆样报文, 并将所述釆样报文复制到所述第二转发平面; 还用于通过所述第二转发平面对所述釆样报文通过发送器进行广播 转发来学习 MAC地址, 并根据学习到的 MAC地址生成 MAC地址表项; 还用于, 当所述第二转发平面学习的 MAC地址数量达到预设阈值时, 升级所述第二转发平面用于所述网络设备的报文转发, 所述预设阈值为 非零正整数。
1 0、 根据权利要求 9 所述的设备, 其特征在于, 所述处理器, 还用
通过所述第二转发平面对匹配到所述 MAC地址表项的报文根据匹配 到的 MAC地址表项进行单播转发; 对于未匹配到所述 MAC地址表项的才艮 文以广播的方式进行转发。
1 1、 根据权利要求 9或 1 0所述的设备, 其特征在于, 所述处理器还 用于通过所述第一转发平面上以预设的釆样比例对转发的报文进行釆 样, 获得釆样报文, 并将所述釆样报文复制到所述第二转发平面之前, 将控制平面生成的二层转发表项发送至所述第二转发平面。
1 2、 根据权利要求 9- 1 1任一权利要求所述的设备, 其特征在于, 所 述预设阈值满足如下条件: 未使用所述预设阈值范围内的 MAC地址进行报文转发的广播报文占 用带宽不超过所述网络设备的系统带宽。
PCT/CN2013/087116 2013-11-14 2013-11-14 一种网络设备版本升级的方法及网络设备 WO2015070412A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201380002641.4A CN103843285B (zh) 2013-11-14 2013-11-14 一种网络设备版本升级的方法及网络设备
EP13897329.2A EP3057264B1 (en) 2013-11-14 2013-11-14 Method for upgrading network device version and network device
PCT/CN2013/087116 WO2015070412A1 (zh) 2013-11-14 2013-11-14 一种网络设备版本升级的方法及网络设备
US15/153,590 US10116506B2 (en) 2013-11-14 2016-05-12 Method for upgrading version of network device and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/087116 WO2015070412A1 (zh) 2013-11-14 2013-11-14 一种网络设备版本升级的方法及网络设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/153,590 Continuation US10116506B2 (en) 2013-11-14 2016-05-12 Method for upgrading version of network device and network device

Publications (1)

Publication Number Publication Date
WO2015070412A1 true WO2015070412A1 (zh) 2015-05-21

Family

ID=50804813

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/087116 WO2015070412A1 (zh) 2013-11-14 2013-11-14 一种网络设备版本升级的方法及网络设备

Country Status (4)

Country Link
US (1) US10116506B2 (zh)
EP (1) EP3057264B1 (zh)
CN (1) CN103843285B (zh)
WO (1) WO2015070412A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115712544A (zh) * 2022-11-24 2023-02-24 杭州中电安科现代科技有限公司 一种监控系统

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8782632B1 (en) * 2012-06-18 2014-07-15 Tellabs Operations, Inc. Methods and apparatus for performing in-service software upgrade for a network device using system virtualization
US9870219B1 (en) * 2016-07-06 2018-01-16 Cisco Technology, Inc. Mechanisms for performing switch upgrades using remote containers
CN107707649B (zh) * 2017-09-28 2020-08-11 新华三技术有限公司 转控分离中转发平面的备份方法和装置
CN109245926B (zh) * 2018-08-28 2021-10-15 郑州云海信息技术有限公司 智能网卡、智能网卡系统及控制方法
US11477102B2 (en) * 2020-06-23 2022-10-18 Citrix Systems, Inc. Upgrading user space networking stacks without disruptions to network traffic
CN111970365A (zh) * 2020-08-18 2020-11-20 上海冷溪安全科技有限公司 一种无线升级方法和手持设备

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185718A (zh) * 2011-05-12 2011-09-14 杭州华三通信技术有限公司 一种系统升级方法及其装置
CN102752147A (zh) * 2012-07-17 2012-10-24 华为技术有限公司 创建网络设备的方法及装置

Family Cites Families (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5920699A (en) * 1996-11-07 1999-07-06 Hewlett-Packard Company Broadcast isolation and level 3 network switch
US20020001307A1 (en) * 2000-05-20 2002-01-03 Equipe Communications Corporation VPI/VCI availability index
US7225244B2 (en) * 2000-05-20 2007-05-29 Ciena Corporation Common command interface
US7415706B1 (en) * 2003-12-01 2008-08-19 Cisco Technology, Inc. Dynamic handling of multiple software component versions for device management
US7363387B1 (en) * 2003-12-09 2008-04-22 Cisco Technology, Inc. System and method for reducing information being transmitted in a network environment
CN100353710C (zh) 2004-06-16 2007-12-05 华为技术有限公司 可升级通信系统及通信系统的升级方法
US7391730B1 (en) * 2004-07-21 2008-06-24 Cisco Technology System and method for synchronizing link state databases in a network environment
US8364843B2 (en) 2006-01-09 2013-01-29 Cisco Technology, Inc. Method and system for minimizing disruption during in-service software upgrade
US7813384B2 (en) 2006-05-04 2010-10-12 Cisco Technology, Inc. Method and system for reducing synchronization of data in a network
CN100428160C (zh) 2006-12-06 2008-10-22 华为技术有限公司 一种在线升级逻辑器件的方法和系统
CN101102219B (zh) * 2007-07-30 2010-06-23 华为技术有限公司 软件升级系统以及软件升级方法
CN101119188B (zh) 2007-09-25 2010-06-02 中兴通讯股份有限公司 一种实现业务不中断的单板升级方法
CN102142931B (zh) * 2011-01-22 2013-07-10 北京华为数字技术有限公司 一种防止e-trunk丢包的方法、装置和系统
US8629046B2 (en) 2011-07-06 2014-01-14 Taiwan Semiconductor Manufacturing Company, Ltd. Semiconductor device with a dislocation structure and method of forming the same
CN102694679A (zh) * 2012-05-08 2012-09-26 华为技术有限公司 网络设备版本升级的方法和网络设备
US8943489B1 (en) * 2012-06-29 2015-01-27 Juniper Networks, Inc. High availability in-service software upgrade using virtual machine instances in dual computing appliances
CN102882704B (zh) 2012-09-03 2016-06-29 杭州华三通信技术有限公司 一种issu的软重启升级过程中的链路保护方法和设备
CN102882887B (zh) 2012-10-18 2018-04-20 新华三技术有限公司 软件平滑升级的实现方法及设备
CN102984055B (zh) 2012-12-03 2015-11-25 杭州华三通信技术有限公司 一种issu的软重启升级方法和设备
US9338055B2 (en) * 2013-03-15 2016-05-10 Cisco Technology, Inc. Virtual router upgrade via graceful restart
CN103354567B (zh) * 2013-07-10 2016-03-16 杭州华三通信技术有限公司 一种同步媒体访问控制地址的方法和设备

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102185718A (zh) * 2011-05-12 2011-09-14 杭州华三通信技术有限公司 一种系统升级方法及其装置
CN102752147A (zh) * 2012-07-17 2012-10-24 华为技术有限公司 创建网络设备的方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3057264A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115712544A (zh) * 2022-11-24 2023-02-24 杭州中电安科现代科技有限公司 一种监控系统
CN115712544B (zh) * 2022-11-24 2024-04-12 杭州中电安科现代科技有限公司 一种监控系统

Also Published As

Publication number Publication date
CN103843285B (zh) 2017-02-08
US20160261460A1 (en) 2016-09-08
EP3057264A1 (en) 2016-08-17
EP3057264A4 (en) 2016-08-31
CN103843285A (zh) 2014-06-04
EP3057264B1 (en) 2018-09-26
US10116506B2 (en) 2018-10-30

Similar Documents

Publication Publication Date Title
WO2015070412A1 (zh) 一种网络设备版本升级的方法及网络设备
US9838221B2 (en) Base station deployment configuration method for base station, base station, and server
JP5111618B2 (ja) Macテーブルのオーバーフロー攻撃に対する防御を容易にすること
RU2744809C2 (ru) Способ, реализуемый в устройстве, выполненном с возможностью подсоединения к абонентскому оборудованию сети первого типа, соответствующее устройство
CN102413046A (zh) 借助虚拟路由器冗余协议备份组转发流量的方法及设备
WO2014110707A1 (zh) 互联错误检测的方法、装置和系统
US10587572B1 (en) Group signaling using synthetic media access control addresses
EP3958522A1 (en) Traffic processing method and related device, method and apparatus for establishing forwarding table, and storage medium
RU2602333C2 (ru) Сетевая система, способ обработки пакетов и носитель записи
CN101997772B (zh) 流量控制方法、装置、系统及网络设备
CN106921575B (zh) 用于防止多播业务丢弃的装置、路由器和方法
EP3224996A1 (en) Methods, routing device and further routing device for managing data frames in switched networks
US20180212925A1 (en) Network communication method based on software-defined networking and server using the method
WO2015131380A1 (zh) 一种数据处理方法及装置
US9420583B2 (en) Combined voice and data communications in a distributed hybrid allocation and reservation multiple access mobile wireless network
CN102388568B (zh) 一种转发方法及转发装置
EP2981027B1 (en) Resource management for stream reservations
JP7496897B2 (ja) Pfd管理の最適化手順
CN111741363B (zh) 程序升级方法、装置及可读存储介质
JP5019232B2 (ja) トラフィック制御システム、制御方法、ホームゲートウェイ装置および制御プログラム
US8976812B2 (en) Communication apparatus and band control method
KR101051935B1 (ko) Vlan상에서 mac 어드레스를 이용한 불법 ip 사용자 차단시스템 및 차단방법
CN115842783A (zh) 流数据传输控制装置、车辆、方法和计算机程序产品
JP2009111746A (ja) 通信システムおよび方法、中継装置、端末装置、並びに、プログラム
EP3632065A1 (en) Method of providing information to an audio/video receiver device and corresponding apparatus

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: 13897329

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2013897329

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013897329

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE