WO2019196781A1 - Optical cross-connect device control method and apparatus, optical transmission device, and storage medium - Google Patents
Optical cross-connect device control method and apparatus, optical transmission device, and storage medium Download PDFInfo
- Publication number
- WO2019196781A1 WO2019196781A1 PCT/CN2019/081710 CN2019081710W WO2019196781A1 WO 2019196781 A1 WO2019196781 A1 WO 2019196781A1 CN 2019081710 W CN2019081710 W CN 2019081710W WO 2019196781 A1 WO2019196781 A1 WO 2019196781A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- optical cross
- address
- information
- optical
- connection
- Prior art date
Links
- 230000003287 optical effect Effects 0.000 title claims abstract description 245
- 238000000034 method Methods 0.000 title claims abstract description 38
- 230000005540 biological transmission Effects 0.000 title claims abstract description 19
- 238000004891 communication Methods 0.000 claims description 20
- 230000004044 response Effects 0.000 claims description 15
- 230000006870 function Effects 0.000 claims description 12
- 239000000523 sample Substances 0.000 claims 2
- 230000006978 adaptation Effects 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000011084 recovery Methods 0.000 description 2
- 230000003370 grooming effect Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/80—Optical aspects relating to the use of optical transmission for specific applications, not provided for in groups H04B10/03 - H04B10/70, e.g. optical power feeding or optical transmission through water
- H04B10/801—Optical aspects relating to the use of optical transmission for specific applications, not provided for in groups H04B10/03 - H04B10/70, e.g. optical power feeding or optical transmission through water using optical interconnects, e.g. light coupled isolators, circuit board interconnections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/80—Optical aspects relating to the use of optical transmission for specific applications, not provided for in groups H04B10/03 - H04B10/70, e.g. optical power feeding or optical transmission through water
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
-
- 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
- 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/0037—Operation
-
- 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/0037—Operation
- H04Q2011/0041—Optical control
Definitions
- the present invention relates to the field of communications technologies, and in particular, to an optical cross-device control method, apparatus, optical transmission device, and storage medium.
- the OXC (Optical Cross-connect) device is a multi-functional OTN (Optical Transport Network) transmission device that combines multiplexing, wiring, protection/recovery, monitoring, and network management.
- OTN Optical Transport Network
- the basic use of optical cross-devices in the network is to conduct automated traffic grooming with a focus on the network. With the network scale and network protection/recovery strategy and the gradual upgrading of network reliability, the necessity and importance of optical cross-devices become more prominent.
- DWDM Dense Wavelength Division Multiplexing
- an optical add-drop multiplexer By using an optical cross-connect device, an optical add-drop multiplexer (OADM) can select and remove a wavelength from a WDM (Wavelength Division Multiplexing) signal at a certain node of the network. Then add a new signal to the original wavelength to continue transmission to the next node. This capability greatly enhances the load management capabilities of all-optical networks.
- WDM Widelength Division Multiplexing
- the main object of the present invention is to provide an optical cross device control method, apparatus, optical transmission device and storage medium, and aims to provide a technical solution capable of stably and efficiently connecting and controlling an optical cross device.
- the present invention provides a method for controlling an optical cross device, including: establishing a connection with the optical cross device according to an IP (Internet Protocol) address of the optical cross device; The device is configured to send an instruction to the optical cross device according to the device information of the optical cross device.
- IP Internet Protocol
- the present invention further provides an optical cross-device control apparatus, including: a connection establishment module, establishing a connection with the optical cross-device according to an IP address of the optical cross-device; and a device information acquisition module And acquiring, according to the IP address of the optical cross-device, the device information of the optical cross-device; and the command sending module, sending an instruction to the optical cross-device according to the device information of the optical cross-device.
- the present invention also provides an optical transmission device including a processor, a memory, and a communication bus; the communication bus is used to implement connection communication between the processor and the memory; and the processor is used to execute the memory.
- the stored fingerprint-based operation control program implements the steps of the aforementioned optical cross-device control method.
- the present invention also provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors, To achieve the steps of the aforementioned optical cross-device control method.
- the optical cross device control method, apparatus, optical transmission device and storage medium of the present invention have at least the following advantages:
- the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function, and the information of the optical cross-device is clarified.
- the corresponding instruction can be issued, and the control of the optical cross device can be completed by the instruction.
- FIG. 1 is a flow chart 1 of a method of controlling an optical cross device according to an embodiment of the present invention
- FIG. 2 is a second flowchart of a method of controlling an optical cross device according to an embodiment of the present invention
- FIG. 3 is a third schematic diagram of a method of controlling an optical cross device according to an embodiment of the present invention.
- FIG. 4 is a block diagram of an optical cross device control apparatus in accordance with an embodiment of the present invention.
- FIG. 5 is a block diagram of an optical cross device control apparatus in accordance with one embodiment of the present invention.
- Figure 6 is a schematic illustration of an optical cross-device control device in accordance with one embodiment of the present invention.
- an embodiment of the present invention provides a method for controlling an optical cross device, and the method in this embodiment includes:
- Step S110 establishing a connection with the optical cross device according to the IP address of the optical cross device.
- the technical solution of the embodiment can be implemented on the OTN device, and the OTN device is used as the management device to control the optical cross device.
- the OTN device is used as the management device to control the optical cross device.
- the TCP Transmission Control Protocol
- the Ethernet port communication based on the IP address of the optical cross device.
- Transmission Control Protocol connections for management.
- Step S120 Acquire device information of the optical cross device according to the IP address of the optical cross device.
- the information of an optical cross-device can be represented by an IP address.
- the device information of the optical cross-device can be determined by using the IP address, and no other information is needed.
- the method for determining the information of the optical cross device is additionally used; in this embodiment, the device information is not limited, for example, it may be the type of the device or the software and hardware information of the device.
- Step S130 Send an instruction to the optical cross device according to the device information of the optical cross device.
- the control instruction for the optical cross-device may be generated according to the device information, and the command is sent to the optical cross-device to enable the optical cross-device to execute the command to complete the light. Control of the cross device.
- the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function.
- the corresponding instruction can be issued, and the control of the optical cross device is completed by the instruction.
- an embodiment of the present invention provides a method for controlling an optical cross device, and the method in this embodiment includes:
- Step S210 The optical cross-device is detected according to the IP address at a predetermined time interval, and when the optical cross-device responds to the detection, a connection is established with the optical cross-device.
- the function periodically sends a ping (Ping is a command under Windows, Unix, and Linux systems) packets to the optical cross-device.
- the IP address starts at 192.168.128.4 and is incremented by 192.168.129.4. Up to 20 optical cross-devices can be managed at the same time.
- the third field in which the IP is incremented indicates the subrack number, and the ping packet succeeds in two consecutive responses to establish a socket (the two programs on the network exchange data through a two-way communication connection, and one end of the connection is called a socket). .
- This feature updates some of the information in the preset device list:
- DeviceIp DeviceType Socket Linkstate 192.168.128.4 DeviceA 1 Online 192.168.129.4 DeviceB NULL Offline ... ... ... ... ...
- the first column represents the device IP.
- the second column indicates the type of device that distinguishes the optical cross device type through different ports.
- the third column indicates the socket value of the device. If the device successfully establishes a socket connection, the socket value is updated, and the socket value is not empty.
- the fourth column indicates the connection status of the device. If the device can respond to the ping packet, it is connected.
- the socket connection is closed, and the device linked list is updated to set the socket to NULL and Linkstate to offline. Finally, if the optical cross device is in the online state, the subrack number of the device is reported as the optical cross device is offline.
- Step S220 Determine information about the subrack where the optical cross device is located according to the IP address of the optical cross device and the correspondence between the preset multiple IP addresses and the multiple subracks.
- the sub-rack of the optical cross-device is represented by the IP address, and the relationship between the multiple IP addresses and the sub-racks can be established in advance. After the connection is established, the sub-rack can be determined according to the IP address.
- the device type of the optical cross device is acquired when the connection is established, and the information of the micro control unit and/or the real board of the optical cross device is determined according to the device type.
- the corresponding sub-rack number of the optical cross-device is calculated according to the IP address in the device linked list, and it is determined that the corresponding optical cross-device is online, and management can be performed. Then, according to the "device type" field, the MCU (micro control unit) address of the device, the type of the real board, the hardware version of the real board, and the software version of the real board are determined.
- the MCU micro control unit
- Step S230 issuing an instruction to the optical cross device according to the device information of the optical cross device.
- Step S240 detecting whether the response of the optical cross-device to the command is received within a predetermined time range, and omitting the instruction when the determination result is no.
- Step S250 receiving a response of the optical cross-device to the instruction, and acquiring a callback function processing response corresponding to the optical cross-device.
- the module A is responsible for processing the commands sent to the optical cross-device
- the module B is responsible for processing the packets that the optical cross-device answers and the commands that are actively reported.
- Each chained optical cross device will have a list of commands, with the first column indicating the command code.
- the second column represents the message id, which is unique in the message list of a device. When the device answers, it can find a unique device callback function for processing.
- the third column is the device address, indicating the location of the current optical cross device.
- the fourth column is the command cursor, which indicates the position of the current optical cross device in the command list.
- the fifth column is the command timeout period, which will time out if the device does not answer within the specified time.
- the main control board When the OTN device sends a command, the main control board saves the command code, message id, board address, and timeout time in the command list.
- the command content is then converted into a TL1 (a management protocol widely used in the telecommunications field) format that the optical cross-device can recognize and sent to the device via TCP communication.
- the timer will poll all messages in the message list for a timeout period. If the device times out, the optical cross-device timeout error will be acknowledged.
- the command code in the command list is obtained according to the device id in the device list, and the content in the TL1 format is converted into the content that can be recognized by the OTN device and sent to the network management.
- an optical cross-device can be implemented, which has a main control board, for example, as shown in FIG. 3, and establishes a TCP connection through Ethernet port communication to implement management. After the connection is established, the heartbeat is detected by pinging the packet, and the crossover capability of the optical cross device and the management status of each port are set/queried through the TL1 interface.
- the user only needs to simply configure the device IP to establish a connection with the optical cross device, and does not require the optical cross device to perform additional adaptation functions. And can connect and manage multiple optical cross-devices from different manufacturers at the same time.
- an embodiment of the present invention provides an optical cross-device control apparatus.
- the apparatus of this embodiment includes:
- connection establishing module 410 establishes a connection with the optical cross device according to the IP address of the optical cross device.
- the technical solution of the embodiment can be implemented on the OTN device, and the OTN device is used as the management device to control the optical cross device.
- the OTN device is used as the management device to control the optical cross device.
- the TCP Transmission Control Protocol
- the Ethernet port communication based on the IP address of the optical cross device.
- Transmission Control Protocol connections for management.
- the device information obtaining module 420 acquires device information of the optical cross device according to the IP address of the optical cross device.
- the information of an optical cross-device can be represented by an IP address.
- the device information of the optical cross-device can be determined by using the IP address, and no other information is needed.
- the method for determining the information of the optical cross device is additionally used; in this embodiment, the device information is not limited, for example, it may be the type of the device or the software and hardware information of the device.
- the command sending module 430 issues an instruction to the optical cross device according to the device information of the optical cross device.
- the control instruction for the optical cross-device may be generated according to the device information, and the command is sent to the optical cross-device to enable the optical cross-device to execute the command to complete the light. Control of the cross device.
- the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function.
- the corresponding instruction can be issued, and the control of the optical cross device is completed by the instruction.
- an embodiment of the present invention provides an optical cross-device control apparatus.
- the apparatus of this embodiment includes:
- the connection establishing module 510 detects the optical cross device according to the IP address at a predetermined time interval, and establishes a connection with the optical cross device when receiving the response of the optical cross device to the detection.
- the IP address of the optical cross-device and the message queue of the management command and the device queue of the management device status are first initialized. Send a ping packet to the optical cross device and try to establish a socket connection. Specifically, the message queue is cleared at initialization and the queues in the device queue are set to be broken. After the socket connection is successfully established, the login command can be sent to the optical cross-connection, and the TL1 packet sent by the optical cross-device can be received and processed. The OTN device can parse the content of the TL1 packet according to the command code of the message queue and convert it into a corresponding format report.
- the device information obtaining module 520 determines the information of the subrack where the optical cross device is located according to the IP address of the optical cross device and the correspondence between the preset multiple IP addresses and the multiple subracks.
- the sub-rack of the optical cross-device is represented by the IP address, and the relationship between the multiple IP addresses and the sub-racks can be established in advance. After the connection is established, the sub-rack can be determined according to the IP address.
- the device type of the optical cross device is acquired when the connection is established, and the information of the micro control unit and/or the real board of the optical cross device is determined according to the device type.
- the command sending module 530 sends an instruction to the optical cross device according to the device information of the optical cross device.
- the timeout processing module 540 detects whether the optical cross-device response to the command is received within a predetermined time range, and ignores the command when the determination result is no.
- a timer TIMER1 is used to periodically send a ping packet to all optical cross-devices, and the in-position state and the sub-rack information are updated according to the result of the ping packet.
- TIMER2 is used to periodically poll the status of the command list.
- TIMER1 periodically sends a ping packet to the optical cross device. If pinging, the status of the device linked list is updated to the connection state and the ping packet is repeatedly sent. Otherwise, the device linked list status is broken and the message list is cleared.
- Another timer TIMER2 periodically clears the timeout message in the message list and responds with a timeout. The flow of the two timers working together is shown in FIG. 6.
- the response processing module 550 receives the response of the optical cross device to the command, and acquires a callback function corresponding to the optical cross device to process the response.
- the message response time can be set and the message list can be updated while the message of the OTN device is converted into the TL1 format and sent to the optical cross device.
- an optical cross-device can be implemented, which has a main control board, for example, as shown in FIG. 3, and establishes a TCP connection through Ethernet port communication to implement management. After the connection is established, the heartbeat is detected by pinging the packet, and the crossover capability of the optical cross device and the management status of each port are set/queried through the TL1 interface.
- the user only needs to simply configure the device IP to establish a connection with the optical cross device, and does not require the optical cross device to perform additional adaptation functions. And can connect and manage multiple optical cross-devices from different manufacturers at the same time.
- An embodiment of the present invention also provides an optical transmission device including a processor, a memory, and a communication bus.
- the communication bus is used to implement connection communication between the processor and the memory; the processor is configured to execute a fingerprint-based operation control program stored in the memory to implement the following steps:
- the technical solution of the embodiment can be implemented on the OTN device, and the OTN device is used as the management device to control the optical cross device.
- the OTN device is used as the management device to control the optical cross device.
- the TCP Transmission Control Protocol
- the Ethernet port communication based on the IP address of the optical cross device.
- Transmission Control Protocol connections for management.
- the information of an optical cross-device can be represented by an IP address.
- the device information of the optical cross-device can be determined by using the IP address, and no other information is needed.
- the method for determining the information of the optical cross device is additionally used; in this embodiment, the device information is not limited, for example, it may be the type of the device or the software and hardware information of the device.
- An instruction is issued to the optical cross device according to the device information of the optical cross device.
- the control instruction for the optical cross-device may be generated according to the device information, and the command is sent to the optical cross-device to enable the optical cross-device to execute the command to complete the light. Control of the cross device.
- the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function.
- the corresponding instruction can be issued, and the control of the optical cross device is completed by the instruction.
- a computer readable storage medium is also provided in one embodiment of the invention, the computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the following step:
- the technical solution of the embodiment can be implemented on the OTN device, and the OTN device is used as the management device to control the optical cross device.
- the OTN device is used as the management device to control the optical cross device.
- the TCP Transmission Control Protocol
- the Ethernet port communication based on the IP address of the optical cross device.
- Transmission Control Protocol connections for management.
- the information of an optical cross-device can be represented by an IP address.
- the device information of the optical cross-device can be determined by using the IP address, and no other information is needed.
- the method for determining the information of the optical cross device is additionally used; in this embodiment, the device information is not limited, for example, it may be the type of the device or the software and hardware information of the device.
- An instruction is issued to the optical cross device according to the device information of the optical cross device.
- the control instruction for the optical cross-device may be generated according to the device information, and the command is sent to the optical cross-device to enable the optical cross-device to execute the command to complete the light. Control of the cross device.
- the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function.
- the corresponding instruction can be issued, and the control of the optical cross device is completed by the instruction.
- the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
- Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Signal Processing (AREA)
- Optical Communication System (AREA)
Abstract
Disclosed are an optical cross-connect device control method and apparatus, an optical transmission device, and a storage medium. The method comprises: establishing a connection with an optical cross-connect device according to the IP address of the optical cross-connect device; acquiring device information of the optical cross-connect device according to the IP address of the optical cross-connect device; and issuing an instruction to the optical cross-connect device according to the device information of the optical cross-connect device. According to the technical solution of the present invention, after an IP of an optical cross-connect device is configured, a connection with the optical cross-connect device can be established and information of the optical cross-connect device can be identified without requiring an additional adaptation function of the optical cross-connect device. After the information of the optical cross-connect device is determined, a corresponding instruction can be issued, and control over the optical cross-connect device is completed by means of the instruction.
Description
本申请要求享有2018年4月9日提交的名称为“光交叉设备控制方法、装置、光传输设备和存储介质”的中国专利申请CN201810311134.3的优先权,其全部内容通过引用并入本文中。The present application claims priority to Chinese Patent Application No. CN201810311134.3, filed on Apr. 9, 2008, entitled,,,,,,,,,,,,,,,,,,,,, .
本发明涉及通信技术领域,尤其涉及一种光交叉设备控制方法、装置、光传输设备和存储介质。The present invention relates to the field of communications technologies, and in particular, to an optical cross-device control method, apparatus, optical transmission device, and storage medium.
OXC(Optical Cross-connect,光交叉设备)设备是一种兼有复用、配线、保护/恢复、监控和网管的多功能OTN(Optical Transport Network,光传送网)传输设备。光交叉设备在网络中的基本用途是进行自动的业务疏导,着眼点在网络。随着网络规模和网络保护/恢复策略以及网络可靠性的逐步升级,光交叉设备的必要性和重要性也越突出。The OXC (Optical Cross-connect) device is a multi-functional OTN (Optical Transport Network) transmission device that combines multiplexing, wiring, protection/recovery, monitoring, and network management. The basic use of optical cross-devices in the network is to conduct automated traffic grooming with a focus on the network. With the network scale and network protection/recovery strategy and the gradual upgrading of network reliability, the necessity and importance of optical cross-devices become more prominent.
到目前为止,DWDM(Dense Wavelength Division Multiplexing,密集型光波复用)已经成为在长距离和城域网通信应用中主要使用的全光通信技术。在一个用户不断增长的网络环境中引入OXC网元将有助于灵活地使用和分配波长。这些新的网元可以帮助运营商在光子层重新配置网络流量已获得最佳的数据传输,并能在链路发生故障时迅速恢复。全光网络最终会丢弃缓慢而昂贵的光电转换器,从而使未来的网络以更迅速更经济的方式运行。So far, DWDM (Dense Wavelength Division Multiplexing) has become the all-optical communication technology mainly used in long-distance and metropolitan area network communication applications. Introducing OXC network elements in a user's growing network environment will help to flexibly use and distribute wavelengths. These new network elements can help operators reconfigure network traffic at the photonic layer to achieve optimal data transmission and recover quickly in the event of a link failure. All-optical networks will eventually discard slow and expensive opto-electrical converters, allowing future networks to operate in a faster and more economical manner.
通过使用光交叉设备,OADM(Optical Add-drop Multiplexer,光分插复用器)可以在网络的某个节点从WDM(Wavelength Division Multiplexing,波分复用)信号中选出并卸下一个波长,然后再在原波长上加入一个新的信号继续向下一个节点传输。这种功能极大地加强了全光网络中的负载管理能力。By using an optical cross-connect device, an optical add-drop multiplexer (OADM) can select and remove a wavelength from a WDM (Wavelength Division Multiplexing) signal at a certain node of the network. Then add a new signal to the original wavelength to continue transmission to the next node. This capability greatly enhances the load management capabilities of all-optical networks.
因此,基于光交叉设备的重要性,如何稳定高效地对光交叉设备进行连接以及控制,成为一个重要的课题。Therefore, based on the importance of optical cross-devices, how to stably and efficiently connect and control optical cross-devices has become an important issue.
发明内容Summary of the invention
本发明的主要目的在于提出一种光交叉设备控制方法、装置、光传输设备和存储介质,旨在提供一种能够稳定高效地连接以及控制光交叉设备的技术方案。The main object of the present invention is to provide an optical cross device control method, apparatus, optical transmission device and storage medium, and aims to provide a technical solution capable of stably and efficiently connecting and controlling an optical cross device.
为实现上述目的,本发明提供了一种光交叉设备控制方法,包括:根据所述光交叉设备的IP(Internet Protocol,互联网协议)地址,建立与所述光交叉设备之间的连接;根据所述光交叉设备的IP地址,获取所述光交叉设备的设备信息;根据所述光交叉设备的设备信息,对所述光交叉设备下发指令。To achieve the above object, the present invention provides a method for controlling an optical cross device, including: establishing a connection with the optical cross device according to an IP (Internet Protocol) address of the optical cross device; The device is configured to send an instruction to the optical cross device according to the device information of the optical cross device.
为实现上述目标,本发明还提供了一种光交叉设备控制装置,包括:连接建立模块,根据所述光交叉设备的IP地址,建立与所述光交叉设备之间的连接;设备信息获取模块,根据所述光交叉设备的IP地址,获取所述光交叉设备的设备信息;指令发送模块,根据所述光交叉设备的设备信息,对所述光交叉设备下发指令。In order to achieve the above object, the present invention further provides an optical cross-device control apparatus, including: a connection establishment module, establishing a connection with the optical cross-device according to an IP address of the optical cross-device; and a device information acquisition module And acquiring, according to the IP address of the optical cross-device, the device information of the optical cross-device; and the command sending module, sending an instruction to the optical cross-device according to the device information of the optical cross-device.
为实现上述目标,本发明还提供了一种光传输设备,包括处理器、存储器、通信总线;所述通信总线用于实现处理器和存储器之间的连接通信;所述处理器用于执行存储器中存储的基于指纹的操作控制程序,以实现前述的光交叉设备控制方法的步骤。In order to achieve the above object, the present invention also provides an optical transmission device including a processor, a memory, and a communication bus; the communication bus is used to implement connection communication between the processor and the memory; and the processor is used to execute the memory. The stored fingerprint-based operation control program implements the steps of the aforementioned optical cross-device control method.
为实现上述目标,本发明还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现前述的光交叉设备控制方法的步骤。To achieve the above object, the present invention also provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors, To achieve the steps of the aforementioned optical cross-device control method.
根据以上技术方案,可知本发明的光交叉设备控制方法、装置、光传输设备和存储介质至少具有以下优点:According to the above technical solution, it is known that the optical cross device control method, apparatus, optical transmission device and storage medium of the present invention have at least the following advantages:
根据本发明的技术方案,在设置光交叉设备的IP后,便可以和光交叉设备建立连接并识别光交叉设备的信息,不需要光交叉设备进行额外的适配功能,在明确光交叉设备的信息后就可以下发对应的指令,通过指令完成对光交叉设备的控制。According to the technical solution of the present invention, after the IP of the optical cross-device is set, the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function, and the information of the optical cross-device is clarified. After that, the corresponding instruction can be issued, and the control of the optical cross device can be completed by the instruction.
图1是根据本发明的一个实施例的光交叉设备控制方法的流程图一;1 is a flow chart 1 of a method of controlling an optical cross device according to an embodiment of the present invention;
图2是根据本发明的一个实施例的光交叉设备控制方法的流程图二;2 is a second flowchart of a method of controlling an optical cross device according to an embodiment of the present invention;
图3是根据本发明的一个实施例的光交叉设备控制方法的示意图三;3 is a third schematic diagram of a method of controlling an optical cross device according to an embodiment of the present invention;
图4是根据本发明的一个实施例的光交叉设备控制装置的框图;4 is a block diagram of an optical cross device control apparatus in accordance with an embodiment of the present invention;
图5是根据本发明的一个实施例的光交叉设备控制装置的框图;以及Figure 5 is a block diagram of an optical cross device control apparatus in accordance with one embodiment of the present invention;
图6是根据本发明的一个实施例的光交叉设备控制装置的示意图。Figure 6 is a schematic illustration of an optical cross-device control device in accordance with one embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身没有特有的意义。因此,“模块”、“部件”或“单元”可以混合地使用。In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and has no specific meaning per se. Therefore, "module", "component" or "unit" can be used in combination.
如图1所示,本发明的一个实施例中提供了一种光交叉设备控制方法,本实施例的方法包括:As shown in FIG. 1 , an embodiment of the present invention provides a method for controlling an optical cross device, and the method in this embodiment includes:
步骤S110,根据光交叉设备的IP地址,建立与光交叉设备之间的连接。Step S110, establishing a connection with the optical cross device according to the IP address of the optical cross device.
本实施例的技术方案可以在OTN设备上实现,以OTN设备作为管理设备,对光交叉设备进行控制,具体地,基于光交叉设备的IP地址,通过以太网口通讯建立TCP(Transmission Control Protocol,传输控制协议)连接来实现管理。The technical solution of the embodiment can be implemented on the OTN device, and the OTN device is used as the management device to control the optical cross device. Specifically, the TCP (Transmission Control Protocol) is established through the Ethernet port communication based on the IP address of the optical cross device. Transmission Control Protocol) connections for management.
步骤S120,根据光交叉设备的IP地址,获取光交叉设备的设备信息。Step S120: Acquire device information of the optical cross device according to the IP address of the optical cross device.
在本实施例中,可以通过IP地址来表示某个光交叉设备的信息,当建立与光交叉设备之间的连接之后,通过IP地址即可确定光交叉设备的设备信息,而并不需要其他额外用于确定光交叉设备信息的方式;在本实施例中,对设备信息不进行限制,例如,其可以是设备的类型或设备的软硬件信息。In this embodiment, the information of an optical cross-device can be represented by an IP address. After establishing a connection with the optical cross-device, the device information of the optical cross-device can be determined by using the IP address, and no other information is needed. The method for determining the information of the optical cross device is additionally used; in this embodiment, the device information is not limited, for example, it may be the type of the device or the software and hardware information of the device.
步骤S130,根据光交叉设备的设备信息,对光交叉设备下发指令。Step S130: Send an instruction to the optical cross device according to the device information of the optical cross device.
在本实施例中,当确定光交叉设备的信息后,即可根据设备信息生成针对光交叉设备的控制指令,此时指令下发到光交叉设备使得光交叉设备执行该指令,以完成对光交叉设备的控制。In this embodiment, after the information of the optical cross-device is determined, the control instruction for the optical cross-device may be generated according to the device information, and the command is sent to the optical cross-device to enable the optical cross-device to execute the command to complete the light. Control of the cross device.
根据本实施例的技术方案,在设置光交叉设备的IP后,便可以和光交叉设备建立连接并识别光交叉设备的信息,不需要光交叉设备进行额外的适配功能,在明确光交叉设备的信息后就可以下发对应的指令,通过指令完成对光交叉设备的控制。According to the technical solution of the embodiment, after the IP of the optical cross-device is set, the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function. After the information, the corresponding instruction can be issued, and the control of the optical cross device is completed by the instruction.
如图2所示,本发明的一个实施例中提供了一种光交叉设备控制方法,本实施例的方法包括:As shown in FIG. 2, an embodiment of the present invention provides a method for controlling an optical cross device, and the method in this embodiment includes:
步骤S210,按预定时间间隔根据IP地址对光交叉设备进行探测,在收到光交叉设备 对探测的回应时,与光交叉设备建立连接。Step S210: The optical cross-device is detected according to the IP address at a predetermined time interval, and when the optical cross-device responds to the detection, a connection is established with the optical cross-device.
在本实施例中,举例说明,当光交叉设备通过以太网口连接之后,该功能会定时给光交叉设备发送ping(Ping是Windows、Unix和Linux系统下的一个命令)包。IP地址起始为192.168.128.4,依次递增192.168.129.4...最多可以同时管理20个光交叉设备。其中IP递增的第三字段表示子架号,ping包连续两次应答成功则建立socket(网络上的两个程序通过一个双向的通信连接实现数据的交换,这个连接的一端称为一个socket)连接。该功能将预设的设备链表中的一些信息更新:In this embodiment, after the optical cross-connect device is connected through the Ethernet port, the function periodically sends a ping (Ping is a command under Windows, Unix, and Linux systems) packets to the optical cross-device. The IP address starts at 192.168.128.4 and is incremented by 192.168.129.4. Up to 20 optical cross-devices can be managed at the same time. The third field in which the IP is incremented indicates the subrack number, and the ping packet succeeds in two consecutive responses to establish a socket (the two programs on the network exchange data through a two-way communication connection, and one end of the connection is called a socket). . This feature updates some of the information in the preset device list:
DeviceIpDeviceIp | DeviceTypeDeviceType | socketSocket | LinkstateLinkstate |
192.168.128.4192.168.128.4 | DeviceADeviceA | 11 | OnlineOnline |
192.168.129.4192.168.129.4 | DeviceBDeviceB | NULLNULL | OfflineOffline |
…... | …... | …... | …... |
其中,第一列表示设备IP。第二列表示设备的类型,该功能会通过不同的端口区分光交叉设备类型。第三列表示设备的socket值,如果设备是成功建立socket连接则更新socket值,socket值不为空。第四列表示设备的连接状态,如果设备能相应答ping包则为连接状态。Among them, the first column represents the device IP. The second column indicates the type of device that distinguishes the optical cross device type through different ports. The third column indicates the socket value of the device. If the device successfully establishes a socket connection, the socket value is updated, and the socket value is not empty. The fourth column indicates the connection status of the device. If the device can respond to the ping packet, it is connected.
当光交叉设备无法ping通时,会将socket连接关闭,同时更新设备链表将socket设置为NULL、Linkstate设置为offline。最后,如果光交叉设备之前为在线状态,则将该设备的子架号上报为光交叉设备已经离线。When the optical cross device fails to ping, the socket connection is closed, and the device linked list is updated to set the socket to NULL and Linkstate to offline. Finally, if the optical cross device is in the online state, the subrack number of the device is reported as the optical cross device is offline.
步骤S220,根据光交叉设备的IP地址以及预设的多个IP地址与多个子架的对应关系,确定光交叉设备所在的子架的信息。Step S220: Determine information about the subrack where the optical cross device is located according to the IP address of the optical cross device and the correspondence between the preset multiple IP addresses and the multiple subracks.
在本实施例中,通过IP地址表示光交叉设备的子架,可以预先建立多个IP地址与子架之间的关系,当建立连接后,即可根据IP地址确定子架。In this embodiment, the sub-rack of the optical cross-device is represented by the IP address, and the relationship between the multiple IP addresses and the sub-racks can be established in advance. After the connection is established, the sub-rack can be determined according to the IP address.
进一步地,在建立连接时获取光交叉设备的设备类型,并根据设备类型确定光交叉设备的微控制单元和/或实安板的信息。Further, the device type of the optical cross device is acquired when the connection is established, and the information of the micro control unit and/or the real board of the optical cross device is determined according to the device type.
在本实施例中,当光交叉设备socket连接成功建立之后,根据设备链表中的IP地址计算出光交叉设备的对应的子架号并确定相应光交叉设备已经上线,可以进行管理。再根据“设备类型”字段确定设备的MCU(微控制单元)地址、实安板类型、实安板硬件版本、实安板软件版本等信息。In this embodiment, after the socket connection of the optical cross-connect device is successfully established, the corresponding sub-rack number of the optical cross-device is calculated according to the IP address in the device linked list, and it is determined that the corresponding optical cross-device is online, and management can be performed. Then, according to the "device type" field, the MCU (micro control unit) address of the device, the type of the real board, the hardware version of the real board, and the software version of the real board are determined.
步骤S230,根据光交叉设备的设备信息,对光交叉设备下发指令。Step S230, issuing an instruction to the optical cross device according to the device information of the optical cross device.
步骤S240,检测在预定时间范围内是否接收到光交叉设备对指令的应答,在判断结果为否时则忽略指令。Step S240, detecting whether the response of the optical cross-device to the command is received within a predetermined time range, and omitting the instruction when the determination result is no.
步骤S250,接收光交叉设备对指令的应答,并获取光交叉设备对应的回调函数处理应答。Step S250, receiving a response of the optical cross-device to the instruction, and acquiring a callback function processing response corresponding to the optical cross-device.
在本实施例中,socket连接成功建立之后,会启动根据本实施例实现的两个处理报文的两个子模块。模块A负责处理下发给光交叉设备的命令,模块B负责处理光交叉设备应答的报文和主动上报的命令。In this embodiment, after the socket connection is successfully established, two sub-modules of two processing messages implemented according to the embodiment are started. The module A is responsible for processing the commands sent to the optical cross-device, and the module B is responsible for processing the packets that the optical cross-device answers and the commands that are actively reported.
CmdCodeCmdCode | CallidCallid | BoardAddrBoardAddr | CachePosCachePos | TickTick |
2A102A10 | 0x00010x0001 | 11 | 11 | 5050 |
2A1D2A1D | 0x00020x0002 | 11 | 22 | 5050 |
1A691A69 | 0x00030x0003 | 11 | 33 | 5050 |
1A701A70 | 0x00040x0004 | 11 | 44 | 100100 |
…... | …... | …... | …... | …... |
每个建链的光交叉设备会有一个命令列表,其中第一列表示命令码。第二列表示消息id,这个消息id在一个设备的消息列表中是唯一的,当设备应答之后可以找到唯一对应的设备回调函数进行处理。第三列是设备地址,表示当前光交叉设备所在位置。第四列是命令游标,表示当前光交叉设备在命令列表中的位置。第五列是命令超时时间,如果设备在指定时间内没有应答则会超时。Each chained optical cross device will have a list of commands, with the first column indicating the command code. The second column represents the message id, which is unique in the message list of a device. When the device answers, it can find a unique device callback function for processing. The third column is the device address, indicating the location of the current optical cross device. The fourth column is the command cursor, which indicates the position of the current optical cross device in the command list. The fifth column is the command timeout period, which will time out if the device does not answer within the specified time.
当OTN设备下发命令,主控板将命令码、消息id、单板地址、超时时间等信息保存在命令列表中。然后将命令内容转换成光交叉设备可以识别的TL1(是一种在电信领域广泛使用的管理协议)格式,通过TCP通信方式发送给设备。同时通过定时器会每秒轮询将消息列表中所有消息应答超时时间,如果设备出现应答超时,则将应答光交叉设备超时错误。When the OTN device sends a command, the main control board saves the command code, message id, board address, and timeout time in the command list. The command content is then converted into a TL1 (a management protocol widely used in the telecommunications field) format that the optical cross-device can recognize and sent to the device via TCP communication. At the same time, the timer will poll all messages in the message list for a timeout period. If the device times out, the optical cross-device timeout error will be acknowledged.
光交叉设备成功应答之后,根据设备列表中的设备id来获取命令列表中的命令码,再将TL1格式的内容转换成OTN设备可以识别的内容发送给网管。After the optical cross-device successfully responds, the command code in the command list is obtained according to the device id in the device list, and the content in the TL1 format is converted into the content that can be recognized by the OTN device and sent to the network management.
根据本实施例的技术方案,可以实现一种光交叉设备,其中具有例如图3所示的主控单板,通过以太网口通讯建立TCP连接来实现管理。建立连接之后通过ping包的方式来 探测心跳并通过TL1接口进行设置/查询光交叉设备的交叉能力以及各个端口的管理状态。用户只需要简单配置设备IP便可以和光交叉设备建立连接,不需要光交叉设备进行额外的适配功能。并且可以同时和多台不同厂商的光交叉设备建立连接并进行管理。According to the technical solution of the embodiment, an optical cross-device can be implemented, which has a main control board, for example, as shown in FIG. 3, and establishes a TCP connection through Ethernet port communication to implement management. After the connection is established, the heartbeat is detected by pinging the packet, and the crossover capability of the optical cross device and the management status of each port are set/queried through the TL1 interface. The user only needs to simply configure the device IP to establish a connection with the optical cross device, and does not require the optical cross device to perform additional adaptation functions. And can connect and manage multiple optical cross-devices from different manufacturers at the same time.
如图4所示,本发明的一个实施例中提供了一种光交叉设备控制装置,本实施例的装置包括:As shown in FIG. 4, an embodiment of the present invention provides an optical cross-device control apparatus. The apparatus of this embodiment includes:
连接建立模块410,根据光交叉设备的IP地址,建立与光交叉设备之间的连接。The connection establishing module 410 establishes a connection with the optical cross device according to the IP address of the optical cross device.
本实施例的技术方案可以在OTN设备上实现,以OTN设备作为管理设备,对光交叉设备进行控制,具体地,基于光交叉设备的IP地址,通过以太网口通讯建立TCP(Transmission Control Protocol,传输控制协议)连接来实现管理。The technical solution of the embodiment can be implemented on the OTN device, and the OTN device is used as the management device to control the optical cross device. Specifically, the TCP (Transmission Control Protocol) is established through the Ethernet port communication based on the IP address of the optical cross device. Transmission Control Protocol) connections for management.
设备信息获取模块420,根据光交叉设备的IP地址,获取光交叉设备的设备信息。The device information obtaining module 420 acquires device information of the optical cross device according to the IP address of the optical cross device.
在本实施例中,可以通过IP地址来表示某个光交叉设备的信息,当建立与光交叉设备之间的连接之后,通过IP地址即可确定光交叉设备的设备信息,而并不需要其他额外用于确定光交叉设备信息的方式;在本实施例中,对设备信息不进行限制,例如,其可以是设备的类型或设备的软硬件信息。In this embodiment, the information of an optical cross-device can be represented by an IP address. After establishing a connection with the optical cross-device, the device information of the optical cross-device can be determined by using the IP address, and no other information is needed. The method for determining the information of the optical cross device is additionally used; in this embodiment, the device information is not limited, for example, it may be the type of the device or the software and hardware information of the device.
指令发送模块430,根据光交叉设备的设备信息,对光交叉设备下发指令。The command sending module 430 issues an instruction to the optical cross device according to the device information of the optical cross device.
在本实施例中,当确定光交叉设备的信息后,即可根据设备信息生成针对光交叉设备的控制指令,此时指令下发到光交叉设备使得光交叉设备执行该指令,以完成对光交叉设备的控制。In this embodiment, after the information of the optical cross-device is determined, the control instruction for the optical cross-device may be generated according to the device information, and the command is sent to the optical cross-device to enable the optical cross-device to execute the command to complete the light. Control of the cross device.
根据本实施例的技术方案,在设置光交叉设备的IP后,便可以和光交叉设备建立连接并识别光交叉设备的信息,不需要光交叉设备进行额外的适配功能,在明确光交叉设备的信息后就可以下发对应的指令,通过指令完成对光交叉设备的控制。According to the technical solution of the embodiment, after the IP of the optical cross-device is set, the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function. After the information, the corresponding instruction can be issued, and the control of the optical cross device is completed by the instruction.
如图5所示,本发明的一个实施例中提供了一种光交叉设备控制装置,本实施例的装置包括:As shown in FIG. 5, an embodiment of the present invention provides an optical cross-device control apparatus. The apparatus of this embodiment includes:
连接建立模块510,按预定时间间隔根据IP地址对光交叉设备进行探测,在收到光交叉设备对探测的回应时,与光交叉设备建立连接。The connection establishing module 510 detects the optical cross device according to the IP address at a predetermined time interval, and establishes a connection with the optical cross device when receiving the response of the optical cross device to the detection.
在本实施例中,首先初始化光交叉设备的IP地址和管理指令的消息队列和管理设备状态的设备队列。对光交叉设备发送ping包,并尝试建立socket连接。具体地,初始化时将消息队列清空,并将设备队列中的队列设置为断链。当成功建立socket连接后可以向光交叉设定下发登录命令,同时可以接收并处理光交叉设备发过来的TL1报文。OTN 设备可以根据消息队列的命令码解析TL1报文内容并转换成相应的格式上报。In this embodiment, the IP address of the optical cross-device and the message queue of the management command and the device queue of the management device status are first initialized. Send a ping packet to the optical cross device and try to establish a socket connection. Specifically, the message queue is cleared at initialization and the queues in the device queue are set to be broken. After the socket connection is successfully established, the login command can be sent to the optical cross-connection, and the TL1 packet sent by the optical cross-device can be received and processed. The OTN device can parse the content of the TL1 packet according to the command code of the message queue and convert it into a corresponding format report.
设备信息获取模块520,根据光交叉设备的IP地址以及预设的多个IP地址与多个子架的对应关系,确定光交叉设备所在的子架的信息。The device information obtaining module 520 determines the information of the subrack where the optical cross device is located according to the IP address of the optical cross device and the correspondence between the preset multiple IP addresses and the multiple subracks.
在本实施例中,通过IP地址表示光交叉设备的子架,可以预先建立多个IP地址与子架之间的关系,当建立连接后,即可根据IP地址确定子架。In this embodiment, the sub-rack of the optical cross-device is represented by the IP address, and the relationship between the multiple IP addresses and the sub-racks can be established in advance. After the connection is established, the sub-rack can be determined according to the IP address.
进一步地,在建立连接时获取光交叉设备的设备类型,并根据设备类型确定光交叉设备的微控制单元和/或实安板的信息。Further, the device type of the optical cross device is acquired when the connection is established, and the information of the micro control unit and/or the real board of the optical cross device is determined according to the device type.
指令发送模块530,根据光交叉设备的设备信息,对光交叉设备下发指令。The command sending module 530 sends an instruction to the optical cross device according to the device information of the optical cross device.
超时处理模块540,检测在预定时间范围内是否接收到光交叉设备对指令的应答,在判断结果为否时则忽略指令。The timeout processing module 540 detects whether the optical cross-device response to the command is received within a predetermined time range, and ignores the command when the determination result is no.
在本实施例中,创建两个任务定时器,一个定时器TIMER1用来定时发送ping包给所有光交叉设备,根据ping包的结果更新在位状态和子架的信息。TIMER2用来定时轮询命令列表的状态。TIMER1定时发送ping包给光交叉设备。如果ping通则更新设备链表状态为连接状态并重复发送ping包的操作,反之则更新设备链表状态为断链状态并清空消息列表。另一个定时器TIMER2定时将消息列表中超时的消息清空并应答超时,两个定时器相互配合工作的流程如图6所示。In this embodiment, two task timers are created, and a timer TIMER1 is used to periodically send a ping packet to all optical cross-devices, and the in-position state and the sub-rack information are updated according to the result of the ping packet. TIMER2 is used to periodically poll the status of the command list. TIMER1 periodically sends a ping packet to the optical cross device. If pinging, the status of the device linked list is updated to the connection state and the ping packet is repeatedly sent. Otherwise, the device linked list status is broken and the message list is cleared. Another timer TIMER2 periodically clears the timeout message in the message list and responds with a timeout. The flow of the two timers working together is shown in FIG. 6.
应答处理模块550,接收光交叉设备对指令的应答,并获取光交叉设备对应的回调函数来处理应答。The response processing module 550 receives the response of the optical cross device to the command, and acquires a callback function corresponding to the optical cross device to process the response.
在本实施例中,在将OTN设备的报文转换成TL1格式并下发给光交叉设备的同时,可以设置消息应答时间并更新消息链表。In this embodiment, the message response time can be set and the message list can be updated while the message of the OTN device is converted into the TL1 format and sent to the optical cross device.
根据本实施例的技术方案,可以实现一种光交叉设备,其中具有例如图3所示的主控单板,通过以太网口通讯建立TCP连接来实现管理。建立连接之后通过ping包的方式来探测心跳并通过TL1接口进行设置/查询光交叉设备的交叉能力以及各个端口的管理状态。用户只需要简单配置设备IP便可以和光交叉设备建立连接,不需要光交叉设备进行额外的适配功能。并且可以同时和多台不同厂商的光交叉设备建立连接并进行管理。According to the technical solution of the embodiment, an optical cross-device can be implemented, which has a main control board, for example, as shown in FIG. 3, and establishes a TCP connection through Ethernet port communication to implement management. After the connection is established, the heartbeat is detected by pinging the packet, and the crossover capability of the optical cross device and the management status of each port are set/queried through the TL1 interface. The user only needs to simply configure the device IP to establish a connection with the optical cross device, and does not require the optical cross device to perform additional adaptation functions. And can connect and manage multiple optical cross-devices from different manufacturers at the same time.
本发明的一个实施例中还提供了一种光传输设备,包括处理器、存储器、通信总线。通信总线用于实现处理器和存储器之间的连接通信;处理器用于执行存储器中存储的基于指纹的操作控制程序,以实现以下步骤:An embodiment of the present invention also provides an optical transmission device including a processor, a memory, and a communication bus. The communication bus is used to implement connection communication between the processor and the memory; the processor is configured to execute a fingerprint-based operation control program stored in the memory to implement the following steps:
根据光交叉设备的IP地址,建立与光交叉设备之间的连接。Establish a connection with the optical cross device based on the IP address of the optical cross device.
本实施例的技术方案可以在OTN设备上实现,以OTN设备作为管理设备,对光交叉设备进行控制,具体地,基于光交叉设备的IP地址,通过以太网口通讯建立TCP(Transmission Control Protocol,传输控制协议)连接来实现管理。The technical solution of the embodiment can be implemented on the OTN device, and the OTN device is used as the management device to control the optical cross device. Specifically, the TCP (Transmission Control Protocol) is established through the Ethernet port communication based on the IP address of the optical cross device. Transmission Control Protocol) connections for management.
根据光交叉设备的IP地址,获取光交叉设备的设备信息。Obtain device information of the optical cross device according to the IP address of the optical cross device.
在本实施例中,可以通过IP地址来表示某个光交叉设备的信息,当建立与光交叉设备之间的连接之后,通过IP地址即可确定光交叉设备的设备信息,而并不需要其他额外用于确定光交叉设备信息的方式;在本实施例中,对设备信息不进行限制,例如,其可以是设备的类型或设备的软硬件信息。In this embodiment, the information of an optical cross-device can be represented by an IP address. After establishing a connection with the optical cross-device, the device information of the optical cross-device can be determined by using the IP address, and no other information is needed. The method for determining the information of the optical cross device is additionally used; in this embodiment, the device information is not limited, for example, it may be the type of the device or the software and hardware information of the device.
根据光交叉设备的设备信息,对光交叉设备下发指令。An instruction is issued to the optical cross device according to the device information of the optical cross device.
在本实施例中,当确定光交叉设备的信息后,即可根据设备信息生成针对光交叉设备的控制指令,此时指令下发到光交叉设备使得光交叉设备执行该指令,以完成对光交叉设备的控制。In this embodiment, after the information of the optical cross-device is determined, the control instruction for the optical cross-device may be generated according to the device information, and the command is sent to the optical cross-device to enable the optical cross-device to execute the command to complete the light. Control of the cross device.
根据本实施例的技术方案,在设置光交叉设备的IP后,便可以和光交叉设备建立连接并识别光交叉设备的信息,不需要光交叉设备进行额外的适配功能,在明确光交叉设备的信息后就可以下发对应的指令,通过指令完成对光交叉设备的控制。According to the technical solution of the embodiment, after the IP of the optical cross-device is set, the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function. After the information, the corresponding instruction can be issued, and the control of the optical cross device is completed by the instruction.
本发明的一个实施例中还提供了一种计算机可读存储介质,计算机可读存储介质存储有一个或者多个程序,该一个或者多个程序可被一个或者多个处理器执行,以实现以下步骤:A computer readable storage medium is also provided in one embodiment of the invention, the computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the following step:
根据光交叉设备的IP地址,建立与光交叉设备之间的连接。Establish a connection with the optical cross device based on the IP address of the optical cross device.
本实施例的技术方案可以在OTN设备上实现,以OTN设备作为管理设备,对光交叉设备进行控制,具体地,基于光交叉设备的IP地址,通过以太网口通讯建立TCP(Transmission Control Protocol,传输控制协议)连接来实现管理。The technical solution of the embodiment can be implemented on the OTN device, and the OTN device is used as the management device to control the optical cross device. Specifically, the TCP (Transmission Control Protocol) is established through the Ethernet port communication based on the IP address of the optical cross device. Transmission Control Protocol) connections for management.
根据光交叉设备的IP地址,获取光交叉设备的设备信息。Obtain device information of the optical cross device according to the IP address of the optical cross device.
在本实施例中,可以通过IP地址来表示某个光交叉设备的信息,当建立与光交叉设备之间的连接之后,通过IP地址即可确定光交叉设备的设备信息,而并不需要其他额外用于确定光交叉设备信息的方式;在本实施例中,对设备信息不进行限制,例如,其可以是设备的类型或设备的软硬件信息。In this embodiment, the information of an optical cross-device can be represented by an IP address. After establishing a connection with the optical cross-device, the device information of the optical cross-device can be determined by using the IP address, and no other information is needed. The method for determining the information of the optical cross device is additionally used; in this embodiment, the device information is not limited, for example, it may be the type of the device or the software and hardware information of the device.
根据光交叉设备的设备信息,对光交叉设备下发指令。An instruction is issued to the optical cross device according to the device information of the optical cross device.
在本实施例中,当确定光交叉设备的信息后,即可根据设备信息生成针对光交叉设备 的控制指令,此时指令下发到光交叉设备使得光交叉设备执行该指令,以完成对光交叉设备的控制。In this embodiment, after the information of the optical cross-device is determined, the control instruction for the optical cross-device may be generated according to the device information, and the command is sent to the optical cross-device to enable the optical cross-device to execute the command to complete the light. Control of the cross device.
根据本实施例的技术方案,在设置光交叉设备的IP后,便可以和光交叉设备建立连接并识别光交叉设备的信息,不需要光交叉设备进行额外的适配功能,在明确光交叉设备的信息后就可以下发对应的指令,通过指令完成对光交叉设备的控制。According to the technical solution of the embodiment, after the IP of the optical cross-device is set, the connection with the optical cross-device can be established and the information of the optical cross-device can be identified, and the optical cross-over device is not required to perform an additional adaptation function. After the information, the corresponding instruction can be issued, and the control of the optical cross device is completed by the instruction.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It is to be understood that the term "comprises", "comprising", or any other variants thereof, is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes those elements. It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, article, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the embodiments of the present invention are merely for the description, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机、计算机、服务器、空调器或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。The embodiments of the present invention have been described above with reference to the drawings, but the present invention is not limited to the specific embodiments described above, and the specific embodiments described above are merely illustrative and not restrictive, and those skilled in the art In the light of the present invention, many forms may be made without departing from the spirit and scope of the invention as claimed.
Claims (10)
- 一种光交叉设备控制方法,其特征在于,包括:An optical cross device control method, comprising:根据所述光交叉设备的IP地址,建立与所述光交叉设备之间的连接;Establishing a connection with the optical cross device according to an IP address of the optical cross device;根据所述光交叉设备的IP地址,获取所述光交叉设备的设备信息;Obtaining device information of the optical cross device according to an IP address of the optical cross device;根据所述光交叉设备的设备信息,对所述光交叉设备下发指令。And issuing an instruction to the optical cross device according to the device information of the optical cross device.
- 根据权利要求1所述的方法,其特征在于,所述根据所述光交叉设备的IP地址,建立与所述光交叉设备之间的连接,包括:The method according to claim 1, wherein the establishing a connection with the optical cross device according to an IP address of the optical cross device comprises:按预定时间间隔根据所述IP地址对所述光交叉设备进行探测,在收到所述光交叉设备对所述探测的回应时,与所述光交叉设备建立连接。Detecting the optical cross-device according to the IP address at a predetermined time interval, and establishing a connection with the optical cross-device when receiving the response of the optical cross-device to the probe.
- 根据权利要求1所述的方法,其特征在于,所述根据所述光交叉设备的IP地址,获取所述光交叉设备的设备信息,包括:The method according to claim 1, wherein the acquiring the device information of the optical cross-device according to the IP address of the optical cross-device comprises:根据所述光交叉设备的IP地址以及预设的多个IP地址与多个子架的对应关系,确定所述光交叉设备所在的子架。Determining the subrack where the optical cross device is located according to the IP address of the optical cross device and the corresponding relationship between the preset multiple IP addresses and the multiple subracks.
- 根据权利要求1所述的方法,其特征在于,在所述对所述光交叉设备下发指令之后,还包括:The method of claim 1, further comprising: after the issuing the instruction to the optical cross-device;接收所述光交叉设备对所述指令的应答,并获取所述光交叉设备对应的回调函数来处理所述应答。Receiving, by the optical cross-device, a response to the instruction, and acquiring a callback function corresponding to the optical cross-device to process the response.
- 根据权利要求1所述的方法,其特征在于,在所述将对所述光交叉设备下发指令之后,还包括:The method according to claim 1, further comprising: after the command is to be issued to the optical cross device, further comprising:检测在预定时间范围内是否接收到所述光交叉设备对所述指令的应答,在判断结果为否时则忽略所述指令。Detecting whether the optical cross-device has received the response to the instruction within a predetermined time range, and omitting the instruction when the determination result is no.
- 一种光交叉设备控制装置,其特征在于,包括:An optical cross device control device, comprising:连接建立模块,根据所述光交叉设备的IP地址,建立与所述光交叉设备之间的连接;a connection establishing module, establishing a connection with the optical cross device according to an IP address of the optical cross device;设备信息获取模块,根据所述光交叉设备的IP地址,获取所述光交叉设备的设备信息;The device information acquiring module acquires device information of the optical cross device according to an IP address of the optical cross device;指令发送模块,根据所述光交叉设备的设备信息,对所述光交叉设备下发指令。The command sending module sends an instruction to the optical cross device according to the device information of the optical cross device.
- 根据权利要求6所述的装置,其特征在于,The device of claim 6 wherein:所述连接建立模块按预定时间间隔根据所述IP地址对所述光交叉设备进行探测,在 收到所述光交叉设备对所述探测的回应时,与所述光交叉设备建立连接。The connection establishing module detects the optical cross-device according to the IP address at a predetermined time interval, and establishes a connection with the optical cross-device when receiving the response of the optical cross-device to the probe.
- 根据权利要求6所述的装置,其特征在于,The device of claim 6 wherein:所述设备信息获取模块根据所述光交叉设备的IP地址以及预设的多个IP地址与多个子架的对应关系,确定所述光交叉设备所在的子架的信息。The device information obtaining module determines the information of the subrack in which the optical cross device is located according to the IP address of the optical cross device and the corresponding relationship between the preset multiple IP addresses and the multiple subracks.
- 一种光传输设备,其特征在于,包括处理器、存储器、通信总线;An optical transmission device, comprising: a processor, a memory, and a communication bus;所述通信总线用于实现处理器和存储器之间的连接通信;The communication bus is used to implement connection communication between a processor and a memory;所述处理器用于执行存储器中存储的基于指纹的操作控制程序,以实现权利要求1至5中任一项所述的光交叉设备控制方法的步骤。The processor is configured to execute a fingerprint-based operation control program stored in a memory to implement the steps of the optical cross-device control method according to any one of claims 1 to 5.
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现权利要求1至5中任一项所述的光交叉设备控制方法的步骤。A computer readable storage medium, characterized in that the computer readable storage medium stores one or more programs, the one or more programs being executable by one or more processors to implement claim 1 The step of the optical cross device control method according to any of the preceding claims.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810311134.3A CN110366057B (en) | 2018-04-09 | 2018-04-09 | Optical cross device control method, apparatus, optical transmission device and storage medium |
CN201810311134.3 | 2018-04-09 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019196781A1 true WO2019196781A1 (en) | 2019-10-17 |
Family
ID=68163075
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2019/081710 WO2019196781A1 (en) | 2018-04-09 | 2019-04-08 | Optical cross-connect device control method and apparatus, optical transmission device, and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110366057B (en) |
WO (1) | WO2019196781A1 (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101167281A (en) * | 2005-04-28 | 2008-04-23 | 朗迅科技公司 | Method and apparatus for synchronous switching of optical transport network signals |
CN103379033A (en) * | 2012-04-27 | 2013-10-30 | 中国联合网络通信集团有限公司 | Message forwarding method and grouped optical transmission network device |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7174065B2 (en) * | 2002-03-21 | 2007-02-06 | Avago Technologies Fiber Ip (Singapore) Pte. Ltd. | Optical switching fabric with an optical to electrical converter in the output plane |
JP3855822B2 (en) * | 2002-03-29 | 2006-12-13 | Kddi株式会社 | System having node device in IP / WDM network |
US7457277B1 (en) * | 2002-09-20 | 2008-11-25 | Mahi Networks, Inc. | System and method for network layer protocol routing in a peer model integrated optical network |
US7346277B2 (en) * | 2003-09-08 | 2008-03-18 | Lucent Technologies Inc. | Joint-layer restoration in packet-over-optical networks |
US8155515B2 (en) * | 2003-12-29 | 2012-04-10 | Verizon Business Global Llc | Method and apparatus for sharing common capacity and using different schemes for restoring telecommunications networks |
BRPI0401601A (en) * | 2004-04-15 | 2005-12-06 | Fundacao Cpqd Ct De Pesquisa E | Device for switching remote optical selector by ip address |
CN101888276A (en) * | 2010-04-09 | 2010-11-17 | 西安电子科技大学 | Quantum router for multi-user photon communication network and routing method thereof |
CN103229442B (en) * | 2012-12-05 | 2016-08-03 | 华为技术有限公司 | Information transferring method, light intersection website and information transmission system |
CN105282629A (en) * | 2014-07-03 | 2016-01-27 | 中兴通讯股份有限公司 | Control method and device of silicon optical cross connection |
CN107105355B (en) * | 2016-02-23 | 2020-05-05 | 中兴通讯股份有限公司 | Switching method and switching system |
CN107294875B (en) * | 2016-03-31 | 2020-04-14 | 上海层峰网络科技有限公司 | Out-of-band control system and control plane communication method for SDN (software defined network) |
CN106941633B (en) * | 2017-02-20 | 2021-01-15 | 武汉邮电科学研究院 | SDN-based all-optical switching data center network control system and implementation method thereof |
-
2018
- 2018-04-09 CN CN201810311134.3A patent/CN110366057B/en active Active
-
2019
- 2019-04-08 WO PCT/CN2019/081710 patent/WO2019196781A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101167281A (en) * | 2005-04-28 | 2008-04-23 | 朗迅科技公司 | Method and apparatus for synchronous switching of optical transport network signals |
CN103379033A (en) * | 2012-04-27 | 2013-10-30 | 中国联合网络通信集团有限公司 | Message forwarding method and grouped optical transmission network device |
Non-Patent Citations (1)
Title |
---|
AHMAD KHALIL: "A Novel IP-Over-Optical Network Interconnection Model for the Next-Generation Optical Internet", IEEE GLOBAL TELECOMMUNICATIONS CONFERENCE, 5 December 2003 (2003-12-05), pages 3984 - 3989, XP010677360, DOI: 10.1109/GLOCOM.2003.1258977 * |
Also Published As
Publication number | Publication date |
---|---|
CN110366057A (en) | 2019-10-22 |
CN110366057B (en) | 2021-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9083613B2 (en) | Detection of cabling error in communication network | |
US8909758B2 (en) | Physical server discovery and correlation | |
US9813286B2 (en) | Method for virtual local area network fail-over management, system therefor and apparatus therewith | |
US20050259571A1 (en) | Self-healing hierarchical network management system, and methods and apparatus therefor | |
WO2016165463A1 (en) | Software defined network-based link failure reporting method and forwarding device | |
EP3319334A1 (en) | Method for realizing switching of ont operation mode online, ont and olt | |
EP3101872B1 (en) | Load balancing server for forwarding prioritized traffic from and to one or more prioritized auto-configuration servers | |
US10523547B2 (en) | Methods, systems, and computer readable media for multiple bidirectional forwarding detection (BFD) session optimization | |
US11792098B2 (en) | Link detection method and system | |
WO2011076129A1 (en) | Failure detection method and device for fcoe virtual link | |
CN102263651A (en) | Method for detecting connection state of local end equipment in SNMP (simple network management protocol) network management system (NMS) | |
EP3257205B1 (en) | Discovering links between operating domains in a communication network | |
CN107645389B (en) | Network communication method and device | |
EP2909973A1 (en) | Method and apparatus for determining connection information of a link | |
JP6222367B2 (en) | COMMUNICATION DEVICE, COMMUNICATION SYSTEM, AND COMMUNICATION METHOD | |
WO2019196781A1 (en) | Optical cross-connect device control method and apparatus, optical transmission device, and storage medium | |
CN112217680B (en) | Controller capability benchmark test method and device based on software-defined wide area network | |
US11012377B2 (en) | Efficient network link status handling | |
JP2009278451A (en) | Network equipment setting method | |
CN109120520B (en) | Fault processing method and equipment | |
WO2019091350A1 (en) | Dual uplink method, optical network management device, and optical transmission system | |
CN110061936B (en) | Automatic multi-chassis link aggregation configuration | |
US20150200813A1 (en) | Server connection apparatus and server connection method | |
CN105323088A (en) | Springboard processing method and springboard processing device | |
KR20010058738A (en) | Method for group polling in a simple network management protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 19784319 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04/02/2021) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 19784319 Country of ref document: EP Kind code of ref document: A1 |