CN104734877A - Method, device and system for obtaining configuration server information - Google Patents

Method, device and system for obtaining configuration server information Download PDF

Info

Publication number
CN104734877A
CN104734877A CN 201310724751 CN201310724751A CN104734877A CN 104734877 A CN104734877 A CN 104734877A CN 201310724751 CN201310724751 CN 201310724751 CN 201310724751 A CN201310724751 A CN 201310724751A CN 104734877 A CN104734877 A CN 104734877A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
configuration
information
server
obtaining
method
Prior art date
Application number
CN 201310724751
Other languages
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

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/08Configuration management of network or network elements

Abstract

The embodiment of the invention provides a method, device and system for obtaining configuration server information, and relates to the field of communication. An OF interchanger can automatically obtain the configuration information of an OF configuration server. The method for obtaining the configuration server information comprises the steps that inquiry information sent by the OF configuration server is received and comprises parameters used for identifying the OF configuration server; a configuration management port of the OF interchanger is arranged according to the inquiry information; the configuration information of the OF configuration server is obtained through the configuration management port, and connection with the OF configuration server is established. The method, device and system for obtaining the configuration server information are used for obtaining information.

Description

一种获取配置服务器信息的方法、装置及系统 A method for obtaining information about the configuration server method, apparatus and system for

技术领域 FIELD

[0001] 本发明涉及通信领域,尤其涉及一种获取配置服务器信息的方法、装置及系统。 [0001] The present invention relates to the field of communications, particularly to a method of acquiring configuration information of the server, device and system.

背景技术 Background technique

[0002] OF(OpenFlow,开放流)网络是基于开放流(OpenFlow)协议对数据进行控制与转发的一种网络,包括0F交换机(Switch)、0F配置服务器和0F控制器(Controller)。 [0002] OF (OpenFlow, open flow) control of data network is a network with one of forwarded based on open flow (the OpenFlow) protocol, comprising 0F switch (Switch), 0F 0F configuration server and a controller (Controller). 0F 交换机接收到数据包后,首先根据该OF交换机存储的流表查找转发规则,若没有查找到转发规则,则将该数据包转发给0F控制器,0F控制器对0F网络进行集中控制,由0F控制器生成新的流表,该流表中携带有新的转发规则,0F控制器将新的流表下发给该0F交换机, 以便该0F交换机更新本地存储的流表。 0F after the switch receives a packet, the first lookup table according to the flow switch OF store forwarding rules, the forwarding rules if not found, the packet is forwarded to the controller 0F, 0F 0F network controller centralized control by 0F controller generates new flow table, the flow table carrying the new forwarding rule, 0F 0F issued to the switch controller in the new flow table, so that the switch updates the flow table 0F locally stored. 但是,0F交换机与0F控制器建立连接前,0F交换机需要先获取0F配置服务器的配置信息来与0F配置服务器建立连接,并进一步使用0F配置和管理协议从0F配置服务器获取与0F控制器之间建立连接所需的参数,从而与0F控制器来建立连接。 However, 0F 0F switch and controller before establishing a connection, you need to switch 0F 0F obtain configuration information to configure the server to establish a connection with the server configuration 0F, 0F and further use to configure and manage server configuration protocol to obtain from 0F 0F between controllers parameters necessary to establish a connection to the controller to establish a connection with 0F.

[0003] 现有技术中,0F交换机必须预先设置0F配置服务器的配置信息,从而根据配置信息与0F配置服务器建立连接,若0F交换机没有预先设置0F配置服务器的配置信息,则0F 交换机与OF配置服务器无法建立连接,而当OF交换机的数量较多时,手工设置OF配置服务器的配置信息的工作量很大,而且不够灵活。 [0003] In the prior art, the switch must be set 0F 0F configuration server configuration information, thereby establishing a connection according to the configuration information of the configuration server 0F, if the switch is not set in advance 0F 0F configuration server configuration information, the configuration OF 0F switch and the server was unable to establish a connection, but when a large number oF switches, a large amount of manual configuration settings oF server configuration information, and not flexible enough.

发明内容 SUMMARY

[0004] 本发明的实施例提供一种获取配置服务器信息的方法、装置及系统,能够使0F交换机自动获取0F配置服务器的配置信息。 [0004] Embodiments of the present invention provides a method for obtaining a server apparatus, and system configuration information enables the switch to automatically obtain configuration information 0F 0F configuration server.

[0005] 为达到上述目的,本发明的实施例采用如下技术方案: [0005] To achieve the above object, embodiments of the present invention adopts the following technical solutions:

[0006] 第一方面,提供一种获取配置服务器信息的方法,用于开放流0F交换机,包括: [0006] In a first aspect, there is provided a method for obtaining information about the configuration server for streaming 0F open switch, comprising:

[0007] 接收0F配置服务器发送的查询消息,所述查询消息包含用于标识所述0F配置服务器的参数; [0007] 0F configuration server receiving the query message, the query message contains parameters identifying the 0F configuration server;

[0008] 根据所述查询消息设置所述0F交换机的配置管理端口; [0008] The settings of the configuration management port 0F switch according to the query message;

[0009] 通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0009] The port configuration information through the configuration server 0F configuration management, establish a connection with the configuration server 0F.

[0010] 结合第一方面,在第一种可实现方式中, [0010] In a first aspect in combination, may be implemented in a first embodiment,

[0011] 所述接收of配置服务器发送的查询消息,具体为: [0011] reception of the query message sent by the configuration server, specifically:

[0012] 从所述0F交换机的第一端口接收所述0F配置服务器发送的所述查询消息;则 [0012] received from the first port of the switch 0F 0F said query message sent by the configuration server; the

[0013] 所述根据所述查询消息设置所述0F交换机的配置管理端口,具体为: [0013] The configuration according to the query message is provided to the management port Switch 0F, specifically:

[0014] 根据所述查询消息设置所述第一端口为所述0F交换机的配置管理端口。 [0014] Configuration Manager message port is disposed the first port of the switch according to the query 0F.

[0015] 结合第一种可实现方式,在第二种可实现方式中, [0015] may be implemented in conjunction with the first embodiment, may be implemented in a second embodiment,

[0016] 所述根据所述查询消息设置所述第一端口为所述0F交换机的配置管理端口包括: Configuration Management Port [0016] The message is provided according to the query that the first port of the switch comprises 0F:

[0017] 查询所述OF交换机是否存在已配置的配置管理端口; [0017] The query whether there is a configuration switch OF management port configured;

[0018] 若所述0F交换机存在已配置的配置管理端口,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级; [0018] When the present 0F switch configuration management port configured to compare the priority of the priority configuration management port configured of a first port;

[0019] 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述0F交换机的配置管理端口。 [0019] When the priority is lower than the priority of the first port of the configuration management port configured, the first port as a management port configuration of the switch 0F.

[0020] 结合第二种可实现方式,在第三种可实现方式中, [0020] may be implemented in conjunction with a second embodiment, the third embodiment can be achieved,

[0021] 所述查询消息中包括:所述0F配置服务器的优先级,则 [0021] The query message comprises: configuration 0F priority of the server,

[0022] 在所述比较所述已配置的配置管理端口的优先级与所述第一端口的优先级之前, 所述方法还包括: [0022] Before comparing the priority with the configuration of the management port of the priority of the first port is configured, the method further comprising:

[0023] 在所述查询消息中获取所述0F配置服务器的优先级作为所述第一端口的优先级。 [0023] obtaining the configuration server 0F priority as the priority of the first port in the query message.

[0024] 结合第一方面、第一至第三种可实现方式,在第四种可实现方式中,所述查询消息包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,则 [0024] with the first aspect, the first to third embodiment may be implemented, in a fourth embodiment can be achieved, the query message comprising: a hop limit value, the limit value for indicating jump of the query message the number of forwarded,

[0025] 在所述根据所述查询消息设置所述0F交换机的配置管理端口之前,所述方法还包括: By [0025] the configuration is provided in the message management port 0F switch according to the query, said method further comprising:

[0026] 确定所述查询消息中的跳限制值是否等于零; [0026] determining the query hop limit value in the message is equal to zero;

[0027] 若所述查询消息中的跳限制值等于零,丢弃所述查询消息; [0027] If the query hop limit value is equal to zero in the message, the query message is discarded;

[0028] 若所述查询消息中的跳限制值不等于零,更新所述查询消息中的跳限制值为当前跳限制值-1。 [0028] If the query hop limit value is not equal to zero in the message, update the query hop limit value message in the current hop limit value -1.

[0029] 结合第一方面、第一至四种可实现方式,在第五种可实现方式中,所述通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接,包括: [0029] with the first aspect, the first embodiment may be implemented to four kinds, may be implemented in a fifth embodiment, the configuration by the configuration information to the management port 0F configuration server, the configuration server 0F establish connections, including:

[0030] 生成应答消息,所述应答消息包括所述0F交换机的身份标识; [0030] generates a response message, said response message comprising the identity of said switch 0F;

[0031] 通过所述配置管理端口,向所述0F配置服务器发送所述应答消息,以便于所述0F 配置服务器根据所述应答消息生成通告消息,所述通告消息包括所述OF配置服务器的配置信息; [0031] transmitted through the configuration management port to the configuration server the response message 0F, so as to generate said advertisement 0F configuration server a response message according to the message, the advertisement message comprises a configuration server configuring the OF information;

[0032] 通过所述配置管理端口接收所述0F配置服务器发送的所述通告消息; [0032] The port receiving the announce message sent by the configuration server 0F the configuration management;

[0033] 根据所述通告消息中的所述0F配置服务器的配置信息与所述0F配置服务器建立连接。 [0033] The configuration information to establish a connection to the advertisement message to the configuration server 0F 0F with the configuration server.

[0034] 第二方面,提供一种提供配置服务器信息的方法,用于0F配置服务器,包括: [0034] a second aspect, there is provided a method of providing configuration information server for 0F configuration server, comprising:

[0035] 生成查询消息,所述查询消息包含用于标识所述0F配置服务器的参数; [0035] The generated query message, the query message contains parameters identifying the 0F configuration server;

[0036] 向0F交换机发送所述查询消息,以便于所述0F交换机根据所述查询消息设置所述0F交换机的配置管理端口并通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0036] 0F switch to send the query message, so as to set the configuration management port 0F switch according to the query message to the management port 0F switch and configure the configuration information through the configuration server 0F, and 0F the configuration server to establish a connection.

[0037] 结合第二方面,在第一种可实现方式中, [0037] The second aspect in combination, may be implemented in a first embodiment,

[0038] 所述查询消息中包括:所述0F配置服务器的优先级,所述0F配置服务器的优先级用于若所述0F交换机存在已配置的配置管理端口,且所述已配置的配置管理端口的优先级小于所述0F配置服务器的优先级时,将所述接收所述查询消息的端口作为所述0F交换机的配置管理端口,并将所述配置管理端口的优先级设置为所述0F配置服务器的优先级。 [0038] The query message comprises: priority of the configuration server 0F, 0F priority of the configuration server if the presence of a configuration manager configured port 0F switch, and the configuration manager configured when the priority is lower than the priority 0F configuration server port, the port receiving the query message as the configuration of the management port 0F switch, the configuration and management port to said priority 0F configure the server priority.

[0039] 结合第二方面或第一种可实现方式,在第二种可实现方式中,所述查询消息中包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,以便所述OF交换机在所述跳限制值等于零时,丢弃所述查询消息,在所述跳限制值不等于零时,更新所述跳限制值为当前跳限制值-1。 [0039] combination with the second aspect or the first mode may be implemented, can be achieved in a second embodiment, the query message comprising: a hop limit value, the hop limit value for indicating the number of forwarding the query message , so that the switch OF when the hop limit value is equal to zero, discarding the query message, when the hop limit value is not equal to zero, updating the hop limit value for the current hop limit value -1.

[0040] 结合第二方面、第一至第二种可实现方式,在第三种可实现方式中,在所述向0F 交换机发送所述查询消息之后,所述方法还包括: [0040] conjunction with the second aspect, the first to the second embodiment may be implemented, can be achieved in a third embodiment, after the sending the query message to 0F switch, said method further comprising:

[0041] 接收所述0F交换机通过所述配置管理端口发送的应答消息,所述应答消息包括所述0F交换机的身份标识; [0041] By receiving the response message 0F switch port to send the configuration management, the reply message comprises the identity of the exchange identifier 0F;

[0042] 根据所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息; [0042] generated the notification message according to the response message, the advertisement message includes the configuration information 0F configuration server;

[0043] 向所述0F交换机发送所述通告消息,以便于所述0F交换机根据所述通告消息中的所述0F配置服务器的配置信息与所述0F配置服务器建立连接。 [0043] sending the announce message to the 0F switch for establishing a connection according to the advertisement message configuration information in the configuration server with the 0F 0F 0F switch to the configuration server.

[0044] 第三方面,提供一种开放流0F交换机,包括: [0044] a third aspect, there is provided a flow 0F open switch, comprising:

[0045] 第一接收单元,用于接收0F配置服务器发送的查询消息,所述查询消息包含用于标识所述0F配置服务器的参数; [0045] The first receiving unit, configured to receive a query message sent 0F of configuration server, the query message contains parameters identifying the 0F configuration server;

[0046] 设置单元,用于根据所述查询消息设置所述0F交换机的配置管理端口; [0046] setting means for setting the message 0F port switch configuration management according to the query;

[0047] 第一获取单元,用于通过所述配置管理端口获取所述0F配置服务器的配置信息, 与所述0F配置服务器建立连接。 [0047] a first obtaining unit configured to obtain configuration information of the management port 0F configuration server through the configuration, establish a connection with the configuration server 0F.

[0048] 结合第三方面,在第一种可实现方式中, [0048] reference to the third aspect, it may be implemented in a first embodiment,

[0049] 所述第一接收单元具体用于: [0049] The first receiving unit is configured to:

[0050] 从所述0F交换机的第一端口接收所述0F配置服务器发送的所述查询消息;则 [0050] received from the first port of the switch 0F 0F said query message sent by the configuration server; the

[0051] 所述设置单元具体用于: [0051] The setting unit is configured to:

[0052] 根据所述查询消息设置所述第一端口为所述0F交换机的配置管理端口。 [0052] Configuration Manager message port is provided to the first port of the switch according to the query 0F.

[0053] 结合第一种可实现方式,在第二种可实现方式中, [0053] may be implemented in conjunction with the first embodiment, may be implemented in a second embodiment,

[0054] 所述设置单元具体用于: [0054] The setting unit is configured to:

[0055] 查询所述0F交换机是否存在已配置的配置管理端口; [0055] The query whether there is a configuration management 0F switch port (s);

[0056] 若所述0F交换机存在已配置的配置管理端口,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级; [0056] When the present 0F switch configuration management port configured to compare the priority of the priority configuration management port configured of a first port;

[0057] 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述0F交换机的配置管理端口。 [0057] When the priority is lower than the priority of the first port of the configuration management port configured, the first port as a management port configuration of the switch 0F.

[0058] 结合第二种可实现方式,在第三种可实现方式中, [0058] may be implemented in conjunction with a second embodiment, the third embodiment can be achieved,

[0059] 所述查询消息中包括:所述0F配置服务器的优先级,则 [0059] The query message comprises: configuration 0F priority of the server,

[0060] 所述0F交换机还包括: [0060] The 0F switch further comprises:

[0061] 第二获取单元,用于在所述查询消息中获取所述0F配置服务器的优先级作为所述第一端口的优先级。 [0061] The second obtaining unit, configured to obtain the configuration server 0F priority as the priority of the first port in the query message.

[0062] 结合第三方面、第一至第三种可实现方式,在第四种可实现方式中,所述查询消息包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,则 [0062] reference to the third aspect, the first to third embodiment may be implemented, in a fourth embodiment can be achieved, the query message comprising: a hop limit value, the limit value for indicating jump of the query message the number of forwarded,

[0063] 所述0F交换机还包括: [0063] The 0F switch further comprises:

[0064] 确定单元,用于确定所述查询消息中的跳限制值是否等于零; [0064] The determination unit, for determining the query hop limit value in the message is equal to zero;

[0065] 丢弃单元,用于若所述查询消息中的跳限制值等于零,丢弃所述查询消息; [0065] discarding unit configured to, if the message is a query hop limit value is equal to zero, discarding the query message;

[0066] 更新单元,用于若所述查询消息中的跳限制值不等于零,更新所述查询消息中的跳限制值为当前跳限制值-1。 [0066] updating unit configured to, if the query hop limit value does not equal zero message, updating the query hop limit value message in the current hop limit value -1.

[0067] 结合第三方面、第一至第四种可实现方式,在第五种可实现方式中,所述0F交换机还包括: [0067] reference to the third aspect, the first to fourth embodiment may be implemented, may be implemented in a fifth embodiment, the switch further comprising 0F:

[0068] 生成单元,用于生成应答消息,所述应答消息包括所述0F交换机的身份标识; [0068] generating unit for generating a response message, said response message comprises identity of the exchange identifier 0F;

[0069] 发送单元,用于通过所述配置管理端口,向所述0F配置服务器发送所述应答消息,以便于所述0F配置服务器根据所述应答消息生成通告消息,所述通告消息包括所述0F 配置服务器的配置信息; [0069] transmitting unit, through the configuration management port for transmitting the response message to the configuration server 0F, 0F to the configuration server to generate a response message according to the advertisement message, the advertisement message comprises 0F configuration information for the server;

[0070] 第二接收单元,用于通过所述配置管理端口接收所述0F配置服务器发送的所述通告消息; [0070] The second receiving unit for managing the configuration of the port receiving the configuration server 0F advertisement message sent by;

[0071] 建立单元,用于根据所述通告消息中的所述0F配置服务器的配置信息与所述0F 配置服务器建立连接。 [0071] establishing unit for establishing a connection according to the advertisement message configuration information in the configuration server 0F 0F with the configuration server.

[0072] 第四方面,提供一种0F配置服务器,包括: [0072] a fourth aspect, there is provided a 0F configuration server, comprising:

[0073] 第一生成单元,用于生成查询消息,所述查询消息包含用于标识所述0F配置服务器的参数; [0073] a first generation unit for generating a query message, the query message contains parameters identifying the 0F configuration server;

[0074] 第一发送单元,用于向0F交换机发送所述查询消息,以便于所述0F交换机根据所述查询消息设置所述0F交换机的配置管理端口并通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0074] a first transmitting unit for transmitting the query message to the switch 0F, in order to set the configuration management port 0F switch according to the query message to the switch 0F by acquiring the configuration management port 0F configuration information server establishes a connection with the configuration server 0F.

[0075] 结合第四方面,在第一种可实现方式中, [0075] The fourth aspect of the binding, can be achieved in a first embodiment,

[0076] 所述查询消息中包括:所述0F配置服务器的优先级,所述0F配置服务器的优先级用于若所述0F交换机存在已配置的配置管理端口,且所述已配置的配置管理端口的优先级小于所述0F配置服务器的优先级时,将所述接收所述查询消息的端口作为所述0F交换机的配置管理端口,并将所述配置管理端口的优先级设置为所述0F配置服务器的优先级。 [0076] The query message comprises: priority of the configuration server 0F, 0F priority of the configuration server if the presence of a configuration manager configured port 0F switch, and the configuration manager configured when the priority is lower than the priority 0F configuration server port, the port receiving the query message as the configuration of the management port 0F switch, the configuration and management port to said priority 0F configure the server priority.

[0077] 结合第四方面或第一种可实现方式,在第二种可实现方式中,所述查询消息中包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,以便所述0F交换机在所述跳限制值等于零时,丢弃所述查询消息,在所述跳限制值不等于零时,更新所述跳限制值为当前跳限制值-1。 [0077] The fourth aspect of the bound or the first mode may be implemented, can be achieved in a second embodiment, the query message comprising: a hop limit value, the hop limit value for indicating the number of forwarding the query message , 0F to said switch when the hop limit value is equal to zero, discarding the query message, when the hop limit value is not equal to zero, updating the hop limit value for the current hop limit value -1.

[0078] 结合第四方面、第一至第二种可实现方式,在第三种可实现方式中,所述0F配置服务器还包括: [0078] reference to the fourth aspect, the first to the second embodiment may be implemented, can be achieved in a third embodiment, the configuration server 0F further comprising:

[0079] 接收单元,用于接收所述0F交换机通过所述配置管理端口发送的应答消息,所述应答消息包括所述0F交换机的身份标识; [0079] a receiving unit, for receiving said 0F switch through the configuration management port response message sent by the reply message comprises the identifier of the switch 0F;

[0080] 第二生成单元,用于根据所述接收单元接收的所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息; [0080] The second generating unit, for a response message according to the receiving unit receives the message that generated the notification, the advertisement message includes the configuration information 0F configuration server;

[0081] 第二发送单元,用于向所述0F交换机发送所述第二生成单元生成的所述通告消息,以便于所述0F交换机根据所述通告消息中的所述0F配置服务器的配置信息与所述0F 配置服务器建立连接。 [0081] a second transmitting means for transmitting the announcement message generated by the second generating unit to the switch 0F, 0F to facilitate the exchange information according to the configuration of the advertisement message to the configuration server 0F 0F establish a connection with the configuration server.

[0082] 第五方面,提供一种通信系统,包括: [0082] a fifth aspect, there is provided a communication system, comprising:

[0083] 至少一个0F配置服务器和至少一个0F交换机, [0083] at least one 0F 0F configuration server and at least one switch,

[0084] 所述0F配置服务器用于生成查询消息,所述查询消息包含用于标识所述0F配置服务器的参数;向所述OF交换机发送所述查询消息; [0084] The configuration server 0F for generating a query message, the query message contains parameters identifying the 0F configuration server; and sending the query message to the switch OF;

[0085] 所述0F交换机用于接收0F配置服务器发送的所述查询消息;根据所述查询消息设置所述0F交换机的配置管理端口;通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0085] The switch 0F 0F for receiving said query message sent by the configuration server; 0F setting configuration management port of the switch according to the query message; 0F acquiring configuration information of the server configuration by the configuration management port establish a connection with the configuration server 0F.

[0086] 结合第五方面,在第一种可实现方式中,所述0F交换机具体用于: [0086] reference to the fifth aspect, in the first embodiment can be achieved, particularly for the switch 0F:

[0087] 查询所述0F交换机是否存在已配置的配置管理端口; [0087] The query whether there is a configuration management 0F switch port (s);

[0088] 若所述0F交换机存在已配置的配置管理端口,在所述查询消息中获取所述0F配置服务器的优先级作为第一端口的优先级,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级,其中,所述第一端口为所述0F交换机接收所述查询消息的端口; [0089] 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述0F交换机的配置管理端口。 [0088] When the present 0F switch configuration management port configured to acquire a priority configuration server 0F in the query message as a priority of the first port, comparing the priority of the configuration management port configured the priority of the first stage port, wherein the port of the first port receiving a query message to said switch 0F; [0089] when the priority is less than the second configuration management port configured when the priority of a port, the first port as a management port configuration of the switch 0F.

[0090] 结合第五方面或第五方面的第一种可实现方式,在第二种可实现方式中,所述0F 交换机还用于生成应答消息,所述应答消息包括所述OF交换机的身份标识,通过所述配置管理端口,向所述0F配置服务器发送所述应答消息; [0090] The fifth aspect or the first binding can be achieved according to the fifth aspect, in the second embodiment can be achieved, the switch further 0F for generating a response message, said response message comprises identity of the switch OF identifying, by the configuration management port, 0F to the configuration server transmits the response message;

[0091] 所述0F配置服务器还用于接收所述0F交换机通过所述配置管理端口发送的所述应答消息,根据所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息,向所述0F交换机发送所述通告消息; [0091] The configuration server 0F 0F further configured to receive the switch through the management port transmitting the configuration response message, the response message generated according to the advertisement message, the advertisement message comprises a configuration server configuring the 0F message, the switch sends the announce message 0F;

[0092] 所述0F交换机还用于通过所述配置管理端口接收所述0F配置服务器发送的所述通告消息,根据所述通告消息中的所述0F配置服务器的配置信息与所述0F配置服务器建立连接。 [0092] The switch further 0F through the configuration management port for receiving the announce message sent by the server 0F configuration, according to the configuration information in the advertisement message configuration server 0F 0F with the configuration server establish connection.

[0093] 本发明的实施例提供一种获取配置服务器信息的方法、装置及系统。 [0093] Embodiments of the present invention provides a method of obtaining information about the configuration server, device and system. 所述获取配置服务器信息的方法,包括:〇F交换机接收0F配置服务器发送的查询消息,查询消息包含用于标识0F配置服务器的参数;根据查询消息设置0F交换机的配置管理端口,通过配置管理端口获取0F配置服务器的配置信息,与所述0F配置服务器建立连接。 The configuration server information obtaining method, comprising: receiving a query message 0F 〇F switch configuration server sent a query message contains parameters used to identify the configuration server 0F; 0F setting configuration management port of the switch according to the query message, by the configuration management port 0F configuration server configuration information, and establish a connection with the configuration server 0F. 0F交换机根据接收到的0F配置服务器发送的查询消息设置所述0F交换机的配置管理端口,通过配置管理端口与所述0F配置服务器建立连接,获取0F配置服务器的配置信息,从而能够使0F交换机自动获取0F配置服务器的配置信息,避免了手工设置0F配置服务器的配置信息的工作量大且不够灵活的问题。 Switch 0F 0F setting configuration management port of the switch according to the received query message sent by the configuration server 0F connection is established through the configuration management port and the configuration server 0F, 0F to obtain configuration information of the configuration server, thereby enabling automatic switch 0F 0F configuration information to configure the server, avoiding manual settings to configure the server configuration information 0F's heavy work load and inflexible problem.

附图说明 BRIEF DESCRIPTION

[0094] 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。 [0094] In order to more clearly illustrate the technical solutions in the embodiments or the prior art embodiment of the present invention, briefly introduced hereinafter, embodiments are described below in the accompanying drawings or described in the prior art needed to be used in describing the embodiments the drawings are only some embodiments of the present invention, those of ordinary skill in the art is concerned, without creative efforts, can derive from these drawings other drawings.

[0095]图1为本发明实施例提供一种获取配置服务器信息的方法流程图; [0095] Example 1 of the present embodiment provides a method for obtaining information about the configuration server flowchart invention;

[0096]图2为本发明实施例提供一种提供配置服务器信息的方法流程图; [0096] FIG. 2 provides a flowchart of the configuration server information providing method of the present invention;

[0097] 图3为本发明实施例提供另一种获取配置服务器信息的方法流程图; [0097] FIG. 3 shows another embodiment of provides a method of obtaining information about the configuration server flowchart invention;

[0098] 图4为本发明实施例提供一种0F网络结构示意图; [0098] FIG. 4 embodiment provides a schematic diagram of a network structure of the present invention 0F;

[0099] 图5为本发明实施例提供一种0F交换机结构示意图; [0099] Example 5 provides a schematic view of the switch structure of the present invention 0F;

[0100] 图6为本发明实施例提供另一种OF交换机结构示意图; [0100] Another embodiment of Figure 6 provides a switch fabric OF schematic present invention;

[0101] 图7为本发明实施例提供一种0F配置服务器结构示意图; [0101] FIG. 7 embodiment provides a schematic configuration server 0F structure of the present invention;

[0102] 图8为本发明实施例提供另一种0F配置服务器结构示意图; [0102] FIG. 8 shows another embodiment of a schematic configuration server structure provides 0F invention;

[0103] 图9为本发明实施例提供一种通信系统示意图; [0103] FIG. 9 embodiment provides a schematic diagram of a communication system of the present invention;

[0104] 图10为本发明实施例提供又一种0F交换机结构示意图; A schematic view of a further switch configuration provides 0F Example [0104] FIG. 10 of the present invention;

[0105] 图11为本发明实施例提供再一种0F交换机结构示意图; 0F schematic structure of still another switch provided Example [0105] FIG. 11 of the present invention;

[0106] 图12为本发明实施例提供又一种0F配置服务器结构示意图; 0F yet another embodiment of a schematic configuration server provides configuration [0106] FIG. 12 of the present invention;

[0107] 图13为本发明实施例提供再一种0F配置服务器结构示意图; Yet another configuration server provides configuration diagram 0F Example [0107] FIG. 13 of the present invention;

[0108] 图14为本发明实施例提供另一种通信系统示意图。 [0108] Figure 14 provides another embodiment of the present communication system schematic invention.

具体实施方式 detailed description

[0109] 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。 [0109] below in conjunction with the present invention in the accompanying drawings, technical solutions of embodiments of the present invention are clearly and completely described, obviously, the described embodiments are merely part of embodiments of the present invention, but not all embodiments example. 基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。 Based on the embodiments of the present invention, all other embodiments of ordinary skill in the art without any creative effort shall fall within the scope of the present invention.

[0110] 本发明实施例提供一种获取配置服务器信息的方法,用于of交换机,如图1所示, 包括: [0110] provide a method for obtaining information about the configuration server of the embodiment of the present invention, of a switch, as shown in Figure 1, comprising:

[0111] 步骤101、接收0F配置服务器发送的查询消息,所述查询消息包含用于标识所述0F配置服务器的参数。 [0111] Step 101, receiving a query message sent by the configuration server 0F, 0F the query parameters identifying the message contains configuration server.

[0112] 可选的,0F交换机与0F配置服务器通过第一网络进行通信,所述第一网络可以是IP(InternetProtocol,互联网协议)网络,用于传输0F交换机与0F配置服务器之间进行通信所需的消息,包括路由器等传输设备,该第一网络中的路由器相互连接。 [0112] Alternatively, the switch 0F 0F configuration server and communicate through a first network, the first network may be an IP (InternetProtocol, Internet Protocol) network for communication between the switch and the transmission 0F 0F configuration server required message, including routers and other transmission equipment, the first network router connected to each other. 0F配置服务器生成查询消息,通过该第一网络向0F交换机发送所述查询消息,该查询消息包含用于标识所述0F配置服务器的参数,0F交换机从该0F交换机的第一端口接收0F配置服务器发送的所述查询消息,所述第一端口为0F交换机与该第一网络中的边缘路由器相连接的该0F交换机的任意一个端口。 0F configuration server generates a query message, sending the query message to the first network through the switch 0F, the query message contains parameters identifying the 0F configuration server, the configuration server 0F 0F switch receives from the first port of the switch 0F sending the query message, the first port is a switch 0F 0F any of the switches in the first network edge router connected to a port. 0F交换机与所述第一网络中的边缘路由器相连接,所述边缘路由器即接入路由器,是位于该第一网络边缘的路由器。 0F first switch and the network is connected to the edge router, the edge router access router i.e., is located at the first edge of the network router.

[0113] 需要说明的是,所述查询消息包括EUI-64 (64-bitExtendedUnique Identifier,64位扩展唯一标识符),即64位全局标识符,用于唯一标识所述OF配置服务器的身份;IP地址,用于标识0F配置服务器的唯一身份,以便于0F交换机区别不同的0F配置服务器;HL(HopLimit,跳限制)值,用于指示该查询消息的转发次数;优先级(priority), 用于标识OF配置服务器的优先级;MAC(MediaAccessControl,媒体接入控制)地址,用于标识0F配置服务器的唯一身份,MAC地址还可以用于唯一标识0F交换机、0F控制器等0F 设备的唯一身份。 [0113] Incidentally, the query message comprises a EUI-64 (64-bitExtendedUnique Identifier, 64-bit Extended Unique Identifier), i.e. 64-bit global identifier for uniquely identifying the identity OF configuration server; the IP address, the unique identifier for the configuration server 0F, in order to distinguish between different 0F 0F switch configuration server; HL (hopLimit, hop limit) value, the number of forwarding the query message for indicating; priority (priority) for priority identification oF configuration server; MAC (MediaAccessControl, media access control) address, a unique identifier for the configuration server 0F, MAC address may also be used to uniquely identify the device 0F 0F switch, controller, etc. unique 0F.

[0114] 步骤102、根据所述查询消息设置所述0F交换机的配置管理端口。 [0114] Step 102, set the configuration of the management port 0F switch according to the query message.

[0115] 在0F交换机利用该0F交换机的第一端口接收到0F配置服务器发送的所述查询消息之后,0F交换机根据所述查询消息设置该0F交换机的配置管理端口。 After [0115] With this 0F 0F switch in the first switch port receives the query message sent by the configuration server 0F, switch settings 0F 0F configuration management port of the switch according to the query message. 具体的,首先, 0F交换机查询该0F交换机是否存在已配置的配置管理端口,若0F交换机存在已配置的配置管理端口,在所述查询消息中获取所述0F配置服务器的优先级作为所述第一端口的优先级,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级,当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述OF交换机的配置管理端口。 Specifically, first, the switch queries 0F 0F there is a configuration management port switch is configured, if there is a configuration management 0F switch port is configured to obtain the configuration server 0F priority in the query message as the first when the priority, the priority of the priority of the first port when the first port of the priority is less than the priority of a configuration of a port management port configured comparing the said configuration management port configured , as the first port of the switch oF configuration management port.

[0116] 需要说明的是,在根据所述查询消息设置所述0F交换机的配置管理端口之前,首先,0F交换机需要确定所述查询消息中的跳限制值是否等于零,若该查询消息中的跳限制值等于零,则丢弃该查询消息,若该查询消息中的跳限制值不等于零,则更新该查询消息中的跳限制值为当前跳限制值-1。 [0116] Incidentally, according to the query message prior to setting the configuration management 0F switch port, firstly, the need to determine the switch 0F query hop limit value in the message is equal to zero, if the query message hop limit value is equal to zero, the query message is discarded, if the hop limit the query message is not equal to zero, updating the hop limit value for the current query message hop limit value -1.

[0117] 步骤103、通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F 配置服务器建立连接。 [0117] Step 103, by the configuration management port configuration information of the configuration server 0F, 0F to establish a connection with the configuration server.

[0118] 在0F交换机根据所述查询消息成功设置该0F交换机的配置管理端口之后,再按照0F交换机中存储的流表查找转发规则,所述流表包括所述转发规则,所述转发规则为0F 交换机与OF控制器之间进行消息交互时所需要的转发路径。 After [0118] the query success message according to the switch setting 0F configuration management port of the switch 0F, then forwarding rules lookup table stored in accordance with the flow switch 0F, the flow rule table comprises forwarding, the forwarding rules when 0F message interaction between the switch and the controller oF required forwarding path. 若没有查找到匹配的流表,则0F交换机生成应答消息,所述应答消息包括所述0F交换机的身份标识。 If no match is found in the flow table, the switch generates a response message 0F, the reply message comprising the identifier of the switch 0F. 然后,0F交换机通过该0F交换机的配置管理端口,向0F配置服务器发送所述应答消息,以便于0F配置服务器根据该应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息,再者,0F交换机通过所述配置管理端口接收0F配置服务器发送的所述通告消息,获取所述0F 配置服务器的配置信息,根据该通告消息中的OF配置服务器的配置信息与OF配置服务器建立连接。 Then, the switch configuration management 0F 0F port of the switch, and transmits the response message to the configuration server 0F, 0F in the configuration server according to the response message that generated the notification message, the advertisement message includes the configuration information of the configuration server 0F, Further, the switch 0F advertisement message by said management port receives the configuration server sends configuration 0F, 0F configuration information of the configuration server, according to the configuration information to establish a connection to the advertisement message to the configuration server oF oF configuration server .

[0119]这样一来,0F交换机根据接收到的0F配置服务器发送的查询消息设置所述0F交换机的配置管理端口,通过配置管理端口与所述0F配置服务器建立连接,获取0F配置服务器的配置信息,从而能够使0F交换机自动获取0F配置服务器的配置信息,避免了手工设置0F配置服务器的配置信息的工作量大且不够灵活的问题。 [0119] Thus, the switch 0F inquiry message transmitted according to the received configuration settings 0F configuration server management port of the switch 0F, establish a connection with the configuration management port 0F configuration server, the configuration server to obtain configuration information of 0F , thereby enabling the switch to automatically obtain configuration information 0F 0F configure a server, avoiding manual settings to configure the server configuration information 0F's heavy work load and inflexible problem.

[0120] 本发明实施例提供一种提供配置服务器信息的方法,用于0F配置服务器,如图2 所示,包括: [0120] provides a method of providing configuration information to a server embodiment of the present invention, a configuration server 0F, as shown in Figure 2, comprising:

[0121] 步骤201、生成查询消息,所述查询消息包含用于标识所述0F配置服务器的参数。 [0121] Step 201, generates a query message, the query message contains parameters identifying the configuration server 0F.

[0122] 需要说明的是,所述查询消息包括EUI-64,即64位全局标识符,用于唯一标识0F 配置服务器的身份;IP地址,用于标识OF配置服务器的唯一身份,以便于OF交换机区别不同的0F配置服务器;HL值,用于指示所述查询消息的转发次数;优先级(priority),用于标识0F配置服务器的优先级;MAC地址,用于标识0F配置服务器的唯一身份,MAC地址还可以用于唯一标识0F交换机、0F控制器等0F设备的唯一身份。 [0122] Incidentally, the query message comprises a EUI-64, i.e., 64-bit global identifier used to uniquely identify the identity 0F configuration server; the IP address, the unique identifier for the configuration server OF facilitate OF 0F distinguish between different switch configuration server; values ​​of HL, the number of times the query message forwarding indication; priority (priority), a priority identification 0F configuration server; the MAC address that identifies the configuration server of a unique identity 0F , MAC address unique identity may also be used to uniquely identify the device 0F 0F switch, 0F controller or the like.

[0123] 其中,该查询消息中0F配置服务器的优先级用于若0F交换机存在已配置的配置管理端口,且所述已配置的配置管理端口的优先级小于所述0F配置服务器的优先级时,0F 交换机将所述接收所述查询消息的端口作为所述OF交换机的配置管理端口,并将所述配置管理端口的优先级设置为所述0F配置服务器的优先级。 [0123] wherein, the priority of the query message to the configuration server 0F 0F switch if there is a configuration management port configured, and the priority is lower than priority of the configuration server 0F of configuration management port configured , 0F switch as the port receiving the query message of the management port of the switch oF configuration, the configuration and management port priority setting for the configuration server 0F priority. 所述跳限制值用于指示所述查询消息的转发次数,以便0F交换机在所述跳限制值等于零时,丢弃该查询消息,在所述跳限制值不等于零时,更新所述跳限制值为当前跳限制值-1。 The hop limit value for the number of forwarding the query message to indicate to the switch when the 0F hop limit value is equal to zero, discarding the query message, when the hop limit value is not equal to zero, updating the hop limit value the current hop limit value of -1.

[0124] 步骤202、向0F交换机发送所述查询消息,以便于所述0F交换机根据所述查询消息设置所述0F交换机的配置管理端口并通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0124] Step 202, the switch sends the query message 0F, 0F to facilitate the exchange according to the query message is provided to the configuration manager 0F switch port and through said port configuration management server configured to acquire the configuration 0F information, establishing a connection with the configuration server 0F.

[0125] OF配置服务器与OF交换机通过第一网络进行通信,所述第一网络可以是IP网络, 用于传输0F交换机与0F配置服务器之间进行通信所需的消息,包括路由器等传输设备,该第一网络中的路由器相互连接。 [0125] OF OF configuration server and communicate through a first network switch, the first network may be an IP network, for transmitting messages required for communication between the switch and the 0F 0F configuration server, including routers and other transmission equipment, the first router in the network are interconnected. 在0F配置服务器生成查询消息之后,通过该第一网络向0F 交换机发送该查询消息。 After 0F configuration server generates a query message, it sends the query message to the first network through the switch 0F.

[0126] 需要说明的是,在0F配置服务器生成查询消息向0F交换机发送所述查询消息之前,0F交换机需要上电后主动加入特定的组播组,以便于0F配置服务器向0F交换机发送查询消息,使得0F配置服务器与0F交换机通过第一网络进行通信。 [0126] Incidentally, the query message generated 0F 0F configuration server sends the query message prior to the switch, the power switch needs 0F active join a particular multicast group, to send a query message to the configuration server 0F 0F to switch such 0F 0F configuration server and communicate through a first network switch. 首先,第一网络中的边缘路由器开启IGMP(InternetGroupManagementProtocol,互联网组管理协议)功能, 然后,所述边缘路由器按照预设时间向0F网络中的0F交换机发送IGMPREQ(Internet GroupManagementProtocolRequest,internet组管理协议请求)消息,OF交换机通过与所述边缘路由器直接连接的该OF交换机的端口中的任意一个端口接收所述边缘路由器发送的IGMPREQ消息,0F交换机通过与所述边缘路由器直接连接的该0F交换机的端口中所述任意一个端口向该边缘路由器发送IGMPREP(InternetGroupManagementProtocol Respond,internet组管理协议响应)消息,该边缘路由器接收IGMPREP消息后,成功将0F交换机加入特定的组播组。 First, a first edge router network open IGMP (InternetGroupManagementProtocol, Internet Group Management Protocol) function, then to the edge router transmits IGMPREQ 0F 0F network switch in accordance with a preset time (Internet GroupManagementProtocolRequest, internet group management protocol request) message, IGMPREQ oF message switch port for receiving a transmitted via the edge router oF any port of the switch is directly connected to the edge router in, 0F switch port directly connected to the edge router in the switch through 0F the port of any transmission to the edge router IGMPREP (InternetGroupManagementProtocol respond, internet group management protocol response) message, the edge router receives the message IGMPREP, 0F switch successfully join a particular multicast group. 再将所述第一网络中的路由器开启PM-SM(Protocol IndependentMulticast-SparseMode,稀疏模式独立组播)功能,该第一网络中的路由器根据PIM-SM协议和IGMP协议获取到的消息建立组播转发路径,使得所述第一网络中的路由器相互连接,以便于0F配置服务器通过该第一网络向0F交换机发送消息。 Then the first network router open PM-SM (Protocol IndependentMulticast-SparseMode, Independent Multicast Sparse Mode) function, the first network router acquired according to PIM-SM and IGMP multicast message to establish forwarding path, such that the first router in the network are interconnected, so as to transmit a message to switch to 0F 0F configuration server via the first network. 所述0F网络包括第一网络、至少一个0F配置服务器和至少一个0F交换机。 The network comprises a first network 0F, at least one 0F 0F configuration server and at least one switch.

[0127] 在0F配置服务器向0F交换机发送所述查询消息之后,0F交换机接收到0F配置服务器发送的所述查询消息,0F交换机根据该查询消息设置0F交换机的配置管理端口,0F 交换机成功设置所述配置管理端口后,根据OF交换机中存储的流表查找转发规则,转发该查询消息,若没有找到匹配的流表,则生成应答消息,向0F配置服务器发送所述应答消息, 0F配置服务器接收0F交换机通过所述配置管理端口发送的应答消息,所述应答消息包括所述0F交换机的身份标识,然后,根据该应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息,向0F交换机发送所述通告消息,以便于0F交换机根据该通告消息中的所述0F配置服务器的配置信息与0F配置服务器建立连接。 [0127] After the configuration server 0F to send the query message 0F switch, the switch receives a query 0F 0F configuration message sent by the server, the switch 0F 0F setting configuration management port switch based on the query message, the success of the switch settings 0F later configuration management port, according to the flow lookup table stored in the switch oF forwarding rules, forward the query message, if the matching flow table is not found, generates a response message, sending a response message to the configuration server 0F, 0F configuration server receives 0F switch through the configuration management port response message sent by the reply message comprises the identifier of the switch 0F, then, generates an advertisement message according to the response message, the advertisement message includes the configuration information of the configuration server 0F, 0F sending the advertisement message to the switch for establishing a connection according to the configuration information in the advertisement message and the configuration server 0F 0F 0F configuration server on the switch.

[0128] 这样一来,首先,0F配置服务器生成查询消息,然后,向0F交换机发送该查询消息,以便于0F交换机根据所述查询消息设置0F交换机的配置管理端口并通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接,从而能够使0F 交换机自动获取OF配置服务器的配置信息,避免了手工设置OF配置服务器的配置信息的工作量大且不够灵活的问题。 [0128] Thus, firstly, 0F configuration server generates a query message, then sends the query message to the switch 0F, 0F to set the configuration management port switch according to the query message 0F switch port via the configuration manager acquires configuration information of the configuration server 0F, 0F to establish connection with the configuration server, thereby enabling the switch to automatically obtain configuration information 0F oF configuration server, to avoid the heavy workload to manually set the configuration information oF configuration server and not flexible enough problem.

[0129] 本发明实施例提供一种获取配置服务器信息的方法,用于0F交换机和0F配置服务器,0F配置服务器与0F交换机基于0F网络进行消息交互,0F网络包括第一网络,假设第一网络为IP网络,该IP网络包括路由器等传输设备,且路由器之间相互连接。 Provide a method for obtaining information about the configuration server of embodiment [0129] of the present invention, the switch and 0F 0F for the configuration server, the configuration server 0F 0F 0F the switch message based interaction network, the network comprising a first network 0F, assuming that the first network IP network, the IP network transmission device comprises routers and between routers connected to each other. 如图3所示,包括: As shown in FIG 3, comprising:

[0130] 步骤301、0F交换机上电后主动加入特定的组播组。 [0130] Step 301,0F active power after the switch to join a particular multicast group.

[0131] 组播传输为一种点对多点传输的通讯模式,即存在一个发送者和至少两个接收者,所述接收者在同一组播组,所有所述接收者使用的组播地址相同,所述一个发送者向所述至少两个接收者发送消息,若所述消息的数据内容相同,发送者只需生成一份消息的数据包,向加入同一个组播组的所有所述接收者发送该消息的数据包,加入同一个组播组的所有所述接收者可以接收到该消息的数据包,即组播组中端口的地址或者标识符都是组播报文或者数据帧发送的目的地址,所述每个接收者的端口的地址都一样,为同一组播组里的接收者。 [0131] multipoint transmission as a multicast transmission mode of communication, i.e., there is one sender and at least two receivers, the receivers in the same multicast group, the multicast address used by all of the recipient same, the sender sends a message to the at least two receivers, if the same data content of the message, only the sender generates a packet of a message, to join the same multicast group to all the receiver transmits the message packet, added to the same multicast group to all the recipient can receive the message packet, multicast group address or port identifier is a multicast packet or data frame transmitting the destination address, the address of each recipient are the same port, in the same multicast group of receivers. 所述接收者还可以向第一网络中的路由器发送请求,请求加入或退出所述组播组,第一网络中的路由器有选择的复制并传输消息的数据包,即只将组播组内的所述消息的数据包传输给所述组播组的接收者,不在组播组内的接收者接收不到所述消息的数据包。 Data packets may also be transmitted to the recipient requesting a first network router, a request to join or leave the multicast group, the first network router replication and transmit the selected message, i.e., only the multicast group packet transmission of the message to a recipient of the multicast group, the multicast group is not in the recipient can not receive the data packet message.

[0132] 需要说明的是,组播报文的目的IP地址可以使用D类IP地址,所述D类IP地址范围是从224. 0. 0. 0到239. 255. 255. 255,即消息的数据包的目的IP地址不是一个接收者的IP地址,而是组播IP地址,是一个地址段,该D类地址不能出现在IP报文的源IP地址字段。 [0132] Incidentally, the multicast packet destination IP address of Class D IP addresses may be used, the Class D IP addresses ranging from 0.0 to 0. 224. 239. 255. 255. 255 message i.e. destination IP address of the packet is not an IP address of the recipient, but the IP multicast address, an address field, the address can not appear in the class D IP packet's source IP address field. 例如单播传输为点对点传输的通讯模式,是将一个数据包从源IP地址路由到目的IP地址,所述单播传输的源IP地址和目的IP地址为一个具体的IP地址。 E.g. unicast transmission point to point transmission mode of communication is a data packet from the source IP address of the router to the destination IP address, the unicast transmission source IP address and destination IP address for a specific IP address. 所有所述接收者加入同一个组播组内,携带组播组地址的消息的数据包通过第一网络传输到组播组后立即开始向所述组播组内的所有所述接收者传输,所述组播组中的所有所述接收者都能接收到所述消息的数据包。 All transmissions within the recipient begins the data packet the multicast group to all the recipient immediately added to the same multicast group, the multicast group address carried in the message to the multicast group transmitted through the first network, All the receivers of the multicast group can receive the data packet of the message. 且组播组中的接收者是动态的,接收者可以在任何时刻加入或离开组播组。 And a recipient in a multicast group is dynamic, the recipient can join or leave a multicast group at any time. 同理,MAC地址也必须是组播MAC地址,组播MAC地址和组播IP地址相对应,组播MAC地址的高24bit为0x01005e,组播MAC地址的低23bit为组播IP地址的低23bit。 Similarly, the MAC address must be a multicast MAC address, and the multicast MAC address corresponding to a multicast IP address, multicast MAC address 24bit high as 0x01005e, low 23bit IP multicast address of the multicast MAC address low 23bit . 需要说明的是,IP地址224. 0. 0. 0~224. 0. 0. 255为预留的组播地址,即永久组地址,IP地址224. 0.0. 0保留不做分配,其它地址供路由协议使用;IP地址224. 0. 1.0~224. 0. 1.255是公用组播地址,可以用于互联网;IP地址224. 0. 2. 0~238. 255. 255. 255为用户可用的组播地址,即临时组地址;IP地址239. 0. 0. 0~239. 255. 255. 255为本地管理组播地址。 Incidentally, IP addresses 0 to 224. 0. 0. 224 0. 255 0. reserved multicast address, i.e., a permanent group address, IP address 224. 0.0. 0 Reserved not allocated for other addresses routing protocol;. IP address of 224. 0. 0. 224 1.255 ~ 1.0 multicast address is public, the Internet may be used;. IP address 224. 255. 0. 238 ~ 2.0 255.255 available to the user group multicast address, i.e., a temporary group address;. the IP address 239. 255. 0. 239 0. 0 ~ 255.255 local multicast address management.

[0133] 本发明实施例中假设所述发送者可以是0F配置服务器,所述接收者可以是0F交换机,假设0F配置服务器与0F交换机通过IP网络利用组播传输的方式进行消息交互,IP 网络包括路由器等传输设备,该IP网络中的路由器相互连接。 [0133] The embodiments of the present invention may be assumed that the sender 0F configuration server, the recipient may be 0F switch, and assume the configuration server 0F 0F message interaction through the switch network using IP multicast transmission, the IP network including routers and other transmission equipment, the IP routers in the network are interconnected. 在OF交换机与OF配置服务器通过IP网络进行消息交互之前,0F交换机需要上电后主动加入特定的组播组。 OF OF before the switch and the configuration server exchange messages over an IP network, 0F switches the active power required to join a particular multicast group.

[0134] 具体的,首先,边缘路由器开启IGMP功能,所述边缘路由器即接入路由器,是位于该IP网络边缘的路由器,位于该IP网络中心的路由器叫核心路由器,实际应用中,边缘路由器和核心路由器是相对概念,都属于路由器,但是边缘路由器和核心路由器有着不同的大小和容量,所述核心路由器可以是在相对IP网络更大的网络中的边缘路由器。 [0134] Specifically, first, the edge router enable the IGMP function, i.e. the edge router access router, which is located at the edge of the IP network router, which is located in the center of the IP network router called core routers, the practical application, the edge router, and is a relative concept core router, the router belongs, but the edge and core routers have different sizes and capacities, the core router may be an edge router in the network is relatively larger IP network. IGMP是互联网协议家族中的一个组播协议,所述组播协议包括组播组成员与路由器之间的组成员关系协议和路由器与路由器之间的组播路由协议,所述IGMP为组成员关系协议,用于与边缘路由器直接相连的组播组成员之间建立连接,处于不同网段的组播组成员之间可以进行组播通信,维护组播组成员关系,但是路由器需要支持组播功能,IGMP信息封装在IP报文中, 在IP报文中IGMP信息的IP的协议号为2,所述组播组成员可以在任意位置、任意时间、总数不受限制地加入或退出组播组。 IGMP multicast protocol is an Internet protocol family, a member of the group multicast protocol comprises a multicast routing protocol and the protocol between the router and the relationship between the router and the router multicast group members, the group membership is IGMP protocol used between the multicast group members directly connected to the edge router to establish a connection, multicast communication can be performed between the multicast group members in different network segments, and maintains the multicast group memberships, but the need to support multicast router , IGMP message encapsulated in IP packets, the IP packets in the IP information in the IGMP protocol number 2, the multicast group member may be in any position, at any time, the total number of unrestricted join or leave a multicast group .

[0135] 然后,所述边缘路由器按照预设时间周期性的向0F网络中的0F交换机发送IGMP REQ消息,用于OF交换机加入特定的组播组,所述OF网络是基于开放流(OpenFlow)协议对数据进行控制与转发的一种网络,包括OF交换机、OF配置服务器和OF控制器,还有用于OF交换机与OF配置服务器建立连接和消息交互的IP网络,所述特定的组播组为OF交换机预先设置的组播组,即为OF交换机预先设置了组播地址段,所述预设时间可以为1分钟或2分钟。 [0135] Then, the edge router transmits periodically according to a preset time 0F 0F network switch IGMP REQ message, the switch OF added for specific multicast groups, the network is based on an open OF stream (the OpenFlow) protocol to control the data forwarding with one network, the switch comprising oF, oF oF configuration server and controller, and for establishing a connection and switch oF message oF interact with server IP network, the specific multicast group oF preset multicast switches, namely switch oF preset multicast address field, the preset time may be 1 minute or 2 minutes.

[0136] 再在0F交换机通过与所述边缘路由器直接连接的该0F交换机的端口中的任意一个端口接收所述边缘路由器发送的IGMPREQ消息之后,该0F交换机再通过与所述边缘路由器直接连接的所述0F交换机的端口中所述任意一个端口向所述边缘路由器发送IGMPREP消息,成功将所述0F交换机加入特定的组播组。 [0136] In yet 0F after a switch port to receive the edge router IGMPREQ message transmitted by any port of the switch 0F directly connected to the edge router in the switch re 0F directly connected via the edge router 0F the switch port to any port in the message sent to the edge router IGMPREP, 0F the switch successfully join a particular multicast group.

[0137] 步骤302、路由器建立组播转发路径。 [0137] Step 302, the router builds a multicast forwarding path.

[0138] 本发明实施例中假设所述IP网络中的路由器开启PIM-SM功能,所述PIM-SM为因特网协议家族中的一个组播协议,即路由器与路由器之间的组播路由协议,IP网络中的路由器根据PM-SM协议和IGMP协议获取的信息建立组播转发路径,使得IP网络中的路由器相互连接,以便于0F配置服务器通过该IP网络向0F交换机发送消息。 [0138] embodiment of the present invention is assumed that the IP router in the network, PIM-SM is turned on, the PIM-SM multicast protocol is an Internet protocol family, i.e., multicast routing protocol between the router and the router, IP routers in the network information acquired in accordance with PM-SM and IGMP multicast forwarding path is established, so that the IP routers in the network are interconnected, so as to 0F 0F configuration server sends a message to switch over the IP network. 所述IP网络中的路由器建立组播转发路径的详细过程为现有技术,本发明实施例在此不再赘述。 The IP network routers to establish multicast forwarding path is a detailed process of the prior art, embodiments of the present invention are not repeated here. 后续步骤中,0F交换机和0F配置服务器的消息交互均需要该IP网络中路由器的转发。 In a subsequent step, 0F 0F switch and the configuration server are required to forward the message interaction IP network routers.

[0139] 步骤303、0F配置服务器生成查询消息。 [0139] Step 303,0F configuration server generates a query message.

[0140] 查询消息包括以太网层信息,IP层信息,应用层信息。 [0140] layer information query message including Ethernet, IP layer information, application layer information. 所述查询消息的格式可以如表1所示。 The format of the query message may be as shown in Table 1.

[0141] 表1查询消息格式 [0141] Table 1 query message format

[0142] [0142]

Figure CN104734877AD00161

[0143] [0143]

Figure CN104734877AD00171

[0144] 具体的,如表1所示,所述查询消息的应用层信息包括:En-64字段,即64位全局标识符字段,该EUI-64用于唯一标识0F配置服务器的身份,因为当所述查询消息经过IP 网络中的路由器转发时,所述路由器可能将所述以太网层信息中包括的目的MAC地址修改成所述路由器的MAC地址,因此唯一标识0F配置服务器的身份的该EUI-64为所述查询消息必须携带的字段,所述EUI-64字段还可以用于唯一标识0F交换机、0F控制器等0F设备的身份;版本号(Version)字段,用于标识配置和管理协议的版本信息,所述配置和管理协议为0F配置服务器与0F交换机进行消息交互所使用的协议,即其中包括所述查询消息的内容;消息类型(Type)字段,用于标识消息的类型,该字段中不同的消息类型值指示不同的消息类型,示例的,若消息类型值为〇指示为查询消息,若消息类型值为1指示为 [0144] Specifically, as shown in Table 1, the query message to the application layer information comprises: En-64 field, i.e., the global identifier field 64, the EUI-64 0F for identity uniquely identifies the configuration server, as when the query message via an IP network router to forward, the router may be the Ethernet destination MAC address included in the information layer is modified to the router's MAC address, so that the identity uniquely identifies the configuration server 0F EUI-64 field of the query message must carry, the EUI-64 field may also be used to uniquely identify the identity of the switch 0F, 0F 0F controller device; version (version) field, used to identify and manage configuration protocol version information, the configuration management protocol and the protocol used for message exchange 0F 0F configuration server and the switch, i.e., wherein the content of the query message comprises; message type (type) field that identifies the type of message, the field different types of messages indicating the message type, of example, if the message type is indicated as square query message, if the message type is indicated as 1 应答消息,若消息类型值为2指示为通告消息,因此,在本发明实施例中所述查询消息的消息类型字段为〇;HL值字段,用于标识所述查询消息的转发次数,为该查询消息必须携带的字段, 该HL值字段中的不同数值指示查询消息不同的转发次数;优先级(priority)字段,用于标识0F配置服务器的优先级,为所述查询消息必须携带的字段;交换机列表长度(Switch listlength)字段,用于指示配置和管理协议中交换机列表的长度,其可以用大于或等于1 的整数表示,例如,该交换机列表长度字段中数值为8,则表示配置和管理协议中存在8个交换机列表的信息;校验和(Checksum)字段,用来校验所述查询消息在传输过程中的正确性。 Response message, if the message type is indicated as 2 advertisement message, therefore, in the present invention, a message type field described in the embodiment is square query message; of HL field value, for identifying the query message forwarding number, that query message must carry a field, the HL field value indicating the different values ​​of the query message forwarding different times; priority (priority) field for identifying priority 0F configuration of the server, the query message must carry a field; switch list length (switch listlength) field for indicating the length of the configuration and management protocol list of the switches, which may be an integer greater than or equal to 1 indicates, for example, the switch list length field value of 8, then the configuration and management there are eight switches in the list of protocol information; checksum (checksum) field, used to verify the correctness of the query message in the transmission process. 标志位(Flags)字段,用于标志是否存在MAC地址、MAC地址掩码(MACMask)、IPv4地址、IPv4地址掩码(IPv4Mask)、IPv6地址、IPv6地址掩码(IPv6Mask)、数据链路地址(Data PathID)、数据链路地址掩码(DataPathIDMask)字段,该标志位字段可以为八位,通常用1表示有,用0表示无,若所述标志位字段中的MAC地址、IPv4地址、IPv6地址、数据链路地址存在,则相应字段的掩码(Mask)值全部为1,若所述标志位中的MAC地址、IPv4地址、 IPv6地址、数据链路地址不存在,则省略相应所述字段和所述字段的掩码字段,并将标志位(Flags)字段中相应位置置0 ;链路类型(LinkType)字段指示OF配置服务器连接类型,链路端口(LinkPort)字段指示OF配置服务器连接端口,在本实施例中的查询消息未使用所述链路类型字段和所述链路端口字段。 Flag (the Flags) field, whether the flag for the presence of the MAC address, MAC address mask (MACMask), IPv4 address, the IPv4 address mask (IPv4Mask), IPv6 address, IPv6 address mask (IPv6Mask), a data link address ( data PathID), a data link address mask (DataPathIDMask) field, the field may be eight bit flag, there is generally indicated with 1, with 0 indicating no, if said flag bit MAC address field, the IPv4 address, the IPv6 address, data link address exists, the corresponding field mask (mask) values ​​are all 1, if the MAC address of the flag, the IPv4 address, IPv6 address, data link address does not exist, then the respective omitted field and the mask field of the field, and flag bit (the flags) field set to 0 in the corresponding position; link type (the LinkType) field indicates oF configuration server connection type, link ports (LinkPort) field indicates a configuration server connected oF port, the query message is not used in the embodiment of the link and the link type field in the port field of the present embodiment.

[0145]所述以太网层信息包括:DstMAC(DestinationAddressMediaAccessControl, 目的媒体接入控制)地址字段,用于标识将所述查询消息发送给OF交换机时,所述查询消息携带的所述0F交换机的MAC(MediaAccessControl,媒体接入控制)地址;SrcMAC (SourceAddressMediaAccessControl,源媒体接入控制)地址字段,用于标识发送所述查询消息的0F配置服务器的MAC地址。 [0145] The Ethernet layer information comprises: DstMAC (DestinationAddressMediaAccessControl, object of the Media Access Control) address field for identifying the query message is sent to the OF switch, said switch searches the MAC of the message carried 0F (MediaAccessControl, media access control) address; SrcMAC (SourceAddressMediaAccessControl, a source media access control) address field for identifying 0F configuration server transmits the query message to the MAC address.

[0146]所述IP层信息包括:DstIP(DestinationInternetProtocol,目的互联网协议)地址字段,用于标识将所述查询消息发送给OF交换机时,所述查询消息携带的所述OF 交换机的IP地址;SrcIP(SourceInternetProtocol,源互联网协议)地址字段,用于标识0F配置服务器的IP地址,以便于存在至少两个0F配置服务器时所述0F交换机能够区别不同的0F配置服务器。 [0146] The IP layer information comprises: when DstIP (DestinationInternetProtocol, destination internet protocol) address field for identifying the query message is sent to the OF switch, the switch OF query IP address of the message carried; SrcIP (SourceInternetProtocol, a source Internet protocol) address field, an IP address for the configuration server identifies 0F to the presence of at least two of the configuration server 0F 0F 0F switch can distinguish different configuration server.

[0147] 步骤304、0F配置服务器向0F交换机发送查询消息。 [0147] Step 304,0F configuration server sends a query message to the switch 0F.

[0148] 0F配置服务器与0F交换机通过IP网络进行消息交互。 [0148] 0F 0F switch configuration server to perform message interaction with an IP network. 在0F配置服务器生成查询消息之后,通过该IP网络向0F交换机发送所述查询消息,以便于0F交换机根据所述查询消息设置所述0F交换机的配置管理端口并通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 After 0F configuration server generates a query message, sending the query message to the IP network via the switch 0F to set the configuration management port 0F switch according to the query message 0F switch port via the configuration manager to acquire the 0F configuration server configuration information, to establish a connection with the configuration server 0F.

[0149] 步骤305、0F交换机根据所述查询消息设置所述0F交换机的配置管理端口。 [0149] Step 305,0F the management port Switch Configuration settings 0F switch according to the query message.

[0150] 在0F交换机接收到0F配置服务器通过IP网络发送的查询消息之后,0F交换机从该0F交换机的第一端口接收所述查询消息,所述第一端口为该0F交换机与该IP网络中的边缘路由器相连接的该0F交换机的任意一个端口,所述边缘路由器即接入路由器,是位于该IP网络边缘的路由器。 After [0150] receiving a query message sent 0F configuration server through the IP network switch 0F, 0F switch query message received from the first port of the switch 0F, 0F switch for the first port to the IP network the switch of any 0F edge router connected to a port, the access router i.e. the edge router, which is located in the IP network edge router.

[0151] 具体的,首先,在0F交换机根据所述查询消息设置所述0F交换机的配置管理端口之前,0F交换机确定该查询消息中的跳限制值是否等于零,所述跳限制值用于指示该查询消息的转发次数。 [0151] Specifically, first, the switch 0F before the message is provided to the configuration manager 0F switch port, the switch determines 0F hop limit value in the query message according to the query is equal to zero, the hop limit value for indicating that the queries forwarded messages. 若所述查询消息中的跳限制值等于零,丢弃该查询消息;若所述查询消息中的跳限制值不等于零,更新该查询消息中的跳限制值为当前跳限制值-1。 If the query hop limit value is equal to zero in the message, the query message is discarded; if the query hop limit value is not equal to zero in the message, the update message in the query hop limit value current hop limit value -1. 所述跳限制值为大于或等于1的整数。 The hop limit is an integer greater than or equal to 1. 示例的,假设当所述查询消息中的跳限制值等于1时,该0F交换机通过所述第一端口接收到0F配置服务器发送的所述查询消息后,更新所述跳限制值为当前跳限制值-1,使得更新后的所述跳限制值为〇,再检查所述跳限制值,因为所述跳限制值为0,则丢弃所述查询消息,所述0F交换机不再转发该查询消息;当所述查询消息中的跳限制值大于1时,所述0F交换机通过第一端口接收到0F配置服务器发送的所述查询消息后,更新所述跳限制值为当前跳限制值-1,再检查所述跳限制值,若所述跳限制值-1大于〇,则该0F交换机转发所述查询消息,0F交换机每转发一次所述查询消息所述跳限制值减1,直到所述跳限制值为〇,〇F交换机丢弃所述查询消息,不再转发该查询消息。 Example, assume that when the query hop limit value a message is equal to, after the switch receives the 0F 0F configuration server query message sent by the first port updating the hop limit value for the current hop limit a value of -1, such that the hop limit value is updated square, then check the hop limit value, since the hop limit value is zero, discarding the query message, the 0F switch does not forward the query message ; the hop limit value when the query message is greater than 1, the switch receives the 0F 0F configuration server query message sent through the first port, to update the current value of the hop limit hop limit value -1, then check the hop limit value, if the hop limit is greater than the square value of -1, the switch forwards the query message 0F, 0F time the switch forwarding the query message for each of the hop limit value minus 1, until the hop limit is square, 〇F switch discards the query message, does not forward the query message. 本发明实施例假设所述查询消息中的跳限制值为2,则所述查询消息可以被0F网络中的0F交换机转发一次。 Example Suppose the query message hop limit value in embodiment 2 of the present invention, the query message may then be forwarded once 0F 0F network switch.

[0152] 然后,0F交换机查询该0F交换机是否存在已配置的配置管理端口,若所述0F交换机存在已配置的配置管理端口,该0F交换机比较所述已配置的配置管理端口的优先级与所述第一端口的优先级。 [0152] Then, the switch queries 0F 0F whether there is a configuration management switch port is configured, configuration management port configured 0F switch if the priority of the management port configured 0F comparing said switch configured said priority of the first port. 若OF网络中存在至少两个OF配置服务器,在OF交换机接收到至少两个OF配置服务器发送的查询消息后,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级,当所述已配置的配置管理端口的优先级小于所述第一端口的优先级,该OF交换机将所述第一端口作为所述OF交换机的配置管理端口,并将所述配置管理端口的优先级设置为所述OF配置服务器的优先级,当所述已配置的配置管理端口的优先级大于或等于所述第一端口的优先级,该OF交换机将所述已配置的配置管理端口作为所述OF交换机的配置管理端口。 If there are at least two rear OF OF configuration server network, the switch receives a query message OF least two transmitted OF configuration server, the configuration and priority management port configured comparing the priority of the first port , when the priority is lower than the priority of the first port of the configuration management port configured, the first port of the switch oF configured as a management port of the switch oF, the configuration and management port the priority is set to priority oF configuration server, when the priority of the configuration management port configured greater than or equal to the priority of the first port, the switch oF configuration of the management port configured as the configuration management oF port of the switch.

[0153] 需要说明的是,在比较所述已配置的配置管理端口的优先级与所述第一端口的优先级之前,0F交换机可以在所述查询消息中获取0F配置服务器的优先级作为所述第一端口的优先级,可以在该0F交换机本地保存的信息中获取所述已配置的配置管理端口的优先级,所述已配置的配置管理端口的优先级为该已配置的配置管理端口接收到的查询消息的发送端的0F配置服务器的优先级。 [0153] Incidentally,, 0F priority switch may be acquired as the configuration server 0F in the query message prior to the priority of the configuration and management port configured to compare the priority of the first port said priority of the first port, can get the information stored in the local switch 0F priority configuration management port has been configured, the configured priority configuration management port configured for configuration management port 0F priority transmission side configuration server query message received.

[0154] 特别的,若0F网络中存在一个0F配置服务器,在0F交换机接收到一个0F配置服务器发送的查询消息后,该0F交换机比较所述已配置的配置管理端口的优先级与所述第一端口的优先级,因为所述0F交换机从该0F交换机的第一端口接收到的查询消息中包括的0F配置服务器的优先级与该0F交换机从该0F交换机的已配置的配置管理端口接收到的查询消息中包括的0F配置服务器的优先级相等,所以经过比较得到所述已配置的配置管理端口的优先级与所述第一端口的优先级相等,则所述0F交换机将所述已配置的配置管理端口作为所述0F交换机的配置管理端口。 [0154] In particular, the first priority of the management port configuration if there is a configuration server 0F 0F network, the switch receives 0F 0F configuration server a query message sent by the switch comparing the 0F configured a port priority, because the query message received from the first switch 0F 0F port of the switch to the priority included 0F configuration server receives from the configured port of the configuration manager to switch the 0F 0F switch 0F equal priority configuration server includes a query message, it is obtained by comparison with the priority equal to the priority of the first port, then the configuration management port configured to switch the configured 0F configuration management port as the configuration of the management port switch 0F.

[0155] 需要说明的是,无论0F网络中存在一个0F配置服务器,还是0F网络中存在至少两个0F配置服务器,若所述0F交换机不存在已配置的配置管理端口,则该0F交换机将所述接收查询消息的第一端口作为所述0F交换机的配置管理端口。 [0155] Incidentally, there are at least two configuration server regardless of the presence 0F 0F 0F configure a network server, or network 0F, if the switch configuration 0F configured management port does not exist, then the switch 0F The said first port receiving a query message as the configuration of the management port switch 0F.

[0156] 步骤306、0F交换机根据所述查询消息生成应答消息。 [0156] Step 306,0F switch generates a response message according to the query message.

[0157] 在0F交换机根据所述查询消息成功设置该0F交换机的配置管理端口之后,再按照该0F交换机中存储的流表查找转发规则,所述转发规则为0F交换机与0F控制器之间进行消息交互时所需要的转发路径。 After [0157] the management port configured successfully provided 0F 0F switch in the switch according to the query message, then forwarding rules in accordance with the lookup table stored in the stream 0F switch is performed between the forwarding rules 0F 0F controller and switch when the message needed to interact forwarding path. 若找到匹配的流表,则0F交换机按照流表转发该查询消息。 If the flow table match is found, the switch forwards the query message 0F in accordance with the flow table. 若没有找到匹配的流表,则0F交换机生成应答消息,所述应答消息包括所述0F交换机的身份标识。 If the matching flow table is not found, it generates a response message 0F switch, the response message comprising the identity of said switch 0F. 本发明实施例假设0F交换机没有查找到匹配的流表,所述0F交换机生成应答消息。 Example assumed 0F switch does not find the matching flow table embodiment of the present invention, the switch generates a response message 0F.

[0158] 所述应答消息包括以太网层信息,IP层信息,应用层信息。 [0158] The layer information response message including Ethernet, IP layer information, application layer information. 所述应答消息的格式如表2所示。 The response message format as shown in Table 2.

[0159] 表2应答消息格式 [0159] response message format of Table 2

[0160] [0160]

Figure CN104734877AD00201

[0161] [0161]

Figure CN104734877AD00211

[0162] 具体的,如表2所示,所述应答消息的应用层信息包括:MAC地址字段,用于标示所述0F交换机的MAC地址,为所述应答消息必须携带的字段;标志位(Flags)字段,用于标志是否存在MAC地址、MAC地址掩码(MACMask)、IPv4地址、IPv4地址掩码(IPv4Mask)、IPv6 地址、IPv6地址掩码(IPv6Mask)、数据链路地址(DataPathID)、数据链路地址掩码(Data PathIDMask)字段,该标志位字段可以为八位,通常用1表示有,用0表示无,若所述标志位中的MAC地址、IPv4地址、IPv6地址、数据链路地址存在,则相应字段的掩码(Mask)值全部为1,若所述标志位中的MAC地址、IPv4地址、IPv6地址、数据链路地址不存在,则省略相应所述字段和所述字段的掩码字段,并将标志位(Flags)字段中相应位置置0 ;链路类型(LinkType)字段指示0F配置服务器连接类型,链路端口(LinkPort)字段指示0F配置服务器连接端口 [0162] Specifically, as shown in Table 2, the application layer information response message comprises: MAC address of the field, the MAC address for the designated switch 0F, is carried in the reply message must field; flag ( flags) field, whether there is a flag for a MAC address, MAC address mask (MACMask), IPv4 address, the IPv4 address mask (IPv4Mask), IPv6 address, IPv6 address mask (IPv6Mask), a data link address (DataPathID), address mask data link (data PathIDMask) field, the field may be eight bit flag, there is generally indicated with 1, with 0 indicating no, if the MAC address of the flag, the IPv4 address, IPv6 address, data link Road address exists, the corresponding field mask (mask) values ​​are all 1, if the MAC address of the flag, the IPv4 address, IPv6 address, data link address does not exist, the field is omitted and the respective field of the mask, and the flag bit (the flags) field set to 0 in the corresponding position; link type (the LinkType) field indicates the connection type 0F configuration server, link ports (LinkPort) field indicates the configuration server port 0F ,在本实施例中的应答消息未使用所述链路类型字段和所述链路端口字段。 , Examples response message type field is not using said link and said link port field in the present embodiment. 所述数据链路地址(DataPathID)用于在0F网络中标示0F交换机的身份,由该交换机列表层携带的所述MAC地址生成。 The data link address (DataPathID) for indicating the identity 0F 0F switches in the network, the exchange list carried by the MAC layer address generation.

[0163] 所述以太网层信息包括:DstMAC地址字段,用于标识将所述应答消息发送给所述0F配置服务器时,所述应答消息携带的所述0F配置服务器的MAC地址;SrcMAC地址字段, 用于标识发送所述应答消息的所述0F交换机的MAC地址。 [0163] The information comprises Ethernet layer: DstMAC the address field, used to identify the response message to the configuration server 0F, the response message carries the MAC address of the configuration server 0F; SrcMac address field , MAC address is used to identify the sending of the response message 0F switch.

[0164] 所述IP层信息包括:Dst IP地址字段,用于标识将所述应答消息发送给所述OF配置服务器时,所述应答消息携带的所述0F配置服务器的IP地址;Src IP地址字段,用于标识发送所述应答消息的所述0F交换机的IP地址。 [0164] The IP layer information comprises: Dst IP address field for identifying the response message to the configuration server when the OF, the response message carries the IP address of the configuration server 0F; the Src IP Address field, IP address, the means for transmitting said response message identifier 0F switch.

[0165] 所述应用层信息还包括:版本号(Version)字段,用于标识配置和管理协议的版本信息,所述配置和管理协议为0F配置服务器与0F交换机进行消息交互所使用的协议,即其中包括所述应答消息的内容;消息类型(Type)字段,用于标识消息的类型,该字段中不同的消息类型值指示不同的消息类型,示例的,若消息类型值为〇指示为查询消息,若消息类型值为1指示为应答消息,若消息类型值为2指示为通告消息,因此,在本实施例中所述应答消息的消息类型字段为1 ;HL值字段,用于标识所述应答消息的转发次数,该HL值字段中的不同数值指示应答消息不同的转发次数;优先级(priority)字段,用于标识所述0F配置服务器的优先级;交换机列表长度(Switch list length)字段,用于指示配置和管理协议中交换机列表的长度,其可以用大于或等于1的整数表示;校验和 [0165] The application layer information further comprises: a version number (Version) field for identifying the configuration and version information management protocol, the configuration management protocol and the protocol used for message exchange 0F 0F configuration server and the switch, i.e., wherein the response message includes a content; message type values ​​different message type (type) field that identifies the type of message, this field indicates different message types, example, if the message type is indicated as square query message, if the message type is indicated as a response message, if the message type is indicated as 2 advertisement message, therefore, a message type field in the present embodiment, the response message is 1; the value of HL field for identifying the number of said response message forwarding, the HL field value indicating the different values ​​of different frequency and forwards the response message; priority (priority) field for identifying the priority 0F configuration server; list length switch (switch list length) field to indicate the length of the configuration and management protocol list of the switches, which may be greater than or equal to 1 represents an integer; checksum (Checksum)字段,用来校验所述应答消息在传输过程中的正确性;En-64字段即64位全局标示符,该EUI-64用于唯一标识所述0F交换机的身份,所述EUI-64还可以用于唯一标识0F配置服务器、0F控制器等0F设备的身份。 (Checksum) field, used to verify the correctness of the response message transmission process; En-64 64-bit field that is a global identifier, the EUI-64 0F for uniquely identifying the identity of the switch, the EUI -64 may also be used to uniquely identify the identity of the server configuration 0F, 0F 0F controller devices.

[0166] 步骤307、0F交换机向0F配置服务器发送应答消息。 [0166] Step 307,0F 0F switch sends a response message to the configuration server.

[0167] 在0F交换机生成应答消息之后,根据接收到的所述查询消息,通过该0F交换机的配置管理端口,向0F配置服务器发送该应答消息,以便于0F配置服务器根据该应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息,再者,0F交换机通过所述配置管理端口接收0F配置服务器发送的所述通告消息,根据该通告消息中的0F配置服务器的配置信息与0F配置服务器建立连接。 [0167] After 0F switch generates a response message according to the received query message, transmits the response message to the configuration server 0F configuration management 0F port of the switch, in order to generate 0F advertisement message according to the configuration server the response message the advertisement message includes the configuration information of the configuration server 0F, furthermore, the switch 0F advertisement message by the configuration of the management port receives configuration server 0F transmitted, according to the configuration information in the advertisement message configuration server and 0F 0F configure the server to establish a connection.

[0168] 需要说明的是,实际应用中可能存在至少两个0F交换机接收到查询消息生成应答消息,则每个所述0F交换机向0F配置服务器发送应答消息,因此,存在至少两个不同0F 交换机信息的应答消息。 [0168] Incidentally, the practical application may exist at least two switches receives an inquiry message 0F generates a response message, each of said 0F 0F switch sends a response message to the configuration server, and therefore, there are at least two different switches 0F the response message information.

[0169] 步骤308、0F配置服务器根据所述应答消息生成通告消息。 [0169] Step 308,0F configuration server that generated the notification message according to the response message.

[0170] 在0F配置服务器接收到所述0F交换机通过所述配置管理端口发送的应答消息之后,根据所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息。 [0170] the receiving switch 0F 0F by the configuration after the configuration server a response message sent by the management port, according to the response message that generated the notification message, the advertisement message includes the configuration information of the configuration server 0F.

[0171] 所述通告消息包括以太网层信息,IP层信息,应用层信息。 [0171] The advertisement information message comprises an Ethernet layer, IP layer information, application layer information. 所述通告消息的格式如表3所示。 The advertisement message format as shown in Table 3.

[0172] 表3通告消息格式 [0172] Table 3 Advertisement message format

[0173] [0173]

Figure CN104734877AD00231

[0174] [0174]

Figure CN104734877AD00241

[0175]具体的,如表3所示,所述通告消息的以太网层信息包括:DstMAC地址字段,用于标识将所述通告消息发送给所述0F交换机时,所述通告消息携带的所述0F交换机的MAC 地址;Src MAC地址字段,用于标识发送所述通告消息的所述OF配置服务器的MAC地址。 [0175] Specifically, as shown in Table 3, the Ethernet layer information announcement message comprises: DstMAC address field for identifying the message sent to the advertisement 0F switch carried by the advertisement message MAC address 0F said switch; the Src MAC address field, the MAC address for sending the advertisement message identifies the configuration server oF.

[0176] 所述IP层信息包括:Dst IP地址字段,用于标识将所述通告消息发送给所述0F交换机时,所述通告消息携带的所述0F交换机的IP地址;Src IP地址字段,用于标识所述0F 配置服务器的IP地址。 [0176] The IP layer information comprises: Dst IP address field for identifying the message sent to the advertisement 0F switch, the IP address of the advertisement message carried 0F switch; the Src IP Address field, 0F for identifying the IP address of the configuration server.

[0177] 所述应用层信息包括:版本号(Version)字段,用于标识配置和管理协议的版本信息,所述配置和管理协议为0F配置服务器与0F交换机进行消息交互所使用的协议,即其中包括所述通告消息的内容;消息类型(Type)字段,用于标识消息的类型,该字段中不同的消息类型值指示不同的消息类型,示例的,若消息类型值为〇指示为查询消息,若消息类型值为1指示为应答消息,若消息类型值为2指示为通告消息,因此,在本实施例中所述通告消息的消息类型字段为2 ;HL值字段,用于标识所述通告消息的转发次数,该HL值字段中的不同数值指示通告消息不同的转发次数;优先级(priority)字段,用于标识所述0F配置服务器的优先级;交换机列表长度(Switch list length)字段,用于指示配置和管理协议中交换机列表的长度,其可以用大于或等于1的整数表示;校验和( [0177] The application layer information comprises: a version number (Version) field for identifying the configuration and version information management protocol, the configuration management protocol and the protocol used for message exchange 0F 0F configuration server and the switch, i.e., wherein the content of the advertisement message comprises; a different message type (type) field that identifies the type of message, the message type field value indicating a different message type, of example, if the message type is indicated as square query message If the message type is indicated as a response message, if the message type is indicated as 2 advertisement message, therefore, a message type field in the present embodiment, the advertisement message is 2; the value of HL field for identifying the number advertisement message forwarding, different advertisement message indicating that the value of HL field value number of repeats; priority (priority) field for identifying the priority 0F configuration server; list length switch (switch list length) field , for indicating the length and configuration management protocol list of the switches, which may be equal to or greater than 1 represents an integer; checksum ( Checksum)字段,用来校验所述通告消息在传输过程中的正确性;EUI-64字段即64位全局标不符,该EUI-64用于唯一标示所述0F配置服务器的身份,所述EUI-64还可以用于唯一标示0F交换机、0F控制器等0F设备的身份。 Checksum) field, used to verify the correctness of the announcement message transmission process; i.e., EUI-64 field 64 does not match the global standard, the EUI-64 labeled unique identity for the configuration server 0F, the EUI -64 may also be used to uniquely identify the identity of the switch 0F, 0F 0F controller devices.

[0178] 所述应用层信息包括:标志位(Flags)字段,用于标志MAC地址、MAC地址掩码(MAC Mask)、IPv4地址、IPv4地址掩码(IPv4Mask)、IPv6地址、IPv6地址掩码(IPv6Mask)、数据链路地址(Data Path ID)、数据链路地址掩码(Data Path ID Mask)字段,该标志位字段可以为八位,通常用1表示有,用0表示无,若所述标志位中的MAC地址、IPv4地址、IPv6地址、数据链路地址存在,则相应字段的掩码(Mask)值全部为1,若所述标志位中的MAC地址、 IPv4地址、IPv6地址、数据链路地址不存在,则省略相应所述字段和所述字段的掩码字段, 并将标志位(Flags)字段中相应位置置0 ;链路类型(Link Type)字段指示0F配置服务器连接类型,0F配置服务器通告0F交换机连接所述0F配置服务器时应该使用的网络协议,例如TCP (Transmission Control Protocol,传输控制协议)、UDP (User Datagram Protocol, 用户数据报协议) [0178] The application layer information includes: a flag bit (the Flags) field, the flag for the MAC address, MAC address mask (MAC Mask), IPv4 address, the IPv4 address mask (IPv4Mask), IPv6 address, IPv6 address mask (IPv6Mask), a data link address (data Path ID), a data link address mask (data Path ID mask) field, the field may be eight bit flag, there is generally indicated with 1, with 0 indicating no, if the MAC address bits, the IPv4 address, IPv6 address, said data link address flag is present, the corresponding field mask (mask) values ​​are all 1, if the MAC address of the flag, the IPv4 address, IPv6 address, a data link address does not exist, the corresponding field and the mask field of the field, and flag bit (the flags) omitted field set to 0 in the corresponding position; link type (link type) field indicates the type of connection configuration server 0F , advertisement 0F 0F configuration server connected to the switch configuration server 0F network protocol should be used, for example, TCP (transmission control protocol, transmission control protocol), UDP (user datagram protocol, user datagram protocol) 等,为所述通告消息必须携带的字段,链路端口(Link Port)字段指示OF 配置服务器连接端口,OF配置服务器通告OF交换机连接该OF配置服务器时应该使用的网络协议的端口号,例如TCP端口号、UDP端口号等,为所述通告消息必须携带的字段。 And the like, a network protocol port number of the advertisement message must carry field, the link connected to (Link Port) field indicates OF port configuration server, the configuration server advertise OF OF OF configuration server connected to the switch should be used, such as a TCP port number, UDP port number, the field must carry advertisement message. 特别的,所述通告消息的交换机列表层携带了至少一个0F交换机的信息。 In particular, the list of switches layer advertisement message carries information of the at least one switch 0F.

[0179] 需要说明的是,IPv4是IP (Internet Protocol,互联网协议)的第四版,IPv6是IP (Internet Protocol,互联网协议)的第六版,也是IPv4的下一代互联网协议,IPv6将IPv4的IP地址由32位增加到128位,所述通告消息中携带的IPv4地址根据所述通告消息中携带的MAC地址分配得到所述IPv4地址,或所述通告消息中携带的IPv6地址根据所述通告消息中携带的MAC地址分配得到所述IPv6地址;数据链路地址(Data Path ID)与MAC 地址作用相同用于标识所述OF交换机的唯一身份。 [0179] It should be noted, IPv4 is the IP (Internet Protocol, Internet Protocol) fourth edition, IPv6 is an IP (Internet Protocol, Internet Protocol) of the Sixth Edition, the next-generation Internet protocol is IPv4, IPv6 to IPv4's IP address consists of 32 bits to 128 bits, the advertisement message carries the IPv4 address of the IPv4 address obtained according to the MAC address assignment message carries the advertisement or the advertisement message carries the IPv6 address according to the advertised message carries the MAC address is assigned to obtain the IPv6 address; data-link address (data Path ID) and MAC address unique identifier for the action of the same switch oF. 所述通告消息包括的MAC地址、IPv4 地址或IPv6地址为所述0F交换机与所述0F配置服务器之间建立连接所需要的配置信息。 The advertisement message includes the MAC address, IPv4 address or IPv6 address and the switch between 0F 0F configuration server configuration information to establish the required connection. 所述配置信息为指明所述0F交换机与所述0F配置服务器之间建立连接所需要的协议和所述协议的端口号,例如TCP协议、UDP协议和所述TCP协议端口号、所述UDP协议端口号用于指定0F配置服务器所需要连接的0F交换机;所述通告消息包括多个所述0F交换机列表层信息,收到所述通告消息的所述OF交换机在该OF交换机流表里查找与所述配置信息相匹配的信息,即所述OF交换机列表层信息中以标志位(Flags)开头到下一个标志位(Flags) 结尾的OF交换机列表层信息内容作为一项,与该OF交换机流表的信息比较,若收到所述通告消息的所述OF交换机在该OF交换机流表里查找到与所述配置信息相匹配的信息,则所述OF交换机根据所述相匹配的信息来与所述OF配置服务器进行连接,所述相匹配的信息包括所述通告消息中携带的OF配置服务器连接类型和OF配置服务器连接端口等。 Establishing a port number of the protocol and the configuration information required for the connection protocol between the switch and indicating the 0F 0F configuration server, such as the TCP protocol, the UDP protocol and TCP protocol port, the UDP protocol is used to specify the port number 0F 0F configuration server connected to the switch required; the advertisement message comprises a list of a plurality of said switches 0F information layer, the switch receiving the advertisement message oF in the lookup table with the stream switch oF It matches the configuration information, i.e. the information layer oF list to switch flag (the flags) to the beginning of the next flag (the flags) SUMMARY oF layer information exchange list as an end, the flow switch oF information comparison table, if the switch receiving the advertisement message oF find the configuration information matches the information in the stream list oF switch, then the switch according to the information matched to the oF the configuration server oF connect to the matching information announcement message including the configuration server carried in oF oF connection type and port configuration server and the like.

[0180] 步骤309、0F配置服务器向0F交换机发送通告消息。 [0180] Step 309,0F configuration server sends notification messages to the switch 0F.

[0181] 在0F配置服务器生成通告消息之后,以组播的方式通过IP网络向0F交换机发送所述通告消息,0F交换机接收到所述通告消息后,获取到所述0F配置服务器的配置信息, 然后,0F交换机根据所述配置信息与所述0F配置服务器建立连接。 [0181] After 0F configuration server generates a notification message in a multicast message to send the announcement 0F switch over an IP network, after receiving the switch 0F advertisement message to obtain the configuration information to the configuration server 0F, then, the switch 0F establishing a connection according to the configuration information and the configuration server 0F. 所述通告消息包括所述0F交换机与所述0F配置服务器建立连接所需要的配置信息。 The advertisement message includes the configuration information 0F switch establishing the desired connection configuration server 0F.

[0182] 示例的,如图4所示,本发明实施例假设0F网络包括第一0F配置服务器401、第二0F配置服务器402、第一0F交换机403、第二0F交换机404和实线椭圆表示第一网络405, 假设第一网络为IP网络,该IP网络包括第一路由器4051、第二路由器4052和第三路由器4053。 [0182] The example shown in Figure 4, the embodiment comprises a first network is assumed 0F 0F configuration server 401 of the present invention, a second configuration server 402 0F, 0F first switch 403, second switch 404 0F and a solid line represents the ellipse a first network 405, assuming that the first network is an IP network, the IP network 4051 comprises a first router, a second router 4052 and the third router 4053. 其中,第一路由器4051与第二0F交换机404相连,第三路由器4053与第一0F交换机403相连,即第一路由器4051和第三路由器4053为边缘路由器,第二路由器4052连接第一0F配置服务器401和第二0F配置服务器402,且IP网络内的第一路由器4051、第二路由器4052和第三路由器4053之间相互连接。 Wherein the first and second 0F router 4051 connected to the switch 404, the third router 4053 connected to the first switch 403 0F, i.e., a first router 4051 and the router 4053 to the third edge router, a second router 4052 connected to a first configuration server 0F 0F configuration 401 and the second server 402, and a first IP router within the network 4051, the second router interconnected between a third router 4052 and 4053.

[0183] 假设第一0F交换机403和第二0F交换机404加入同一个组播组,且第一0F交换机403和第二0F交换机404的已配置的配置管理端口的优先级为第一0F配置服务器401 的优先级。 [0183] Assuming that the first switch 403 0F 0F and second switch 404 to join the same multicast group, and the priority of the first management port configuration switch 403 0F 0F and second switch 404 is configured of a first configuration server 0F 401 priority. 当第二0F配置服务器402生成查询消息,可以通过该IP网络中的第一路由器4051、第二路由器4052和第三路由器4053将查询消息组播给第一0F交换机403和第二0F 交换机404,第一OF交换机403从该第一OF交换机403的第一端口接收查询消息,第二OF 交换机404从该第二OF交换机404的第一端口接收查询消息,假设第一OF配置服务器401 的优先级小于第二0F配置服务器402的优先级,则将第一0F交换机403的第一端口作为配置管理端口,将第二0F交换机404的第一端口作为配置管理端口,第一0F交换机403和第二0F交换机404生成应答消息,可以将应答消息发送给第一0F配置服务器401和第二0F配置服务器402,第一0F配置服务器401和第二0F配置服务器402根据应答消息生成通告消息,将通告消息发送给第一0F交换机403和第二0F交换机404。 0F When the second server 402 generates a query message configured to be 4051, 4052 and a second router 4053 third router multicast query message over the IP network to a first router in a first switch 403 0F 0F and second switches 404, the first switch 403 oF oF the first switch 403 from a first port for receiving the query message, the second switch 404 oF oF second switch 404 from the first port receiving a query message, assuming that the first priority oF configuration server 401 less than the second configuration server 402 0F priority, then the first switch 403 0F first port as a management port configuration, a first port of the second switch 404 0F as configuration management port, a first switch 403 and second 0F 0F switch 404 generates a response message, the response message may be sent to the first server 401 and the second configuration 0F 0F configuration server 402, configuration server 401 of the first and second 0F 0F configuration server 402 according to the response message that generated the notification message, the advertisement message 0F sent to the first switch 403 and second switch 404 0F. 本发明实施例所述的0F网络只是示意性说明,实际应用中可以是其他网络结构,对此不做限定。 0F network in the embodiment of the present invention is illustrative only. In practice the network may be of other configuration, which is not limited.

[0184] 需要说明的是,本发明实施例所述0F交换机先加入特定的组播组,0F配置服务器采用组播方式通过IP网络发送查询消息查询0F交换机,只要加入特定的组播组的0F交换机就可以被0F配置服务器发现,因此0F交换机可以根据收到的查询消息设置0F交换机的配置管理端口,然后,通过配置管理端口获取0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0184] Incidentally, the embodiment of the present invention, the first embodiment switches 0F join a particular multicast group, multicast mode 0F configuration server sends a query message via an IP network switch queries 0F, as long as the addition of a specific multicast group 0F switch can be configured 0F server discovery, the switch may be provided so 0F 0F configuration management port switch according to the received query message, then the port configuration information 0F configuration management configuration server, establish a connection with the configuration server 0F. 特别的,当存在至少两个0F配置服务器时,由于0F交换机回复给0F配置服务器的应答消息也是组播消息,所以在同一特定的组播组里的0F配置服务器均可以收到该组播应答消息,因此这些0F配置服务器之间可以协商如何分配管理0F交换机的范围, 所述0F配置服务器可以通过预先配置的列表来指定每个0F配置服务器管理的0F交换机, 还可以通过配置和管理协议协商每个0F配置服务器各自管理的0F交换机。 In particular, when at least two 0F configuration server, since the switch 0F 0F reply to the response message is a multicast message server configuration, so the same multicast group specified in the configuration server 0F can receive both the multicast response message, can be negotiated between the configuration server the allocation management 0F 0F range switch, the configuration server may be specified 0F 0F 0F for each switch configuration server managed by a list of pre-configured, may be negotiated by the configuration and management protocol each server configuration 0F 0F each managed switch.

[0185] 本发明实施例所述的OF交换机与OF配置服务器通过IP网络进行消息的路由转发只是示意性说明,实际应用中还可以使用其他具有路由转发功能的网络进行消息的路由转发,本发明对此不做限定。 [0185] OF switches in the embodiment of the present invention relates to a message routing OF configuration server via an IP network merely forwards schematic illustration, a practical application can also be used with other network routing forwarding message routing function will be forwarded, the present invention which is not limited.

[0186] 本发明实施例提供的获取配置服务器信息的方法,首先0F交换机上电后主动加入特定的组播组,IP网络内的路由器建立组播转发路径,然后,0F配置服务器生成查询消息,0F配置服务器向0F交换机发送查询消息,0F交换机接收到查询消息后,根据所述查询消息设置所述0F交换机的配置管理端口,0F交换机再根据所述查询消息生成应答消息,向0F配置服务器发送应答消息,0F配置服务器根据所述应答消息生成通告消息,向0F交换机发送通告消息,0F交换机接收到通告消息后,获取到所述0F配置服务器的配置信息,最后,0F交换机根据所述配置信息与所述0F配置服务器建立连接。 [0186] The method of acquiring configuration information server according to an embodiment of the present invention, the first switch 0F electrically active after addition of a specific multicast group, the IP network routers to establish multicast forwarding path, and then, the configuration server generates a query message 0F, after the configuration server 0F 0F send a query message to the switch, the switch 0F receiving the query message, set the configuration of the management port 0F switch according to the query message, and then generates a response message 0F switch according to the query message, the configuration server sends 0F response message, 0F configuration server a response message generated according to the advertisement message, the switch sends notification message to 0F, 0F switch after receiving the advertisement message, obtains configuration information of the configuration server 0F, finally, according to the configuration information of the switch 0F 0F establish a connection with the configuration server. 所述通告消息包括所述0F交换机与所述0F配置服务器建立连接所需要的配置信息。 The advertisement message includes the configuration information 0F switch establishing the desired connection configuration server 0F. 从而能够使0F交换机自动获取0F配置服务器的配置信息,避免了手工设置0F配置服务器的配置信息的工作量大且不够灵活的问题。 Thereby enabling 0F 0F switch automatically obtain configuration information to configure the server, avoiding manual settings to configure the server configuration information 0F's heavy work load and inflexible problem.

[0187] 本发明实施例提供一种开放流0F交换机50,如图5所示,包括: [0187] The present invention provides a flow 0F open switch 50, shown in Figure 5, comprising:

[0188] 第一接收单元501,用于接收0F配置服务器发送的查询消息,所述查询消息包含用于标识所述0F配置服务器的参数。 [0188] The first receiving unit 501, configured for receiving a query message sent by the server 0F, the query message contains parameters identifying the configuration server 0F.

[0189] 设置单元502,用于根据所述查询消息设置所述0F交换机的配置管理端口。 [0189] setting unit 502 for setting the configuration management port 0F switch according to the query message.

[0190] 第一获取单元503,用于通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0190] The first acquiring unit 503, a management port 0F to obtain configuration information of the server configuration by the configuration, establish a connection with the configuration server 0F.

[0191] 这样一来,0F交换机根据接收到的0F配置服务器发送的查询消息设置所述0F交换机的配置管理端口,通过配置管理端口与所述0F配置服务器建立连接,获取0F配置服务器的配置信息,从而能够使0F交换机自动获取0F配置服务器的配置信息,避免了手工设置0F配置服务器的配置信息的工作量大且不够灵活的问题。 [0191] Thus, the switch 0F inquiry message transmitted according to the received configuration settings 0F configuration server management port of the switch 0F, establish a connection with the configuration management port 0F configuration server, the configuration server to obtain configuration information of 0F , thereby enabling the switch to automatically obtain configuration information 0F 0F configure a server, avoiding manual settings to configure the server configuration information 0F's heavy work load and inflexible problem.

[0192] 所述第一接收单元501具体用于: [0192] The first receiving unit 501 is specifically configured to:

[0193] 从所述0F交换机的第一端口接收所述0F配置服务器发送的所述查询消息;则 [0193] received from the first port of the switch 0F 0F said query message sent by the configuration server; the

[0194] 所述设置单元502具体用于: [0194] The setting unit 502 is specifically configured to:

[0195] 根据所述查询消息设置所述第一端口为所述0F交换机的配置管理端口。 [0195] Configuration Manager message port is disposed the first port of the switch according to the query 0F.

[0196] 所述设置单元502具体用于: [0196] The setting unit 502 is specifically configured to:

[0197] 查询所述0F交换机是否存在已配置的配置管理端口。 [0197] The query whether there 0F switch configuration management port configured.

[0198] 若所述0F交换机存在已配置的配置管理端口,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级。 [0198] When the present 0F switch configuration management port configured to compare the priority of the first priority port configuration management port configured.

[0199] 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述0F交换机的配置管理端口。 [0199] When the priority is lower than the priority of the first port of the configuration management port configured, the first port as a management port configuration of the switch 0F.

[0200] 所述查询消息中包括:所述0F配置服务器的优先级,则 [0200] The query message comprises: configuration 0F priority of the server,

[0201] 如图6所示,所述0F交换机50还包括: [0201] As shown in FIG 6, the switch 50 0F further comprising:

[0202] 第二获取单元504,用于在所述查询消息中获取所述0F配置服务器的优先级作为所述第一端口的优先级。 [0202] The second obtaining unit 504, configured to obtain the configuration server 0F priority as the priority of the first port in the query message.

[0203] 所述查询消息包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数, 则 [0203] The query message comprising: a hop limit value, the hop limit value for indicating the number of forwarding the query message, the

[0204] 所述OF交换机50还包括: [0204] The switch 50 further comprises OF:

[0205] 确定单元505,用于确定所述查询消息中的跳限制值是否等于零。 [0205] determination unit 505 for determining the query hop limit value in the message is equal to zero.

[0206] 丢弃单元506,用于若所述查询消息中的跳限制值等于零,丢弃所述查询消息。 [0206] discarding unit 506, if the query hop limit for the message is equal to zero, discarding the query message.

[0207] 更新单元507,用于若所述查询消息中的跳限制值不等于零,更新所述查询消息中的跳限制值为当前跳限制值-1。 [0207] updating unit 507, if the query hop limit for the message value is not equal to zero, updating the query hop limit value message in the current hop limit value -1.

[0208] 所述0F交换机还包括: [0208] The 0F switch further comprises:

[0209] 生成单元508,用于生成应答消息,所述应答消息包括所述0F交换机的身份标识。 [0209] generating unit 508 for generating a response message, said response message comprising the identity of said switch 0F.

[0210] 发送单元509,用于通过所述配置管理端口,向所述0F配置服务器发送应答消息, 以便于所述0F配置服务器根据所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息。 [0210] transmitting unit 509 configured by the configuration management port, sends a response message to the configuration server 0F, 0F to the configuration server to generate a response message according to the advertisement message, the advertisement message comprises 0F configuration information for the server.

[0211] 第二接收单元5010,用于通过所述配置管理端口接收所述0F配置服务器发送的通告消息。 [0211] The second receiving unit 5010, a management port configured 0F receiving the announce message sent through the server configuration.

[0212] 建立单元5011,用于根据所述通告消息中的所述0F配置服务器的配置信息与所述0F配置服务器建立连接。 [0212] establishing unit 5011 for establishing a connection according to the advertisement message configuration information in the configuration server 0F 0F with the configuration server.

[0213] 本发明实施例提供一种0F配置服务器60,如图7所示,包括: [0213] The present invention provides a 0F configuration server 60, shown in Figure 7, comprising:

[0214] 第一生成单元601,用于生成查询消息,所述查询消息包含用于标识所述0F配置服务器的参数。 [0214] a first generation unit 601 for generating a query message, the query message contains parameters identifying the configuration server 0F.

[0215] 第一发送单元602,用于向0F交换机发送所述查询消息,以便于所述0F交换机根据所述查询消息设置所述0F交换机的配置管理端口并通过所述配置管理端口获取所述0F 配置服务器的配置信息,与所述OF配置服务器建立连接。 [0215] The first sending unit 602, configured to send the query message 0F switch, in order to set the configuration management port 0F switch according to the query message to the management port 0F switch and configured by obtaining the 0F of configuration information to configure the server to establish connection with the server oF configuration.

[0216] 这样一来,首先,0F配置服务器生成查询消息,然后,向0F交换机发送该查询消息,以便于0F交换机根据所述查询消息设置0F交换机的配置管理端口并通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接,从而能够使0F 交换机自动获取OF配置服务器的配置信息,避免了手工设置OF配置服务器的配置信息的工作量大且不够灵活的问题。 [0216] Thus, firstly, 0F configuration server generates a query message, then sends the query message to the switch 0F, 0F to set the configuration management port switch according to the query message 0F switch port via the configuration manager acquires configuration information of the configuration server 0F, 0F to establish connection with the configuration server, thereby enabling the switch to automatically obtain configuration information 0F oF configuration server, to avoid the heavy workload to manually set the configuration information oF configuration server and not flexible enough problem.

[0217] 所述查询消息中包括:所述0F配置服务器的优先级,所述0F配置服务器的优先级用于若所述0F交换机存在已配置的配置管理端口,且所述已配置的配置管理端口的优先级小于所述0F配置服务器的优先级时,将所述接收所述查询消息的端口作为所述0F交换机的配置管理端口,并将所述配置管理端口的优先级设置为所述0F配置服务器的优先级。 [0217] The query message comprises: priority of the configuration server 0F, 0F priority of the configuration server if the presence of a configuration manager configured port 0F switch, and the configuration manager configured when the priority is lower than the priority 0F configuration server port, the port receiving the query message as the configuration of the management port 0F switch, the configuration and management port to said priority 0F configure the server priority.

[0218] 所述查询消息中包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,以便所述0F交换机在所述跳限制值等于零时,丢弃所述查询消息,在所述跳限制值不等于零时,更新所述跳限制值为当前跳限制值-1。 [0218] The query message comprising: a hop limit value, the limit value for the number of hops to forward the query message to indicate to the switch when the 0F hop limit value is equal to zero, discarding the query message, when the hop limit value is not equal to zero, updating the hop limit value for the current hop limit value -1.

[0219] 如图8所示,所述0F配置服务器60还包括: [0219] As shown in FIG. 8, the configuration server 0F 60 further comprising:

[0220] 接收单元603,用于接收所述0F交换机通过所述配置管理端口发送的应答消息, 所述应答消息包括所述0F交换机的身份标识。 [0220] The receiving unit 603, configured to receive the switch configuration 0F response message sent by the management port, said response message comprising the identity of said switch 0F.

[0221] 第二生成单元604,用于根据所述接收单元接收的所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息。 [0221] The second generation unit 604, according to a response for the message receiving unit receives the message that generated the notification, the advertisement message includes the configuration information of the configuration server 0F.

[0222] 第二发送单元605,用于向所述0F交换机发送所述第二生成单元生成的所述通告消息,以便于所述0F交换机根据所述通告消息中的所述0F配置服务器的配置信息与所述OF配置服务器建立连接。 [0222] The second sending unit 605, configured to send the second advertisement message generating unit 0F to the switch so as to switch the 0F advertisement message according to the configuration server the configuration 0F oF configuration information and the connections to the server.

[0223] 本发明实施例提供一种通信系统70,如图9所示,包括:至少一个如0F配置服务器701和至少一个如0F交换机702, [0223] The present invention provides a communication system 70, as shown in Figure 9, comprising: at least a configuration server, such as 701 0F and at least one switch 702 as 0F,

[0224] 所述0F配置服务器701用于生成查询消息,所述查询消息包含用于标识所述0F 配置服务器的参数;向所述〇F交换机发送所述查询消息; [0224] The configuration server 701 0F for generating a query message, the query message contains parameters identifying the 0F configuration server; transmitting the query message to the switch 〇F;

[0225] 所述0F交换机702用于接收0F配置服务器发送的所述查询消息;根据所述查询消息设置所述0F交换机的配置管理端口;通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 The [0225] The switch 702 0F 0F for receiving a query message sent by the configuration server; 0F setting configuration management port of the switch according to the query message; 0F acquiring the configuration server configured by the configuration management port information, establishing a connection with the configuration server 0F.

[0226] 所述0F交换机702具体用于: [0226] The switch 702 is configured to 0F:

[0227] 查询所述0F交换机是否存在已配置的配置管理端口; [0227] The query whether there is a configuration management 0F switch port (s);

[0228] 若所述0F交换机存在已配置的配置管理端口,在所述查询消息中获取所述0F配置服务器的优先级作为所述第一端口的优先级,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级,其中,所述第一端口为所述0F交换机接收所述查询消息的端n; [0228] When the present 0F switch configuration management port configured to obtain the configuration server 0F priority as the priority of the first port in the query message, comparing the configuration management port configured priority of the priority of the first port, wherein the first port receiving the query message for said n-side switch 0F;

[0229] 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述0F交换机的配置管理端口。 [0229] When the priority is lower than the priority of the first port of the configuration management port configured, the first port as a management port configuration of the switch 0F.

[0230] 所述0F交换机702还用于: [0230] The switch 702 is further configured to 0F:

[0231] 生成应答消息,所述应答消息包括所述0F交换机的身份标识,通过所述配置管理端口,向所述0F配置服务器发送应答消息; [0231] generates a response message, said response message comprising the identity of said switch 0F, by the configuration management port configuration server sending a reply message to the 0F;

[0232] 通过所述配置管理端口接收所述0F配置服务器发送的通告消息; [0232] 0F port for receiving the announce message sent by the configuration server configuration management;

[0233] 根据所述通告消息中的所述0F配置服务器的配置信息与所述0F配置服务器建立连接; [0233] The configuration information to establish a connection to the advertisement message to the configuration server 0F 0F with the configuration server;

[0234] 所述0F配置服务器701还用于: [0234] The configuration server 701 0F further configured to:

[0235] 接收所述0F交换机通过所述配置管理端口发送的应答消息; [0235] 0F receiving the switch through the configuration management response message sent by the port;

[0236] 根据所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息; [0236] generated the notification message according to the response message, the advertisement message includes the configuration information 0F configuration server;

[0237] 向所述0F交换机发送所述通告消息。 [0237] transmits the advertisement to the message switch 0F.

[0238] 本发明实施例提供一种0F交换机80,如图10所示,包括: [0238] The present invention provides a 0F switches 80, 10, comprising:

[0239] 接收机801,用于接收0F配置服务器发送的查询消息,所述查询消息包含用于标识所述0F配置服务器的参数。 [0239] The receiver 801, configured for receiving a query message sent by the server 0F, the query message contains parameters identifying the configuration server 0F.

[0240] 处理器802,用于根据所述查询消息设置所述0F交换机的配置管理端口。 [0240] processor 802, to set the configuration management port 0F switch according to the query message.

[0241] 所述处理器802还用于通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0241] The processor 802 is further configured to obtain configuration information of the management port 0F configuration server through the configuration, establish a connection with the configuration server 0F.

[0242] 这样一来,0F交换机根据接收到的0F配置服务器发送的查询消息设置所述0F交换机的配置管理端口,通过配置管理端口与所述0F配置服务器建立连接,获取0F配置服务器的配置信息,从而能够使0F交换机自动获取0F配置服务器的配置信息,避免了手工设置0F配置服务器的配置信息的工作量大且不够灵活的问题。 [0242] Thus, the switch 0F inquiry message transmitted according to the received configuration settings 0F configuration server management port of the switch 0F, establish a connection with the configuration management port 0F configuration server, the configuration server to obtain configuration information of 0F , thereby enabling the switch to automatically obtain configuration information 0F 0F configure a server, avoiding manual settings to configure the server configuration information 0F's heavy work load and inflexible problem.

[0243] 所述接收机801具体用于: [0243] The receiver 801 is configured to:

[0244] 从所述0F交换机的第一端口接收所述0F配置服务器发送的所述查询消息;则 [0244] received from the first port of the switch 0F 0F said query message sent by the configuration server; the

[0245] 所述处理器802具体用于: [0245] The processor 802 is specifically configured to:

[0246] 根据所述查询消息设置所述第一端口为所述0F交换机的配置管理端口。 [0246] Configuration Manager message port is disposed the first port of the switch according to the query 0F.

[0247] 所述处理器802具体用于: [0247] The processor 802 is specifically configured to:

[0248] 查询所述0F交换机是否存在已配置的配置管理端口。 [0248] The query whether there 0F switch configuration management port configured.

[0249] 若所述0F交换机存在已配置的配置管理端口,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级。 [0249] When the present 0F switch configuration management port configured to compare the priority of the first priority port configuration management port configured.

[0250] 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述0F交换机的配置管理端口。 [0250] When the priority is lower than the priority of the first port of the configuration management port configured, the first port as a management port configuration of the switch 0F.

[0251] 所述查询消息中包括:所述0F配置服务器的优先级,则 [0251] The query message comprises: configuration 0F priority of the server,

[0252] 所述处理器802还用于: [0252] The processor 802 is further configured to:

[0253] 在所述查询消息中获取所述0F配置服务器的优先级作为所述第一端口的优先级。 [0253] obtaining the configuration server 0F priority as the priority of the first port in the query message.

[0254] 所述查询消息包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数, 则 [0254] The query message comprising: a hop limit value, the hop limit value for indicating the number of forwarding the query message, the

[0255] 所述处理器802还用于: [0255] The processor 802 is further configured to:

[0256] 确定所述查询消息中的跳限制值是否等于零。 [0256] OK message in the query hop limit value is equal to zero.

[0257] 若所述查询消息中的跳限制值等于零,丢弃所述查询消息。 [0257] If the query hop limit value is equal to zero in the message, the query message is discarded.

[0258] 若所述查询消息中的跳限制值不等于零,更新所述查询消息中的跳限制值为当前跳限制值-1。 [0258] If the query hop limit value is not equal to zero in the message, update the query hop limit value message in the current hop limit value -1.

[0259] 所述处理器802还用于: [0259] The processor 802 is further configured to:

[0260] 生成应答消息,所述应答消息包括所述0F交换机的身份标识。 [0260] generates a response message, said response message comprising the identity of said switch 0F.

[0261] 如图11所示,所述0F交换机80还包括; [0261] As shown in FIG 11, the switch 80 0F further comprising;

[0262] 发射机803,用于根据所述查询消息,通过所述配置管理端口,向所述0F配置服务器发送应答消息,以便于所述0F配置服务器根据所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息。 [0262] a transmitter 803, according to the query message, by the configuration management port, sending to the configuration server a response message 0F, so as to generate the configuration server 0F advertisement message according to the response message, the advertisement message includes the configuration information of the configuration server 0F.

[0263] 所述接收机801还用于: [0263] The receiver 801 is further configured to:

[0264] 通过所述配置管理端口接收所述0F配置服务器发送的通告消息。 [0264] 0F port for receiving the announce message sent by the configuration server configuration management.

[0265] 所述处理器802还用于: [0265] The processor 802 is further configured to:

[0266] 根据所述通告消息中的所述0F配置服务器的配置信息与所述0F配置服务器建立连接。 [0266] The configuration information to establish a connection to the advertisement message to the configuration server 0F 0F with the configuration server.

[0267] 本发明实施例提供一种0F配置服务器90,如图12所示,包括: [0267] The present invention provides a configuration server 0F 90, as shown in Figure 12, comprising:

[0268] 处理器901,用于生成查询消息,所述查询消息包含用于标识所述0F配置服务器的参数。 [0268] processor 901 for generating a query message, the query message contains parameters identifying the configuration server 0F.

[0269] 发射机902,用于向0F交换机发送所述查询消息,以便于所述0F交换机根据所述查询消息设置所述0F交换机的配置管理端口并通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0269] a transmitter 902 for transmitting the query message to the switch 0F, 0F to facilitate the exchange according to the query message is provided to the configuration manager 0F switch port and through the configuration management port configured to acquire the 0F configuration information server, establish a connection with the configuration server 0F.

[0270] 这样一来,首先,0F配置服务器生成查询消息,然后,向0F交换机发送该查询消息,以便于0F交换机根据所述查询消息设置0F交换机的配置管理端口并通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接,从而能够使0F 交换机自动获取OF配置服务器的配置信息,避免了手工设置OF配置服务器的配置信息的工作量大且不够灵活的问题。 [0270] Thus, firstly, 0F configuration server generates a query message, then sends the query message to the switch 0F, 0F to set the configuration management port switch according to the query message 0F switch port via the configuration manager acquires configuration information of the configuration server 0F, 0F to establish connection with the configuration server, thereby enabling the switch to automatically obtain configuration information 0F oF configuration server, to avoid the heavy workload to manually set the configuration information oF configuration server and not flexible enough problem.

[0271] 所述查询消息中包括:所述0F配置服务器的优先级,所述0F配置服务器的优先级用于若所述0F交换机存在已配置的配置管理端口,且所述已配置的配置管理端口的优先级小于所述0F配置服务器的优先级时,将所述接收所述查询消息的端口作为所述0F交换机的配置管理端口,并将所述配置管理端口的优先级设置为所述0F配置服务器的优先级。 [0271] The query message comprises: priority of the configuration server 0F, 0F priority of the configuration server if the presence of a configuration manager configured port 0F switch, and the configuration manager configured when the priority is lower than the priority 0F configuration server port, the port receiving the query message as the configuration of the management port 0F switch, the configuration and management port to said priority 0F configure the server priority.

[0272] 所述查询消息中包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,以便所述0F交换机在所述跳限制值等于零时,丢弃所述查询消息,在所述跳限制值不等于零时,更新所述跳限制值为当前跳限制值-1。 [0272] The query message comprising: a hop limit value, the limit value for the number of hops to forward the query message to indicate to the switch when the 0F hop limit value is equal to zero, discarding the query message, when the hop limit value is not equal to zero, updating the hop limit value for the current hop limit value -1.

[0273] 如图13所示,所述0F配置服务器90还包括: [0273] 13, the configuration server 0F 90 further comprising:

[0274] 接收机903,用于接收所述0F交换机通过所述配置管理端口发送的应答消息,所述应答消息包括所述0F交换机的身份标识。 [0274] The receiver 903, the response message transmitted by the configuration management port for receiving said 0F switch, the response message comprising the identity of said switch 0F.

[0275] 所述处理器901还用于: [0275] The processor 901 is further configured to:

[0276] 根据所述接收机接收的所述应答消息生成通告消息,所述通告消息包括所述0F 配置服务器的配置信息。 [0276] The response of the receiver receives a message that generated the notification message, the advertisement message includes the configuration information of the configuration server 0F.

[0277] 所述发射机902还用于: [0277] The transmitter 902 is further configured to:

[0278] 向所述0F交换机发送所述处理器生成的所述通告消息,以便于所述0F交换机根据所述通告消息中的所述0F配置服务器的配置信息与所述0F配置服务器建立连接。 [0278] The processor generates the transmit 0F switch to the advertisement message, to establish a connection according to the advertisement message configuration information in the configuration server with the 0F 0F 0F switch to the configuration server.

[0279] 本发明实施例提供一种通信系统100,如图14所示,包括:至少一个0F配置服务器1001和至少一个0F交换机1002, [0279] The present invention provides a communication system 100, as shown in Figure 14, comprising: at least one configuration server 1001 0F 0F and at least one switch 1002,

[0280] 所述0F配置服务器1001用于生成查询消息,所述查询消息包含用于标识所述0F 配置服务器的参数;向所述OF交换机发送所述查询消息; [0280] The configuration server 1001 0F for generating a query message, the query message contains parameters identifying the 0F configuration server; transmitting the query message to the switch OF;

[0281] 所述0F交换机1002用于接收0F配置服务器发送的所述查询消息;根据所述查询消息设置所述0F交换机的配置管理端口;通过所述配置管理端口获取所述0F配置服务器的配置信息,与所述0F配置服务器建立连接。 [0281] The switch 1002 0F 0F configured for receiving said query message sent by the server; 0F setting configuration management port of the switch according to the query message; 0F acquiring the configuration server configured by the configuration management port information, establishing a connection with the configuration server 0F.

[0282] 所述0F交换机1002具体用于: [0282] The switch 1002 is configured to 0F:

[0283] 查询所述0F交换机是否存在已配置的配置管理端口; [0283] The query whether there is a configuration management 0F switch port (s);

[0284] 若所述0F交换机存在已配置的配置管理端口,在所述查询消息中获取所述0F配置服务器的优先级作为所述第一端口的优先级,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级,其中,所述第一端口为所述0F交换机接收所述查询消息的端n; [0284] When the present 0F switch configuration management port configured to obtain the configuration server 0F priority as the priority of the first port in the query message, comparing the configuration management port configured priority of the priority of the first port, wherein the first port receiving the query message for said n-side switch 0F;

[0285] 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述0F交换机的配置管理端口。 [0285] When the priority is lower than the priority of the first port of the configuration management port configured, the first port as a management port configuration of the switch 0F.

[0286] 所述0F交换机1002还用于: [0286] The switch 1002 0F further configured to:

[0287] 生成应答消息,所述应答消息包括所述0F交换机的身份标识,通过所述配置管理端口,向所述0F配置服务器发送应答消息; [0287] generates a response message, said response message comprising the identity of said switch 0F, by the configuration management port configuration server sending a reply message to the 0F;

[0288] 通过所述配置管理端口接收所述0F配置服务器发送的通告消息; [0288] 0F port for receiving the announce message sent by the configuration server configuration management;

[0289] 根据所述通告消息中的所述0F配置服务器的配置信息与所述0F配置服务器建立连接; [0289] The configuration information to establish a connection to the advertisement message to the configuration server 0F 0F with the configuration server;

[0290] 所述OF配置服务器1001还用于: [0290] The OF configuration server 1001 is further configured to:

[0291] 接收所述0F交换机通过所述配置管理端口发送的应答消息; [0291] 0F receiving the switch through the configuration management response message sent by the port;

[0292] 根据所述应答消息生成通告消息,所述通告消息包括所述0F配置服务器的配置信息; [0292] generated the notification message according to the response message, the advertisement message includes the configuration information 0F configuration server;

[0293] 向所述0F交换机发送所述通告消息。 [0293] transmits the advertisement to the message switch 0F.

[0294] 本发明的实施例提供一种获取配置服务器信息的方法、装置及系统。 Example [0294] The present invention provides a method of obtaining information about the configuration server, device and system. 首先,0F交换机上电后主动加入特定的组播组,第一网络内的路由器建立组播转发路径,然后,0F配置服务器生成查询消息,0F配置服务器向0F交换机发送查询消息,0F交换机接收到查询消息后,根据所述查询消息设置所述0F交换机的配置管理端口,0F交换机再根据所述查询消息生成应答消息,向0F配置服务器发送应答消息,0F配置服务器根据所述应答消息生成通告消息,向0F交换机发送通告消息,0F交换机接收到通告消息后,获取到所述0F配置服务器的配置信息,最后,0F交换机根据所述配置信息与所述0F配置服务器建立连接。 First, after power switch 0F active join a particular multicast group, the router within the first network to establish the multicast forwarding path, and then, the configuration server generates a query message 0F, 0F 0F to the configuration server sends a query message switch, the switch receives 0F after the query message, the configuration according to the query message is provided to the management port switch 0F, 0F switch then generates a response message according to the query message, sends a response message to the configuration server 0F, 0F configuration server that generated the notification message according to the response message , the switch sends notification message to 0F, 0F switch receives the advertisement message, obtains configuration information of the configuration server 0F, finally, 0F switch establishing a connection according to the configuration information and the configuration server 0F. 所述通告消息包括所述0F交换机与所述0F配置服务器建立连接所需要的配置信息。 The advertisement message includes the configuration information 0F switch establishing the desired connection configuration server 0F. 从而能够使0F交换机自动获取0F配置服务器的配置信息,避免了手工设置0F配置服务器的配置信息的工作量大且不够灵活的问题。 Thereby enabling 0F 0F switch automatically obtain configuration information to configure the server, avoiding manual settings to configure the server configuration information 0F's heavy work load and inflexible problem.

[0295] 所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统, 装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 [0295] Those skilled in the art may clearly understand that, for convenience and brevity of description, specific working process of the foregoing system, apparatus, and unit may refer to the corresponding process in the foregoing method embodiments, not described herein again .

[0296] 在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。 [0296] In several embodiments provided herein present embodiment, it should be understood that the system, apparatus and method disclosed may be implemented in other manners. 例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。 For example, the described apparatus embodiments are merely illustrative of, for example, the unit division is merely logical function division, there may be other division in actual implementation, for example, a plurality of units or components may be combined or It can be integrated into another system, or some features may be ignored or not performed. 另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。 Another point, displayed or coupling or direct coupling or communication between interconnected in question may be through some interface, device, or indirect coupling or communication connection unit, may be electrical, mechanical, or other forms.

[0297] 所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。 [0297] The unit described as separate components may be or may not be physically separate, parts displayed as units may be or may not be physical units, i.e. may be located in one place, or may be distributed to a plurality of networks unit. 可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。 You can select some or all of the units according to actual needs to achieve the object of the solutions of the embodiments.

[0298] 另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理包括,也可以两个或两个以上单元集成在一个单元中。 [0298] Further, each of the functional units in the embodiments of the present invention may be integrated in one processing unit, separate units may be physically, or two or more units are integrated into one unit. 上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。 The integrated unit may be implemented in the form of hardware, software functional units in hardware may also be implemented.

[0299] 本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。 [0299] Those of ordinary skill in the art can be appreciated: realize all or part of the steps of the method described above may be implemented by a program instructing relevant hardware to complete, the program may be stored in a computer readable storage medium, the program execution when, comprising the step of performing the above-described embodiment of the method; and the storage medium comprising: a variety of medium may store program code ROM, RAM, magnetic disk, or optical disk.

[0300] 以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。 [0300] The above are only specific embodiments of the present invention, but the scope of the present invention is not limited thereto, any skilled in the art in the art within the technical scope of the present invention is disclosed, variations may readily occur or Alternatively, it shall fall within the protection scope of the present invention. 因此,本发明的保护范围应以所述权利要求的保护范围为准。 Accordingly, the scope of the present invention should be defined by the scope of the claims.

Claims (23)

  1. 1. 一种获取配置服务器信息的方法,用于开放流OF交换机,其特征在于,包括: 接收OF配置服务器发送的查询消息,所述查询消息包含用于标识所述OF配置服务器的参数; 根据所述查询消息设置所述OF交换机的配置管理端口; 通过所述配置管理端口获取所述OF配置服务器的配置信息,与所述OF配置服务器建立连接。 1. A method of acquiring configuration information server, for the open switch OF stream, characterized by comprising: receiving a query message sent OF configuration server, the query message comprises means for identifying the parameter OF configuration server; according the query message is provided to the switch configuration management oF port; the port configuration information through the configuration server oF configuration management, establish a connection with the server oF configuration.
  2. 2. 根据权利要求1所述的方法,其特征在于, 所述接收OF配置服务器发送的查询消息,具体为: 从所述OF交换机的第一端口接收所述OF配置服务器发送的所述查询消息;则所述根据所述查询消息设置所述OF交换机的配置管理端口,具体为: 根据所述查询消息设置所述第一端口为所述OF交换机的配置管理端口。 2. The method according to claim 1, wherein the configuration server receives a query message transmitted OF, specifically: a first port for receiving from the server the configuration OF OF transmitting the inquiry message switch ; then the query according to the configuration of the management port disposed oF message switch, specifically: port configuration Manager message provided that the first port of the switch according to the query oF.
  3. 3. 根据权利要求2所述的方法,其特征在于, 所述根据所述查询消息设置所述第一端口为所述OF交换机的配置管理端口包括: 查询所述OF交换机是否存在已配置的配置管理端口; 若所述OF交换机存在已配置的配置管理端口,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级; 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述OF交换机的配置管理端口。 3. The method according to claim 2, wherein said port configuration management according to the query message is provided to the first port of the switch OF comprising: a query whether there is a switch configured OF configured management port; if the configuration management oF presence switch port is configured, with priority to the priority of the configuration management port configured to compare a first port; if the priority of the configuration management port configured It is less than the priority of the first port, the first port as a management port configured oF the switch.
  4. 4. 根据权利要求3所述的方法,其特征在于,所述查询消息中包括:所述OF配置服务器的优先级,则在所述比较所述已配置的配置管理端口的优先级与所述第一端口的优先级之前,所述方法还包括: 在所述查询消息中获取所述OF配置服务器的优先级作为所述第一端口的优先级。 4. The method according to claim 3, characterized in that said query message comprising: the configuration server OF priority, then the priority comparison with the configuration of the management port configured before the priority of the first port, the method further comprising: obtaining priority level as the priority oF configuration server at the first port of the query message.
  5. 5. 根据权利要求1至4任意一项权利要求所述的方法,其特征在于,所述查询消息包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,则在所述根据所述查询消息设置所述OF交换机的配置管理端口之前,所述方法还包括: 确定所述查询消息中的跳限制值是否等于零; 若所述查询消息中的跳限制值等于零,丢弃所述查询消息; 若所述查询消息中的跳限制值不等于零,更新所述查询消息中的跳限制值为当前跳限制值-1。 The method according to any one of claims 1 to 4, claim claim, wherein the query message comprising: a hop limit, a hop limit indicating the number of times for forwarding the query message, then at before the configuration according to the query message is provided to the management port switch oF, the method further comprises: determining the query hop limit value in the message is equal to zero; if the query hop limit value is equal to zero in the message, discarding the query message; if the query message hop limit value is not equal to zero, updating the query hop limit value message in the current hop limit value -1.
  6. 6. 根据权利要求1至5任意一项权利要求所述的方法,其特征在于,所述通过所述配置管理端口获取所述OF配置服务器的配置信息,与所述OF配置服务器建立连接,包括: 生成应答消息,所述应答消息包括所述OF交换机的身份标识; 通过所述配置管理端口,向所述OF配置服务器发送所述应答消息,以便于所述OF配置服务器根据所述应答消息生成通告消息,所述通告消息包括所述OF配置服务器的配置信息; 通过所述配置管理端口接收所述OF配置服务器发送的所述通告消息; 根据所述通告消息中的所述OF配置服务器的配置信息与所述OF配置服务器建立连接。 6. The method according to any one of claims 1 to 5, characterized in that said port by the configuration management configuration information of the configuration server OF, OF establish a connection with the configuration server, including the claims : generates a response message, said response message comprising the identity of said switch oF; transmitting the response message to the configuration server via said configured oF management port, so as to generate the reply message according to the configuration server oF advertisement message, the advertisement message includes the configuration information oF configuration server; the advertisement message transmitted by the configuration of the management port receives oF configuration server; advertisement message according to the configuration of the server's configuration oF oF configuration information and the connections to the server.
  7. 7. -种提供配置服务器信息的方法,用于OF配置服务器,其特征在于,包括: 生成查询消息,所述查询消息包含用于标识所述OF配置服务器的参数; 向OF交换机发送所述查询消息,以便于所述OF交换机根据所述查询消息设置所述OF交换机的配置管理端口并通过所述配置管理端口获取所述OF配置服务器的配置信息,与所述OF配置服务器建立连接。 7. - method of providing configuration information to a server method for OF configuration server, characterized by comprising: generating a query message, the query message comprises means for identifying the parameter OF configuration server; switch sends the query OF message, so that by the configuration and management port configuration information in the configuration server oF configuration according to the query message management port disposed in the switch oF oF the switch to establish a connection with the server oF configuration.
  8. 8. 根据权利要求7所述的方法,其特征在于,所述查询消息中包括:所述OF配置服务器的优先级,所述OF配置服务器的优先级用于若所述OF交换机存在已配置的配置管理端口,且所述已配置的配置管理端口的优先级小于所述OF配置服务器的优先级时,将所述接收所述查询消息的端口作为所述OF交换机的配置管理端口,并将所述配置管理端口的优先级设置为所述OF配置服务器的优先级。 8. The method according to claim 7, wherein the query message comprises: the Priority OF configuration server, the configuration server OF priority for the presence of the switch if the configured OF when the port configuration management, configuration management and the priority port configured oF less than a priority of the configuration server, receiving the query message to the port of the switch as the configuration management oF port and the said priority setting configuration management port for the server oF priority configuration.
  9. 9. 根据权利要求7或8所述的方法,其特征在于,所述查询消息中包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,以便所述OF交换机在所述跳限制值等于零时,丢弃所述查询消息,在所述跳限制值不等于零时,更新所述跳限制值为当前跳限制值_1。 9. The method according to claim 78, characterized in that said query message comprising: a hop limit value, the hop limit value for indicating the number of forwarding the query message, so that the switch OF when the hop limit value is equal to zero, discarding the query message, when the hop limit value is not equal to zero, updating the hop limit value for the current hop limit _1.
  10. 10. 根据权利要求7至9任意一项权利要求所述的方法,其特征在于,在所述向OF交换机发送所述查询消息之后,所述方法还包括: 接收所述OF交换机通过所述配置管理端口发送的应答消息,所述应答消息包括所述OF交换机的身份标识; 根据所述应答消息生成通告消息,所述通告消息包括所述OF配置服务器的配置信息; 向所述OF交换机发送所述通告消息,以便于所述OF交换机根据所述通告消息中的所述OF配置服务器的配置信息与所述OF配置服务器建立连接。 10. The method according to claim any one of claims 7 to 9, wherein, after sending the query message to the switch OF, the method further comprises: receiving the switch through the configuration OF port management response message sent by the reply message comprises the identifier of the switch oF; according to the response message that generated the notification message, the advertisement message includes the configuration information oF configuration server; oF transmits to the switch said announcement message for establishing a connection according to the advertisement message configuration information in the configuration server with the oF oF oF switches to the configuration server.
  11. 11. 一种开放流OF交换机,其特征在于,包括: 第一接收单元,用于接收OF配置服务器发送的查询消息,所述查询消息包含用于标识所述OF配置服务器的参数; 设置单元,用于根据所述查询消息设置所述OF交换机的配置管理端口; 第一获取单元,用于通过所述配置管理端口获取所述OF配置服务器的配置信息,与所述OF配置服务器建立连接。 OF A flow switch open, characterized by comprising: a first receiving means for receiving a query message sent OF configuration server, the query message comprises means for identifying the parameter OF configuration server; setting means, the configuration for the query message is provided to the management port switch oF; a first acquisition unit for acquiring configuration information of the port oF configuration server through the configuration management, establish a connection with the server oF configuration.
  12. 12. 根据权利要求11所述的OF交换机,其特征在于, 所述第一接收单元具体用于: 从所述OF交换机的第一端口接收所述OF配置服务器发送的所述查询消息;则所述设置单元具体用于: 根据所述查询消息设置所述第一端口为所述OF交换机的配置管理端口。 OF switch according to claim 11, wherein the first receiving unit is configured to: query message from the first port to receive the configuration server transmits the OF OF switch; then the said setting unit is configured to: configuration management message port is disposed the first port of the switch according to the query oF.
  13. 13. 根据权利要求12所述的OF交换机,其特征在于, 所述设置单元具体用于: 查询所述OF交换机是否存在已配置的配置管理端口; 若所述OF交换机存在已配置的配置管理端口,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级; 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述OF交换机的配置管理端口。 13. OF switch as claimed in claim 12, wherein the setting unit is configured to: query whether there is the switch configuration management OF configured port; if the configuration management OF presence switch port (s) comparing the priority with the priority of the first port of the configuration management port configured; when the priority is lower than the priority of the first port of the configuration management port configured, the first a switch port as the configuration management oF port.
  14. 14. 根据权利要求13所述的OF交换机,其特征在于,所述查询消息中包括:所述OF配置服务器的优先级,则所述OF交换机还包括: 第二获取单元,用于在所述查询消息中获取所述OF配置服务器的优先级作为所述第一端口的优先级。 OF switch according to claim 13, wherein the query message comprises: the configuration server OF priority, then the switch OF further comprises: a second obtaining unit, for the oF acquire the query message server configured priority as the priority of the first port.
  15. 15. 根据权利要求11至14任意一项权利要求所述的OF交换机,其特征在于,所述查询消息包括:跳限制值,所述跳限制值用于指示所述查询消息的转发次数,则所述OF交换机还包括: 确定单元,用于确定所述查询消息中的跳限制值是否等于零; 丢弃单元,用于若所述查询消息中的跳限制值等于零,丢弃所述查询消息; 更新单元,用于若所述查询消息中的跳限制值不等于零,更新所述查询消息中的跳限制值为当前跳限制值-1。 According to claim 11 to 14 according to any one of claims OF switches, wherein, the query message comprising: a hop limit value, the hop limit value for indicating the number of forwarding the query message, the the switch further comprises oF: determining means for determining whether the query hop limit value in the message is equal to zero; discarding unit configured to, if the query hop limit value in the message is equal to zero, the query message is discarded; updating unit for if the query hop limit value message is not equal to zero, updating the query hop limit value message in the current hop limit value -1.
  16. 16. 根据权利要求11至15任意一项权利要求所述的OF交换机,其特征在于,所述OF 交换机还包括: 生成单元,用于生成应答消息,所述应答消息包括所述OF交换机的身份标识; 发送单元,用于通过所述配置管理端口,向所述OF配置服务器发送所述应答消息,以便于所述OF配置服务器根据所述应答消息生成通告消息,所述通告消息包括所述OF配置服务器的配置信息; 第二接收单元,用于通过所述配置管理端口接收所述OF配置服务器发送的所述通告消息; 建立单元,用于根据所述通告消息中的所述OF配置服务器的配置信息与所述OF配置服务器建立连接。 According to claim 11 to 15 according to any one of claims OF switch, wherein said switch further comprises OF: generating means for generating a response message, said response message comprises identity of the switch OF identifier; sending unit, configured through the configuration management port, sending the response message to the configuration server OF, so as to generate said advertisement OF configuration server a response message according to the message, the advertisement message includes the OF configuration information server; a second receiving unit configured by the configuration of the management port for receiving the announce message sent by the server oF configuration; establishing unit, configured according to the configuration server oF advertisement message of the oF configuration information to the configuration server to establish a connection.
  17. 17. -种OF配置服务器,其特征在于,包括: 第一生成单元,用于生成查询消息,所述查询消息包含用于标识所述OF配置服务器的参数; 第一发送单元,用于向OF交换机发送所述查询消息,以便于所述OF交换机根据所述查询消息设置所述OF交换机的配置管理端口并通过所述配置管理端口获取所述OF配置服务器的配置信息,与所述OF配置服务器建立连接。 17. - Species OF configuration server, characterized by comprising: a first generating means for generating a query message, the query message comprises means for identifying the parameter OF configuration server; first sending unit, configured to OF switch sends the query message, and in order to obtain the configuration information in the configuration server oF oF switch configuration according to the query message management port provided by the switch oF the configuration management port, and the configuration server oF establish connection.
  18. 18. 根据权利要求17所述的OF配置服务器,其特征在于,所述查询消息中包括:所述OF配置服务器的优先级,所述OF配置服务器的优先级用于若所述OF交换机存在已配置的配置管理端口,且所述已配置的配置管理端口的优先级小于所述OF配置服务器的优先级时,将所述接收所述查询消息的端口作为所述OF交换机的配置管理端口,并将所述配置管理端口的优先级设置为所述OF配置服务器的优先级。 18. The server according to claim 17 OF configuration, wherein the query message comprises: the Priority OF configuration server, the configuration server OF priority for already exists if the switch OF configuration management port configuration, and the priority is lower than priority of the configuration server oF configuration management port configured, the receiving the query message to the port as a management port configured oF switch, and the configuration management port priority setting oF priority of the configuration server.
  19. 19. 根据权利要求17或18所述的OF配置服务器,其特征在于,所述查询消息中包括: 跳限制值,所述跳限制值用于指示所述查询消息的转发次数,以便所述OF交换机在所述跳限制值等于零时,丢弃所述查询消息,在所述跳限制值不等于零时,更新所述跳限制值为当前跳限制值-1。 19. The configuration server according to claim OF 17 or 18, characterized in that said query message comprising: a hop limit value, the hop limit value for indicating the number of forwarding the query message, so that the OF hop limit switch when the value is equal to zero, discarding the query message, when the hop limit value is not equal to zero, updating the hop limit value for the current hop limit value -1.
  20. 20. 根据权利要求17至19任意一项权利要求所述的OF配置服务器,其特征在于,所述OF配置服务器还包括: 接收单元,用于接收所述OF交换机通过所述配置管理端口发送的应答消息,所述应答消息包括所述OF交换机的身份标识; 第二生成单元,用于根据所述接收单元接收的所述应答消息生成通告消息,所述通告消息包括所述OF配置服务器的配置信息; 第二发送单元,用于向所述OF交换机发送所述第二生成单元生成的所述通告消息,以便于所述OF交换机根据所述通告消息中的所述OF配置服务器的配置信息与所述OF配置服务器建立连接。 20. The claims 17 to 19 in any one of the claims OF configuration server, wherein said configuration server further OF comprising: a receiving unit configured to receive the switch through the configuration management OF port transmission reply message, the reply message comprising the identity of said switch oF; a second generating means for generating a response message according to the advertisement message received by the receiving unit, the advertisement message comprises a configuration server configuring the oF information; and a second sending unit, configured to send the second advertisement message generating unit to switch the oF, oF facilitate the exchange according to the advertisement message configuration information in the configuration server and oF the configuration server OF establish a connection.
  21. 21. -种通信系统,其特征在于,包括:至少一个OF配置服务器和至少一个OF交换机, 所述OF配置服务器用于生成查询消息,所述查询消息包含用于标识所述OF配置服务器的参数;向所述OF交换机发送所述查询消息; 所述OF交换机用于接收OF配置服务器发送的所述查询消息;根据所述查询消息设置所述OF交换机的配置管理端口;通过所述配置管理端口获取所述OF配置服务器的配置信息,与所述OF配置服务器建立连接。 21. - kind of communication system, comprising: at least one server and at least one configuration OF OF switch, the configuration server for generating OF parameter query message, the query message comprises means for identifying said configuration server OF ; oF sends the query message to the switch; the switch oF oF configuration server for receiving the inquiry message transmitted; according to the query message is provided to the configuration manager oF port switch; by the configuration management port oF configuration information to the configuration server, establish a connection with the server oF configuration.
  22. 22. 根据权利要求21所述的通信系统,其特征在于,所述OF交换机具体用于: 查询所述OF交换机是否存在已配置的配置管理端口; 若所述OF交换机存在已配置的配置管理端口,在所述查询消息中获取所述OF配置服务器的优先级作为第一端口的优先级,比较所述已配置的配置管理端口的优先级与所述第一端口的优先级,其中,所述第一端口为所述OF交换机接收所述查询消息的端口; 当所述已配置的配置管理端口的优先级小于所述第一端口的优先级时,将所述第一端口作为所述OF交换机的配置管理端口。 22. A communication system according to claim 21, wherein said switch OF specifically configured to: query whether there is the switch configuration management OF configured port; if the configuration management OF presence switch port (s) , acquires the query message to the configuration server oF priority as the priority of the first port, the priority and the priority configuration management port configured to compare said first port, wherein said the first port of the port receiving said query message oF switch; when the priority is lower than the priority of the first port of the configuration management port configured, the first port of the switch as the oF configuration management port.
  23. 23. 根据权利要求21或22所述的通信系统,其特征在于, 所述OF交换机还用于生成应答消息,所述应答消息包括所述OF交换机的身份标识,通过所述配置管理端口,向所述OF配置服务器发送所述应答消息; 所述OF配置服务器还用于接收所述OF交换机通过所述配置管理端口发送的所述应答消息,根据所述应答消息生成通告消息,所述通告消息包括所述OF配置服务器的配置信息,向所述OF交换机发送所述通告消息; 所述OF交换机还用于通过所述配置管理端口接收所述OF配置服务器发送的所述通告消息,根据所述通告消息中的所述OF配置服务器的配置信息与所述OF配置服务器建立连接。 23. A communication system according to claim 21 or claim 22, wherein said switch is further configured OF generates a response message, said response message comprising the identity OF switch, by the configuration management port to the server sends the reply oF configuration message; the server is further configured to receive oF oF the switch through the management port transmitting the configuration response message that generated the notification message according to the response message, the advertisement message configuration information including the oF server, sending the announce message to the switch oF; for the further switch oF through the configuration of the port receiving the announce message sent by the server management oF configuration, according to the advertisement message configuration information in the configuration server with the oF oF configuration server to establish a connection.
CN 201310724751 2013-12-24 2013-12-24 Method, device and system for obtaining configuration server information CN104734877A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201310724751 CN104734877A (en) 2013-12-24 2013-12-24 Method, device and system for obtaining configuration server information

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201310724751 CN104734877A (en) 2013-12-24 2013-12-24 Method, device and system for obtaining configuration server information
PCT/CN2014/094694 WO2015096707A1 (en) 2013-12-24 2014-12-23 Method, device and system for acquiring information about configuration server

Publications (1)

Publication Number Publication Date
CN104734877A true true CN104734877A (en) 2015-06-24

Family

ID=53458334

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201310724751 CN104734877A (en) 2013-12-24 2013-12-24 Method, device and system for obtaining configuration server information

Country Status (2)

Country Link
CN (1) CN104734877A (en)
WO (1) WO2015096707A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1781283A (en) * 2003-04-29 2006-05-31 西门子公司 Method for the automatic configuration of a communications device
CN101980490A (en) * 2010-12-01 2011-02-23 杭州华三通信技术有限公司 Link establishment method for virtual switch and physical switch and device thereof
CN102349268A (en) * 2009-03-09 2012-02-08 日本电气株式会社 Openflow communication system and openflow communication method
CN102668467A (en) * 2009-10-07 2012-09-12 Nec软件有限公司 Computer system and monitoring method for computer system
US20130010600A1 (en) * 2011-07-08 2013-01-10 Telefonaktiebolaget L M Ericsson (Publ) Controller Driven OAM for OpenFlow
CN103220235A (en) * 2013-04-26 2013-07-24 华为技术有限公司 Distributed virtual switcher management method, relevant device and relevant system
WO2013134937A1 (en) * 2012-03-14 2013-09-19 华为技术有限公司 Method, switch, server, and system for transmitting an establish connection request
CN103414626A (en) * 2013-08-28 2013-11-27 盛科网络(苏州)有限公司 Message processing method and device based on network virtualization

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1781283A (en) * 2003-04-29 2006-05-31 西门子公司 Method for the automatic configuration of a communications device
CN102349268A (en) * 2009-03-09 2012-02-08 日本电气株式会社 Openflow communication system and openflow communication method
CN102668467A (en) * 2009-10-07 2012-09-12 Nec软件有限公司 Computer system and monitoring method for computer system
CN101980490A (en) * 2010-12-01 2011-02-23 杭州华三通信技术有限公司 Link establishment method for virtual switch and physical switch and device thereof
US20130010600A1 (en) * 2011-07-08 2013-01-10 Telefonaktiebolaget L M Ericsson (Publ) Controller Driven OAM for OpenFlow
WO2013134937A1 (en) * 2012-03-14 2013-09-19 华为技术有限公司 Method, switch, server, and system for transmitting an establish connection request
CN103220235A (en) * 2013-04-26 2013-07-24 华为技术有限公司 Distributed virtual switcher management method, relevant device and relevant system
CN103414626A (en) * 2013-08-28 2013-11-27 盛科网络(苏州)有限公司 Message processing method and device based on network virtualization

Also Published As

Publication number Publication date Type
WO2015096707A1 (en) 2015-07-02 application

Similar Documents

Publication Publication Date Title
US7558219B1 (en) Multicast trees for virtual private local area network (LAN) service multicast
US20040264463A1 (en) Method, apparatus and system for distributing multicast data
US20100040056A1 (en) Data generating device
US20060039385A1 (en) Method and system for router aggregation
US20020031130A1 (en) Multicast routing method and an apparatus for routing a multicast packet
US20130100851A1 (en) Multicast Source Move Detection for Layer-2 Interconnect Solutions
US20130083782A1 (en) Methods and apparatus for a scalable network with efficient link utilization
US20110058551A1 (en) Methods and apparatus for managing multicast traffic through a switch
US20080075078A1 (en) Frame Transfer System
US20130077626A1 (en) Separation of edge and routing/control information for multicast over shortest path bridging
CN102223303A (en) Load equilibrium method based on transparent interconnection of lots of links (TRILL) and routing bridge (RB)
CN101505227A (en) Method, device and system for implementing point to multi-point pseudowire
US20130089093A1 (en) Multicast Active Source Discovery and Management for Layer-2 Interconnect Solutions
US20120089714A1 (en) Method and apparatus for network address resolution
Rosen et al. Multicast in mpls/bgp ip vpns
US20130188514A1 (en) Managing a cluster of switches using multiple controllers
US20110058548A1 (en) Methods and apparatus for managing multicast traffic through a switch
US20110286450A1 (en) Multicast hello on demand
CN101753635A (en) Method and system of collocating IPV6 (internet protocol version 6) addresses
US20070233887A1 (en) Method and apparatus for neighborhood discovery across disparate point-to-point networks
US20130003729A1 (en) Clearing forwarding entries dynamically and ensuring consistency of tables across ethernet fabric switch
US7450580B2 (en) Application layer multicast system and intermediate node therefor
US20090190515A1 (en) Bridging wireless and wired media in a computer network
US20130188521A1 (en) Managing a large network using a single point of configuration
US20130021942A1 (en) Granular Control of Multicast Delivery Services for Layer-2 Interconnect Solutions

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination