WO2017000614A1 - Ethernet initialization method, device and system - Google Patents

Ethernet initialization method, device and system Download PDF

Info

Publication number
WO2017000614A1
WO2017000614A1 PCT/CN2016/078368 CN2016078368W WO2017000614A1 WO 2017000614 A1 WO2017000614 A1 WO 2017000614A1 CN 2016078368 W CN2016078368 W CN 2016078368W WO 2017000614 A1 WO2017000614 A1 WO 2017000614A1
Authority
WO
WIPO (PCT)
Prior art keywords
vlan
notification message
receiving
discovery request
counterpart device
Prior art date
Application number
PCT/CN2016/078368
Other languages
French (fr)
Chinese (zh)
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 WO2017000614A1 publication Critical patent/WO2017000614A1/en

Links

Images

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

Abstract

An Ethernet initialization method, device and system. The method comprises: when it is detected that an opposite-party device feeding back a VLAN notification message is overdue, sending a VLAN discovery request message to the opposite-party device according to a pre-set rule; and receiving the VLAN notification message fed back by the opposite-party device, and establishing a link according to the VLAN notification message, wherein the VLAN notification message comprises a current VLAN list of the opposite-party devices. Compared with the related art, when a VLAN notification message is not received, that is, when an opposite-party device does not establish a virtual link and a VLAN changes, a VLAN discovery request message is sent to the opposite-party device again, so as to ask the opposite-party device to feed back current VLAN information, and the current VLAN information is used to establish a link, and the present invention can avoid the problem in the related art of a link establishment failure due to the inconsistency of VLAN information.

Description

一种以太网初始化方法、装置和系统Ethernet initialization method, device and system 技术领域Technical field
本文涉及以太网初始化技术领域,特别涉及一种以太网初始化方法、装置和系统。This document relates to the field of Ethernet initialization technology, and in particular, to an Ethernet initialization method, apparatus, and system.
背景技术Background technique
在以太网光纤通道(Fibre Channel over Ethernet,简称“FCoE”)网络中,虚拟局域网(Virtual Local Area Network,简称“VLAN”),光纤通道初始协议虚拟局域网通知(Fibre Channel Initialization Protocol Virtual Local Area Network Discovery,简称“FIP VLAN Discovery”)报文用于发现可以在FIP协议以及后面的FCoE报文中使用的VLAN ID。具体的以太网FCoE初始化过程为:本端虚拟以太网端口VE_PORT首先发一个MAC地址为All-FCF-MACs的MAC地址发送FIP VLAN发现请求报文。连接的对端VE_PORT收到VLAN发现请求之后,需要使用单播VLAN通知帧进行响应,VLAN通知帧携带对端VE_PORT可支持的VLAN ID列表;本端VE_PORT收到通知帧后,解析携带的描述符获取VLAN列表;然后从可用的VLAN列表中选择一个VLAN ID进行后续登陆等操作。In a Fibre Channel over Ethernet (FCoE) network, a virtual local area network (VLAN), Fibre Channel Initialization Protocol Virtual Local Area Network Discovery The "FIP VLAN Discovery" packet is used to discover the VLAN ID that can be used in the FIP protocol and the subsequent FCoE packets. The specific Ethernet FCoE initialization process is as follows: The local virtual Ethernet port VE_PORT first sends a FIP VLAN discovery request packet with a MAC address of the All-FCF-MACs. After receiving the VLAN discovery request, the connected peer VE_PORT needs to respond with a unicast VLAN notification frame. The VLAN notification frame carries a list of VLAN IDs that can be supported by the peer VE_PORT. After receiving the notification frame, the local VE_PORT resolves the carried descriptor. Obtain a list of VLANs; then select a VLAN ID from the list of available VLANs for subsequent logins.
如果对端VE_PORT上的VLAN配置发生变化,它需要向所有建立了虚连接的VE_PORT发送单播VLAN通知帧,通知帧携带修改后的VLAN列表。本端VE_PORT解析获取修改后的VLAN列表,进行相应操作。If the VLAN configuration on the peer VE_PORT changes, it needs to send a unicast VLAN notification frame to all VE_PORTs that have established a virtual connection. The notification frame carries the modified VLAN list. The local VE_PORT parses the modified VLAN list and performs corresponding operations.
但是在实际网络组网环境中,可能存在各种异常情况,例如:如果本端VE_PORT还没有建立虚连接之前,对端VE_PORT的VLAN发生变化,那么对端VE_PORT可能就不会通知到本端VE_PORT,这样就有可能造成本端VE_PORT继续使用被删除的VLAN ID进行登录。However, in an actual network networking environment, various abnormal conditions may exist. For example, if the VLAN of the peer VE_PORT changes before the local VE_PORT has not established a virtual connection, the peer VE_PORT may not notify the local VE_PORT. This may cause the local VE_PORT to continue to log in using the deleted VLAN ID.
发明内容Summary of the invention
本发明要解决的主要技术问题是,提供一种以太网初始化方法、装置和 系统,解决相关技术中没有建立虚连接时对端终端VLAN发生变化不会反正给本端导致后续建链失败的问题。The main technical problem to be solved by the present invention is to provide an Ethernet initialization method and apparatus and The system solves the problem that the change of the VLAN of the peer terminal when the virtual link is not established in the related technology does not cause the subsequent link to fail.
为解决上述问题,采用如下技术方案:In order to solve the above problems, the following technical solutions are adopted:
一种以太网初始化方法,包括:An Ethernet initialization method, including:
检测到对方装置反馈VLAN通知消息超时时,按预设规则向所述对方装置发送VLAN发现请求消息;When detecting that the feedback signal notification message of the opposite device is timed out, sending a VLAN discovery request message to the counterpart device according to a preset rule;
接收到所述对方装置反馈的所述VLAN通知消息,根据所述VLAN通知消息建立链路,所述VLAN通知消息包括所述对方装置当前的VLAN列表。Receiving the VLAN notification message fed back by the counterpart device, establishing a link according to the VLAN notification message, where the VLAN notification message includes a current VLAN list of the counterpart device.
在本发明的一种实施例中,所述检测到对方装置反馈VLAN通知消息超时包括:在发送VLAN发现请求消息给所述对方装置后,判断在预设时间内是否接收到所述对方装置反馈的VLAN通知消息,如果没有接收到,则认为反馈VLAN通知消息超时。In an embodiment of the present invention, the detecting, by the other device, the feedback of the VLAN notification message timeout includes: after sending the VLAN discovery request message to the other device, determining whether the feedback of the counterpart device is received within a preset time The VLAN notification message, if not received, considers that the feedback VLAN notification message times out.
在本发明的一种实施例中,所述预设规则为在检测到所述VLAN通知报文超时时,在预设的时间段内按预设的频率向所述对端终端发送所述VLAN发现请求消息。In an embodiment of the present invention, the preset rule is that, when detecting that the VLAN notification packet times out, sending the VLAN to the opposite terminal according to a preset frequency within a preset time period. Discover the request message.
一种以太网初始化方法,包括:An Ethernet initialization method, including:
接收对方装置按预设规则发送的VLAN发现请求消息;Receiving a VLAN discovery request message sent by the other device according to a preset rule;
向所述对方装置反馈VLAN通知消息,所述VLAN通知消息包括本端当前的VLAN列表。The VLAN notification message is fed back to the remote device, where the VLAN notification message includes a current VLAN list of the local end.
一种以太网初始化方法,包括:An Ethernet initialization method, including:
发送端检测到接收端反馈VLAN通知消息超时时,按预设规则向所述接收端发送VLAN发现请求消息;When the sending end detects that the receiving end feedback VLAN notification message times out, the sending end sends a VLAN discovery request message to the receiving end according to a preset rule;
所述接收端接收所述VLAN发现请求消息,向所述发送端反馈VLAN通知消息,所述VLAN通知消息包括本端当前的VLAN列表;Receiving, by the receiving end, the VLAN discovery request message, and feeding back a VLAN notification message to the sending end, where the VLAN notification message includes a current VLAN list of the local end;
所述发送端接收所述VLAN通知消息后,根据所述VLAN通知消息建立 链路。After receiving the VLAN notification message, the sending end establishes according to the VLAN notification message. link.
一种以太网初始化装置,包括检测发送模块和接收建链模块:An Ethernet initialization device includes a detection transmitting module and a receiving chain building module:
所述检测发送模块设置成:检测到对方装置反馈VLAN通知消息超时时,按预设规则向所述对方装置发送VLAN发现请求消息;The detecting and sending module is configured to: when detecting that the feedback signal of the partner device returns a timeout message, send a VLAN discovery request message to the counterpart device according to a preset rule;
所述接收建链模块设置成:接收到所述对方装置反馈的所述VLAN通知消息,根据所述VLAN通知消息建立链路,所述VLAN通知消息包括所述对方装置当前的VLAN列表。The receiving chain building module is configured to: receive the VLAN notification message fed back by the counterpart device, establish a link according to the VLAN notification message, and the VLAN notification message includes a current VLAN list of the counterpart device.
所述检测发送模块还设置成:在发送VLAN发现请求消息给所述对方装置后,判断在预设时间内是否接收到所述对方装置反馈的VLAN通知消息,如果没有接收到,则认为反馈VLAN通知消息超时。The detecting and sending module is further configured to: after transmitting the VLAN discovery request message to the remote device, determine whether the VLAN notification message fed back by the counterpart device is received within a preset time, and if not received, the feedback VLAN is considered The notification message timed out.
在本发明的一种实施例中,所述预设规则为在检测到所述VLAN通知报文超时时,在预设的时间段内按预设的频率向所述对端终端发送所述VLAN发现请求消息。In an embodiment of the present invention, the preset rule is that, when detecting that the VLAN notification packet times out, sending the VLAN to the opposite terminal according to a preset frequency within a preset time period. Discover the request message.
一种以太网初始化装置,包括请求接收模块和通知反馈模块:An Ethernet initialization device includes a request receiving module and a notification feedback module:
所述请求接收模块设置成:接收对方装置按预设规则发送的VLAN发现请求消息;The request receiving module is configured to: receive a VLAN discovery request message sent by the counterpart device according to a preset rule;
所述通知反馈模块设置成:向所述对方装置反馈VLAN通知消息,所述VLAN通知消息包括本端当前的VLAN列表。The notification feedback module is configured to: feed back a VLAN notification message to the counterpart device, where the VLAN notification message includes a current VLAN list of the local end.
一种以太网初始化系统,包括发送端和接收端:An Ethernet initialization system, including a sender and a receiver:
所述发送端设置成:检测到接收端反馈VLAN通知消息超时时,按预设规则向所述接收端发送VLAN发现请求消息;The sending end is configured to: when detecting that the receiving end feedback VLAN notification message times out, send a VLAN discovery request message to the receiving end according to a preset rule;
所述接收端设置成:接收所述VLAN发现请求消息,向所述发送端反馈VLAN通知消息,所述VLAN通知消息包括本端当前的VLAN列表;The receiving end is configured to: receive the VLAN discovery request message, and feed back a VLAN notification message to the sending end, where the VLAN notification message includes a current VLAN list of the local end;
所述发送端还设置成:接收所述VLAN通知消息后,根据所述VLAN通 知消息建立链路。The sending end is further configured to: after receiving the VLAN notification message, according to the VLAN pass Know the message to establish a link.
本发明技术方案的有益效果是:The beneficial effects of the technical solution of the present invention are:
本发明技术方案提供了一种以太网初始化方法、装置和系统,检测到对方装置反馈VLAN通知消息超时时,按预设规则向对方装置发送VLAN发现请求消息;接收到对方装置反馈的VLAN通知消息,根据VLAN通知消息建立链路,VLAN通知消息包括对方装置当前的VLAN列表。与相关技术相比,在没有收到VLAN通知消息时,即对方装置由于没有建立虚连接并且VLAN发生变化时,会向对方装置再次发送VLAN发现请求消息,让对方装置将当前VLAN信息反馈回来,利用当前VLAN信息进行建链,能够避免相关技术中VLAN信息不一致导致建链失败的问题。The technical solution of the present invention provides an Ethernet initialization method, device, and system. When detecting that the feedback message of the other device is timed out, the device sends a VLAN discovery request message to the other device according to a preset rule; and receives a VLAN notification message fed back by the other device. The link is established according to the VLAN notification message, and the VLAN notification message includes the current VLAN list of the counterpart device. Compared with the related art, when the VLAN notification message is not received, that is, when the remote device does not establish a virtual connection and the VLAN changes, the VLAN discovery request message is sent to the other device, so that the other device returns the current VLAN information. The current VLAN information can be used to establish a link, which can avoid the problem that the VLAN information in the related technology is inconsistent and the link fails.
附图概述BRIEF abstract
图1为本发明实施例一提供的以太网初始化方法流程示意图;1 is a schematic flowchart of an Ethernet initialization method according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的以太网初始化方法流程示意图;2 is a schematic flowchart of an Ethernet initialization method according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的以太网初始化装置结构示意图一;3 is a schematic structural diagram 1 of an Ethernet initialization apparatus according to Embodiment 3 of the present invention;
图4为本发明实施例三提供的以太网初始化装置结构示意图二;4 is a schematic structural diagram 2 of an Ethernet initialization apparatus according to Embodiment 3 of the present invention;
图5为本发明实施例六提供的以太网初始化系统结构示意图。FIG. 5 is a schematic structural diagram of an Ethernet initialization system according to Embodiment 6 of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一 Embodiment 1
本实施例的以太网初始化方法,如图1所示,包括以下步骤:The Ethernet initialization method of this embodiment, as shown in FIG. 1, includes the following steps:
步骤S101:检测到对方装置反馈VLAN通知消息超时时,按预设规则向对方装置发送VLAN发现请求消息;Step S101: When detecting that the feedback message of the partner device returns a timeout message, send a VLAN discovery request message to the remote device according to a preset rule.
在该步骤中,这里的对端装置是相对于本端装置来讲的,应该理解为本端装置为发送端装置,这里的发送端装置和对端装置都是通讯设备,应该理解为对端装置为接收端装置。具体的,发送端装置和对端装置可以为两个交换机,并且为两个交换机的VE_PORT端口。当然,应该理解为其他的建链端口也包含在内。具体的情况根据具体的双端信息交互而定。In this step, the opposite device here is relative to the local device, it should be understood that the local device is the transmitting device, where the transmitting device and the opposite device are communication devices, which should be understood as the opposite end. The device is a receiving device. Specifically, the sender device and the peer device may be two switches and are VE_PORT ports of the two switches. Of course, it should be understood that other link ports are also included. The specific situation depends on the specific double-ended information interaction.
步骤S102:接收到对方装置反馈的VLAN通知消息,根据VLAN通知消息建立链路,VLAN通知消息包括对方装置当前的VLAN列表。Step S102: Receive a VLAN notification message fed back by the counterpart device, establish a link according to the VLAN notification message, and the VLAN notification message includes a current VLAN list of the counterpart device.
在该步骤中,具体的建链过程包括向对方装置发送ELP请求;对方装置接受请求并回ELP ACC应答。建链后,本端装置和对端装置之间可以发送FC命令等进行信息交换。In this step, the specific chain-building process includes sending an ELP request to the counterpart device; the counterpart device accepts the request and returns an ELP ACC response. After the link is established, an FC command or the like can be sent between the local device and the peer device for information exchange.
值得注意是,本实施例FCoE使用光纤通道初始协议FIP进行初始化连接,FIP运行于在两端装置之间,具体的可以是虚拟以太网端口VF_Port和VN_Port之间或VE_Port之间等,具体情况根据具体应用环境而定。It should be noted that, in this embodiment, the FCoE uses the Fibre Channel initial protocol FIP for initial connection, and the FIP runs between the devices at both ends, specifically between the virtual Ethernet port VF_Port and the VN_Port or between the VE_Port, etc., depending on the specific situation. Depending on the application environment.
在上述步骤S101中,应该理解为,发送VLAN发现请求消息是指想让对端装置反馈当前的VLAN信息即VLAN列表的消息,优选的可以是VLAN发现请求报文,其他可以用来的让对方装置发送VLAN信息的请求消息都应包含在内;VLAN通知消息是指反馈VLAN信息即反馈VLAN列表的消息,优选的可以是VLAN通知报文,其他可以用来的反馈VLAN信息的反馈消息都应包含在内。In the above step S101, it should be understood that the sending VLAN discovery request message refers to a message that the peer device wants to feed back the current VLAN information, that is, the VLAN list. The preferred one may be a VLAN discovery request message, and the other may be used to let the other party The request message for sending the VLAN information of the device should be included. The VLAN notification message refers to the message that feedbacks the VLAN information, that is, the feedback VLAN list. The preferred one is the VLAN notification message. Other feedback messages that can be used to feed back the VLAN information should be Included.
具体的,在上述步骤S101中,检测到对方装置反馈VLAN通知消息超时包括:在发送VLAN发现请求消息给对方装置后,判断在预设时间内是否接收到对方装置反馈的VLAN通知消息,如果没有接收到,则认为反馈VLAN通知消息超时。具体的,预设规则为在检测到VLAN通知报文超时时,在预设的时间段内按预设的频率向对端终端发送VLAN发现请求消息。 Specifically, in the foregoing step S101, detecting that the peer device feedbacks the VLAN notification message timeout includes: after transmitting the VLAN discovery request message to the other device, determining whether the VLAN notification message fed back by the counterpart device is received within the preset time, if not Upon receiving, it is considered that the feedback VLAN notification message times out. Specifically, the preset rule is to send a VLAN discovery request message to the opposite terminal according to a preset frequency within a preset time period when detecting that the VLAN notification message times out.
实施例二Embodiment 2
本实施例的以太网初始化方法,如图2所示,本实施例中以两个交换机的VE_PORT端口为例进行说明,包括以下步骤:The Ethernet initialization method of this embodiment is as shown in FIG. 2. In this embodiment, the VE_PORT port of two switches is taken as an example, and the following steps are included:
步骤S201:VE_PORT端口UP后,发起VLAN发现请求报文,同时设置VLAN保活定时器,时间为N秒;等待接收VLAN应答;Step S201: After the VE_PORT port is UP, a VLAN discovery request message is initiated, and a VLAN keep-alive timer is set, and the time is N seconds; waiting for receiving a VLAN response;
步骤S202:对端收到VLAN发现请求之后,进行回应,发送单播VLAN通知报文;Step S202: After receiving the VLAN discovery request, the peer end responds and sends a unicast VLAN notification message.
步骤S203:本端收到对端VLAN发现通知报文之后,解析描述符,获取VLAN列表,设置列表中VLAN ID对应VLAN状态为活跃状态ACTIVE,进入步骤S204;如果N秒后仍未收到对端的VLAN应答,转步骤S205;Step S203: After receiving the peer VLAN discovery notification message, the local end parses the descriptor, obtains a VLAN list, sets the VLAN ID of the VLAN ID in the list to be active, and proceeds to step S204; if the N seconds have not received the pair End VLAN reply, go to step S205;
步骤S204:从列表中选择一个状态为ACTIVE的VLAN,发送DS报文,进入步骤S208;Step S204: Select a VLAN with the status of ACTIVE from the list, send a DS message, and proceed to step S208;
步骤S205:定时器达到N秒后,调用VLAN发现请求接口,继续发送VLAN发现报文;Step S205: After the timer reaches N seconds, the VLAN discovery request interface is invoked, and the VLAN discovery packet is continuously sent.
步骤S206:本端收到对端VLAN发现通知报文之后,解析描述符,获取VLAN列表,新增的VLAN状态设置为ACTIVE,删除的VLAN状态设置为失活状态DISABLE;Step S206: After receiving the peer VLAN discovery notification message, the local end parses the descriptor and obtains the VLAN list. The newly added VLAN state is set to ACTIVE, and the deleted VLAN state is set to the inactive state DISABLE.
步骤S207:本端查看VLAN列表,如果刚才建链失败的VLAN还是ACTIVE,继续使用该VLAN建链,即优先选择状态为ACTIVE并且上次发起连接的VLAN,否则重新选择新的VLAN发送DS请求;Step S207: The local end checks the VLAN list. If the VLAN that has failed to establish the link is still ACTIVE, continue to use the VLAN to establish a link, that is, preferentially select the VLAN whose status is ACTIVE and the connection is initiated last time, otherwise reselect the new VLAN to send the DS request;
步骤S208:接收DA单播应答,发送ELP完成建链。Step S208: Receive a DA unicast response, and send the ELP to complete the link establishment.
值得注意的是,本实例中的本端即为发送端装置;对端即为接收端装置。并且,发送端装置和接收端装置都为以太网初始化装置。It should be noted that the local end in this example is the transmitting end device; the opposite end is the receiving end device. Moreover, both the transmitting device and the receiving device are Ethernet initialization devices.
实施例三Embodiment 3
本实施例提供一种以太网初始化装置300,如图3所示,包括检测发送模块301和接收建链模块302,其中 The embodiment provides an Ethernet initialization device 300, as shown in FIG. 3, including a detection sending module 301 and a receiving chain building module 302, wherein
所述检测发送模块301设置成:检测到对方装置反馈VLAN通知消息超时时,按预设规则向所述对方装置发送VLAN发现请求消息;The detecting and sending module 301 is configured to: when detecting that the feedback signal of the partner device returns a timeout message, send a VLAN discovery request message to the counterpart device according to a preset rule;
所述接收建链模块302设置成:接收到所述对方装置反馈的所述VLAN通知消息,根据所述VLAN通知消息建立链路,所述VLAN通知消息包括所述对方装置当前的VLAN列表。The receiving and constructing module 302 is configured to: receive the VLAN notification message fed back by the counterpart device, and establish a link according to the VLAN notification message, where the VLAN notification message includes a current VLAN list of the counterpart device.
可选地,所述检测发送模块301还设置成:在发送VLAN发现请求消息给所述对方装置后,判断在预设时间内是否接收到所述对方装置反馈的VLAN通知消息,如果没有接收到,则认为反馈VLAN通知消息超时。具体的,所述预设规则为在检测到所述VLAN通知报文超时时,在预设的时间段内按预设的频率向所述对端终端发送所述VLAN发现请求消息。Optionally, the detecting and sending module 301 is further configured to: after transmitting the VLAN discovery request message to the other device, determine whether the VLAN notification message fed back by the counterpart device is received within a preset time, if not received , it is considered that the feedback VLAN notification message times out. Specifically, the preset rule is that, when detecting that the VLAN notification packet times out, the VLAN discovery request message is sent to the opposite terminal according to a preset frequency within a preset time period.
本实施例还提供一种以太网初始化装置400,如图4所示,包括请求接收模块401和通知反馈模块402:所述请求接收模块401设置成:接收对方装置按预设规则发送的VLAN发现请求消息;所述通知反馈模块402设置成:向所述对方装置反馈VLAN通知消息,所述VLAN通知消息包括本端当前的VLAN列表。The embodiment further provides an Ethernet initialization apparatus 400. As shown in FIG. 4, the method includes a request receiving module 401 and a notification feedback module 402. The request receiving module 401 is configured to: receive a VLAN discovery sent by a counterpart device according to a preset rule. The notification message module 402 is configured to: feed back a VLAN notification message to the counterpart device, where the VLAN notification message includes a current VLAN list of the local end.
本实施例还提供一种以太网初始化系统,如图5所示,包括发送端501和接收端502:所述发送端501设置成:检测到接收端502反馈VLAN通知消息超时时,按预设规则向所述接收端502发送VLAN发现请求消息;所述接收端502设置成:接收所述VLAN发现请求消息,向所述发送端501反馈VLAN通知消息,所述VLAN通知消息包括本端当前的VLAN列表;所述发送端501还设置成:接收所述VLAN通知消息后,根据所述VLAN通知消息建立链路。The embodiment also provides an Ethernet initialization system, as shown in FIG. 5, including a sending end 501 and a receiving end 502. The sending end 501 is configured to: when the receiving end 502 detects that the VLAN notification message times out, press the preset. The rule sends a VLAN discovery request message to the receiving end 502. The receiving end 502 is configured to: receive the VLAN discovery request message, and feed back a VLAN notification message to the sending end 501, where the VLAN notification message includes the current local end The sender 501 is further configured to: after receiving the VLAN notification message, establish a link according to the VLAN notification message.
本实例中的接收端和发送端都为上述的以太网初始化装置,具体的根据具体情况而定,例如发送端501为以太网初始化装置300,接收端为以太网初始化装置400。The receiving end and the transmitting end in this example are all the above-mentioned Ethernet initializing devices, and are specifically determined according to specific conditions. For example, the transmitting end 501 is the Ethernet initializing device 300, and the receiving end is the Ethernet initializing device 400.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被发送端交换机执行时,使得该交换机可执行上述任意的以太网初始化方法。 The embodiment of the invention also discloses a computer program, comprising program instructions, when the program instruction is executed by the sending end switch, so that the switch can perform any of the above Ethernet initialization methods.
本发明实施例还公开了一种载有所述的计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
本发明实施例还公开了一种计算机程序,包括程序指令,当该程序指令被接收端交换机执行时,使得该交换机可执行上述任意的以太网初始化方法。The embodiment of the invention also discloses a computer program, comprising program instructions, when the program instruction is executed by the receiving end switch, so that the switch can perform any of the above Ethernet initialization methods.
本发明实施例还公开了一种载有所述的计算机程序的载体。The embodiment of the invention also discloses a carrier carrying the computer program.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。Variations or substitutions are readily conceivable within the scope of the present invention by those skilled in the art and are within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.
工业实用性Industrial applicability
本发明技术方案提供了一种以太网初始化方法、装置和系统,检测到对方装置反馈VLAN通知消息超时时,按预设规则向对方装置发送VLAN发现请求消息;接收到对方装置反馈的VLAN通知消息,根据VLAN通知消息建 立链路,VLAN通知消息包括对方装置当前的VLAN列表。与相关技术相比,在没有收到VLAN通知消息时,即对方装置由于没有建立虚连接并且VLAN发生变化时,会向对方装置再次发送VLAN发现请求消息,让对方装置将当前VLAN信息反馈回来,利用当前VLAN信息进行建链,能够避免相关技术中VLAN信息不一致导致建链失败的问题。因此本发明具有很强的工业实用性。 The technical solution of the present invention provides an Ethernet initialization method, device, and system. When detecting that the feedback message of the other device is timed out, the device sends a VLAN discovery request message to the other device according to a preset rule; and receives a VLAN notification message fed back by the other device. , according to the VLAN notification message The link, the VLAN notification message includes the current VLAN list of the other device. Compared with the related art, when the VLAN notification message is not received, that is, when the remote device does not establish a virtual connection and the VLAN changes, the VLAN discovery request message is sent to the other device, so that the other device returns the current VLAN information. The current VLAN information can be used to establish a link, which can avoid the problem that the VLAN information in the related technology is inconsistent and the link fails. Therefore, the present invention has strong industrial applicability.

Claims (10)

  1. 一种以太网初始化方法,包括:An Ethernet initialization method, including:
    检测到对方装置反馈VLAN通知消息超时时,按预设规则向所述对方装置发送VLAN发现请求消息;When detecting that the feedback signal notification message of the opposite device is timed out, sending a VLAN discovery request message to the counterpart device according to a preset rule;
    接收到所述对方装置反馈的所述VLAN通知消息,根据所述VLAN通知消息建立链路,其中,所述VLAN通知消息包括所述对方装置当前的VLAN列表。Receiving the VLAN notification message fed back by the counterpart device, establishing a link according to the VLAN notification message, where the VLAN notification message includes a current VLAN list of the counterpart device.
  2. 如权利要求1所述的以太网初始化方法,其中,所述检测到对方装置反馈VLAN通知消息超时的步骤包括:在发送VLAN发现请求消息给所述对方装置后,判断在预设时间内是否接收到所述对方装置反馈的VLAN通知消息,如果没有接收到,则认为对方装置反馈VLAN通知消息超时。The Ethernet initialization method according to claim 1, wherein the step of detecting that the counterpart device feeds back the VLAN notification message timeout comprises: determining whether to receive the preset time within the sending of the VLAN discovery request message to the counterpart device The VLAN notification message fed back to the counterpart device, if not received, is considered to be timeout by the counterpart device feeding back the VLAN notification message.
  3. 如权利要求1或2所述的以太网初始化方法,其中,所述预设规则为在检测到所述VLAN通知报文超时时,在预设的时间段内按预设的频率向所述对端终端发送所述VLAN发现请求消息。The Ethernet initialization method according to claim 1 or 2, wherein the preset rule is that, when detecting that the VLAN notification message times out, the preset frequency is used to the pair within a preset time period. The terminal terminal sends the VLAN discovery request message.
  4. 一种以太网初始化方法,包括:An Ethernet initialization method, including:
    接收对方装置按预设规则发送的VLAN发现请求消息;Receiving a VLAN discovery request message sent by the other device according to a preset rule;
    向所述对方装置反馈VLAN通知消息,其中,所述VLAN通知消息包括本端当前的VLAN列表。The VLAN notification message is fed back to the remote device, where the VLAN notification message includes a current VLAN list of the local end.
  5. 一种以太网初始化方法,包括:An Ethernet initialization method, including:
    发送端检测到接收端反馈VLAN通知消息超时时,按预设规则向所述接收端发送VLAN发现请求消息;When the sending end detects that the receiving end feedback VLAN notification message times out, the sending end sends a VLAN discovery request message to the receiving end according to a preset rule;
    所述接收端接收所述VLAN发现请求消息,向所述发送端反馈VLAN通知消息,其中,所述VLAN通知消息包括本端当前的VLAN列表;Receiving, by the receiving end, the VLAN discovery request message, and feeding back a VLAN notification message to the sending end, where the VLAN notification message includes a current VLAN list of the local end;
    所述发送端接收所述VLAN通知消息后,根据所述VLAN通知消息建立链路。After receiving the VLAN notification message, the sending end establishes a link according to the VLAN notification message.
  6. 一种以太网初始化装置,包括检测发送模块和接收建链模块,其中An Ethernet initialization device includes a detection transmitting module and a receiving chain building module, wherein
    所述检测发送模块设置成:检测到对方装置反馈VLAN通知消息超时时, 按预设规则向所述对方装置发送VLAN发现请求消息;The detecting and sending module is configured to: when detecting that the other device sends a feedback VLAN notification message timeout, Sending a VLAN discovery request message to the counterpart device according to a preset rule;
    所述接收建链模块设置成:接收到所述对方装置反馈的所述VLAN通知消息,根据所述VLAN通知消息建立链路,所述VLAN通知消息包括所述对方装置当前的VLAN列表。The receiving chain building module is configured to: receive the VLAN notification message fed back by the counterpart device, establish a link according to the VLAN notification message, and the VLAN notification message includes a current VLAN list of the counterpart device.
  7. 如权利要求6所述的以太网初始化装置,其中,所述检测发送模块设置成按照如下方式检测到对方装置反馈VLAN通知消息超时:在发送VLAN发现请求消息给所述对方装置后,判断在预设时间内是否接收到所述对方装置反馈的VLAN通知消息,如果没有接收到,则认为对方装置反馈VLAN通知消息超时。The Ethernet initialization device according to claim 6, wherein the detection transmitting module is configured to detect that the counterpart device feeds back the VLAN notification message timeout according to the following manner: after transmitting the VLAN discovery request message to the counterpart device, determining that the Whether the VLAN notification message fed back by the counterpart device is received within the set time, if not received, the other device is considered to return a VLAN notification message timeout.
  8. 如权利要求6或7所述的以太网初始化装置,其中,所述预设规则为在检测到所述VLAN通知报文超时时,在预设的时间段内按预设的频率向所述对端终端发送所述VLAN发现请求消息。The Ethernet initialization device according to claim 6 or 7, wherein the preset rule is that, when detecting that the VLAN notification message times out, the pair is preset to a frequency within a preset time period. The terminal terminal sends the VLAN discovery request message.
  9. 一种以太网初始化装置,包括请求接收模块和通知反馈模块,其中An Ethernet initialization device includes a request receiving module and a notification feedback module, wherein
    所述请求接收模块设置成:接收对方装置按预设规则发送的VLAN发现请求消息;The request receiving module is configured to: receive a VLAN discovery request message sent by the counterpart device according to a preset rule;
    所述通知反馈模块设置成:向所述对方装置反馈VLAN通知消息,所述VLAN通知消息包括本端当前的VLAN列表。The notification feedback module is configured to: feed back a VLAN notification message to the counterpart device, where the VLAN notification message includes a current VLAN list of the local end.
  10. 一种以太网初始化系统,包括发送端和接收端:An Ethernet initialization system, including a sender and a receiver:
    所述发送端包括如权利要求6-8中任一项所述的以太网初始化装置;The transmitting end includes the Ethernet initialization device according to any one of claims 6-8;
    所述接收端包括如权利要求9所述的以太网初始化装置。 The receiving end includes the Ethernet initialization device of claim 9.
PCT/CN2016/078368 2015-06-29 2016-04-01 Ethernet initialization method, device and system WO2017000614A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510369753.4 2015-06-29
CN201510369753.4A CN106301879A (en) 2015-06-29 2015-06-29 A kind of Ethernet initial method, device and system

Publications (1)

Publication Number Publication Date
WO2017000614A1 true WO2017000614A1 (en) 2017-01-05

Family

ID=57607735

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/078368 WO2017000614A1 (en) 2015-06-29 2016-04-01 Ethernet initialization method, device and system

Country Status (2)

Country Link
CN (1) CN106301879A (en)
WO (1) WO2017000614A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006029941A1 (en) * 2004-09-17 2006-03-23 Hewlett-Packard Development Company, L.P. Virtual network interface
US7385973B1 (en) * 2003-02-21 2008-06-10 Nortel Networks Limited Method and apparatus for VLAN ID discovery
CN102790792A (en) * 2011-05-19 2012-11-21 株式会社日立制作所 Method and apparatus of connectivity discovery between network switch and server based on vlan identifiers
CN104301231A (en) * 2014-10-15 2015-01-21 武汉烽火网络有限责任公司 Management method for virtual links in FCoE network and FIP switch
US20150095467A1 (en) * 2013-09-30 2015-04-02 Avaya Inc. Enabling configuration in networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7385973B1 (en) * 2003-02-21 2008-06-10 Nortel Networks Limited Method and apparatus for VLAN ID discovery
WO2006029941A1 (en) * 2004-09-17 2006-03-23 Hewlett-Packard Development Company, L.P. Virtual network interface
CN102790792A (en) * 2011-05-19 2012-11-21 株式会社日立制作所 Method and apparatus of connectivity discovery between network switch and server based on vlan identifiers
US20150095467A1 (en) * 2013-09-30 2015-04-02 Avaya Inc. Enabling configuration in networks
CN104301231A (en) * 2014-10-15 2015-01-21 武汉烽火网络有限责任公司 Management method for virtual links in FCoE network and FIP switch

Also Published As

Publication number Publication date
CN106301879A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US11374857B2 (en) Network device management method and apparatus, and system for indicating a network device to perform management operation
WO2017054547A1 (en) Bidirectional forwarding detection method and apparatus
WO2016165463A1 (en) Software defined network-based link failure reporting method and forwarding device
US10666769B2 (en) Network system and method for establishing data link by using relay node
US20150358272A1 (en) Method and apparatus for message transmission
WO2016086890A1 (en) Method and device for detecting connectivity
WO2018010616A1 (en) Link layer based network management
US8462952B2 (en) Synchronizing management signaling in a network
WO2018024200A1 (en) Virtual desktop multicast control method, terminal, proxy terminal, and cloud desktop server
US9509777B2 (en) Connection method and management server
US20160099862A1 (en) Redundant network formation
US11012377B2 (en) Efficient network link status handling
WO2013159492A1 (en) Method and system for reporting and downloading information
US11223965B2 (en) Method and apparatus for controlling network sensors
US9036465B2 (en) Hierarchical network with active redundant links
WO2014187241A1 (en) Method and wireless device for controlling disconnection of a wireless device in a wi-fi direct group of a wireless network
WO2017000614A1 (en) Ethernet initialization method, device and system
WO2019196853A1 (en) Tcp acceleration method and apparatus
WO2023284231A1 (en) Message processing method and message processing system
CN107454178B (en) Data transmission method and device
WO2011057544A1 (en) Method and system for implementing operation administration and maintenance (oam) from point to multi-points based on 802.3ah protocol
US20150229513A1 (en) Systems and methods for efficient remote security panel configuration and management
WO2016095750A1 (en) Communication method and device in virtual switching cluster
WO2015100978A1 (en) Method and system for automatic discovery of controller in software defined network and controller
CN105634786B (en) link keep-alive method and device

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

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

Country of ref document: EP

Kind code of ref document: A1