CN101299718A - Port switching method, network equipment and network system - Google Patents
Port switching method, network equipment and network system Download PDFInfo
- Publication number
- CN101299718A CN101299718A CN 200810111286 CN200810111286A CN101299718A CN 101299718 A CN101299718 A CN 101299718A CN 200810111286 CN200810111286 CN 200810111286 CN 200810111286 A CN200810111286 A CN 200810111286A CN 101299718 A CN101299718 A CN 101299718A
- Authority
- CN
- China
- Prior art keywords
- physical member
- member port
- message
- mac address
- type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/54—Store-and-forward switching systems
- H04L12/56—Packet switching systems
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域 technical field
本发明涉及通信技术领域,特别涉及一种端口切换方法、网络设备及网络系统。The invention relates to the technical field of communications, in particular to a port switching method, network equipment and a network system.
背景技术 Background technique
在宽带接入网中,要求BAS(Broadband Access Server,宽带接入服务器)设备和交换机间的链路故障对用户不感知,即实现链路或者BAS设备端口故障时用户的热切换。In the broadband access network, it is required that the link failure between the BAS (Broadband Access Server, Broadband Access Server) device and the switch is not perceived by the user, that is, to realize the hot switching of the user when the link or the port of the BAS device fails.
现有技术提供一种VRRP(Virtual Router Redundancy Protocol,虚拟备份路由器)技术,参阅图1,需要在路由器A和路由器B上配置虚拟路由器号和虚拟路由器IP地址,同时产生一个虚拟MAC地址,这样在该网络中就加入了一个虚拟路由器。即一个虚拟路由器由一个主路由器和若干个备份路由器(如图中的路由器A和路由器B,可假定路由器A为主路由器,路由器B为备份路由器)组成,主路由器真正实现转发功能,当主路由器故障时,备份路由器将成为新的主路由器,接替原主路由器的工作。主机与虚拟路由器通讯时所传输的报文中携带虚拟MAC和虚拟IP,主机通过虚拟路由器接入网络,而无需了解主机实际所接入的物理路由器的任何信息,能保证当主机的下一跳路由器(虚拟路由器中的主路由器)故障时,可以及时由另一台路由器(备份路由器)来代替,从而保持通讯的连续性和可靠性。The existing technology provides a VRRP (Virtual Router Redundancy Protocol, virtual backup router) technology, referring to Figure 1, it is necessary to configure a virtual router number and a virtual router IP address on router A and router B, and generate a virtual MAC address at the same time. A virtual router is added to the network. That is, a virtual router consists of a main router and several backup routers (such as router A and router B in the figure, it can be assumed that router A is the main router and router B is the backup router). The main router actually implements the forwarding function. When the main router fails , the backup router will become the new master router, taking over the work of the original master router. When the host communicates with the virtual router, the virtual MAC and virtual IP are carried in the message transmitted. The host accesses the network through the virtual router without knowing any information about the physical router actually connected to the host, which can ensure that the next hop of the host When the router (main router in the virtual router) fails, it can be replaced by another router (backup router) in time, so as to maintain the continuity and reliability of communication.
在对现有技术的研究和实践过程中,发明人发现现有技术存在以下问题:During the research and practice of the prior art, the inventor found the following problems in the prior art:
现有技术的路由器中需要配置IP地址,是基于IP转发的三层网络,而且路由器的某个物理成员端口故障时,不能将接入该物理成员端口的用户转入其他物理成员端口,即不能实现端口间的切换。The router in the prior art needs to be configured with an IP address, which is a three-layer network based on IP forwarding, and when a certain physical member port of the router fails, the user who accesses the physical member port cannot be transferred to other physical member ports, that is, it cannot To switch between ports.
发明内容 Contents of the invention
本发明实施例提供一种端口切换方法、网络设备及网络系统,能够实现路由设备的物理成员端口间的切换。Embodiments of the present invention provide a port switching method, network equipment and network system, which can realize switching between physical member ports of the routing equipment.
有鉴于此,本发明实施例提供:In view of this, embodiments of the present invention provide:
一种端口切换方法,包括:A port switching method, comprising:
当确认第一物理成员端口不可用时,选择第二物理成员端口;When it is confirmed that the first physical member port is unavailable, select the second physical member port;
将所述第一物理成员端口映射的端口汇聚TRUNK子接口信息发送给第二物理成员端口;所述TRUNK子接口信息包括:为所述TRUNK子接口分配的虚拟MAC地址和用户标识;Sending the port aggregation TRUNK sub-interface information mapped to the first physical member port to the second physical member port; the TRUNK sub-interface information includes: a virtual MAC address and a user ID allocated for the TRUNK sub-interface;
向连接所述第二物理成员端口的交换机发送携带所述虚拟MAC地址的报文。sending the packet carrying the virtual MAC address to the switch connected to the second physical member port.
一种网络设备,包括:A network device comprising:
确认单元,用于确认第一物理成员端口不可用;A confirmation unit, configured to confirm that the first physical member port is unavailable;
选择单元,用于在确认第一物理成员端口不可用后,选择第二物理成员端口;A selection unit, configured to select a second physical member port after confirming that the first physical member port is unavailable;
第一发送单元,用于将所述第一物理成员端口映射的TRUNK子接口信息发送给第二物理成员端口;所述TRUNK子接口信息包括:为所述TRUNK子接口分配的虚拟MAC地址和用户标识;The first sending unit is configured to send the TRUNK sub-interface information mapped to the first physical member port to the second physical member port; the TRUNK sub-interface information includes: the virtual MAC address allocated for the TRUNK sub-interface and the user logo;
第二发送单元,用于向连接所述第二物理成员端口的交换机发送携带所述虚拟MAC地址的报文。A second sending unit, configured to send a message carrying the virtual MAC address to a switch connected to the second physical member port.
一种网络系统,包括:路由设备和交换机,A network system, including: routing equipment and switches,
所述路由设备,用于确认第一物理成员端口不可用,选择第二物理成员端口,将所述第一物理成员端口对应的虚拟MAC地址发送给第二物理成员端口;所述第一物理成员端口对应的虚拟MAC地址是:为映射到所述第一物理成员端口的TRUNK子接口所分配的虚拟MAC地址;向接所述第二物理成员端口的交换机发送携带所述虚拟MAC地址的报文;The routing device is configured to confirm that the first physical member port is unavailable, select a second physical member port, and send the virtual MAC address corresponding to the first physical member port to the second physical member port; the first physical member The virtual MAC address corresponding to the port is: the virtual MAC address allocated for the TRUNK sub-interface mapped to the first physical member port; sending a message carrying the virtual MAC address to the switch connected to the second physical member port ;
所述交换机,用于接收携带所述虚拟MAC地址的报文。The switch is configured to receive the message carrying the virtual MAC address.
本发明实施例在第一物理成员端口不可用时,将第一物理成员端口映射的TRUNK子接口信息发送给第二物理成员端口,并在向连接该第二物理成员端口的交换机发送的报文中携带虚拟MAC地址,以实现路由设备物理成员端口间的切换。In this embodiment of the present invention, when the first physical member port is unavailable, the TRUNK sub-interface information mapped to the first physical member port is sent to the second physical member port, and is included in the message sent to the switch connected to the second physical member port. Carry the virtual MAC address to realize switching between physical member ports of the routing device.
附图说明 Description of drawings
图1为现有技术提供的利用虚拟路由器接入的网络架构图;FIG. 1 is a network architecture diagram provided by the prior art using a virtual router for access;
图2为本发明实施例一所提供的组网图;FIG. 2 is a networking diagram provided by Embodiment 1 of the present invention;
图3为本发明实施例一所提供的虚拟MAC地址映射到物理成员端口的方法流程图;FIG. 3 is a flowchart of a method for mapping a virtual MAC address to a physical member port provided by Embodiment 1 of the present invention;
图4为本发明实施例一所提供的端口切换方法流程图;FIG. 4 is a flowchart of a port switching method provided by
图5为本发明实施例一所提供的确认成员端口不可用的方法流程图;FIG. 5 is a flowchart of a method for confirming that a member port is unavailable according to
图6为本发明实施例二提供的网络设备结构图。FIG. 6 is a structural diagram of a network device provided by Embodiment 2 of the present invention.
具体实施方式 Detailed ways
本发明实施例提供一种端口切换方法,包括:路由设备确认第一物理成员端口不可用;选择第二物理成员端口;将所述第一物理成员端口映射的端口汇聚TRUNK子接口信息发送给第二物理成员端口;所述TRUNK子接口信息包括:为所述TRUNK子接口分配的虚拟MAC地址和用户标识;向接所述第二物理成员端口的交换机发送携带所述虚拟MAC地址的报文。使用本发明实施例提供的技术方案,能够通过物理成员端口间的切换,保证通讯的连续性和可靠性。An embodiment of the present invention provides a port switching method, including: the routing device confirms that the first physical member port is unavailable; selects the second physical member port; and sends the port aggregation TRUNK sub-interface information mapped to the first physical member port to the second physical member port Two physical member ports; the TRUNK sub-interface information includes: a virtual MAC address and a user identifier allocated for the TRUNK sub-interface; sending a message carrying the virtual MAC address to a switch connected to the second physical member port. By using the technical solution provided by the embodiment of the present invention, the continuity and reliability of communication can be guaranteed by switching between physical member ports.
如下先对BAS(Broadband Access Server,宽带接入服务器)设备接口作简单介绍:BAS设备通过非对称以太Trunk接入汇聚交换机,如图2所示,BAS设备的一个以太TRUNK接口下有4个物理成员接口:GE1/0/1、GE2/0/1、GE3/0/1、GE4/0/1,其中,前两个物理成员接口(GE1/0/1和GE2/0/1)与一台交换机相连接,后两个物理成员接口(GE3/0/1和GE4/0/1)与另一台交换机相连接。The interface of BAS (Broadband Access Server, broadband access server) equipment is briefly introduced as follows: BAS equipment is connected to the convergence switch through an asymmetrical Ethernet Trunk, as shown in Figure 2, there are 4 physical interfaces under one Ethernet Trunk interface of BAS equipment Member interfaces: GE1/0/1, GE2/0/1, GE3/0/1, GE4/0/1, where the first two physical member interfaces (GE1/0/1 and GE2/0/1) are connected to a The last two physical member interfaces (GE3/0/1 and GE4/0/1) are connected to another switch.
为使后续本发明实施例所提供的端口切换方法更加清楚明白,先对以以太TRUNK子接口为单位,将虚拟MAC地址映射到物理成员端口的过程进行详细介绍,参阅图3,该流程具体包括:In order to make the port switching method provided by the embodiment of the present invention clearer, the process of mapping a virtual MAC address to a physical member port in units of Ethernet trunk sub-interfaces is introduced in detail, as shown in FIG. 3 . The process specifically includes :
步骤301、BAS设备创建以太TRUNK子接口,为以太TRUNK子接口分配虚拟MAC地址和用户标识。其中,用户标识可以是:VLAN(Virtual LocalArea Network,虚拟局域网)或者QinQ(也称Stacked VLAN,二层虚拟局域网)标识,该实施例中的路由设备可以是BAS。
步骤302、利用为以太TRUNK子接口所分配的用户标识,按照各物理成员端口的用户标识均衡的原则,将TRUNK子接口信息映射到BAS的物理成员端口,TRUNK子接口信息包括:所分配的虚拟MAC地址和用户标识。
步骤303、各物理成员端口接收用户广播的报文,用户广播的报文中包含用户的VLAN/QinQ信息,其中,用户广播的报文是第一类报文。
步骤304、判断第一类报文中的用户标识是否是接收第一类报文的物理成员端口所映射的TRUNK子接口信息中的用户标识,如果是,执行步骤305;如果否,结束本流程。
步骤305、假定第一类报文中的VLAN/QinQ信息是第一物理成员端口映射的TRUNK子接口信息中VLAN/QinQ,BAS设备通过第一物理成员端口向交换机发送响应报文,该响应报文中包括:该TRUNK子接口信息中的虚拟MAC地址。
步骤306、交换机保存虚拟MAC地址与连接该第一物理成员端口的交换机端口的对应关系,并向用户发送响应报文,该响应报文中携带TRUNK子接口信息中的虚拟MAC地址。
后续用户向BAS发送的第二类报文中都以虚拟MAC地址作为目的地址,这样交换机收到来自用户的第二类报文后,根据预先保存的虚拟MAC地址与交换机端口(与第一物理成员端口连接的交换机端口)的对应关系,通过该交换机端口向BAS设备发送用户的第二类报文,这样所有以虚拟MAC地址为目的地址的第二类报文都被第一物理成员端口接收。Subsequent users send the second type of message to the BAS with the virtual MAC address as the destination address, so that after the switch receives the second type of message from the user, it The corresponding relationship between the switch port connected to the member port), and the second type of message of the user is sent to the BAS device through the switch port, so that all the second type of messages with the virtual MAC address as the destination address are received by the first physical member port .
下面参阅图4,对本发明实施例一所提供的端口切换方法进行详细介绍,该方法具体包括:Referring to Fig. 4 below, the port switching method provided by
步骤401、确认第一物理成员端口不可用。
该步骤的具体实现方式如图5所示。The specific implementation of this step is shown in FIG. 5 .
步骤402、根据第一物理成员端口所映射的TRUNK子接口信息中的用户标识,按照各物理成员端口的用户标识均衡的原则,选择第二物理成员端口。Step 402: Select a second physical member port according to the user ID in the TRUNK sub-interface information mapped to the first physical member port and according to the principle of balancing user IDs of each physical member port.
步骤403、将第一物理成员端口所映射的TRUNK子接口信息发送给第二物理成员端口,其中,TRUNK子接口信息包括:BAS设备为该TRUNK子接口所分配的虚拟MAC地址和用户标识。Step 403: Send the TRUNK sub-interface information mapped to the first physical member port to the second physical member port, wherein the TRUNK sub-interface information includes: the virtual MAC address and user ID allocated by the BAS device for the TRUNK sub-interface.
步骤404、通过第二物理成员端口向交换机发送用户探测报文,该用户探测报文中携带虚拟MAC地址。
步骤405、交换机刷新MAC表,即交换机删除原来保存的虚拟MAC地址与连接第一物理成员端口的交换机端口的对应关系,保存虚拟MAC地址与连接第二物理成员端口的交换机端口的对应关系。
其中,上述第一物理成员端口和第二物理成员端口可能分部在不同的业务单板上,因此,上面描述的端口切换方法可以实现路由设备上跨单板的用户热切换。Wherein, the above-mentioned first physical member port and the second physical member port may be divided into different service boards. Therefore, the port switching method described above can realize user hot switching across boards on the routing device.
参阅图5,确认第一物理成员端口不可用的方法流程具体包括:Referring to Figure 5, the method flow for confirming that the first physical member port is unavailable specifically includes:
步骤501、交换机接收来自用户的第二类报文后,根据第二类报文中的虚拟MAC地址与交换机端口的对应关系,通过虚拟MAC地址所对应的交换机端口,向BAS的第一物理成员端口(与虚拟MAC地址所对应的交换机端口连接)发送第二类报文,在特定时间段内接收不到来自BAS的响应消息,确认第一物理成员端口不可用,该虚拟MAC地址被老化。其中,该第二类报文包括:用户标识VLAN/QinQ、虚拟MAC地址、报文接入的单板及端口号。
步骤502、交换机通过各端口广播该第二类报文。
步骤503、BAS接收到第二类报文后,判断接收该第二类报文的TRUNK端口属性表中的类型标志是否表示为非对称TRUNK,如果是,执行步骤504;如果否,按照普通成员端口接收报文流程来处理。
步骤504、BAS判断第二类报文中的用户标识与接收该第二类报文的物理成员端口所映射的TRUNK子接口信息中的用户标识是否相同,如果是,执行步骤505,如果否,执行步骤507。
步骤505、BAS判断第二类报文中的虚拟MAC地址与接收该第二类报文的物理成员端口所映射的TRUNK子接口信息中的虚拟MAC地址是否相同,如果是,执行步骤506,如果否,执行步骤507。
步骤506、BAS判断第二类报文中携带的单板及端口号与接收该第二类报文的物理成员端口的单板及端口号是否相同,如果是,结束本流程,如果否,执行步骤507。
步骤507、BAS丢弃第二类报文。
步骤508、BAS利用报文采样检测技术,当单位时间段内被丢弃的第二类报文达到阈值时,根据被丢弃的第二类报文中的虚拟MAC地址,确认第一物理成员端口不可用。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,例如只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the methods of the above embodiments can be implemented through a program to instruct related hardware, and the program can be stored in a computer-readable storage medium, such as a read-only memory, Disk or CD, etc.
参阅图6,本发明实施例二提供一种网络设备,该设备包括:第一物理成员端口,第二物理成员端口,确认单元601,选择单元602,第一发送单元603,第二发送单元604,其中,Referring to FIG. 6, Embodiment 2 of the present invention provides a network device, which includes: a first physical member port, a second physical member port, a
确认单元601,用于确认第一物理成员端口不可用;A confirming
选择单元602,用于在确认第一物理成员端口不可用后,选择第二物理成员端口;A
第一发送单元603,用于将所述第一物理成员端口映射的TRUNK子接口信息发送给第二物理成员端口;所述TRUNK子接口信息包括:为所述TRUNK子接口分配的虚拟MAC地址和用户标识;The
第二发送单元604,用于通过第二物理成员端口,向连接所述第二物理成员端口的交换机发送携带所述虚拟MAC地址的报文。The
该设备还包括:The device also includes:
分配单元605,用于为TRUNK子接口分配虚拟MAC地址和用户标识;An
映射单元606,用于将TRUNK子接口信息映射到物理成员端口,所述TRUNK子接口信息包括:为所述TRUNK子接口分配的虚拟MAC地址和用户标识;A
第一类报文接收单元607,用于接收携带用户标识的第一类报文;A first-type
判断单元608,用于判断所述第一类报文中的用户标识是否是接收所述第一类报文的物理成员端口所映射的TRUNK子接口信息中的用户标识;A judging
响应报文发送单元609,用于当所述判断单元的判断结果为是时,向所述用户发送响应报文,所述响应报文中携带所述TRUNK子接口信息中的虚拟MAC地址。A response
其中,所述确认单元601包括:Wherein, the
第二类报文接收单元,用于接收携带虚拟MAC地址和用户标识的第二类报文;A second-type message receiving unit, configured to receive a second-type message carrying a virtual MAC address and a user identifier;
丢弃报文确认单元,用于当所述第二类报文中的用户标识与接收第二类报文的物理成员端口所映射的TRUNK子接口信息中的用户标识不同,或者,第二类报文中的虚拟MAC地址与接收第二类报文的物理成员端口所映射的TRUNK子接口信息中的虚拟MAC地址不同时,确认丢弃第二类报文;A discarding message confirmation unit, configured to be used when the user ID in the second type of message is different from the user ID in the TRUNK sub-interface information mapped to the physical member port receiving the second type of message, or the second type of message When the virtual MAC address in the text is different from the virtual MAC address in the trunk sub-interface information mapped to the physical member port receiving the second type of message, it is confirmed to discard the second type of message;
阈值判断单元,用于判断单位时间段内被丢弃的第二类报文是否达到阈值;a threshold judging unit, configured to judge whether the second type of packets discarded within a unit time period reach the threshold;
端口不可用确认单元,用于当所述阈值判断单元的判断结果为是时,根据所述被丢弃的第二类报文中的虚拟MAC地址与物理成员端口之间的对应关系,确认所述物理成员端口即第一物理成员端口不可用。A port unavailable confirming unit, configured to confirm that the The physical member port, that is, the first physical member port is unavailable.
其中,所述选择单元602,用于根据映射到所述第一物理成员端口的TRUNK子接口信息中的用户标识,按照各物理成员端口的用户标识均衡的原则,选择第二物理成员端口。Wherein, the
本发明实施例三提供一种网络系统,包括:路由设备和交换机,Embodiment 3 of the present invention provides a network system, including: a routing device and a switch,
路由设备为TRUNK子接口分配虚拟MAC地址和用户标识,按照各物理成员端口用户标识均衡的原则,将TRUNK子接口信息映射到物理成员端口;接收第一类报文,确认第一类报文中的用户标识是接收所述第一类报文的物理成员端口所映射的TRUNK子接口信息中的用户标识,向交换机发送响应报文,所述响应报文中携带所述TRUNK子接口信息中的虚拟MAC地址;The routing device assigns a virtual MAC address and user ID to the TRUNK sub-interface, and maps the information of the TRUNK sub-interface to the physical member port according to the principle of balancing the user ID of each physical member port; receives the first type of message, and confirms that the first type of message The user ID is the user ID in the TRUNK sub-interface information mapped to the physical member port receiving the first type of message, and sends a response message to the switch, and the response message carries the TRUNK sub-interface information Virtual MAC address;
交换机保存所述响应报文中的虚拟MAC地址与连接所述物理成员端口的交换机端口的对应关系,并向所述用户发送所述响应报文;The switch saves the corresponding relationship between the virtual MAC address in the response message and the switch port connected to the physical member port, and sends the response message to the user;
交换机接收用户发送的所述第二类报文,根据第二类报文中的虚拟MAC地址与交换机端口的对应关系,通过所述虚拟MAC地址所对应的交换机端口向路由设备发送所述第二类报文;当未接收到来自所述路由设备的响应消息时,确认所述虚拟MAC地址老化,通过所述交换机的各端口向所述路由设备发送所述第二类报文。The switch receives the second type of message sent by the user, and sends the second type of message to the routing device through the switch port corresponding to the virtual MAC address according to the correspondence between the virtual MAC address in the second type of message and the switch port. When no response message from the routing device is received, confirm that the virtual MAC address is aging, and send the second type of message to the routing device through each port of the switch.
路由设备接收来自交换机的携带虚拟MAC地址和用户标识的第二类报文,当所述第二类报文中的用户标识与接收第二类报文的物理成员端口所映射的TRUNK子接口信息中的用户标识不同,或者,第二类报文中的虚拟MAC地址与接收第二类报文的物理成员端口所映射的TRUNK子接口信息中的虚拟MAC地址不同时,确认丢弃第二类报文;判断单位时间段内被丢弃的第二类报文是否达到阈值;如果是,根据所述被丢弃的第二类报文中的虚拟MAC地址与物理成员端口之间的对应关系,确认所述物理成员端口即第一物理成员端口不可用;将所述第一物理成员端口对应的虚拟MAC地址发送给第二物理成员端口;向连接所述第二物理成员端口的交换机发送携带所述虚拟MAC地址的报文;The routing device receives the second type of message carrying the virtual MAC address and the user ID from the switch, and when the user ID in the second type of message is mapped to the TRUNK sub-interface information of the physical member port receiving the second type of message If the user ID in the second type of message is different, or the virtual MAC address in the second type of message is different from the virtual MAC address in the trunk sub-interface information mapped to the physical member port receiving the second type of message, confirm to discard the second type of message. text; determine whether the second type of message discarded within the unit time period reaches the threshold; if yes, confirm the corresponding relationship between the virtual MAC address and the physical member port in the second type of message discarded The physical member port, that is, the first physical member port is unavailable; the virtual MAC address corresponding to the first physical member port is sent to the second physical member port; MAC address message;
交换机记录所述虚拟MAC地址与连接所述第二物理成员端口的交换机端口的对应关系。The switch records the correspondence between the virtual MAC address and the switch port connected to the second physical member port.
从以上分析可以看出,本发明实施例具有如下有益效果:As can be seen from the above analysis, the embodiments of the present invention have the following beneficial effects:
本发明实施例在第一物理成员端口不可用时,将第一物理成员端口映射的TRUNK子接口信息发送给第二物理成员端口,并在向连接该第二物理成员端口的交换机发送的报文中携带虚拟MAC地址,以实现路由设备物理成员端口间的切换,连接该第二物理成员端口的交换机保存虚拟MAC地址和连接第二物理成员端口的交换机端口的对应关系,后续该交换机接收到用户发送的携带该虚拟MAC地址的上行报文时,能根据上述对应关系,将用户的上行报文通过与该虚拟MAC地址对应的交换机端口发送到路由设备,该路由设备通过第二物理成员端口接收该上行报文,即通过路由设备物理成员端口间的切换,以保证通讯的连续性和可靠性。In this embodiment of the present invention, when the first physical member port is unavailable, the TRUNK sub-interface information mapped to the first physical member port is sent to the second physical member port, and is included in the message sent to the switch connected to the second physical member port. Carry the virtual MAC address to realize switching between the physical member ports of the routing device. The switch connected to the second physical member port saves the corresponding relationship between the virtual MAC address and the switch port connected to the second physical member port. When carrying the uplink message of the virtual MAC address, the user's uplink message can be sent to the routing device through the switch port corresponding to the virtual MAC address according to the above correspondence, and the routing device receives the uplink message through the second physical member port. The uplink message is switched between the physical member ports of the routing device to ensure the continuity and reliability of the communication.
本发明实施例根据TRUNK子接口信息中的用户标识,按照各物理成员端口用户标识均衡的原则,将TRUNK子接口信息映射到物理成员端口,其中,TRUNK子接口信息包括:为所述TRUNK子接口分配的虚拟MAC地址和用户标识。将不同的虚拟MAC映射到对应的物理成员端口上,并向用户发送携带该虚拟MAC地址的响应报文,以实现用户在不同的物理成员端口的负载分担。According to the user ID in the TRUNK sub-interface information, the embodiment of the present invention maps the TRUNK sub-interface information to the physical member port according to the principle of user ID balance of each physical member port, wherein the TRUNK sub-interface information includes: the TRUNK sub-interface Assigned virtual MAC address and user ID. Map different virtual MACs to corresponding physical member ports, and send response packets carrying the virtual MAC addresses to users, so as to realize load sharing of users on different physical member ports.
以上对本发明实施例所提供的端口切换方法、网络设备及网络系统进行了详细介绍,对于本领域的一般技术人员,依据本发明实施例的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The port switching method, network equipment and network system provided by the embodiment of the present invention have been introduced in detail above. For those skilled in the art, according to the idea of the embodiment of the present invention, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as limiting the present invention.
Claims (15)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810111286 CN101299718B (en) | 2008-06-13 | 2008-06-13 | Port switching method, network equipment and network system |
PCT/CN2009/072146 WO2009149646A1 (en) | 2008-06-13 | 2009-06-05 | Port switching method, network device and network system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200810111286 CN101299718B (en) | 2008-06-13 | 2008-06-13 | Port switching method, network equipment and network system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101299718A true CN101299718A (en) | 2008-11-05 |
CN101299718B CN101299718B (en) | 2011-04-13 |
Family
ID=40079410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200810111286 Expired - Fee Related CN101299718B (en) | 2008-06-13 | 2008-06-13 | Port switching method, network equipment and network system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101299718B (en) |
WO (1) | WO2009149646A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009149646A1 (en) * | 2008-06-13 | 2009-12-17 | 华为技术有限公司 | Port switching method, network device and network system |
CN102136931A (en) * | 2010-09-20 | 2011-07-27 | 华为技术有限公司 | Method for configuring virtual port network strategies, network management center and related equipment |
CN102137009A (en) * | 2011-01-31 | 2011-07-27 | 华为技术有限公司 | Method, system and equipment for processing Dual-layer service in network |
CN102413052A (en) * | 2011-11-30 | 2012-04-11 | 华为技术有限公司 | Method, device and system for accessing network |
WO2014089746A1 (en) * | 2012-12-10 | 2014-06-19 | 华为技术有限公司 | Message forwarding method and device |
CN104320282A (en) * | 2014-10-31 | 2015-01-28 | 杭州华三通信技术有限公司 | Method for switching of main and standby virtual machines in virtual edge port aggregation system and physical mainframes |
CN109246007A (en) * | 2017-07-10 | 2019-01-18 | 杭州达乎科技有限公司 | Active and standby port switching method, storage device and the network equipment of aggregation interface |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107682277A (en) * | 2017-10-11 | 2018-02-09 | 郑州云海信息技术有限公司 | Communication means, device and medium between a kind of equipment FC ports |
CN111092782B (en) * | 2018-10-24 | 2022-04-05 | 迈普通信技术股份有限公司 | Tested communication equipment, communication equipment port data forwarding test system and method |
CN113206751B (en) * | 2021-03-15 | 2022-07-12 | 新华三技术有限公司合肥分公司 | Port configuration and switching method, virtual machine and server |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6151324A (en) * | 1996-06-03 | 2000-11-21 | Cabletron Systems, Inc. | Aggregation of mac data flows through pre-established path between ingress and egress switch to reduce number of number connections |
CN100407704C (en) * | 2006-02-20 | 2008-07-30 | 杭州华三通信技术有限公司 | A Dynamic Learning Method of Media Access Control Layer Address |
JP2008060831A (en) * | 2006-08-30 | 2008-03-13 | Nippon Telegr & Teleph Corp <Ntt> | Edge switch, core switch, network system, and frame transfer method |
CN101155109B (en) * | 2006-09-30 | 2010-04-21 | 华为技术有限公司 | Ethernet switching system and equipment |
CN100512194C (en) * | 2006-12-25 | 2009-07-08 | 华为技术有限公司 | Sending and receiving method and system for link aggregation method, device and MAC frame |
CN101299718B (en) * | 2008-06-13 | 2011-04-13 | 华为技术有限公司 | Port switching method, network equipment and network system |
-
2008
- 2008-06-13 CN CN 200810111286 patent/CN101299718B/en not_active Expired - Fee Related
-
2009
- 2009-06-05 WO PCT/CN2009/072146 patent/WO2009149646A1/en active Application Filing
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009149646A1 (en) * | 2008-06-13 | 2009-12-17 | 华为技术有限公司 | Port switching method, network device and network system |
CN102136931A (en) * | 2010-09-20 | 2011-07-27 | 华为技术有限公司 | Method for configuring virtual port network strategies, network management center and related equipment |
US8423632B2 (en) | 2010-09-20 | 2013-04-16 | Huawei Technologies Co., Ltd. | Method, network management center, and a related device for configuring a network policy for a virtual port |
CN102136931B (en) * | 2010-09-20 | 2013-12-04 | 华为技术有限公司 | Method for configuring virtual port network strategies, network management center and related equipment |
CN102137009A (en) * | 2011-01-31 | 2011-07-27 | 华为技术有限公司 | Method, system and equipment for processing Dual-layer service in network |
CN102137009B (en) * | 2011-01-31 | 2015-01-07 | 华为技术有限公司 | Method, system and equipment for processing Dual-layer service in network |
CN102413052A (en) * | 2011-11-30 | 2012-04-11 | 华为技术有限公司 | Method, device and system for accessing network |
CN102413052B (en) * | 2011-11-30 | 2015-08-19 | 华为技术有限公司 | A kind of method of access network, Apparatus and system |
WO2014089746A1 (en) * | 2012-12-10 | 2014-06-19 | 华为技术有限公司 | Message forwarding method and device |
CN104320282A (en) * | 2014-10-31 | 2015-01-28 | 杭州华三通信技术有限公司 | Method for switching of main and standby virtual machines in virtual edge port aggregation system and physical mainframes |
CN104320282B (en) * | 2014-10-31 | 2017-12-15 | 新华三技术有限公司 | Virtual machine main/standby switching method and physical host in virtual edge port collecting system |
CN109246007A (en) * | 2017-07-10 | 2019-01-18 | 杭州达乎科技有限公司 | Active and standby port switching method, storage device and the network equipment of aggregation interface |
Also Published As
Publication number | Publication date |
---|---|
WO2009149646A1 (en) | 2009-12-17 |
CN101299718B (en) | 2011-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101299718B (en) | Port switching method, network equipment and network system | |
Del Piccolo et al. | A survey of network isolation solutions for multi-tenant data centers | |
CN101534329B (en) | Method and system for allocating IP addresses | |
CN101601232B (en) | Triple-tier anycast addressing | |
US7808994B1 (en) | Forwarding traffic to VLAN interfaces built based on subscriber information strings | |
EP1693996B1 (en) | Automatic discovery of psuedo-wire peer addresses in ethernet-based networks | |
CN102318291B (en) | Method, device and system for business flow processing | |
US10523464B2 (en) | Multi-homed access | |
WO2017215390A1 (en) | Method and device for selecting data forwarding port of longitudinal stack system | |
CN100407704C (en) | A Dynamic Learning Method of Media Access Control Layer Address | |
WO1999056436A1 (en) | Establishing connectivity in networks | |
CN103051538B (en) | Method, control equipment and system for generating ARP (Address Resolution Protocol) table entry | |
WO2015014187A1 (en) | Data forwarding method and apparatus that support multiple tenants | |
CN101494669B (en) | Method and apparatus for distributing IP address for user terminal | |
CN108429680A (en) | A virtual private cloud-based routing configuration method, system, medium and equipment | |
CN103166826A (en) | Method and apparatus for implementing fiber channel zone policies | |
CN102413052A (en) | Method, device and system for accessing network | |
CN107070790A (en) | A kind of route learning method and routing device | |
CN101184039B (en) | A Method of Ethernet Load Balancing | |
CN110391961A (en) | A tunnel binding method, device and system | |
CN107634907B (en) | Data forwarding method and device for L2VPN (layer two virtual private network) | |
CN106533984B (en) | A social resource access method and device | |
US7990871B2 (en) | Packet flood control | |
CN100393039C (en) | Network management method for devices without IP addresses | |
CN107659436A (en) | A kind of method and device for preventing service disconnection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110413 Termination date: 20190613 |
|
CF01 | Termination of patent right due to non-payment of annual fee |