Communication method and apparatus, and optical bus network
Abstract
A communication method and apparatus, and an optical bus network are provided. This application relates to the field of industrial data communication technologies. In the method, a controller sends, when discovering a target optical head end, a target optical head end identifier to the target optical head end, where the target optical head end identifier is for identifying the target optical head end; the controller determines a target management protocol from management protocols supported by the target optical head end; and the controller communicates target information with the target optical head end based on the target optical head end identifier and the target management protocol, where the target information is used by the controller to manage the target optical head end and/or at least one optical terminal managed by the target optical head end.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A device management method, applied to an optical bus network, the optical bus network comprising a target optical head end and at least one optical terminal managed by the target optical head end, the optical bus network further comprising a controller, and the method comprising:
sending, by the controller, a target optical head end identifier to the target optical head end when discovering the target optical head end, wherein the target optical head end identifier is for identifying the target optical head end; determining, by the controller, a target management protocol from management protocols supported by the target optical head end; and communicating, by the controller, target information with the target optical head end based on the target optical head end identifier and the target management protocol, wherein the target information is used by the controller to manage the target optical head end and/or the at least one optical terminal managed by the target optical head end.
2 . The method according to claim 1 , wherein the target management protocol is for defining a frame structure of a message that carries the target information, the frame structure comprises a header field and a payload field, the target optical head end identifier is located in the header field, and the target information is located in the payload field.
3 . The method according to claim 2 , wherein the target information uses at least one type-length-value TLV structure, wherein a type field in each TLV structure is for carrying type indication information of a managed object, a length field in each TLV structure indicates a length of object content corresponding to the managed object, and a value field in each TLV structure is for carrying the object content.
4 . The method according to claim 2 , wherein the frame structure further comprises a protocol data unit PDU type field, the PDU type field in the frame structure is for carrying a predetermined value, and the predetermined value indicates that the frame structure is a management protocol frame structure.
5 . The method according to claim 2 , wherein the frame structure further comprises a command indicator, and the command indicator indicates that the frame structure corresponds to any one of the following message types: a read operation, a read response operation, a set operation, a set response operation, and an event report operation.
6 . The method according to claim 2 , wherein the frame structure further comprises an event field, and the event field is for carrying alarm event information reported by the target optical head end to the controller.
7 . The method according to claim 1 , wherein the sending, by the controller, a target optical head end identifier to the target optical head end when discovering the target optical head end comprises:
broadcasting, by the controller, a discovery packet, wherein the discovery packet comprises a destination identifier corresponding to the discovery packet; receiving, by the controller, a discovery packet response sent by the target optical head end based on the destination identifier, wherein the discovery packet response comprises a media access control MAC address of the target optical head end; and sending, by the controller, the target optical head end identifier to the target optical head end based on the MAC address of the target optical head end.
8 . The method according to claim 1 , wherein the determining, by the controller, a target management protocol from management protocols supported by the target optical head end comprises:
receiving, by the controller, first version information from the target optical head end, wherein the first version information indicates a version of each of the management protocols supported by the target optical head end; and determining, by the controller based on the first version information, the target management protocol from the management protocols supported by the target optical head end.
9 . A communication method, applied to an optical bus network, the optical bus network comprising a target optical head end and at least one optical terminal managed by the target optical head end, the optical bus network further comprising a controller, and the method comprising:
receiving, by the target optical head end, a target optical head end identifier from the controller, wherein the target optical head end identifier is sent by the controller when the controller discovers the target optical head end and is for identifying the target optical head end; and transmitting, by the target optical head end, target information to the controller based on the target optical head end identifier and a target management protocol, wherein the target information is used by the controller to manage the target optical head end and/or the at least one optical terminal managed by the target optical head end, and the target management protocol is determined by the controller from management protocols supported by the target optical head end.
10 . The method according to claim 9 , wherein the target management protocol is for defining a frame structure of a message that carries the target information, the frame structure comprises a header field and a payload field, the target optical head end identifier is located in the header field, and the target information is located in the payload field.
11 . The method according to claim 10 , wherein the target information uses at least one type-length-value TLV structure, wherein a type field in each TLV structure is for carrying type indication information of a managed object, a length field in each TLV structure indicates a length of object content corresponding to the managed object, and a value field in each TLV structure is for carrying the object content.
12 . The method according to claim 10 , wherein the frame structure further comprises a protocol data unit PDU type field, the PDU type field in the frame structure is for carrying a predetermined value, and the predetermined value indicates that the frame structure is a management protocol frame structure.
13 . The method according to claim 10 , wherein the frame structure further comprises a command indicator, and the command indicator indicates that the frame structure corresponds to any one of the following message types: a read operation, a read response operation, a set operation, a set response operation, and an event report operation.
14 . The method according to claim 10 , wherein the frame structure further comprises an event field, and the event field is for carrying alarm event information reported by the target optical head end to the controller.
15 . The method according to claim 9 , wherein the receiving, by the target optical head end, a target optical head end identifier from the controller comprises:
receiving, by the target optical head end, a discovery packet from the controller, wherein the discovery packet comprises a destination identifier corresponding to the discovery packet; sending, by the target optical head end, a discovery packet response to the controller based on the destination identifier, wherein the discovery packet response comprises a MAC address of the target optical head end; and receiving, by the target optical head end, the target optical head end identifier sent by the controller based on the MAC address of the target optical head end.
16 . The method according to claim 9 , wherein the method further comprises:
sending, by the target optical head end, first version information to the controller based on the target optical head end identifier, wherein the first version information indicates a version of each of the management protocols supported by the target optical head end.
17 . A target optical head end, comprising a transceiver and a processor, wherein
the transceiver is configured to communicate with another device; and the processor is configured to: receive a target optical head end identifier from a controller, wherein the target optical head end identifier is sent by the controller when the controller discovers the target optical head end and is for identifying the target optical head end; and transmit target information to the controller based on the target optical head end identifier and a target management protocol, wherein the target information is used by the controller to manage the target optical head end and/or the at least one optical terminal managed by the target optical head end, and the target management protocol is determined by the controller from management protocols supported by the target optical head end.
18 . The target optical head end according to claim 17 , wherein the target management protocol is for defining a frame structure of a message that carries the target information, the frame structure comprises a header field and a payload field, the target optical head end identifier is located in the header field, and the target information is located in the payload field.
19 . The target optical head end according to claim 17 , wherein the target information uses at least one type-length-value TLV structure, wherein a type field in each TLV structure is for carrying type indication information of a managed object, a length field in each TLV structure indicates a length of object content corresponding to the managed object, and a value field in each TLV structure is for carrying the object content.
20 . The target optical head end according to claim 17 , wherein the frame structure further comprises a protocol data unit PDU type field, the PDU type field in the frame structure is for carrying a predetermined value, and the predetermined value indicates that the frame structure is a management protocol frame structure.Join the waitlist — get patent alerts
Track US2024048239A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.