CN118233791A - Optical switching network system and optical switching network implementation method - Google Patents
Optical switching network system and optical switching network implementation method Download PDFInfo
- Publication number
- CN118233791A CN118233791A CN202410159073.9A CN202410159073A CN118233791A CN 118233791 A CN118233791 A CN 118233791A CN 202410159073 A CN202410159073 A CN 202410159073A CN 118233791 A CN118233791 A CN 118233791A
- Authority
- CN
- China
- Prior art keywords
- optical
- optical switch
- sdn controller
- sorting
- port
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000003287 optical effect Effects 0.000 title claims abstract description 560
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012163 sequencing technique Methods 0.000 claims abstract 13
- 238000013507 mapping Methods 0.000 claims description 15
- 238000012217 deletion Methods 0.000 claims 1
- 230000037430 deletion Effects 0.000 claims 1
- 230000000903 blocking effect Effects 0.000 abstract description 13
- 238000010586 diagram Methods 0.000 description 22
- 240000003537 Ficus benghalensis Species 0.000 description 20
- 230000001174 ascending effect Effects 0.000 description 19
- 238000004364 calculation method Methods 0.000 description 5
- 238000004891 communication Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000011176 pooling Methods 0.000 description 3
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 230000006855 networking Effects 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0005—Switch and router aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
- H04L49/111—Switch interfaces, e.g. port details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/30—Peripheral units, e.g. input or output ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/60—Software-defined switches
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0005—Switch and router aspects
- H04Q2011/0052—Interconnection of switches
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及数字信息传输技术领域,尤其涉及一种光交换网络系统和光交换网络实现方法The present invention relates to the field of digital information transmission technology, in particular to an optical switching network system and an optical switching network implementation method.
背景技术Background technique
光交换网络因为其高带宽、低延时、低损耗等优势已经成为了替代传统电交换网络的一个热门领域,其中,Banyan交换网络以其结构简单、自由选路与路径唯一等特点,可被用于设计实现光交换网络。Optical switching networks have become a popular alternative to traditional electrical switching networks due to their advantages such as high bandwidth, low latency, and low loss. Among them, the Banyan switching network can be used to design and implement optical switching networks with its simple structure, free routing, and unique path.
然而Banyan网络是广义无阻塞网络,存在内部路径冲突的问题。为了解决该问题,现可通过在Banyan网络前添加Batcher网络,施加前置排序来实现严格无阻塞,从而使系统中增加了多级节点和连线,提高了系统的控制成本。因此,如何提出一种结构简单,控制成本低的无阻塞光交换网络,成为一个亟待解决的问题。However, the Banyan network is a generalized non-blocking network, and there is a problem of internal path conflict. In order to solve this problem, a Batcher network can be added in front of the Banyan network to impose a pre-sorting to achieve strict non-blocking, thereby adding multiple levels of nodes and connections to the system, increasing the control cost of the system. Therefore, how to propose a non-blocking optical switching network with a simple structure and low control cost has become an urgent problem to be solved.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art.
发明内容Summary of the invention
本发明的主要目的在于提供一种光交换网络系统和光交换网络实现方法,旨在解决提供一种结构简单,控制成本低的无阻塞光交换网络的技术问题。The main purpose of the present invention is to provide an optical switching network system and an optical switching network implementation method, aiming to solve the technical problem of providing a non-blocking optical switching network with a simple structure and low control cost.
为实现上述目的,本发明提供了一种光交换网络系统,该系统包括:SDN控制器、若干个SDN交换机和光交换设备;所述光交换设备包括排序光开关和若干个光开关单元,所述排序光开关和所述光开关单元组成光交换网络;To achieve the above object, the present invention provides an optical switching network system, which includes: an SDN controller, a plurality of SDN switches and an optical switching device; the optical switching device includes a sorting optical switch and a plurality of optical switch units, and the sorting optical switch and the optical switch units form an optical switching network;
所述SDN控制器设置有南向接口,所述南向接口与所述SDN交换机的第一端连接,所述SDN交换机的第二端与所述光交换设备连接;The SDN controller is provided with a southbound interface, the southbound interface is connected to a first end of the SDN switch, and a second end of the SDN switch is connected to the optical switching device;
所述SDN控制器,用于在检测到任一所述SDN交换机发送网段访问请求时,确定所述网段访问请求对应所述光交换设备的目的端口;The SDN controller is configured to determine, when detecting that any of the SDN switches sends a network segment access request, that the network segment access request corresponds to a destination port of the optical switching device;
所述SDN控制器,还用于在检测到所述目的端口未被占用时,对所述目的端口进行增序排序,并根据排序结果对所述排序光开关进行连接更新,以基于所述光开关单元和连接更新后的所述排序光开关构建所述网段访问请求对应的目标光通路。The SDN controller is further configured to sort the destination ports in ascending order when detecting that the destination port is not occupied, and to update the connection of the sorted optical switch according to the sorting result, so as to construct a target optical path corresponding to the network segment access request based on the optical switch unit and the sorted optical switch after the connection update.
可选地,所述SDN控制器,还用于根据所述目的端口的二进制编码对所述光开关单元进行状态更新,以基于连接更新后的所述排序光开关和状态更新后的所述光开关单元构成建所述网段访问请求对应的目标光通路。Optionally, the SDN controller is further used to update the state of the optical switch unit according to the binary code of the destination port, so as to establish a target optical path corresponding to the network segment access request based on the connection of the updated sorting optical switch and the updated state of the optical switch unit.
可选地,所述SDN控制器,还用于根据所述目的端口的增序排序结果生成排序配置指令,并通过所述南向接口将所述排序配置指令下发至所述排序光开关,所述排序光开关在接收到所述排序配置指令时进行所述连接更新;Optionally, the SDN controller is further configured to generate a sorting configuration instruction according to the ascending sorting result of the destination port, and send the sorting configuration instruction to the sorting optical switch through the southbound interface, and the sorting optical switch performs the connection update upon receiving the sorting configuration instruction;
所述SDN控制器,还用于根据所述目的端口的二进制编码生成状态配置指令,并通过所述南向接口将所述状态配置指令下发至所述光开关单元,所述光开关单元在接收到所述状态配置指令时进行所述状态更新。The SDN controller is further used to generate a state configuration instruction according to the binary code of the destination port, and send the state configuration instruction to the optical switch unit through the southbound interface. The optical switch unit performs the state update when receiving the state configuration instruction.
可选地,所述SDN控制器,还用于在检测到所述光交换设备时,对所述光交换设备的端口资源进行池化,生成所述端口资源池;所述端口资源池包括所述排序光开关和所述若干个光开关单元;Optionally, the SDN controller is further configured to pool the port resources of the optical switching device to generate the port resource pool when the optical switching device is detected; the port resource pool includes the sorting optical switch and the plurality of optical switch units;
所述SDN控制器,还用于获取所述排序光开关和所述光开关单元的节点信息,并根据所述节点信息生成连线配置指令;The SDN controller is further used to obtain node information of the sorting optical switch and the optical switch unit, and generate a connection configuration instruction according to the node information;
所述SDN控制器,还用于将连线配置指令下发至所述排序光开关和所述光开关单元,构成所述排序光开关与所述光开关单元之间的固定连接。The SDN controller is further used to send a connection configuration instruction to the sorting optical switch and the optical switch unit to form a fixed connection between the sorting optical switch and the optical switch unit.
可选地,所述SDN控制器中存储有端口占用表,所述端口占用表包括所述光交换网络的端口网段映射关系和端口占用情况;Optionally, a port occupancy table is stored in the SDN controller, and the port occupancy table includes a port segment mapping relationship and a port occupancy status of the optical switching network;
所述SDN控制器,还用于根据所述端口占用表检测所述目的端口是否被占用;The SDN controller is further configured to detect whether the destination port is occupied according to the port occupancy table;
所述SDN控制器,还用于在检测到所述目的端口被占用时,返回所述目标端口对应的已建光通路至所述网段访问请求对应的SDN交换机。The SDN controller is further configured to return the established optical path corresponding to the target port to the SDN switch corresponding to the network segment access request when detecting that the destination port is occupied.
可选地,所述SDN控制器,还用于在检测到所述光交换网络中建立新的光通路时,获取所述新的光通路对应的更新源网段和更新目的网段;Optionally, the SDN controller is further configured to, when detecting that a new optical path is established in the optical switching network, obtain an updated source network segment and an updated destination network segment corresponding to the new optical path;
所述SDN控制器,还用于根据所述更新源网段和所述更新目的网段对所述端口占用表进行更新。The SDN controller is further configured to update the port occupancy table according to the update source network segment and the update destination network segment.
可选地,所述SDN控制器还设置有北向接口;所述北向接口与用户界面连接;Optionally, the SDN controller is further provided with a northbound interface; the northbound interface is connected to the user interface;
所述北向接口,用于在接收到所述用户界面输入的查询指令时,查询所述光交换网络的端口状态;The northbound interface is used to query the port status of the optical switching network when receiving a query instruction input by the user interface;
所述北向接口,还用于在接收到所述用户界面输入的光路配置指令时,对所述光交换网络进行光通路控制。The northbound interface is further used to perform optical path control on the optical switching network when receiving an optical path configuration instruction input by the user interface.
可选地,所述北向接口包括:查询子模块和配置子模块;Optionally, the northbound interface includes: a query submodule and a configuration submodule;
所述查询子模块,用于在接收到所述用户界面输入的查询指令时,反馈所述光交换网络的端口占用情况;The query submodule is used to feedback the port occupancy status of the optical switching network when receiving the query instruction input by the user interface;
所述配置子模块,用于在接收到所述用户界面输入的光路配置指令时,对所述光交换网络进行光通路配置、删除或重置。The configuration submodule is used to configure, delete or reset the optical path of the optical switching network when receiving the optical path configuration instruction input by the user interface.
此外,为实现上述目的,本发明还提出一种基于上述光交换网络系统的光交换网络实现方法,所述光交换网络实现方法由所述网络孪生服务执行,所述光交换网络实现方法包括:In addition, to achieve the above-mentioned purpose, the present invention also proposes an optical switching network implementation method based on the above-mentioned optical switching network system, wherein the optical switching network implementation method is executed by the network twin service, and the optical switching network implementation method includes:
所述SDN控制器在检测到任一所述SDN交换机发送网段访问请求时,确定所述网段访问请求对应所述光交换设备的目的端口;When the SDN controller detects that any of the SDN switches sends a network segment access request, it determines that the network segment access request corresponds to a destination port of the optical switching device;
所述SDN控制器在检测到所述目的端口未被占用时,对所述目的端口进行增序排序,根据所述目的端口的增序排序结果生成排序配置指令,并通过所述南向接口将所述排序配置指令下发至所述排序光开关,所述排序光开关在接收到所述排序配置指令时进行连接更新;When the SDN controller detects that the destination port is not occupied, it sorts the destination port in ascending order, generates a sorting configuration instruction according to the ascending sorting result of the destination port, and sends the sorting configuration instruction to the sorting optical switch through the southbound interface, and the sorting optical switch performs a connection update when receiving the sorting configuration instruction;
所述SDN控制器根据所述目的端口的二进制编码生成状态配置指令,并通过所述南向接口将所述状态配置指令下发至所述光开关单元,所述光开关单元在接收到所述状态配置指令时进行所述状态更新,基于连接更新后的所述排序光开关和状态更新后的所述光开关单元构成建所述网段访问请求对应的目标光通路。The SDN controller generates a state configuration instruction according to the binary code of the destination port, and sends the state configuration instruction to the optical switch unit through the southbound interface. The optical switch unit updates the state upon receiving the state configuration instruction, and establishes a target optical path corresponding to the network segment access request based on the connection of the updated sorting optical switch and the optical switch unit after the state update.
可选地,所述SDN控制器在检测到所述SDN交换机发送网段访问请求时,确定所述网段访问请求对应所述光交换设备的目的端口之前,还包括:Optionally, when the SDN controller detects that the SDN switch sends a network segment access request, before determining that the network segment access request corresponds to a destination port of the optical switching device, the SDN controller further includes:
所述SDN控制器在检测到所述光交换设备时,对所述光交换设备的端口资源进行池化,生成所述端口资源池;When the SDN controller detects the optical switching device, the port resources of the optical switching device are pooled to generate the port resource pool;
所述SDN控制器获取所述排序光开关和所述光开关单元的节点信息,并根据所述节点信息生成连线配置指令;The SDN controller obtains node information of the sorting optical switch and the optical switch unit, and generates a connection configuration instruction according to the node information;
所述SDN控制器将连线配置指令下发至所述排序光开关和所述光开关单元,构成所述排序光开关与所述光开关单元之间的固定连接。The SDN controller sends a connection configuration instruction to the sorting optical switch and the optical switch unit to form a fixed connection between the sorting optical switch and the optical switch unit.
本发明公开了一种光交换网络系统和光交换网络实现方法,该系统包括:SDN控制器、若干个SDN交换机和光交换设备;光交换设备包括排序光开关和若干个光开关单元,排序光开关和光开关单元组成光交换网络;SDN控制器设置有南向接口,南向接口与SDN交换机的第一端连接,SDN交换机的第二端与光交换设备连接;SDN控制器,用于在检测到任一SDN交换机发送网段访问请求时,确定网段访问请求对应光交换设备的目的端口;SDN控制器,还用于在检测到目的端口未被占用时,对目的端口进行增序排序,并根据排序结果对排序光开关进行连接更新,以基于光开关单元和连接更新后的排序光开关构建网段访问请求对应的目标光通路。SDN控制器,还用于根据目的端口的二进制编码对光开关单元进行状态更新,以基于连接更新后的排序光开关和状态更新后的光开关单元构成建网段访问请求对应的目标光通路。SDN控制器,还用于根据目的端口的增序排序结果生成排序配置指令,并通过南向接口将排序配置指令下发至排序光开关,排序光开关在接收到排序配置指令时进行连接更新;SDN控制器,还用于根据目的端口的二进制编码生成状态配置指令,并通过南向接口将状态配置指令下发至光开关单元,光开关单元在接收到状态配置指令时进行状态更新。SDN控制器中存储有端口占用表,端口占用表包括光交换网络的端口网段映射关系和端口占用情况;SDN控制器,还用于根据端口占用表检测目的端口是否被占用;SDN控制器,还用于在检测到目的端口被占用时,返回目标端口对应的已建光通路至网段访问请求对应的SDN交换机。SDN控制器,还用于在检测到光交换网络中建立新的光通路时,获取新的光通路对应的更新源网段和更新目的网段;SDN控制器,还用于根据更新源网段和更新目的网段对端口占用表进行更新。本发明可基于SDN软件技术,设计了一套软硬件结合的排序-Banyan光交换网络。现有技术需通过复杂的Batcher网络进行排序,结构复杂,控制复杂。本发明可结合SDN控制器和排序光开关,在构建光通路时,SDN控制器只需要软件计算目的端口的排序结果,从而控制排序光开关做内部连接更新即可完成排序,进而构成光通路。因此,本发明可简化系统结构,降低控制成本。相较于传统的N×N个端口的具有Log2N级节点的Banyan交换网络,本发明仅增加了一层排序光开关。虽然此时具有(Log2N+1)级节点,但增加的排序光开关可结合SDN软件技术实现排序前置,复杂度远低于传统的Batcher-Banyan网络。同时,本发明可通过系统软件层实现排序计算和编排调度,并通过Openflow协议下发对应的连接配置指令和状态配置指令到OCS设备实现排序-Banyan光交换网络的功能,简单快捷地构建光通路,也降低了控制难度。The present invention discloses an optical switching network system and an optical switching network implementation method, the system comprises: an SDN controller, a plurality of SDN switches and an optical switching device; the optical switching device comprises a sorting optical switch and a plurality of optical switch units, the sorting optical switch and the optical switch unit constitute an optical switching network; the SDN controller is provided with a southbound interface, the southbound interface is connected to the first end of the SDN switch, and the second end of the SDN switch is connected to the optical switching device; the SDN controller is used to determine the destination port of the optical switching device corresponding to the network segment access request when detecting that any SDN switch sends a network segment access request; the SDN controller is also used to sort the destination port in increasing order when detecting that the destination port is not occupied, and update the connection of the sorting optical switch according to the sorting result, so as to construct a target optical path corresponding to the network segment access request based on the optical switch unit and the sorting optical switch after the connection is updated. The SDN controller is also used to update the state of the optical switch unit according to the binary code of the destination port, so as to construct a target optical path corresponding to the network segment access request based on the sorting optical switch after the connection is updated and the optical switch unit after the state is updated. The SDN controller is also used to generate a sorting configuration instruction according to the ascending sorting result of the destination port, and send the sorting configuration instruction to the sorting optical switch through the southbound interface. The sorting optical switch performs a connection update when receiving the sorting configuration instruction; the SDN controller is also used to generate a state configuration instruction according to the binary code of the destination port, and send the state configuration instruction to the optical switch unit through the southbound interface. The optical switch unit performs a state update when receiving the state configuration instruction. The SDN controller stores a port occupancy table, which includes the port network segment mapping relationship and port occupancy status of the optical switching network; the SDN controller is also used to detect whether the destination port is occupied according to the port occupancy table; the SDN controller is also used to return the established optical path corresponding to the target port to the SDN switch corresponding to the network segment access request when detecting that the destination port is occupied. The SDN controller is also used to obtain the updated source network segment and the updated destination network segment corresponding to the new optical path when detecting that a new optical path is established in the optical switching network; the SDN controller is also used to update the port occupancy table according to the updated source network segment and the updated destination network segment. The present invention can design a set of software-hardware combined sorting-Banyan optical switching network based on SDN software technology. The prior art needs to sort through a complex Batcher network, which has a complex structure and complex control. The present invention can be combined with an SDN controller and a sorting optical switch. When constructing an optical path, the SDN controller only needs to calculate the sorting result of the destination port by software, so as to control the sorting optical switch to update the internal connection to complete the sorting, thereby forming an optical path. Therefore, the present invention can simplify the system structure and reduce the control cost. Compared with the traditional Banyan switching network with Log2N level nodes of N×N ports, the present invention only adds a layer of sorting optical switch. Although there are (Log2N+1) level nodes at this time, the added sorting optical switch can be combined with SDN software technology to realize sorting pre-position, and the complexity is much lower than the traditional Batcher-Banyan network. At the same time, the present invention can realize sorting calculation and scheduling through the system software layer, and send the corresponding connection configuration instructions and state configuration instructions to the OCS device through the Openflow protocol to realize the function of the sorting-Banyan optical switching network, so as to construct the optical path simply and quickly, and also reduce the control difficulty.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明光交换网络系统第一实施例的结构框图;FIG1 is a block diagram of a first embodiment of an optical switching network system according to the present invention;
图2为本发明一种光交换网络系统第一实施例的系统物理架构图;FIG2 is a system physical architecture diagram of a first embodiment of an optical switching network system of the present invention;
图3为本发明一种光交换网络系统第一实施例的端口占用表示意图;FIG3 is a schematic diagram showing port occupancy of a first embodiment of an optical switching network system of the present invention;
图4为本发明一种光交换网络系统第一实施例的光开关单元状态示意图;4 is a schematic diagram of the state of an optical switch unit of a first embodiment of an optical switching network system of the present invention;
图5为本发明光交换网络系统第二实施例的软件架构示意图;5 is a schematic diagram of the software architecture of the second embodiment of the optical switching network system of the present invention;
图6为本发明光交换网络系统第二实施例的北向接口配置示意图;6 is a schematic diagram of the northbound interface configuration of the second embodiment of the optical switching network system of the present invention;
图7为本发明光交换网络系统第二实施例的光交换网络连接示意图;7 is a schematic diagram of optical switching network connections of a second embodiment of an optical switching network system of the present invention;
图8为本发明光交换网络系统第二实施例的端口编排关系示意图;8 is a schematic diagram of the port arrangement relationship of the second embodiment of the optical switching network system of the present invention;
图9为本发明光交换网络系统第二实施例的系统架构图;FIG9 is a system architecture diagram of a second embodiment of an optical switching network system of the present invention;
图10为本发明光交换网络实现方法第一实施例的第一流程示意图;10 is a schematic diagram of a first process of a first embodiment of a method for implementing an optical switching network according to the present invention;
图11为本发明光交换网络实现方法第一实施例的第二流程示意图。FIG. 11 is a schematic diagram of a second flow chart of the first embodiment of the optical switching network implementation method of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
可以理解的是,为解决Banyan网络内部路径冲突的问题,现有方案可在Banyan网络前添加Batcher网络,但由于Batcher网络本身结构较为复杂,因此会大幅度提高系统结构的复杂度,因而也提高了系统的控制成本。同时,SDN(Software Defined Network,软件定义网络))自诞生以来因为集中化的管理控制层被广泛应用,光交换网络也不例外,且许多OCS(Optical Circuit Switching,光路交换)也支持SDN控制器管控。It is understandable that in order to solve the problem of internal path conflicts in the Banyan network, the existing solution is to add a Batcher network in front of the Banyan network, but since the Batcher network itself has a relatively complex structure, it will greatly increase the complexity of the system structure, and thus also increase the control cost of the system. At the same time, SDN (Software Defined Network) has been widely used since its birth because of its centralized management and control layer, and optical switching networks are no exception, and many OCS (Optical Circuit Switching) also support SDN controller management.
因此,为解决上述问题,提出一种结构简单的光交换网络,本实施例可使用SDN控制器对OCS进行管控,将其端口资源池化,模拟出多个2×2的光开关来构建Banyan多级交换网络,同时软件层面实现前置Batcher排序来替代现有实际的Batcher网络中的复杂连线,就可以在实现严格无阻塞网络的同时,简化组网结构与控制算法的复杂度。具体地,本发明实施例提供了一种光交换网络系统,参照图1,图1为本发明一种光交换网络系统第一实施例的结构框图。Therefore, in order to solve the above problems, a simple optical switching network is proposed. In this embodiment, an SDN controller can be used to manage and control OCS, pool its port resources, simulate multiple 2×2 optical switches to build a Banyan multi-stage switching network, and implement pre-Batcher sorting at the software level to replace the complex connections in the existing actual Batcher network. This can simplify the complexity of the networking structure and control algorithm while realizing a strictly non-blocking network. Specifically, an embodiment of the present invention provides an optical switching network system, referring to Figure 1, which is a structural block diagram of a first embodiment of an optical switching network system of the present invention.
本实施例中,所述系统包括:SDN控制器、若干个SDN交换机和光交换设备;所述光交换设备包括排序光开关和若干个光开关单元,所述排序光开关和所述光开关单元组成光交换网络;In this embodiment, the system includes: an SDN controller, a plurality of SDN switches and an optical switching device; the optical switching device includes a sorting optical switch and a plurality of optical switch units, and the sorting optical switch and the optical switch units form an optical switching network;
所述SDN控制器设置有南向接口,所述南向接口与所述SDN交换机的第一端连接,所述SDN交换机的第二端与所述光交换设备连接;The SDN controller is provided with a southbound interface, the southbound interface is connected to a first end of the SDN switch, and a second end of the SDN switch is connected to the optical switching device;
所述SDN控制器,用于在检测到任一所述SDN交换机发送网段访问请求时,确定所述网段访问请求对应所述光交换设备的目的端口;The SDN controller is configured to determine, when detecting that any of the SDN switches sends a network segment access request, that the network segment access request corresponds to a destination port of the optical switching device;
所述SDN控制器,还用于在检测到所述目的端口未被占用时,对所述目的端口进行增序排序,并根据排序结果对所述排序光开关进行连接更新,以基于所述光开关单元和连接更新后的所述排序光开关构建所述网段访问请求对应的目标光通路。The SDN controller is further configured to sort the destination ports in ascending order when detecting that the destination port is not occupied, and to update the connection of the sorted optical switch according to the sorting result, so as to construct a target optical path corresponding to the network segment access request based on the optical switch unit and the sorted optical switch after the connection update.
需要说明的是,本实施例提出的光交换网络系统可应用于任意网络中,其中,上述SDN控制器是软件定义网络(SDN)中的应用程序,负责流量控制以确保智能网络。SDN交换机则为一种新型交换机设备,其可通过使用OpenFlow协议与SDN控制器进行通信,接收并执行SDN控制器的指令,实现网络流量的灵活控制。在实际应用中,SDN交换机可与不同的实体网络设备(手机、电脑或平板电脑等)或OVS(Open VSiwtch,虚拟交换机)连接,实现相连设备的网络通信。It should be noted that the optical switching network system proposed in this embodiment can be applied to any network, wherein the above-mentioned SDN controller is an application in the software defined network (SDN), which is responsible for traffic control to ensure the intelligent network. The SDN switch is a new type of switch device, which can communicate with the SDN controller by using the OpenFlow protocol, receive and execute the instructions of the SDN controller, and realize flexible control of network traffic. In practical applications, the SDN switch can be connected to different physical network devices (mobile phones, computers or tablets, etc.) or OVS (Open VSiwtch, virtual switch) to realize network communication of connected devices.
易理解的是,上述网段访问请求是SDN交换机的接入端所连接的设备发送的连接请求,该接入设备可为OVS设备或其他主机设备,为了便于理解,以图2为例进行举例说明,图2为本发明一种光交换网络系统第一实施例的系统物理架构图,如图2所示,本实施例中,各SDN交换机的第一端可通过南向接口与SDN控制器连接,各SDN交换机的第二端与光交换设备连接,同时,各SDN交换机的接入端可接入OVS设备或其他主机设备。OVS设备或其他主机设备负责纳管定义网段下的设备,统一受SDN控制器管理。It is easy to understand that the above-mentioned network segment access request is a connection request sent by the device connected to the access end of the SDN switch. The access device can be an OVS device or other host device. For ease of understanding, Figure 2 is used as an example for illustration. Figure 2 is a system physical architecture diagram of the first embodiment of an optical switching network system of the present invention. As shown in Figure 2, in this embodiment, the first end of each SDN switch can be connected to the SDN controller through a southbound interface, and the second end of each SDN switch is connected to the optical switching device. At the same time, the access end of each SDN switch can be connected to the OVS device or other host device. The OVS device or other host device is responsible for managing the devices under the defined network segment, which are uniformly managed by the SDN controller.
需要理解的是,上述光交换设备即为支持SDN控制的OCS(Optical CircuitSwitching,光路交换)设备,其可为每一个连接请求建立从源端到目的地端的光路(每一个链路上均需要分配一个专业波长)。如图2所示,本实施例中,OCS的端口可被分为两部分:一个排序模块,即上述排序光开关和若干个2×2的光开关单元。易理解的是,其中,若干个2×2的光开关单元即可构成Banyan结构的光交换网络,结合排序光开关即可构成排序-Banyan光交换网络。同时,排序光开关则可在SDN控制器的控制作用下进行输出排序,从而避免Banyan网络的内部冲突问题。因此,与现有方案的复杂的Batcher网络结构相比,本实施例可通过一个排序光开关实现输出排序,极大地简化了系统结构,也即降低了控制成本。It should be understood that the above-mentioned optical switching equipment is an OCS (Optical Circuit Switching) device that supports SDN control, which can establish an optical path from the source end to the destination end for each connection request (a dedicated wavelength needs to be allocated on each link). As shown in Figure 2, in this embodiment, the port of OCS can be divided into two parts: a sorting module, namely the above-mentioned sorting optical switch and a number of 2×2 optical switch units. It is easy to understand that, among them, a number of 2×2 optical switch units can constitute a Banyan structure optical switching network, and combined with the sorting optical switch, a sorting-Banyan optical switching network can be formed. At the same time, the sorting optical switch can perform output sorting under the control of the SDN controller, thereby avoiding internal conflict problems in the Banyan network. Therefore, compared with the complex Batcher network structure of the existing solution, this embodiment can achieve output sorting through a sorting optical switch, which greatly simplifies the system structure, that is, reduces the control cost.
可理解的是,上述网段访问请求中可包含接入设备需要连接或访问的目的网段。因此,SDN控制器在检测到任一SDN交换机发送网段访问请求时,需确定网段访问请求中包含的目的网段所对应的OCS设备输出端口,即上述目的端口的占用情况。It is understandable that the above network segment access request may include the destination network segment that the access device needs to connect to or access. Therefore, when the SDN controller detects that any SDN switch sends a network segment access request, it needs to determine the OCS device output port corresponding to the destination network segment included in the network segment access request, that is, the occupancy of the above destination port.
易理解的是,为降低控制复杂度,提高控制效率,本实施例可在SDN控制器中预先建立端口占用表,该端口占用表中可包括OCS设备中排序-Banyan光交换网络的端口网段映射关系和端口占用情况,因此,进一步地,作为一种可实施方式,本实施例中,所述SDN控制器,还用于根据所述端口占用表检测所述目的端口是否被占用;It is easy to understand that in order to reduce control complexity and improve control efficiency, in this embodiment, a port occupancy table may be pre-established in the SDN controller, and the port occupancy table may include the port segment mapping relationship and port occupancy status of the sorting-Banyan optical switching network in the OCS device. Therefore, further, as an implementable method, in this embodiment, the SDN controller is also used to detect whether the destination port is occupied according to the port occupancy table;
所述SDN控制器,还用于在检测到所述目的端口被占用时,返回所述目标端口对应的已建光通路至所述网段访问请求对应的SDN交换机。The SDN controller is further configured to return the established optical path corresponding to the target port to the SDN switch corresponding to the network segment access request when detecting that the destination port is occupied.
需要说明的是,上述端口网段映射关系可以是排序-Banyan光交换网络的输入输出端口与对应连接的网段(或网关)地址的映射关系,上述端口占用情况则可以是排序-Banyan光交换网络输入端口到输出端口之间光路的占用情况(或系统输入输出端口的占用情况)。为了便于理解,假设实际应用中排序-Banyan光交换网络为8×8结构的光交换网络,则以图3为例进行举例说明,图3为本发明一种光交换网络系统第一实施例的端口占用表示意图,如图3所示,端口占用表中可分别存储8个输入端口和8个输出端口的占用情况以及对应连接的网段(或网关)地址。其中,网段行存储的是端口连接的网段(或网关)地址;占用行存储的是端口状态,端口状态以数字表示,-1表示未占用,0-7表示已占用的同时也指代光路的对端端口,即对应连接的端口。因此,图3可表示光交换网络中有3条光通路:输入0-输出7、输入1-输出6和输入2-输出4,且输入0对应的网段地址为:1.1.0.x,输入7对应的网段地址为:1.1.15.x,其余端口的网段映射关系同理,此处不再赘述。It should be noted that the above-mentioned port-to-network segment mapping relationship can be a mapping relationship between the input and output ports of the sorting-Banyan optical switching network and the corresponding connected network segment (or gateway) address, and the above-mentioned port occupancy status can be the occupancy status of the optical path between the input port and the output port of the sorting-Banyan optical switching network (or the occupancy status of the system input and output ports). For ease of understanding, assuming that the sorting-Banyan optical switching network is an optical switching network with an 8×8 structure in actual application, Figure 3 is used as an example for illustration. Figure 3 is a schematic diagram of the port occupancy table of the first embodiment of an optical switching network system of the present invention. As shown in Figure 3, the port occupancy table can store the occupancy status of 8 input ports and 8 output ports and the corresponding connected network segment (or gateway) address respectively. Among them, the network segment row stores the network segment (or gateway) address of the port connection; the occupied row stores the port status, and the port status is represented by a number, -1 means unoccupied, 0-7 means occupied, and also refers to the opposite end port of the optical path, that is, the corresponding connected port. Therefore, Figure 3 can indicate that there are three optical paths in the optical switching network: input 0-output 7, input 1-output 6, and input 2-output 4, and the network segment address corresponding to input 0 is: 1.1.0.x, the network segment address corresponding to input 7 is: 1.1.15.x, and the network segment mapping relationship of the remaining ports is similar, which will not be repeated here.
需要理解的是,若SDN控制器通过查询端口占用表获知目的端口被占用,则表明目的端口已与一个输入端口之间建立了稳定的光通路,则SDN控制器可直接将目的端口当前对应的已建光通路反馈至发送网段访问请求的SDN交换机,具体地,SDN控制器可返回已建光通路两端对应的输入输出端口号以及对应网段,从而建立发送网段访问请求的接入设备与目的端口所对应的网段之间的通信连接。It should be understood that if the SDN controller learns that the destination port is occupied by querying the port occupancy table, it means that a stable optical path has been established between the destination port and an input port. The SDN controller can directly feedback the established optical path currently corresponding to the destination port to the SDN switch that sends the network segment access request. Specifically, the SDN controller can return the input and output port numbers and the corresponding network segments corresponding to the two ends of the established optical path, thereby establishing a communication connection between the access device that sends the network segment access request and the network segment corresponding to the destination port.
可以理解的是,上述端口占用表需要不断地更新维护,因此,进一步地,作为一种可实施方式,本实施例中,所述SDN控制器,还用于在检测到所述光交换网络中建立新的光通路时,获取所述新的光通路对应的更新源网段和更新目的网段;It can be understood that the above port occupancy table needs to be continuously updated and maintained. Therefore, further, as an implementable method, in this embodiment, the SDN controller is also used to obtain an updated source network segment and an updated destination network segment corresponding to the new optical path when a new optical path is detected to be established in the optical switching network;
所述SDN控制器,还用于根据所述更新源网段和所述更新目的网段对所述端口占用表进行更新。The SDN controller is further configured to update the port occupancy table according to the update source network segment and the update destination network segment.
需要说明的是,上述更新源网段可以是新的光通路的输入端口对应的网段,更新目的网段可以是新的光通路的输出端口对应的网段。当建立新的光通路后,SDN控制器即可把更新源网段和更新目的网段与对应的接入端口进行映射,再对端口占用表中保存的端口网段映射关系和端口占用情况都进行实时更新。此外,除了上述情况,当检测到当OVS主机或其他主机设备接入排序-Banyan光交换网络时,输入或输出端口时也会该情况将上报至SDN控制器,SDN控制器也可对应把OVS主机或其他主机设备纳管的网段与接入端口进行映射,再通过上述方法更新端口占用表。It should be noted that the above-mentioned update source network segment can be the network segment corresponding to the input port of the new optical path, and the update destination network segment can be the network segment corresponding to the output port of the new optical path. After the new optical path is established, the SDN controller can map the update source network segment and the update destination network segment to the corresponding access port, and then update the port network segment mapping relationship and port occupancy status stored in the port occupancy table in real time. In addition, in addition to the above situation, when it is detected that the OVS host or other host device is connected to the sorting-Banyan optical switching network, the input or output port will also report this situation to the SDN controller. The SDN controller can also map the network segment managed by the OVS host or other host device to the access port, and then update the port occupancy table through the above method.
需要理解的是,若SDN控制器通过查询端口占用表获知目的端口未被占用,则表明当前目的端口并没有对应的光通路,则SDN控制器需提取目的端口并建立对应的光通路。因此,本实施例可对目的端口进行增序排序,并根据排序结果对排序光开关进行连接更新,以基于光开关单元和连接更新后的排序光开关构建网段访问请求对应的目标光通路。It should be understood that if the SDN controller learns that the destination port is not occupied by querying the port occupation table, it means that the current destination port does not have a corresponding optical path, and the SDN controller needs to extract the destination port and establish a corresponding optical path. Therefore, this embodiment can sort the destination ports in ascending order, and update the connection of the sorted optical switch according to the sorting result, so as to construct the target optical path corresponding to the network segment access request based on the optical switch unit and the sorted optical switch after the connection update.
其中,易理解的是,排序-Banyan光交换网络中可能存在除目的端口之外的其他输出端口已建立或也待建立光通路,即排序-Banyan光交换网络中不只一条光通路。因此,为避免排序-Banyan光交换网络内部出现冲突,本实施例可在软件层面,通过前置Batcher排序结合排序光开关替代现有复杂的连线Batcher网络,即本实施例可由SDN控制器结合排序光开关对输出端口进行排序。It is easy to understand that in the sorting-Banyan optical switching network, there may be other output ports other than the destination port that have established or are to establish optical paths, that is, there is more than one optical path in the sorting-Banyan optical switching network. Therefore, in order to avoid conflicts within the sorting-Banyan optical switching network, this embodiment can replace the existing complex wiring Batcher network at the software level by combining the pre-Batcher sorting with the sorting optical switch, that is, in this embodiment, the SDN controller can be combined with the sorting optical switch to sort the output ports.
进一步地,作为一种可实施方式,本实施例中,所述SDN控制器,还用于根据所述目的端口的增序排序结果生成排序配置指令,并通过所述南向接口将所述排序配置指令下发至所述排序光开关,所述排序光开关在接收到所述排序配置指令时进行所述连接更新;Further, as an implementable embodiment, in this embodiment, the SDN controller is further used to generate a sorting configuration instruction according to the ascending sorting result of the destination port, and send the sorting configuration instruction to the sorting optical switch through the southbound interface, and the sorting optical switch performs the connection update when receiving the sorting configuration instruction;
需要说明的是,本实施例中,SDN控制器可对目的端口和其他需要进行排序的输出端口进行增序排序。例如,若排序-Banyan光交换网络的输入端口0-2对应的输出端口分别为输出端口7、4和6,则SDN控制器输出的增序排序结果可为:输出端口4、6和7。SDN控制器可在计算出增序排序结果后,生成对应的排序配置指令,并基于OpenFlow协议通过南向接口下发至排序光开关,排序光开关在接收到排序配置指令时进行连接更新,连接更新后的排序光开关输出的光通路亦按照增序排序结果排列。若如上所示,排序-Banyan光交换网络的输入端口0-2对应的输出端口分别为输出端口7、4和6,则连接更新后的排序光开关对应输出的光通路依次为:输出端口4的光通路、输出端口6的光通路和输出端口7的光通路。It should be noted that, in this embodiment, the SDN controller can sort the destination ports and other output ports that need to be sorted in ascending order. For example, if the output ports corresponding to the input ports 0-2 of the sorting-Banyan optical switching network are output ports 7, 4, and 6, respectively, then the ascending sorting results output by the SDN controller may be: output ports 4, 6, and 7. After calculating the ascending sorting results, the SDN controller can generate the corresponding sorting configuration instructions, and send them to the sorting optical switch through the southbound interface based on the OpenFlow protocol. The sorting optical switch performs a connection update upon receiving the sorting configuration instructions, and the optical paths output by the updated sorting optical switch are also arranged according to the ascending sorting results. If, as shown above, the output ports corresponding to the input ports 0-2 of the sorting-Banyan optical switching network are output ports 7, 4, and 6, respectively, then the optical paths corresponding to the outputs of the updated sorting optical switch are: the optical path of output port 4, the optical path of output port 6, and the optical path of output port 7.
易理解的是,上述排序光开关进行连接更新后,仅实现了排序光开关内部的连接关系的更新,为了避免排序-Banyan光交换网络内部的冲突,本实施例中SDN控制器还需对光开关单元的内部状态进行编排调度,从而构成完整的光通路。因此,进一步地,作为一种可实施方式,本实施例中,所述SDN控制器,还用于根据所述目的端口的二进制编码对所述光开关单元进行状态更新,以基于连接更新后的所述排序光开关和状态更新后的所述光开关单元构成建所述网段访问请求对应的目标光通路。It is easy to understand that after the above-mentioned sorting optical switch performs connection update, only the connection relationship inside the sorting optical switch is updated. In order to avoid conflicts inside the sorting-Banyan optical switching network, the SDN controller in this embodiment also needs to schedule the internal state of the optical switch unit to form a complete optical path. Therefore, further, as an implementable method, in this embodiment, the SDN controller is also used to update the state of the optical switch unit according to the binary code of the destination port, so as to form a target optical path corresponding to the network segment access request based on the sorting optical switch after the connection update and the optical switch unit after the state update.
可理解的是,光开关单元均为2x2结构的开关,其内部状态可为0或1。为了便于理解,以图4为例进行举例说明,图4为本发明一种光交换网络系统第一实施例的光开关单元状态示意图,如图4所示,状态0可表示2×2开关的输入始终与输出上端相连;状态1可表示2×2开关的输入始终与输出下端相连。It is understandable that the optical switch units are all switches of 2x2 structure, and their internal states can be 0 or 1. For ease of understanding, FIG4 is taken as an example for illustration, which is a schematic diagram of the states of the optical switch units of the first embodiment of an optical switching network system of the present invention. As shown in FIG4, state 0 can indicate that the input of the 2×2 switch is always connected to the upper end of the output; state 1 can indicate that the input of the 2×2 switch is always connected to the lower end of the output.
具体地,作为一种可实施方式,本实施例中,所述SDN控制器,还用于根据所述目的端口的二进制编码生成状态配置指令,并通过所述南向接口将所述状态配置指令下发至所述光开关单元,所述光开关单元在接收到所述状态配置指令时进行所述状态更新。Specifically, as an implementable method, in this embodiment, the SDN controller is also used to generate a status configuration instruction according to the binary code of the destination port, and send the status configuration instruction to the optical switch unit through the southbound interface, and the optical switch unit performs the status update when receiving the status configuration instruction.
需要说明的是,包含目的端口在内的各输出端口均可由对应的二进制编码,例如,输出端口7对应二进制编码111,输出端口6对应二进制编码110,输出端口4对应二进制编码100。而各输出端口的二级制编码与对应输出光路所经过的光开关单元的状态对应,因此,本实施例中,SDN控制器还可根据目的端口的二进制编码生成状态配置指令,并通过南向接口将状态配置指令下发至光开关单元,光开关单元在接收到状态配置指令时进行对应的内部状态配置,从而基于连接更新后的排序光开关和状态更新后的光开关单元构成与目的端口对应的目标光通路。It should be noted that each output port including the destination port can be encoded by a corresponding binary code, for example, output port 7 corresponds to binary code 111, output port 6 corresponds to binary code 110, and output port 4 corresponds to binary code 100. The binary code of each output port corresponds to the state of the optical switch unit through which the corresponding output optical path passes. Therefore, in this embodiment, the SDN controller can also generate a state configuration instruction according to the binary code of the destination port, and send the state configuration instruction to the optical switch unit through the southbound interface. When the optical switch unit receives the state configuration instruction, it performs the corresponding internal state configuration, thereby forming a target optical path corresponding to the destination port based on the connection of the updated sorting optical switch and the optical switch unit after the state is updated.
综上所述,本实施例可基于SDN软件技术,设计了一套软硬件结合的排序-Banyan光交换网络。具体地,相较于传统的N×N个端口的具有Log2N级节点的Banyan交换网络,本实施例仅增加了一层排序光开关。虽然此时具有(Log2N+1)级节点,但增加的排序光开关可结合SDN软件技术实现排序前置,复杂度远低于传统的Batcher-Banyan网络。同时,本实施例可通过系统软件层实现排序计算和编排调度,并通过Openflow协议下发对应的连接配置指令和状态配置指令到OCS设备实现排序-Banyan光交换网络的功能,简单快捷地构建光通路,也降低了控制难度。In summary, this embodiment can design a set of software and hardware combined sorting-Banyan optical switching network based on SDN software technology. Specifically, compared with the traditional Banyan switching network with N×N ports and Log2N-level nodes, this embodiment only adds a layer of sorting optical switches. Although there are (Log2N+1)-level nodes at this time, the added sorting optical switches can be combined with SDN software technology to achieve sorting pre-positioning, and the complexity is much lower than the traditional Batcher-Banyan network. At the same time, this embodiment can implement sorting calculation and orchestration scheduling through the system software layer, and send the corresponding connection configuration instructions and status configuration instructions to the OCS device through the Openflow protocol to realize the function of the sorting-Banyan optical switching network, which can simply and quickly build an optical path and reduce the control difficulty.
本实施例公开了一种光交换网络系统,该光交换网络系统包括:SDN控制器、若干个SDN交换机和光交换设备;光交换设备包括排序光开关和若干个光开关单元,排序光开关和光开关单元组成光交换网络;SDN控制器设置有南向接口,南向接口与SDN交换机的第一端连接,SDN交换机的第二端与光交换设备连接;SDN控制器,用于在检测到任一SDN交换机发送网段访问请求时,确定网段访问请求对应光交换设备的目的端口;SDN控制器,还用于在检测到目的端口未被占用时,对目的端口进行增序排序,并根据排序结果对排序光开关进行连接更新,以基于光开关单元和连接更新后的排序光开关构建网段访问请求对应的目标光通路。SDN控制器,还用于根据目的端口的二进制编码对光开关单元进行状态更新,以基于连接更新后的排序光开关和状态更新后的光开关单元构成建网段访问请求对应的目标光通路。SDN控制器,还用于根据目的端口的增序排序结果生成排序配置指令,并通过南向接口将排序配置指令下发至排序光开关,排序光开关在接收到排序配置指令时进行连接更新;SDN控制器,还用于根据目的端口的二进制编码生成状态配置指令,并通过南向接口将状态配置指令下发至光开关单元,光开关单元在接收到状态配置指令时进行状态更新。SDN控制器中存储有端口占用表,端口占用表包括光交换网络的端口网段映射关系和端口占用情况;SDN控制器,还用于根据端口占用表检测目的端口是否被占用;SDN控制器,还用于在检测到目的端口被占用时,返回目标端口对应的已建光通路至网段访问请求对应的SDN交换机。SDN控制器,还用于在检测到光交换网络中建立新的光通路时,获取新的光通路对应的更新源网段和更新目的网段;SDN控制器,还用于根据更新源网段和更新目的网段对端口占用表进行更新。本实施例可基于SDN软件技术,设计了一套软硬件结合的排序-Banyan光交换网络。现有技术需通过复杂的Batcher网络进行排序,结构复杂,控制复杂。本实施例可结合SDN控制器和排序光开关,在构建光通路时,SDN控制器只需要软件计算目的端口的排序结果,从而控制排序光开关做内部连接更新即可完成排序,进而构成光通路。因此,本实施例可简化系统结构,降低控制成本。相较于传统的N×N个端口的具有Log2N级节点的Banyan交换网络,本实施例仅增加了一层排序光开关。虽然此时具有(Log2N+1)级节点,但增加的排序光开关可结合SDN软件技术实现排序前置,复杂度远低于传统的Batcher-Banyan网络。同时,本实施例可通过系统软件层实现排序计算和编排调度,并通过Openflow协议下发对应的连接配置指令和状态配置指令到OCS设备实现排序-Banyan光交换网络的功能,简单快捷地构建光通路,也降低了控制难度。The present embodiment discloses an optical switching network system, which includes: an SDN controller, a plurality of SDN switches and an optical switching device; the optical switching device includes a sorting optical switch and a plurality of optical switch units, and the sorting optical switch and the optical switch unit constitute an optical switching network; the SDN controller is provided with a southbound interface, the southbound interface is connected to the first end of the SDN switch, and the second end of the SDN switch is connected to the optical switching device; the SDN controller is used to determine the destination port of the optical switching device corresponding to the network segment access request when detecting that any SDN switch sends a network segment access request; the SDN controller is also used to sort the destination port in increasing order when detecting that the destination port is not occupied, and update the connection of the sorting optical switch according to the sorting result, so as to construct a target optical path corresponding to the network segment access request based on the optical switch unit and the sorting optical switch after the connection is updated. The SDN controller is also used to update the state of the optical switch unit according to the binary code of the destination port, so as to construct a target optical path corresponding to the network segment access request based on the sorting optical switch after the connection is updated and the optical switch unit after the state is updated. The SDN controller is also used to generate a sorting configuration instruction according to the ascending sorting result of the destination port, and send the sorting configuration instruction to the sorting optical switch through the southbound interface. The sorting optical switch performs a connection update when receiving the sorting configuration instruction; the SDN controller is also used to generate a state configuration instruction according to the binary code of the destination port, and send the state configuration instruction to the optical switch unit through the southbound interface. The optical switch unit performs a state update when receiving the state configuration instruction. The SDN controller stores a port occupancy table, which includes the port network segment mapping relationship and port occupancy status of the optical switching network; the SDN controller is also used to detect whether the destination port is occupied according to the port occupancy table; the SDN controller is also used to return the established optical path corresponding to the target port to the SDN switch corresponding to the network segment access request when detecting that the destination port is occupied. The SDN controller is also used to obtain the updated source network segment and the updated destination network segment corresponding to the new optical path when detecting that a new optical path is established in the optical switching network; the SDN controller is also used to update the port occupancy table according to the updated source network segment and the updated destination network segment. This embodiment can design a set of software and hardware combined sorting-Banyan optical switching network based on SDN software technology. The existing technology needs to sort through a complex Batcher network, which has a complex structure and complex control. This embodiment can be combined with an SDN controller and a sorting optical switch. When constructing an optical path, the SDN controller only needs to calculate the sorting result of the destination port by software, so as to control the sorting optical switch to update the internal connection to complete the sorting, thereby forming an optical path. Therefore, this embodiment can simplify the system structure and reduce the control cost. Compared with the traditional Banyan switching network with Log2N-level nodes of N×N ports, this embodiment only adds a layer of sorting optical switches. Although there are (Log2N+1)-level nodes at this time, the added sorting optical switch can be combined with SDN software technology to realize sorting pre-position, and the complexity is much lower than the traditional Batcher-Banyan network. At the same time, this embodiment can realize sorting calculation and orchestration scheduling through the system software layer, and send the corresponding connection configuration instructions and status configuration instructions to the OCS device through the Openflow protocol to realize the function of sorting-Banyan optical switching network, which can simply and quickly build an optical path and reduce the control difficulty.
参照图5,图5为本发明光交换网络系统第二实施例的软件架构示意图,基于上述图1所示的第一实施例,提出本发明光交换网络系统的第二实施例。5 , which is a schematic diagram of the software architecture of the second embodiment of the optical switching network system of the present invention, based on the first embodiment shown in FIG. 1 above, a second embodiment of the optical switching network system of the present invention is proposed.
如图5所示,本实施例中,所述SDN控制器还设置有北向接口;所述北向接口与用户界面连接;As shown in FIG5 , in this embodiment, the SDN controller is further provided with a northbound interface; the northbound interface is connected to the user interface;
所述北向接口,用于在接收到所述用户界面输入的查询指令时,查询所述光交换网络的端口状态;The northbound interface is used to query the port status of the optical switching network when receiving a query instruction input by the user interface;
所述北向接口,还用于在接收到所述用户界面输入的光路配置指令时,对所述光交换网络进行光通路控制。The northbound interface is further used to perform optical path control on the optical switching network when receiving an optical path configuration instruction input by the user interface.
需要说明的是,上述北向接口可以是SDN连接器的对外API(ApplicationProgramming Interface)接口,其对外可表现在终端设备中的网络UI(网络产品界面设计,Website User Interface)界面中,当用户登入UI界面后,即可通过其中的API接口为用户提供信息查询和光路控制服务。具体地,北向接口可用于查询网络地址映射、端口及端口间光路占用状态,也可用于根据用户通过用户界面输入的光路配置指令编辑排序-Banyan光交换网络的光通路。It should be noted that the above-mentioned northbound interface can be an external API (Application Programming Interface) interface of the SDN connector, which can be displayed externally in the network UI (Website User Interface) interface in the terminal device. When the user logs in to the UI interface, the API interface can be used to provide information query and optical path control services to the user. Specifically, the northbound interface can be used to query the network address mapping, the port and the optical path occupancy status between ports, and can also be used to edit and sort the optical paths of the Banyan optical switching network according to the optical path configuration instructions entered by the user through the user interface.
进一步地,作为一种可实施方式,本实施例中,所述北向接口包括:查询子模块和配置子模块;Further, as an implementable method, in this embodiment, the northbound interface includes: a query submodule and a configuration submodule;
所述查询子模块,用于在接收到所述用户界面输入的查询指令时,反馈所述光交换网络的端口占用情况;The query submodule is used to feedback the port occupancy status of the optical switching network when receiving the query instruction input by the user interface;
所述配置子模块,用于在接收到所述用户界面输入的光路配置指令时,对所述光交换网络进行光通路配置、删除或重置。The configuration submodule is used to configure, delete or reset the optical path of the optical switching network when receiving the optical path configuration instruction input by the user interface.
需要理解的是,本实施例中,上述查询子模块可用于查询当前系统的排序-Banyan光交换网络中已包含的光通路路对应端口的占用与映射关系;配置子模块则可用于手动编辑光通路的状态,即可在当前系统的排序-Banyan光交换网络中手动添加、删除或重置光通路。具体地,如图6所示,图6为本发明光交换网络系统第二实施例的北向接口配置示意图。如图6所示,北向接口中可配置五个接口,五个接口可分别用于查询输入端口的占用情况、输出端口的占用情况、手动添加(或配置)光路、手动删除(或释放)光路和手动重置光路,北向接口对应显示在UI界面的结果如图6中的返回列所示,本实施例对此不再赘述。It should be understood that, in this embodiment, the above-mentioned query submodule can be used to query the occupancy and mapping relationship of the ports corresponding to the optical paths already included in the sorting-Banyan optical switching network of the current system; the configuration submodule can be used to manually edit the status of the optical path, that is, to manually add, delete or reset the optical path in the sorting-Banyan optical switching network of the current system. Specifically, as shown in Figure 6, Figure 6 is a schematic diagram of the northbound interface configuration of the second embodiment of the optical switching network system of the present invention. As shown in Figure 6, five interfaces can be configured in the northbound interface, and the five interfaces can be used to query the occupancy of the input port, the occupancy of the output port, manually add (or configure) the optical path, manually delete (or release) the optical path, and manually reset the optical path. The result corresponding to the northbound interface displayed on the UI interface is shown in the return column of Figure 6, and this embodiment will not be repeated.
可以理解的是,在用户通过用户界面输入手动配置或删除光路径的指令时,SDN控制器可通过Openflow下发相应的连接配置指令和状态配置指令至排序光开关和光开关单元,以对N×N排序光开关和2×2光开关单元内部进行连线,生成或删除一条通路,这部分连接根据SDN控制器的请求编排计算后实时更新,且通路更改后需对端口占用表进行更新。It can be understood that when the user inputs the instruction to manually configure or delete the optical path through the user interface, the SDN controller can send the corresponding connection configuration instructions and status configuration instructions to the sorting optical switch and optical switch unit through Openflow to connect the N×N sorting optical switch and the 2×2 optical switch unit to generate or delete a path. This part of the connection is updated in real time after the calculation and arrangement according to the request of the SDN controller, and the port occupancy table needs to be updated after the path is changed.
易理解的是,上述SDN控制下发的的连接配置指令和状态配置指令只能控制排序光开关和光开关单元的内部连接,为了进一步实现排序-Banyan光交换网络的严格无阻塞,本实施例还可事先根据OCS设备的端口设置排序光开关和光开关单元之间的固定连接。因此,本实施例中,所述SDN控制器,还用于在检测到所述光交换设备时,对所述光交换设备的端口资源进行池化,生成所述端口资源池;It is easy to understand that the connection configuration instructions and state configuration instructions issued by the above SDN control can only control the internal connection between the sorting optical switch and the optical switch unit. In order to further achieve the strict non-blocking of the sorting-Banyan optical switching network, this embodiment can also set the fixed connection between the sorting optical switch and the optical switch unit in advance according to the port of the OCS device. Therefore, in this embodiment, the SDN controller is also used to pool the port resources of the optical switching device when detecting the optical switching device to generate the port resource pool;
所述SDN控制器,还用于获取所述排序光开关和所述光开关单元的节点信息,并根据所述节点信息生成连线配置指令;The SDN controller is further used to obtain node information of the sorting optical switch and the optical switch unit, and generate a connection configuration instruction according to the node information;
所述SDN控制器,还用于将连线配置指令下发至所述排序光开关和所述光开关单元,构成所述排序光开关与所述光开关单元之间的固定连接。The SDN controller is further used to send a connection configuration instruction to the sorting optical switch and the optical switch unit to form a fixed connection between the sorting optical switch and the optical switch unit.
需要说明的是,本实施例中采用了支持SDN管控的光交换设备,因此SDN控制器在检测到光交换设备时,可根据光交换设备自身的光端口数量将OCS若干端口管理起来,构成端口资源池并做以下工作:It should be noted that in this embodiment, an optical switching device supporting SDN control is used. Therefore, when the SDN controller detects the optical switching device, it can manage several OCS ports according to the number of optical ports of the optical switching device itself to form a port resource pool and perform the following tasks:
首先,SDN控制器可组成N×N的排序光开关,排序光开关的端口数量与NxN的Batcher排序端口规模一致,同时将排序开关端口编号存储到资源池中以方便调用。First, the SDN controller can form an N×N sorting optical switch, the number of ports of the sorting optical switch is consistent with the scale of the NxN Batcher sorting ports, and the sorting switch port numbers are stored in the resource pool for easy calling.
然后,SDN控制器可将剩余OCS端口按照4个一组,组成若干个2×2的光开关单元,其功能上可实现0/1状态切换,并构成Banyan网络,此时,同样可将0/1开关端口编号存储到资源池中以方便调用。Then, the SDN controller can group the remaining OCS ports into several 2×2 optical switch units in groups of 4, which can functionally implement 0/1 state switching and form a Banyan network. At this time, the 0/1 switch port number can also be stored in the resource pool for easy call.
最后,排序光开关与Banyan网络输入端口(特定编号的2x2光开关端口)连接即可组成排序-Banyan光交换网络,SDN控制器可获取确定的排序光开关和光开关单元的节点信息,并根据节点信息确定排序光开关和光开关单元之间的不会造成阻塞的固定编排,并根据确定的固定编排生成连线配置指令下发至排序光开关和光开关单元,以构成排序光开关和光开关单元之间的固定连接。易理解的是,所有连接由控制器做完资源池化后启动下发配置完成。Finally, the sorting optical switch is connected to the Banyan network input port (specific numbered 2x2 optical switch port) to form a sorting-Banyan optical switching network. The SDN controller can obtain the node information of the determined sorting optical switch and optical switch unit, and determine the fixed arrangement between the sorting optical switch and the optical switch unit that will not cause blocking based on the node information, and generate connection configuration instructions based on the determined fixed arrangement and send them to the sorting optical switch and the optical switch unit to form a fixed connection between the sorting optical switch and the optical switch unit. It is easy to understand that all connections are completed by the controller after completing resource pooling and starting to send configuration.
在具体实现中,池内的调度存储方式可以按照排序-Banyan组网的节点进行划分,以图7为例进行举例说明,图7为本发明光交换网络系统第二实施例的光交换网络连接示意图。假设光交换网络为8×8结构的网络,即SDN控制器在检测到光交换网络后可将其分为S0,S1,S2和S3节点。其中,S0节点可为8×8的排序光开关,一共有0-15的端口编号;S1至S3可为表示Banyan网口的三个级节点,每一级都有0-15的端口编号,且S1至S3中各有4个2x2光开关端口,比如S1.0-S1.3表示S1节点下的第一个2×2光开关的四个端口。图7中排序光开关与光开关单元之间的实线连接即为上述固定连接,系统启动后的固定编排,不可更改;排序光开关与光开关单元的内部连接即为上述可配置、删除或重置的光通路,是SDN控制器根据光路的源到目的端口进行编排计算后下发配置对排序光开关和2×2光开关内部连接,这部分连接如上所述可根据请求进行实时调整变换。可理解的是,SDN控制器编排各级节点的连接关系(以图7中的连接为例,系统输入000到系统输出111的光路)可以参考如下伪代码实现:In a specific implementation, the scheduling storage method in the pool can be divided according to the nodes of the sorting-Banyan networking, and Figure 7 is used as an example for illustration. Figure 7 is a schematic diagram of the optical switching network connection of the second embodiment of the optical switching network system of the present invention. Assume that the optical switching network is an 8×8 structured network, that is, the SDN controller can divide it into S0, S1, S2 and S3 nodes after detecting the optical switching network. Among them, the S0 node can be an 8×8 sorting optical switch with a total of port numbers 0-15; S1 to S3 can be three-level nodes representing Banyan network ports, each level has port numbers 0-15, and S1 to S3 each have 4 2x2 optical switch ports, such as S1.0-S1.3 represent the four ports of the first 2×2 optical switch under the S1 node. The solid line connection between the sorting optical switch and the optical switch unit in Figure 7 is the fixed connection mentioned above, which is a fixed arrangement after the system is started and cannot be changed; the internal connection between the sorting optical switch and the optical switch unit is the above-mentioned configurable, deleted or reset optical path, which is the SDN controller that arranges and calculates the internal connection of the sorting optical switch and the 2×2 optical switch according to the source to destination port of the optical path. This part of the connection can be adjusted and transformed in real time according to the request as mentioned above. It can be understood that the connection relationship of the SDN controller to arrange the nodes at all levels (taking the connection in Figure 7 as an example, the optical path from system input 000 to system output 111) can be implemented by referring to the following pseudo code:
system.inport[0]=s0[0];system.inport[0] = s0[0];
s0[0].next=s0[10];s0[0].next = s0[10];
s0[10].next=s1[4];s0[10].next = s1[4];
s1[4].next=s1[13];s1[4].next = s1[13];
s1[13].next=s2[5];s1[13].next = s2[5];
s2[5].next=s2[13];s2[5].next = s2[13];
s2[13].next=s3[6];s2[13].next = s3[6];
s3[6].next=s3[15];s3[6].next = s3[15];
system.outport[7]=s3[15]。system.outport[7]=s3[15].
需要理解的是,光交换网络系统的输入输出端口与排序-Banyan端口对应关系也需要保存,例如系统输入的0-7对应S0节点的0-7端口,输出0-7对应S3节点的8-15端口。直观的端口编排关系可参照图8,图8为本发明光交换网络系统第二实施例的端口编排关系示意图。It should be understood that the correspondence between the input and output ports of the optical switching network system and the sorting-Banyan port also needs to be preserved, for example, the system input 0-7 corresponds to the 0-7 port of the S0 node, and the output 0-7 corresponds to the 8-15 port of the S3 node. The intuitive port arrangement relationship can be referred to Figure 8, which is a schematic diagram of the port arrangement relationship of the second embodiment of the optical switching network system of the present invention.
因此,当光交换设备的网络结构为8×8结构时,本实施例可基于SDN技术构造了一个4级节点8×8的无阻塞排序-Banyan网络,此处以图7为例对排序-Banyan网络的光通路构造过程进行举例说明,假设此时输入端口与输出端口之间的三条光路分别为0:7、1:6和2:4)。Therefore, when the network structure of the optical switching equipment is an 8×8 structure, this embodiment can construct a 4-level node 8×8 non-blocking sorting-Banyan network based on SDN technology. Here, Figure 7 is used as an example to illustrate the optical path construction process of the sorting-Banyan network, assuming that the three optical paths between the input port and the output port are 0:7, 1:6 and 2:4 respectively).
则SDN控制器首先要对三条光路的目的端口首先进行增序排序(S0排序开关完成),排序后S0从上到下输出分别可为100、110和111(对应目的端口4、6和7),因此SDN控制器下发配置使S0的0、1、2端口分别与10、9、7端口相连。The SDN controller must first sort the destination ports of the three optical paths in ascending order (the S0 sorting switch is completed). After sorting, the outputs of S0 from top to bottom can be 100, 110, and 111 (corresponding to destination ports 4, 6, and 7). Therefore, the SDN controller sends down the configuration to connect ports 0, 1, and 2 of S0 to ports 10, 9, and 7 respectively.
接下来基于Banyan网络路径唯一的特性,系统输出端口4、6、7的二进制编码(100、110、111)也是控制Banyan网络节点2×2光开关状态的依据,二进制从高到低的每一位都是控制各级节点下对应2×2光开关0/1状态的输入参数,因此三条路径通过2×2光开关的状态可以表示为:Next, based on the unique characteristics of the Banyan network path, the binary codes (100, 110, 111) of the system output ports 4, 6, and 7 are also the basis for controlling the state of the 2×2 optical switch of the Banyan network node. Each bit of the binary code from high to low is an input parameter for controlling the 0/1 state of the corresponding 2×2 optical switch at each node. Therefore, the state of the three paths through the 2×2 optical switch can be expressed as:
S1[0]->S1[9]->S2[4]->S2[12]->S3[4]->S3[12](100,输出端4端口);S1[0]->S1[9]->S2[4]->S2[12]->S3[4]->S3[12](100, output port 4);
S1[2]->S1[11]->S2[6]->S2[15]->S3[7]->S3[14](110,输出端6端口);S1[2]->S1[11]->S2[6]->S2[15]->S3[7]->S3[14](110, output port 6);
S1[4]->S1[13]->S2[5]-S2[13]->S3[6]->S3[15](111,输出端7端口)。S1[4]->S1[13]->S2[5]-S2[13]->S3[6]->S3[15](111, output port 7).
上述表述可以结合图8中的定义理解,例如S1[0]表示S1节点的0号端口。可以看出,SDN控制器只需要所有光路径目的端口的排序结果和二进制编码去控制相应开关的做内部连接即可,无需复杂的控制成本。具体的系统架构参照图9,图9为本发明光交换网络系统第二实施例的系统架构图。由图9可知,光交换网路系统的输入端和输出端可使用系统内部的排序-Banyan网络进行互连,即本实施例可构建一个结构简单,控制简便的无阻塞光交换网络。The above statement can be understood in conjunction with the definition in FIG8 , for example, S1[0] represents port 0 of the S1 node. It can be seen that the SDN controller only needs the sorting results and binary codes of all optical path destination ports to control the internal connection of the corresponding switches, without the need for complex control costs. The specific system architecture refers to FIG9 , which is a system architecture diagram of the second embodiment of the optical switching network system of the present invention. As can be seen from FIG9 , the input and output ends of the optical switching network system can be interconnected using the sorting-Banyan network within the system, that is, this embodiment can construct a non-blocking optical switching network with a simple structure and easy control.
本实施例公开了SDN控制器还设置有北向接口;北向接口与用户界面连接;北向接口,用于在接收到用户界面输入的查询指令时,查询光交换网络的端口状态;北向接口,还用于在接收到用户界面输入的光路配置指令时,对光交换网络进行光通路控制。本实施例中,北向接口包括:查询子模块和配置子模块;查询子模块,用于在接收到用户界面输入的查询指令时,反馈光交换网络的端口占用情况;配置子模块,用于在接收到用户界面输入的光路配置指令时,对光交换网络进行光通路配置、删除或重置。因此,本实施例可通过北向接口便于用户进行及时快速地进行信息查询以及对光路进行手动配置,简化控制难度。此外,本实施例中,SDN控制器,还用于在检测到光交换设备时,对光交换设备的端口资源进行池化,生成端口资源池;SDN控制器,还用于获取排序光开关和光开关单元的节点信息,并根据节点信息生成连线配置指令;SDN控制器,还用于将连线配置指令下发至排序光开关和光开关单元,构成排序光开关与光开关单元之间的固定连接。因此,本实施例可根据基于排序光开关与光开关单元之间的固定连接和开关内部的光通路连接实现输入输出端的无阻塞互连。This embodiment discloses that the SDN controller is also provided with a northbound interface; the northbound interface is connected to the user interface; the northbound interface is used to query the port status of the optical switching network when receiving a query instruction input by the user interface; the northbound interface is also used to control the optical path of the optical switching network when receiving an optical path configuration instruction input by the user interface. In this embodiment, the northbound interface includes: a query submodule and a configuration submodule; the query submodule is used to feedback the port occupancy of the optical switching network when receiving a query instruction input by the user interface; the configuration submodule is used to configure, delete or reset the optical path of the optical switching network when receiving an optical path configuration instruction input by the user interface. Therefore, this embodiment can facilitate users to conduct timely and rapid information query and manual configuration of the optical path through the northbound interface, thereby simplifying the control difficulty. In addition, in this embodiment, the SDN controller is also used to pool the port resources of the optical switching device to generate a port resource pool when the optical switching device is detected; the SDN controller is also used to obtain the node information of the sorting optical switch and the optical switch unit, and generate a connection configuration instruction according to the node information; the SDN controller is also used to send the connection configuration instruction to the sorting optical switch and the optical switch unit to form a fixed connection between the sorting optical switch and the optical switch unit. Therefore, this embodiment can realize non-blocking interconnection of the input and output ends based on the fixed connection between the sorting optical switch and the optical switch unit and the optical path connection inside the switch.
本发明实施例提供了一种基于上述光交换网络系统的光交换网络实现方法,参照图10,图10为本发明光交换网络实现方法第一实施例的第一流程示意图。An embodiment of the present invention provides an optical switching network implementation method based on the above optical switching network system. Referring to FIG. 10 , FIG. 10 is a schematic diagram of a first flow chart of a first embodiment of the optical switching network implementation method of the present invention.
本实施例中,所述光交换网络实现方法基于上述光交换网络系统实现,所述光交换网络实现方法包括以下步骤:In this embodiment, the optical switching network implementation method is implemented based on the above optical switching network system, and the optical switching network implementation method includes the following steps:
步骤S10:所述SDN控制器在检测到任一所述SDN交换机发送网段访问请求时,确定所述网段访问请求对应所述光交换设备的目的端口;Step S10: When the SDN controller detects that any of the SDN switches sends a network segment access request, the SDN controller determines that the network segment access request corresponds to a destination port of the optical switching device;
需要说明的是,本实施例方法的执行主体可以是部署任意网络中的SDN控制器,其可为软件定义网络(SDN)中的应用程序,负责流量控制以确保智能网络。SDN交换机则为一种新型交换机设备,其可通过使用OpenFlow协议与SDN控制器进行通信,接收并执行SDN控制器的指令,实现网络流量的灵活控制。在实际应用中,SDN交换机可与不同的实体网络设备(手机、电脑或平板电脑等)或OVS(Open VSiwtch,虚拟交换机)连接,实现相连设备的网络通信。It should be noted that the execution subject of the method of this embodiment can be an SDN controller deployed in any network, which can be an application in the software defined network (SDN) responsible for traffic control to ensure the intelligent network. The SDN switch is a new type of switch device, which can communicate with the SDN controller by using the OpenFlow protocol, receive and execute the instructions of the SDN controller, and realize flexible control of network traffic. In practical applications, the SDN switch can be connected to different physical network devices (mobile phones, computers or tablets, etc.) or OVS (Open VSiwtch, virtual switch) to realize network communication of connected devices.
易理解的是,上述网段访问请求是SDN交换机的接入端所连接的设备发送的连接请求,该接入设备可为OVS设备或其他主机设备,OVS设备或其他主机设备负责纳管定义网段下的设备,统一受SDN控制器管理。It is easy to understand that the above network segment access request is a connection request sent by the device connected to the access end of the SDN switch. The access device can be an OVS device or other host device. The OVS device or other host device is responsible for managing the devices under the defined network segment and is uniformly managed by the SDN controller.
步骤S20:所述SDN控制器在检测到所述目的端口未被占用时,对所述目的端口进行增序排序,根据所述目的端口的增序排序结果生成排序配置指令,并通过所述南向接口将所述排序配置指令下发至所述排序光开关,所述排序光开关在接收到所述排序配置指令时进行连接更新;Step S20: When the SDN controller detects that the destination port is not occupied, it sorts the destination port in ascending order, generates a sorting configuration instruction according to the ascending sorting result of the destination port, and sends the sorting configuration instruction to the sorting optical switch through the southbound interface. The sorting optical switch performs a connection update upon receiving the sorting configuration instruction;
步骤S30:所述SDN控制器根据所述目的端口的二进制编码生成状态配置指令,并通过所述南向接口将所述状态配置指令下发至所述光开关单元,所述光开关单元在接收到所述状态配置指令时进行所述状态更新,基于连接更新后的所述排序光开关和状态更新后的所述光开关单元构成建所述网段访问请求对应的目标光通路。Step S30: The SDN controller generates a status configuration instruction according to the binary code of the destination port, and sends the status configuration instruction to the optical switch unit through the southbound interface. The optical switch unit updates the status upon receiving the status configuration instruction, and establishes a target optical path corresponding to the network segment access request based on the connection of the updated sorting optical switch and the optical switch unit after the status update.
需要理解的是,上述光交换设备即为支持SDN控制的OCS(Optical CircuitSwitching,光路交换)设备,其可为每一个连接请求建立从源端到目的地端的光路(每一个链路上均需要分配一个专业波长)。可理解的是,上述网段访问请求中可包含接入设备需要连接或访问的目的网段。因此,SDN控制器在检测到任一SDN交换机发送网段访问请求时,需确定网段访问请求中包含的目的网段所对应的OCS设备输出端口,即上述目的端口的占用情况。It should be understood that the above optical switching equipment is an OCS (Optical Circuit Switching) equipment that supports SDN control, which can establish an optical path from the source end to the destination end for each connection request (a dedicated wavelength needs to be allocated on each link). It is understandable that the above network segment access request may include the destination network segment that the access device needs to connect or access. Therefore, when the SDN controller detects that any SDN switch sends a network segment access request, it needs to determine the OCS device output port corresponding to the destination network segment included in the network segment access request, that is, the occupancy of the above destination port.
易理解的是,为降低控制复杂度,提高控制效率,本实施例可在SDN控制器中预先建立端口占用表,该端口占用表中可包括OCS设备中排序-Banyan光交换网络的端口网段映射关系和端口占用情况。该端口网段映射关系可以是排序-Banyan光交换网络的输入输出端口与对应连接的网段(或网关)地址的映射关系,该端口占用情况则可以是排序-Banyan光交换网络输入端口到输出端口之间光路的占用情况(或系统输入输出端口的占用情况)。It is easy to understand that in order to reduce the control complexity and improve the control efficiency, the present embodiment may pre-establish a port occupancy table in the SDN controller, and the port occupancy table may include the port network segment mapping relationship and port occupancy status of the sorting-Banyan optical switching network in the OCS device. The port network segment mapping relationship may be a mapping relationship between the input and output ports of the sorting-Banyan optical switching network and the corresponding connected network segment (or gateway) address, and the port occupancy status may be the occupancy status of the optical path between the input port and the output port of the sorting-Banyan optical switching network (or the occupancy status of the system input and output ports).
需要理解的是,若SDN控制器通过查询端口占用表获知目的端口被占用,则表明目的端口已与一个输入端口之间建立了稳定的光通路,则SDN控制器可直接将目的端口当前对应的已建光通路反馈至发送网段访问请求的SDN交换机,具体地,SDN控制器可返回已建光通路两端对应的输入输出端口号以及对应网段,从而建立发送网段访问请求的接入设备与目的端口所对应的网段之间的通信连接。It should be understood that if the SDN controller learns that the destination port is occupied by querying the port occupancy table, it means that a stable optical path has been established between the destination port and an input port. The SDN controller can directly feedback the established optical path currently corresponding to the destination port to the SDN switch that sends the network segment access request. Specifically, the SDN controller can return the input and output port numbers and the corresponding network segments corresponding to the two ends of the established optical path, thereby establishing a communication connection between the access device that sends the network segment access request and the network segment corresponding to the destination port.
而若SDN控制器通过查询端口占用表获知目的端口未被占用,则表明当前目的端口并没有对应的光通路,则SDN控制器需提取目的端口并建立对应的光通路。因此,本实施例可对目的端口进行增序排序,并根据排序结果对排序光开关进行连接更新。而排序-Banyan光交换网络中可能存在除目的端口之外的其他输出端口已建立或也待建立光通路,即排序-Banyan光交换网络中不只一条光通路。因此,为避免排序-Banyan光交换网络内部出现冲突,本实施例可在软件层面,通过前置Batcher排序结合排序光开关替代现有复杂的连线Batcher网络,即本实施例可由SDN控制器结合排序光开关对输出端口进行排序。具体的排序过程如上所述,此处不再赘述。If the SDN controller learns that the destination port is not occupied by querying the port occupancy table, it means that the current destination port does not have a corresponding optical path, and the SDN controller needs to extract the destination port and establish a corresponding optical path. Therefore, this embodiment can sort the destination ports in ascending order, and update the connection of the sorting optical switch according to the sorting result. In the sorting-Banyan optical switching network, there may be output ports other than the destination port that have established or are yet to establish optical paths, that is, there is more than one optical path in the sorting-Banyan optical switching network. Therefore, in order to avoid conflicts within the sorting-Banyan optical switching network, this embodiment can replace the existing complex wiring Batcher network at the software level by combining the pre-Batcher sorting with the sorting optical switch, that is, this embodiment can sort the output ports by the SDN controller in combination with the sorting optical switch. The specific sorting process is as described above and will not be repeated here.
可理解的是,上述排序光开关进行连接更新后,仅实现了排序光开关内部的连接关系的更新,为了避免排序-Banyan光交换网络内部的冲突,本实施例中SDN控制器还需对光开关单元的内部状态进行编排调度,以对光开关单元进行状态更新,从而构成完整的光通路,再将新建的完成光通路对应返回至发送网段访问请求的SDN交换机。具体的连接更新和状态更新过程如上所述,此处不再赘述。It is understandable that after the above-mentioned sorting optical switch performs connection update, only the connection relationship inside the sorting optical switch is updated. In order to avoid conflicts within the sorting-Banyan optical switching network, the SDN controller in this embodiment also needs to schedule the internal state of the optical switch unit to update the state of the optical switch unit, thereby forming a complete optical path, and then return the newly built completed optical path to the SDN switch that sends the network segment access request. The specific connection update and state update process is as described above and will not be repeated here.
易理解的是,上述SDN控制下发的的连接配置指令和状态配置指令只能控制排序光开关和光开关单元的内部连接,为了进一步实现排序-Banyan光交换网络的严格无阻塞,本实施例还可事先根据OCS设备的端口设置排序光开关和光开关单元之间的固定连接。因此,进一步地,作为一种可实施方式,参照图11,图11为本发明光交换网络实现方法第一实施例的第二流程示意图。本实施例中,步骤S10之前还包括:It is easy to understand that the connection configuration instructions and state configuration instructions issued by the above SDN control can only control the internal connection between the sorting optical switch and the optical switch unit. In order to further realize the strict non-blocking of the sorting-Banyan optical switching network, this embodiment can also set the fixed connection between the sorting optical switch and the optical switch unit according to the port of the OCS device in advance. Therefore, further, as an implementable method, refer to Figure 11, which is a second flow diagram of the first embodiment of the optical switching network implementation method of the present invention. In this embodiment, before step S10, it also includes:
步骤S01:所述SDN控制器在检测到所述光交换设备时,对所述光交换设备的端口资源进行池化,生成所述端口资源池;Step S01: When the SDN controller detects the optical switching device, the SDN controller pools the port resources of the optical switching device to generate the port resource pool;
步骤S02:所述SDN控制器获取所述排序光开关和所述光开关单元的节点信息,并根据所述节点信息生成连线配置指令;Step S02: the SDN controller obtains node information of the sorting optical switch and the optical switch unit, and generates a connection configuration instruction according to the node information;
步骤S03:所述SDN控制器将连线配置指令下发至所述排序光开关和所述光开关单元,构成所述排序光开关与所述光开关单元之间的固定连接。Step S03: the SDN controller sends a connection configuration instruction to the sorting optical switch and the optical switch unit to form a fixed connection between the sorting optical switch and the optical switch unit.
需要说明的是,本实施例中采用了支持SDN管控的光交换设备,因此SDN控制器在检测到光交换设备时,可根据光交换设备自身的光端口数量将OCS若干端口管理起来,构成端口资源池并做以下工作:It should be noted that in this embodiment, an optical switching device supporting SDN control is used. Therefore, when the SDN controller detects the optical switching device, it can manage several OCS ports according to the number of optical ports of the optical switching device itself to form a port resource pool and perform the following tasks:
首先,SDN控制器可组成N×N的排序光开关,排序光开关的端口数量与NxN的Batcher排序端口规模一致,同时将排序开关端口编号存储到资源池中以方便调用。First, the SDN controller can form an N×N sorting optical switch, the number of ports of the sorting optical switch is consistent with the scale of the NxN Batcher sorting ports, and the sorting switch port numbers are stored in the resource pool for easy calling.
然后,SDN控制器可将剩余OCS端口按照4个一组,组成若干个2×2的光开关单元,其功能上可实现0/1状态切换,并构成Banyan网络,此时,同样可将0/1开关端口编号存储到资源池中以方便调用。Then, the SDN controller can group the remaining OCS ports into several 2×2 optical switch units in groups of 4, which can functionally implement 0/1 state switching and form a Banyan network. At this time, the 0/1 switch port number can also be stored in the resource pool for easy call.
最后,排序光开关与Banyan网络输入端口(特定编号的2x2光开关端口)连接即可组成排序-Banyan光交换网络,SDN控制器可获取确定的排序光开关和光开关单元的节点信息,并根据节点信息确定排序光开关和光开关单元之间的不会造成阻塞的固定编排,并根据确定的固定编排生成连线配置指令下发至排序光开关和光开关单元,以构成排序光开关和光开关单元之间的固定连接。易理解的是,所有连接由控制器做完资源池化后启动下发配置完成。具体的配置过程和连接效果可如图7所示,此处不再赘述。Finally, the sorting optical switch is connected to the Banyan network input port (specifically numbered 2x2 optical switch port) to form a sorting-Banyan optical switching network. The SDN controller can obtain the node information of the determined sorting optical switch and optical switch unit, and determine the fixed arrangement between the sorting optical switch and the optical switch unit that will not cause blocking based on the node information, and generate connection configuration instructions based on the determined fixed arrangement and send them to the sorting optical switch and the optical switch unit to form a fixed connection between the sorting optical switch and the optical switch unit. It is easy to understand that all connections are completed by the controller after completing resource pooling and starting the configuration. The specific configuration process and connection effect can be shown in Figure 7, which will not be repeated here.
可以理解的是,上述端口占用表需要不断地更新维护,因此,当建立新的光通路后,SDN控制器即可把新的光通路的输入端口对应的网段,新的光通路的输出端口对应的网段与对应的接入端口进行映射,再对端口占用表中保存的端口网段映射关系和端口占用情况都进行实时更新。此外,除了上述情况,当检测到当OVS主机或其他主机设备接入排序-Banyan光交换网络时,输入或输出端口时也会该情况将上报至SDN控制器,SDN控制器也可对应把OVS主机或其他主机设备纳管的网段与接入端口进行映射,再通过上述方法更新端口占用表。It is understandable that the above port occupancy table needs to be constantly updated and maintained. Therefore, when a new optical path is established, the SDN controller can map the network segment corresponding to the input port of the new optical path and the network segment corresponding to the output port of the new optical path to the corresponding access port, and then update the port network segment mapping relationship and port occupancy status stored in the port occupancy table in real time. In addition, in addition to the above situation, when it is detected that the OVS host or other host device is connected to the sorting-Banyan optical switching network, the input or output port will also report this situation to the SDN controller. The SDN controller can also map the network segment managed by the OVS host or other host device to the access port, and then update the port occupancy table through the above method.
综上所述,本实施例可基于SDN软件技术,设计了一套软硬件结合的排序-Banyan光交换网络。具体地,相较于传统的N×N个端口的具有Log2N级节点的Banyan交换网络,本实施例仅增加了一层排序光开关。虽然此时具有(Log2N+1)级节点,但增加的排序光开关可结合SDN软件技术实现排序前置,复杂度远低于传统的Batcher-Banyan网络。同时,本实施例可通过系统软件层实现排序计算和编排调度,并通过Openflow协议下发对应的连接配置指令和状态配置指令到OCS设备实现排序-Banyan光交换网络的功能,简单快捷地构建光通路,也降低了控制难度。In summary, this embodiment can design a set of software and hardware combined sorting-Banyan optical switching network based on SDN software technology. Specifically, compared with the traditional Banyan switching network with N×N ports and Log2N-level nodes, this embodiment only adds a layer of sorting optical switches. Although there are (Log2N+1)-level nodes at this time, the added sorting optical switches can be combined with SDN software technology to achieve sorting pre-positioning, and the complexity is much lower than the traditional Batcher-Banyan network. At the same time, this embodiment can implement sorting calculation and orchestration scheduling through the system software layer, and send the corresponding connection configuration instructions and status configuration instructions to the OCS device through the Openflow protocol to realize the function of the sorting-Banyan optical switching network, which can simply and quickly build an optical path and reduce the control difficulty.
本实施例公开了一种光交换网络实现方法,该方法包括:SDN控制器在检测到光交换设备时,对光交换设备的端口资源进行池化,生成端口资源池;SDN控制器获取排序光开关和光开关单元的节点信息,并根据节点信息生成连线配置指令;SDN控制器将连线配置指令下发至排序光开关和光开关单元,构成排序光开关与光开关单元之间的固定连接。SDN控制器在检测到任一SDN交换机发送网段访问请求时,确定网段访问请求对应光交换设备的目的端口;SDN控制器在检测到目的端口未被占用时,对目的端口进行增序排序,根据目的端口的增序排序结果生成排序配置指令,并通过南向接口将排序配置指令下发至排序光开关,排序光开关在接收到排序配置指令时进行连接更新;SDN控制器根据目的端口的二进制编码生成状态配置指令,并通过南向接口将状态配置指令下发至光开关单元,光开关单元在接收到状态配置指令时进行状态更新,基于连接更新后的排序光开关和状态更新后的光开关单元构成建网段访问请求对应的目标光通路。This embodiment discloses a method for implementing an optical switching network, which includes: when an SDN controller detects an optical switching device, pooling the port resources of the optical switching device to generate a port resource pool; the SDN controller obtains node information of the sorting optical switch and the optical switch unit, and generates a connection configuration instruction according to the node information; the SDN controller sends the connection configuration instruction to the sorting optical switch and the optical switch unit to form a fixed connection between the sorting optical switch and the optical switch unit. When the SDN controller detects that any SDN switch sends a network segment access request, it determines the destination port of the optical switching device corresponding to the network segment access request; when the SDN controller detects that the destination port is not occupied, it sorts the destination port in ascending order, generates a sorting configuration instruction according to the result of the ascending sorting of the destination port, and sends the sorting configuration instruction to the sorting optical switch through the southbound interface. The sorting optical switch updates the connection when receiving the sorting configuration instruction; the SDN controller generates a state configuration instruction according to the binary code of the destination port, and sends the state configuration instruction to the optical switch unit through the southbound interface. The optical switch unit updates the state when receiving the state configuration instruction, and constructs the target optical path corresponding to the network segment access request based on the sorting optical switch after the connection update and the optical switch unit after the state update.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410159073.9A CN118233791A (en) | 2024-02-04 | 2024-02-04 | Optical switching network system and optical switching network implementation method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410159073.9A CN118233791A (en) | 2024-02-04 | 2024-02-04 | Optical switching network system and optical switching network implementation method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118233791A true CN118233791A (en) | 2024-06-21 |
Family
ID=91501620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410159073.9A Pending CN118233791A (en) | 2024-02-04 | 2024-02-04 | Optical switching network system and optical switching network implementation method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118233791A (en) |
-
2024
- 2024-02-04 CN CN202410159073.9A patent/CN118233791A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2505064B2 (en) | Route selection method | |
CA2256223C (en) | Traffic route finder in communications network | |
US5138614A (en) | Transformation method for network conference connections | |
US6088333A (en) | Multicast routing method using path overlapping efficiency in VP-based on ATM networks | |
US8327021B2 (en) | Technique of determining connectivity solutions for network elements | |
US20090313350A1 (en) | Method for optimising the distribution of a service from a source to a plurality of clients in a network | |
JP2002199005A (en) | Method for designing interconnect fabric | |
CN112217655B (en) | Network equipment configuration method and device in SD-WAN system and computer equipment | |
US6744734B1 (en) | Method for generating the optimal PNNI complex node representations for restrictive costs | |
CN118233791A (en) | Optical switching network system and optical switching network implementation method | |
CN112865999A (en) | Information processing method and related equipment | |
JP2763073B2 (en) | Self-routing channel control method | |
CN109842553B (en) | A link resource-oriented adaptive interconnection and routing control method and system | |
KR20020096619A (en) | Control message management System and method for switch connection control in an open switching system | |
US20050111356A1 (en) | Connection controller | |
CN113055316B (en) | Multistage switching topology | |
Lee et al. | Static and dynamic approaches to modeling end-to-end routing in circuit-switched networks | |
KR102023901B1 (en) | Method, apparatus and computer program for routing packets of software defined network | |
JPH0738642A (en) | Exchange network | |
Duan et al. | Fitted fat-tree for localized traffic in data center networks | |
Ong et al. | Centralized and distributed control for multimedia conferencing | |
CN118246665A (en) | Service processing method, device and storage medium | |
Wu | An efficient signaling structure for atm networks | |
Pattavina et al. | Modelling the blocking behavior of multicast clos networks | |
CN118233524A (en) | Network device management method and device, computer readable medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |