Data transmission method and device, electronic equipment and optical communication system
The target receiving end receives messages from the optical control unit, determines the transmission time and transmission time, and uses preset correspondence to realize efficient data transmission of the optical switching system, solving the problem of low data transmission efficiency during optical switching, and improving the data transmission efficiency and reliability of the optical switching system.
Patent Information
- Application Number
- CN202410076585.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-18
- Publication Date
- 2025-07-18
AI Technical Summary
The data transmission efficiency is low during optical switching, especially in passive optical networks. The OLT needs to identify a certain number of synchronization aligners before determining the data alignment successfully, resulting in low transmission efficiency and long alignment time.
The target receiving end receives messages from the optical control unit, determines the transmission time and transmission time according to the message, and quickly obtains the transmission time of the data transmission link through the preset correspondence relationship, realizes burst data alignment of data at nanosecond level, and avoids frequent time slot application and allocation processes.
It improves the data transmission efficiency and reliability of the optical switching system, realizes high-reliability transmission and nanosecond burst data alignment capabilities, and has high bandwidth utilization, which is suitable for high-speed optical switching networks.
Smart Images

Figure CN120343434A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a data transmission method and apparatus, an electronic device, and an optical communication system. Background Art
[0002] Optical switching is the core of an optical communication system, mainly referring to that data is directly switched from the optical signal at the sending end to the output end without any optical / electrical conversion during the link transmission process. Optical switching has the characteristics of large capacity, low latency, protocol transparency, and low power consumption, and can improve the information throughput rate of optical switching units (such as the sending end, optical control unit, and output end) in an optical communication system.
[0003] In a traditional passive optical network (PON), there is an optical line termination (OLT) as the sending end, an optical control unit, and multiple optical network units (ONUs) as the receiving ends. In the downstream direction, the OLT broadcasts data to all ONUs through the optical control unit in a broadcast manner. In the upstream direction, a time division multiple access (TDMA) mechanism is adopted. Each ONU sends data to the OLT through the optical control unit in a time slot pre-allocated by the OLT. The OLT continuously searches for a special synchronization alignment symbol (sync) from the received data to complete data alignment. The OLT needs to identify a certain number of qualified synchronization alignment symbols before it can determine that the data alignment is successful, resulting in low data transmission efficiency during the optical switching process in the optical communication system.
[0004] How to improve the data transmission efficiency during the optical switching process is a technical problem to be solved urgently. Summary of the Invention
[0005] Embodiments of this application provide a data transmission method and apparatus, an electronic device, and an optical communication system, which solve the problem of low data transmission efficiency during the current optical switching process.
[0006] To achieve the above object, the embodiments of this application adopt the following technical solutions:
[0007] In a first aspect, a data transmission method is provided, which is applied to a target receiving end in an optical communication system. The optical communication system includes at least one receiving end of data, and also includes an optical control unit and multiple sending ends of data. The target receiving end is any receiving end. The method includes: receiving a first message sent by the optical control unit; determining a first time and a first transmission duration according to the first message, where the first time is the time when a first receiving end sends first data to the target receiving end, and the first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end, and the first sending end is one of the multiple sending ends that send data to the target receiving end based on a time-division transmission mechanism; determining a second time according to the first time and the first transmission duration, where the second time is the time when the first data arrives at the target receiving end; and receiving the first data from the data sent by each sending end based on the second time.
[0008] In the data transmission method provided by the embodiments of the present application, after receiving the first message sent by the optical control unit, the target receiving end can determine the first time and the first transmission duration according to the first message, determine the time when the first data arrives at the target receiving end according to the first time and the first transmission duration, and receive the first data from the data sent by each sending end based on the second time. It can determine the second time when the first data arrives according to the first time and the first transmission duration, receive the first data at the second time, and align the first data with the memory address of the target receiving end, which can meet the burst data alignment ability of optical switching at the nanosecond level while achieving high-reliability transmission of the target receiving end, and can improve the data transmission efficiency of the optical switching system.
[0009] In a possible implementation, the first message includes a first time and a first identifier. Determining the first time and the first transmission duration according to the first message includes: obtaining the first time from the first message; and determining the transmission duration corresponding to the first identifier and using it as the first transmission duration, where the first identifier is preset with a corresponding transmission duration.
[0010] In this possible implementation, the target receiving end can determine the first time and the transmission duration corresponding to the first identifier from the first message as the first transmission duration, which can enable the target receiving end to quickly obtain the transmission duration of the data transmission link according to the preset correspondence between the first representation and the transmission duration.
[0011] In a possible implementation, any sending end and any receiving end are connected through a data transmission link. The first identifier represents a first link, and the first link is the data transmission link between the target receiving end and the first sending end. The first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
[0012] In a possible implementation, the first message includes a first moment and a first transmission duration. Determining the first moment and the first transmission duration according to the first message includes: obtaining the first moment and the first transmission duration from the first message.
[0013] In this possible implementation, the target receiving end can obtain the first moment and the first transmission duration from the first message, and then determine the second moment when the first data arrives according to the first moment and the first transmission duration, receive the first data at the second moment, and align the first data with the memory address of the target receiving end. While achieving high-reliability transmission at the target receiving end, it can meet the burst data alignment ability of optical switching at the nanosecond level, and can improve the data transmission efficiency of the optical switching system.
[0014] In a possible implementation, before receiving the first message sent by the optical control unit, it further includes: when receiving the link establishment message sent by the first sending end, recording the receiving time information corresponding to the link establishment message. The receiving time information represents the moment when the link establishment message is received. Each link establishment message includes sending time information, and the sending time information represents the moment when the first sending end sends the link establishment message. When receiving a preset number of link establishment messages, determine the transmission duration according to the receiving time information corresponding to each link establishment message and the included sending time information. Establish a preset corresponding relationship between the first identifier and the transmission duration.
[0015] In this possible implementation, through optical switching initialization link ranging, the transmission durations of different data transmission links are obtained, and a preset corresponding relationship between the identifier of the data transmission link and the transmission duration is generated. It is not affected by the rate of the data transmission link and the scale of the optical switching system, has good scalability, can complete the initialization link ranging during network formation, only needs to cache the preset corresponding relationship in the optical control unit or the receiving end, does not introduce additional hardware costs, and can enable the optical control unit or the target receiving end to quickly obtain the transmission duration of the data transmission link according to the preset corresponding relationship.
[0016] In a possible implementation, the data transmission method provided in this application further includes: when the data link between the first sending end and the target receiving end is turned on, receiving the link establishment message sent by the first sending end.
[0017] In this possible implementation, the optical control unit starts initializing the link ranging. First, it controls the optical switching unit to open the data transmission link between the first sending end and the target receiving end. At this time, only this data transmission link is enabled in the optical switching unit, which can avoid interference from other data transmission links to the data transmission in this data transmission link, resulting in a large error between the measured transmission duration and the actual transmission duration.
[0018] In a possible implementation, when the preset quantity is greater than one, upon receiving the preset quantity of link establishment messages, based on the reception time information and the included transmission time information corresponding to each link establishment message, determine the transmission duration, including: for the reception time information and the transmission time information corresponding to each link establishment message, determine the candidate transmission duration corresponding to each link establishment message. Take the average of the candidate transmission durations corresponding to each link establishment message as the transmission duration.
[0019] In this possible implementation, when receiving the preset quantity of link establishment messages at the receiving end, for the reception time information and the transmission time information corresponding to each link establishment message, determine the candidate transmission duration corresponding to each link establishment message, and take the average of the candidate transmission durations corresponding to each link establishment message as the transmission duration, an accurate transmission duration can be obtained.
[0020] In a possible implementation, the first data includes a preset synchronization alignment symbol. Based on the second moment, receive the first data from the data sent by each sending end, including: at a preset moment before the second moment, identify the synchronization alignment symbol from the data sent by each sending end. When a continuous preset number of synchronization alignment symbols are identified, align the first data with the memory address according to the positions of the synchronization alignment symbols.
[0021] In this possible implementation, by identifying the synchronization alignment symbol from the data sent by each sending end at a preset moment before the second moment, fast data alignment can be achieved, and the frequent processes of time slot application, time slot allocation, data transmission, and data alignment between the sending end and the receiving end under a passive optical network (PON) structure in a long path can be avoided, and the data alignment performance is higher and more reliable.
[0022] In a possible implementation, identifying the synchronization alignment symbol from the data sent by each sending end at a preset moment before the second moment includes: at a preset moment before the second moment, use a sampling window to identify the synchronization alignment symbol from the data sent by each sending end. The sampling window is used to sample the data sent by each sending end with a preset size. The preset size of the sampling window is determined according to the byte length of the synchronization alignment symbol.
[0023] In this possible implementation, the target receiving end establishes a sampling window at a preset moment before the second moment, and identifies the synchronization alignment symbol from the data sent by each sending end based on the sampling window, fast data alignment within the sampling window can be achieved, and the frequent processes of time slot application, time slot allocation, data transmission, and data alignment between the sending end and the receiving end under a PON structure in a long path can be avoided, and the data alignment performance is higher and more reliable.
[0024] In a possible implementation manner, the data transmission method provided by this application further includes: generating a prompt message when a continuous preset number of synchronization alignment symbols are not recognized. The prompt message is used to prompt that there is an abnormality in the data transmission link between the target receiving end and the first sending end.
[0025] In this possible implementation manner, when the target receiving end does not recognize the synchronization alignment symbols of the continuous preset data, it can generate a prompt message to promptly prompt that there is an abnormality in the data transmission link between the target receiving end and the first sending end.
[0026] In a possible implementation manner, the situation where a continuous preset number of synchronization alignment symbols are not recognized includes: the synchronization alignment symbols are not recognized in the sampling results of the sampling window for a preset number of times.
[0027] In a second aspect, a data transmission method is provided, which is applied to an optical control unit in an optical communication system. The optical communication system includes multiple sending ends of data and at least one receiving end of data. The method includes: receiving a data transmission request sent by a first sending end, where the data transmission request is used to request to send first data to a target receiving end, the target receiving end is any receiving end, and the first sending end is one of the multiple sending ends that send data to the target receiving end based on a time-division transmission mechanism. Determining a first message and a second message according to the data transmission request. Sending the first message to the target receiving end, where the first message is used for the target receiving end to determine a first moment and a first transmission duration. The first moment is the moment when the first sending end sends the first data to the target receiving end. The first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end. Sending the second message to the first sending end, where the second message is used to instruct the first sending end to send the first data to the target receiving end at the first moment.
[0028] In this possible implementation manner, after receiving the data transmission request sent by the first sending end, the optical control unit determines the first message according to the data transmission request and sends the first message to the target receiving end, which can enable the target receiving end to determine the first moment and the first transmission duration after receiving the first message, determine a second moment, so as to receive the first data at the second moment, and align the first data with the memory address of the target receiving end. While achieving high-reliability transmission of the target receiving end and meeting the burst data alignment ability of nanosecond level in optical switching, it can improve the data transmission efficiency of the optical switching system. Sending the second message to the first sending end so that the first sending end sends data at the first moment.
[0029] In a possible implementation, the first message includes a first moment and a first identifier. The first identifier characterizes a first link, and the first link is a data transmission link between the target receiving end and the first sending end. Alternatively, the first message includes a first moment and a first transmission duration. The first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
[0030] In a third aspect, a data transmission device is provided, which is applied to the target receiving end in an optical communication system. The optical communication system includes at least one receiving end of data, and further includes an optical control unit and a plurality of sending ends of data. The target receiving end is any receiving end. The device includes: a receiving module and a determining module.
[0031] Among them, the receiving module is configured to receive a first message sent by the optical control unit.
[0032] The determining module is configured to determine a first moment and a first transmission duration according to the first message. The first moment is the moment when the first receiving end sends the first data to the target receiving end. The first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end. The first sending end is one of the plurality of sending ends that send data to the target receiving end based on a time-division transmission mechanism. According to the first moment and the first transmission duration, a second moment is determined. The second moment is the moment when the first data arrives at the target receiving end.
[0033] The receiving module is further configured to receive the first data from the data sent by each sending end based on the second moment.
[0034] In a possible implementation, the first message includes a first moment and a first identifier. The determining module is specifically configured to obtain the first moment from the first message. And determine the transmission duration corresponding to the first identifier and use it as the first transmission duration. Wherein, the first identifier is preset with a corresponding transmission duration.
[0035] In a possible implementation, any sending end and any receiving end are connected through a data transmission link. The first identifier characterizes a first link, and the first link is a data transmission link between the target receiving end and the first sending end. The first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
[0036] In a possible implementation, the first message includes a first moment and a first transmission duration. The determining module is configured to obtain the first moment and the first transmission duration from the first message.
[0037] In a possible implementation, the provided data transmission device further includes: a recording module, configured to record the reception time information corresponding to the link establishment message when receiving the link establishment message sent by the first sending end. The reception time information represents the moment when the link establishment message is received. Each link establishment message includes transmission time information, and the transmission time information represents the moment when the first sending end sends the link establishment message.
[0038] A determination module, further configured to determine the transmission duration according to the reception time information and the included transmission time information corresponding to each link establishment message when receiving a preset number of link establishment messages.
[0039] An establishment module, configured to establish a preset correspondence between the first identifier and the transmission duration.
[0040] In a possible implementation, the reception module is further configured to receive the link establishment message sent by the first sending end when the data link between the first sending end and the target receiving end is enabled.
[0041] In a possible implementation, the preset number is greater than one. The determination module is specifically configured to determine the second transmission duration for the reception time information of any link establishment message and the transmission time information corresponding to the reception time information. Calculate the average value of the second transmission durations corresponding to the reception time information of each link establishment message to determine the transmission duration.
[0042] In a possible implementation, the provided data transmission device further includes: an identification module, configured to identify the synchronization alignment symbol from the data sent by each sending end at a preset moment before the second moment.
[0043] An alignment module, configured to align the first data with the memory address according to the position of the first identifier when a continuous preset number of first identifiers are identified.
[0044] In a possible implementation, the identification module is specifically configured to use a sampling window to identify the first identifier from the data sent by each sending end at a preset moment before the second moment. The sampling window is used to sample the received data stream with a preset size. The preset size of the sampling window is determined according to the byte length of the first identifier.
[0045] In a possible implementation, the provided data transmission device further includes: a generation module, configured to generate a prompt message in the case where a continuous preset number of first identifiers are not identified. The prompt message is used to prompt that the data sending link between the receiving end and the sending end is abnormal.
[0046] In a possible implementation, the case where a continuous preset number of first identifiers are not identified includes: the first identifier is not identified in the sampling results of the preset number of times of the sampling window.
[0047] Fourthly, a data transmission device is provided, which is applied to an optical control unit in an optical communication system. The optical communication system includes multiple sending ends of data and at least one receiving end of data. The device includes: a receiving module, a determining module, and a sending module.
[0048] The receiving module is configured to receive a data sending request sent by a first sending end. The data sending request is used to request to send first data to a target receiving end, where the target receiving end is any receiving end, and the first sending end is one of the multiple sending ends that send data to the target receiving end based on a time-division transmission mechanism.
[0049] The determining module is configured to determine a first message and a second message according to the data sending request.
[0050] The sending module is configured to send the first message to the target receiving end. The first message is used for the target receiving end to determine a first moment and a first transmission duration. The first moment is the moment when the first sending end sends the first data to the target receiving end. The first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end. The second message is sent to the first sending end, and the second message is used to instruct the first sending end to send the first data to the target receiving end at the first moment.
[0051] In a possible implementation, the first message includes a first moment and a first identifier. The first identifier represents a first link, and the first link is a data transmission link between the target receiving end and the first sending end. Alternatively, the first message includes a first moment and a first transmission duration. The first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
[0052] Fifthly, an electronic device is provided. The electronic device includes a memory, a processor, and a computer program stored on the memory. The processor executes the computing program to execute the data transmission methods in the first aspect and any item in the first aspect or the second aspect and any item in the second aspect as described above.
[0053] Sixthly, an optical communication system is provided, which includes at least one electronic device, and each electronic device includes a processor and a memory. The processor of at least one of the electronic devices is configured to execute the quality stored in the memory of the at least one electronic device, so that the electronic device executes the data transmission methods in the first aspect and any item in the first aspect or the second aspect and any item in the second aspect as described above.
[0054] Seventhly, a computer-readable storage medium is provided. Computer program instructions are stored in the computer-readable storage medium. When executed on an electronic device, the electronic device can execute the data transmission methods in the first aspect and any item in the first aspect or the second aspect and any item in the second aspect as described above.
[0055] In an eighth aspect, a computer program product is provided. When the computer program / instructions are executed by a processor, the data transmission method in the first aspect and any one of the first aspect or the second aspect and any one of the second aspect is implemented.
[0056] Among them, for the technical effects brought by any one of the third aspect to the eighth aspect, reference can be made to the technical effects brought by different design manners in the first aspect or the second aspect, which will not be elaborated here. Description of the Drawings
[0057] Figure 1 It is a schematic diagram of a networking form of an optical switching system in the related art;
[0058] Figure 2 It is a specific example diagram of an optical switching system in the related art;
[0059] Figure 3 It is a data transmission schematic diagram of an optical switching system in the related art;
[0060] Figure 4 It is another data transmission schematic diagram of an optical switching system in the related art;
[0061] Figure 5 It is another specific example diagram of an optical switching system in the related art;
[0062] Figure 6 It is a specific example diagram of an optical switching system provided by an embodiment of the present application;
[0063] Figure 7 It is a specific example diagram of a receiving end provided by an embodiment of the present application;
[0064] Figure 8 It is another specific example diagram of a receiving end provided by an embodiment of the present application;
[0065] Figure 9 It is a flowchart schematic diagram of a data transmission method provided by an embodiment of the present application;
[0066] Figure 10 It is another flowchart schematic diagram of a data transmission method provided by an embodiment of the present application;
[0067] Figure 11 It is a specific example diagram of a link establishment information provided by an embodiment of the present application;
[0068] Figure 12 It is a specific example diagram of a determination process of a preset correspondence relationship provided by an embodiment of the present application;
[0069] Figure 13A specific example diagram of the first data provided by the embodiments of the present application;
[0070] Figure 14 Another process schematic diagram of a data transmission method provided by the embodiments of the present application;
[0071] Figure 15 A structural schematic diagram of a data transmission device provided by the embodiments of the present application;
[0072] Figure 16 Another structural schematic diagram of a data transmission device provided by the embodiments of the present application;
[0073] Figure 17 Another structural schematic diagram of a data transmission device provided by the embodiments of the present application;
[0074] Figure 18 Another structural schematic diagram of an electronic device provided by the embodiments of the present application;
[0075] Figure 19 A structural schematic diagram of an electronic device cluster provided by the embodiments of the present application;
[0076] Figure 20 Another structural schematic diagram of an electronic device cluster provided by the embodiments of the present application. Detailed implementation manners
[0077] The following will describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " means that the objects associated before and after are in an "or" relationship. For example, A / B may represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. These three situations, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "a plurality of" means two or more than two. "At least one (item)" or its similar expression below refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can represent: a, b, c, a - b, a - c, b - c, or a - b - c, where a, b, c can be single or multiple. In addition, in order to clearly describe the technical solutions in the embodiments of the present application, in the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and roles. Those skilled in the art can understand that terms such as "first" and "second" do not limit the quantity and execution order, and terms such as "first" and "second" do not necessarily limit to be different. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" aims to present relevant concepts in a specific way for easy understanding.
[0078] In addition, the network architecture and service scenarios described in the embodiments of the present application are for more clearly explaining the technical solutions in the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those of ordinary skill in the art know that with the evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0079] For the convenience of understanding, the relevant technical terms involved in the present application will be explained first.
[0080] Optical switching is the core of an optical switching system, which refers to the process of directly switching the optical signal at the sending end to the receiving end. The optical switching system is deployed in an optical communication system, and the optical communication system may also include a transceiver system. The transceiver system is used to convert the electrical signal received from other electronic devices communicatively connected to the sending end through the transceiver system into an optical signal, send the optical signal to the optical switching system, and the optical switching system directly switches the optical signal at the sending end to the receiving end. Figure 1Schematically shows a networking form of an optical switching system. As Figure 1 shown, the optical switching system may include multiple electronic devices and an optical control unit. The electronic device may be a line processing unit (LPU), a switch (Blade), etc. The electronic devices are communicatively connected to each other. The electronic device may serve as a sending end or a receiving end in the optical switching system, and is used to send data from the sending end to the receiving end in the form of an optical signal under the control of the optical control unit. The optical control unit may be an optical controller, an optical splitter, etc. The optical control unit is used to monitor and control the optical switching system, and can monitor the states of each electronic device in the optical communication system in real time, and control and adjust them to ensure the normal operation of the optical communication system.
[0081] Exemplarily, the electronic devices may be communicatively connected in the form of optical interconnection to complete the information exchange between the electronic devices. Optical interconnection is a technology that uses optical fibers or other optical transmission media to realize the information exchange between each electronic device in the optical switching system. Optical interconnection allows for fast and reliable data transmission between different electronic devices, and can improve the efficiency and flexibility of the optical switching system. The electronic devices exchange data through optical switching. Utilizing the characteristics of large capacity, low latency, protocol transparency, and low power consumption of optical switching, the information throughput rate of the electronic devices can be improved.
[0082] Figure 2 Schematically shows a specific example diagram of an optical switching system. As Figure 2 shown, the optical switching system includes a sending end, an optical switching unit, a receiving end, and an optical control unit. The optical switching unit may be an optical switching matrix, which may be composed of a large-scale optical switch matrix and is used to implement the optical switching function. There are two data links in the optical switching system, including a data transmission link and an optical control link. The sending end is communicatively connected to the optical switching unit through the data transmission link, and the optical switching unit is communicatively connected to the receiving end through the data transmission link. There is a mapped data transmission link between any sending end and any receiving end, and the data transmission links between the sending end and the receiving end are mapped one by one. The optical control unit is communicatively connected to the sending end, the optical switching unit, and the receiving end through the optical control link.
[0083] In the data transmission link, the sending end sends a data frame to the receiving end through the mapped data transmission link between the sending end and the receiving end, directly reaching the corresponding receiving end. The data transmission direction may be the sending end, the optical switching unit, and the receiving end.
[0084] In the optical control link, the optical control unit controls the optical switching unit by sending control cells. The control cells can carry the opening time or closing time of the data transmission link, so as to turn on or off the data transmission link by controlling the voltage of the optical switching unit at the opening time or closing time of the data, and realize that after the optical switching unit turns on the data transmission link, the sending end corresponding to the data transmission link can send data to the receiving end through the data transmission link.
[0085] In the data transmission process of the optical switching system, since there is no buffer for the data transmitted between the sending end and the receiving end, it is necessary to split the data transmission task into short-time slice data transmission tasks in the way of time slicing by the optical control unit, and then execute the short-time slice data transmission tasks to realize data exchange. The data is transmitted in its respective time slice in the time division multiple access (TDMA) mode. The same receiving end will receive the data transmitted by different sending ends at different times. The receiving end needs to receive the data in the corresponding time slice and parse the synchronization alignment symbol from the data to realize data alignment.
[0086] Figure 3 Fig. shows a data transmission schematic diagram of an optical switching system. The system architecture of the optical switching system is 4*4, that is, it consists of 4 sending ends, 4 output ends, 1 optical switching unit and 1 optical control unit. Taking the example of 4 sending ends in the optical switching system transmitting data to 1 receiving end, in one time slice, the output end NIC4 sends data frame 4, the output end NIC3 sends data frame 3, the output end NIC2 sends data frame 2, and the output end NIC1 sends data frame 1. The optical control unit sends data frame 4, data frame 3, data frame 1 and data frame 2 to the receiving end NIC1 through the optical switching unit in this time slice.
[0087] Among them, the data transmitted in one time slice is determined by the scheduling of the optical control unit. The data received by the receiving end may be a valid data to be transmitted, or it may be an invalid data. For example, Figure 4 as shown, the data transmitted by the optical control unit at time slice n, time slice n+2 and time slice n+i is the valid data of the receiving end NIC1, and the data transmitted by the optical control unit at time slice n+1 and other time slices is the invalid data of the receiving end NIC1. The receiving end has the ability to identify valid data and invalid data, for example, by identifying the data header received to identify whether the data is valid data.
[0088] Such as Figure 5As shown, in a traditional optical switching system, there is a unique upstream optical line termination (OLT), an optical switching unit, and multiple downstream optical network units (ONUs). In the traditional optical switching system, in order to achieve upstream burst data reception, a downstream time slot allocation and upstream burst frame synchronization mechanism are adopted. In the downstream direction, the OLT serves as the sender and the ONU serves as the receiver. The OLT uses broadcast technology to send data to the ONU. In order to accurately identify valid data, the OLT allocates time slots for each ONU according to the bandwidth requirement. The burst data can be transmitted through the optical switching unit within the allocated time slots. For example, ONU1 transmits burst data 1 in the first time slot, ONU2 transmits burst data 2 in the second time slot, and ONU3 transmits burst data 3 in the third time slot. In the upstream direction, the ONU serves as the sender and the OLT serves as the receiver. The ONU uses the TDMA mechanism to send data to the OLT. The OLT receives burst data sent by different ONUs in different time slots. The OLT continuously searches for a special synchronization alignment symbol sync from the received burst data to complete data alignment. For example, when the synchronization alignment symbol is continuously searched from the received burst data 1, the burst data 1 is aligned with the memory address of the OLT, and the burst data 1 is written into the memory address of the OLT.
[0089] In this traditional optical switching system, a field programmable gate array (FPGA) transceiver chip based on a multi-application passive optical network (PON) can be deployed at the receiving end. This chip supports the fast alignment of burst data at the receiving end. The core idea is that before the sender sends valid data, a configurable number of synchronization alignment symbols are encapsulated, supporting 100 to 500,000. By increasing the number of synchronization alignment symbols at the sending end, it is ensured that the receiving end determines that the data alignment is successful only after identifying a synchronization alignment symbol that meets the conditions. This method improves the data transmission reliability of the optical switching system. However, in this process, the OLT needs to identify a certain number of synchronization alignment symbols that meet the conditions before it can determine that the data alignment is successful, resulting in a low data transmission efficiency and a long alignment time of the order of microseconds in the optical switching process of the optical switching system.
[0090] Secondly, the data alignment process in the optical switching system is complex. The upstream transmission depends on the downstream bandwidth time slot allocation, resulting in an asymmetric upstream and downstream bandwidth. The upstream bandwidth is much smaller than the downstream bandwidth, and the overall upstream bandwidth utilization rate is low, making it difficult to apply to the optical switching system of a high-speed optical switching network. For example, Figure 5 in the related technology shown, the ratio of the upstream bandwidth to the downstream bandwidth is 1:3, and the upstream bandwidth is much smaller than the downstream bandwidth.
[0091] In this optical switching system, wavelength division multiplexing (WDMA) is adopted, which can realize the bidirectional transmission of data between the OLT and the ONU. However, there is only a single downstream direction in the optical switching data link, that is, there is only an optical switching data transmission link from the OLT to multiple ONUs, while the link from the ONU to the OLT is a non-switching data transmission link. At the same time, the optical switching network of this optical switching system is an m*n network, with m OLTs and n ONUs. When each OLT transmits data, the time slots for transmitting data to the ONU through the optical switching unit are completely independent. Different OLTs are unaware of the data transmission time slots of other OLTs, making it difficult to achieve the downstream time slot allocation of optical switching. The distances between the OLT and each ONU are different, resulting in different arrival times of data at the OLT, and it is difficult to implement the upstream burst frame synchronization mechanism.
[0092] Based on this, the present application provides a data transmission method, which is applied to the target receiving end in an optical communication system. The optical communication system includes at least one receiving end of data, and also includes an optical control unit and multiple sending ends of data. The target receiving end is any receiving end. Its basic principle is that the target receiving end receives the first message sent by the optical control unit. The target receiving end determines the first moment and the first transmission duration according to the first message. The first moment is the moment when the first receiving end sends the first data to the target receiving end, and the first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end. The first sending end is one of the multiple sending ends that send data to the target receiving end based on the time-division transmission mechanism. The target receiving end determines the second moment according to the first moment and the first transmission duration, and the second moment is the moment when the first data arrives at the target receiving end. Based on the second moment, the target receiving end receives the first data from the data sent by each sending end.
[0093] In the data transmission method provided by the embodiments of the present application, after receiving the first message sent by the optical control unit, the target receiving end can determine the first moment and the first transmission duration according to the first message, determine the moment when the first data arrives at the target receiving end according to the first moment and the first transmission duration, receive the first data from the data sent by each sending end based on the second moment, can determine the second moment when the first data arrives according to the first moment and the first transmission duration, receive the first data at the second moment, and align the first data with the memory address of the target receiving end, which can improve the data transmission efficiency of the optical switching system while achieving high-reliability transmission of the target receiving end and meeting the nanosecond-level burst data alignment ability of optical switching.
[0094] The data transmission method provided by the embodiments of the present application can be applied to an optical switching system. As Figure 6As shown, the optical switching system 600 can be deployed with at least one transmitter 601, an optical control unit 602, an optical switching unit 603, and at least one receiver 604. Among them, the transmitter 601 can be a network computer (whether it is a personal computer or a server), a network printer, a network camera, a smart phone, etc. The optical control unit 602 can be an optical controller, an optical splitter, etc. The optical switching unit 603 can be an optical switching matrix. The receiver 604 can be a network computer (whether it is a personal computer or a server), a network printer, a network camera, a smart phone, etc. The transmitter 601 or the receiver 604 can be deployed with an application specific integrated circuit (ASIC) or an FPGA integrated with burst mode clock and data recovery (BCDR), which can ensure the correct sampling of burst data.
[0095] The transmitter 601 can be used to send a data transmission request to the optical control unit 602. The data transmission request is used to request the optical control unit to schedule the first moment of the transmitter 601. The first moment is the moment when the transmitter sends the first data to the receiver. The transmitter 601 is also used to send data to the receiver 604 at the first moment.
[0096] The optical control unit 602 can be used to determine a first message and a second message according to the data transmission request after receiving the data transmission request sent by the transmitter 601. Among them, the first message is used for the receiver 604 to determine the first moment and the first transmission duration. The first transmission duration is the time taken for the first data to be transmitted from the transmitter 601 to the receiver. The first message is sent to the receiver 604 so that the receiver 604 can determine the first moment and the first transmission duration. The second message is sent to the transmitter 601 so that the transmitter 601 can send data to the receiver 604 at the first moment. The optical control unit 602 is also used to send the first moment and the identifier of the data transmission link through which the transmitter 601 sends data to the receiver 604 to the optical switching unit 603.
[0097] The optical switching unit 603 can be used to open the data transmission link at the first moment after receiving the first moment sent by the optical control unit 602 and the identifier of the data transmission link through which the transmitter 601 sends data to the receiver 604.
[0098] The receiver 604 can be used to determine the first moment and the first transmission duration according to the first message after receiving the first message sent by the optical control unit 602. According to the first moment and the first transmission duration, determine the second moment. Based on the second moment, receive the first data from the data sent by each transmitter 601.
[0099] In some embodiments, the data transmission method provided by the embodiments of the present application may be executed by the receiving end 604. As Figure 7 shown, the receiving end 604 includes: a processor 701, a memory 702, a transceiver 703, and a counter 704.
[0100] Among them, the processor 701 may be a central processing unit (CPU), and the processor 701 may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. chips, or a combination of the above types of chips. The processor may also be a data alignment logic circuit, a controller, etc.
[0101] The memory 702 may be a volatile memory, such as a random-access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD); or a combination of the above types of memories, for storing application programs, configuration files, data information, or other content that can implement the method of the present application.
[0102] The transceiver 703 may be a high-speed transceiver, used to receive data and send the data to the memory 702.
[0103] The counter 704 may be a local synchronous time counter, used to synchronize with the time of the sending end, to avoid the situation that the receiving end cannot align the data sent by the sending end with the memory address of the receiving end at the second moment due to time asynchronization.
[0104] The processor 701 performs the following functions by running or executing software programs and / or modules stored in the memory 702, and by calling data stored in the memory 702:
[0105] The processor 701 receives the first message sent by the optical control unit. Determine the first moment and the first transmission duration according to the first message. Determine the second moment according to the first moment and the first transmission duration. Receive the first data from the data sent by each sending end based on the second moment.
[0106] For example, as Figure 8 shown, the receiving end 604 may include a high-speed transceiver, data alignment logic circuitry, a local synchronization time counter, and a controller. After the receiving end receives the data sent by the sending end through the high-speed transceiver, the unaligned data is sent to the data alignment logic circuitry through the high-speed transceiver. The controller determines the second moment according to the preset corresponding relationship, and the data alignment logic circuitry aligns the data sent by the sending end with the memory address of the receiving end according to the current moment in the local synchronization time counter and the second moment.
[0107] For ease of understanding, the data transmission method provided in this application is introduced exemplarily below in conjunction with the accompanying drawings. This method is applicable to the target receiving end in the above optical switching system, and the target receiving end is any receiving end in the optical switching system. As Figure 9 shown, this method may include the following steps:
[0108] S901, the target receiving end receives the first message sent by the optical control unit.
[0109] Among them, the first message is obtained by the optical control unit scheduling the data sending request after receiving the data sending request sent by the sending end.
[0110] Exemplarily, as Figure 10 shown, when the first sending end in the optical communication system needs to send data to the target receiving end, it sends a data sending request to the optical control unit. The data sending request may include the identifier of the target receiving end. After receiving the data sending request, the optical control unit schedules the first moment of the first sending end. For example, it may perform queuing scheduling according to the order of the received data sending requests, or it may perform scheduling according to the priority of the sending end pre-stored in the optical control unit. The first moment is the moment when the first sending end sends data to the target receiving end. The optical control unit sends the first moment to the first sending end so that the first sending end sends data to the target receiving end at the first moment.
[0111] In a possible implementation, after the optical control unit schedules the first moment of the first sending end, the optical control unit determines the data transmission link for the first sending end to send data to the target receiving end according to the first sending end and the target receiving end. The optical control unit packs the first moment and the first identifier corresponding to the data transmission link of the sending end into the first message and sends it to the target receiving end.
[0112] In another possible implementation, after the optical control unit schedules the first moment of the first sending end, the optical control unit determines the data transmission link for the first sending end to send data to the target receiving end based on the first sending end and the target receiving end. The optical control unit looks up the first transmission duration corresponding to the first identifier from the preset corresponding relationship according to the first identifier of the data transmission link, and packs the first moment and the first transmission duration into a first message and sends it to the target receiving end.
[0113] Among them, any sending end and any receiving end are connected through a data transmission link. The first identifier represents the first link, and the first link is the data transmission link between the target receiving end and the first sending end. The first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
[0114] In yet another possible implementation, after the optical control unit schedules the first moment of the first sending end, the optical control unit directly packs the first moment and the identifier of the first sending end into a first message and sends it to the target receiving end.
[0115] In one possible implementation, the preset corresponding relationship between the first identifier and the first transmission duration is determined in advance according to the following process: when the data link between the first sending end and the target receiving end is enabled, that is, when the data link is enabled, the target receiving end receives the link establishment message sent by the first sending end. When the link establishment message is received, the receiving time information corresponding to the link establishment message is recorded, and the receiving time information represents the moment when the target receiving end receives the link establishment message. Each link establishment message includes sending time information, and the sending time information represents the moment when the first sending end sends the link establishment message. When the target receiving end receives a preset number of link establishment messages, it determines the transmission duration according to the receiving time information and the included sending time information corresponding to each link establishment message, and generates the preset corresponding relationship between the first identifier and the transmission duration.
[0116] For example, Figure 11 Schematically shows a specific example diagram of the link establishment message. As Figure 11As shown, the link establishment message has a standard time slice length. The link establishment message includes Psync, Type, TimeStamp, CRC-8, and Idle. Among them, Psync represents the alignment symbol, that is, the header alignment delimiter field. The size of Psync can be 4 bytes, and the value is F628F628 in hexadecimal. Type represents the data type of the link establishment message. The size of Type can be 1 byte, and Type can be set to 0x0, indicating that this link establishment message is a link establishment frame. TimeStamp represents the transmission time information of the target sending end. The size of TimeStamp can be 4 bytes. CRC-8 represents the CRC-8 check code of the link establishment message. The size of CRC-8 can be 1 byte. Idle is used to fill the link establishment message with invalid data to a standard time slice length. The length of Idle is determined according to the lengths of Psync, Type, TimeStamp, and CRC-8.
[0117] As shown in Table 1, the preset correspondence can be a correspondence list generated from the correspondence between the identifier of the data transmission link between the sending end and the receiving end and the transmission duration. Among them, identifier 0 corresponds to transmission duration 0, identifier 1 corresponds to transmission duration 1, identifier 2 corresponds to transmission duration 2, and identifier 3 corresponds to transmission duration 3. It should be noted that this correspondence list is only an example of the manifestation form of the preset correspondence, and the embodiments of the present application do not limit the manifestation form of the preset correspondence.
[0118] Table 1
[0119] Identifier Transmission Duration 0 Transmission Duration 0 1 Transmission Duration 1 2 Transmission Duration 2 3 Transmission Duration 3
[0120] It should be noted that the present application does not limit the preset quantity. When the target receiving end receives a preset number of link establishment messages, if the preset number is greater than one, for the receiving time information and sending time information corresponding to each link establishment message, the candidate transmission duration corresponding to each link establishment message can be determined. Calculate the preset number of candidate transmission durations of the preset number of link establishment messages and find the average value to obtain the first transmission duration. If the preset number is one, the target receiving end can determine that the transmission duration of this link establishment message is the first transmission duration according to the receiving time information of this link establishment message and the sending time information corresponding to this receiving time information.
[0121] Exemplarily, Figure 12Schematically shows a specific example diagram of the determination process of the preset correspondence. The optical control unit starts initializing the link ranging. First, it controls the optical switching unit to open the data transmission link between the first sending end and the target receiving end. At this time, only this data transmission link in the optical switching unit is enabled, which can avoid interference with the data transmission in this data transmission link caused by other data transmission links, resulting in a large error between the measured transmission duration and the actual transmission duration. After the data transmission link starts, the first sending end continuously sends link establishment messages, and the link establishment message header carries a synchronization alignment symbol. The target receiving end continuously searches for the link establishment message and determines whether the synchronization alignment symbol Psync is searched. If the synchronization alignment symbol Psync is searched, at this time, the alignment of the link establishment message and the memory address of the target receiving end is completed. The target receiving end uses the CRC-8 in the link establishment message to verify the aligned link establishment message. After the verification of the link establishment message is successful, that is, the link establishment message is valid information, the synchronization alignment symbol count value is incremented by one. If the verification of the link establishment message fails, that is, the link establishment message is invalid information, the alignment symbol count value is set to zero. When the target receiving end continuously receives N (N can be greater than or equal to 64) link establishment messages and the alignment symbol count value is greater than N at this time, the target receiving end determines that the link establishment with the sending end is successful. The target receiving end can extract the sending time information from each link establishment message, and under the local accurate clock synchronization time counter, determine the receiving time information corresponding to the sending time information, and increment the receiving time information count value by one. The target receiving end uses the receiving time information and the sending time information to determine the second transmission duration. When the receiving time information count value is greater than L, the average value of L second transmission durations is obtained as the transmission duration of this data transmission link. Generate the preset correspondence between the first identifier and the transmission duration. The optical control unit determines whether all data transmission links are traversed. When all data transmission links are not traversed, return to the step of controlling to open the data transmission link between the sending end and the target receiving end to traverse the next data transmission link and generate the preset correspondence between the identifier of the next data transmission link and the transmission duration. After the optical control unit traverses all data transmission links, the initialization of the link ranging ends.
[0122] In a possible implementation manner, the preset correspondence can be stored in the target receiving end.
[0123] In another possible implementation manner, the preset correspondence can be sent from the target receiving end to the optical control unit and stored by the optical control unit.
[0124] The data transmission method provided by the embodiments of the present application initializes link ranging through optical switching, obtains the transmission durations of different data transmission links, and generates a preset correspondence between the identifiers of the data transmission links and the transmission durations. It is not affected by the rate of the data transmission links and the scale of the optical switching system, has good scalability, can complete the initialization of link ranging during network formation, only needs to store the preset correspondence in the optical control unit or the receiving end cache, does not introduce additional hardware costs, and enables the optical control unit or the target receiving end to quickly obtain the transmission duration of the data transmission link according to the preset correspondence. At the same time, during the process of initializing link ranging, it is not necessary to rely on other measuring instruments to quickly measure the distances of each data transmission link and evaluate the communication quality of each link in the optical switching.
[0125] S902. The target receiving end determines a first moment and a first transmission duration according to the first message.
[0126] Among them, the first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end. The first sending end is one of multiple sending ends that send data to the target receiving end based on a time-division transmission mechanism.
[0127] As described above, in a possible implementation manner, the first message includes a first moment and a first identifier. The optical control unit packs the first moment and the first identifier corresponding to the data transmission link of the sending end into the first message and sends it to the target receiving end. The target receiving end obtains the first moment from the first message, and according to the preset correspondence stored in the target receiving end, determines the transmission duration corresponding to the first identifier and uses it as the first transmission duration.
[0128] Exemplarily, as Figure 10 shown, after the first moment at the receiving end, the target receiving end looks up the transmission duration corresponding to the first identifier from the preset correspondence based on the first identifier.
[0129] In another possible implementation manner, the first message includes a first moment and a first transmission duration. The optical control unit packs the first moment and the transmission duration into the first message and sends it to the target receiving end. The target receiving end obtains the first moment and the first transmission duration from the first message.
[0130] In still another possible implementation manner, the first message includes a first moment and the identifier of the first sending end. After the optical control unit packs the first moment and the identifier of the first sending end into the first message and sends it to the target receiving end, the target receiving end determines the data transmission link corresponding to the first sending end according to the identifier of the first sending end, determines the first identifier of this data transmission link, and determines the transmission duration corresponding to the first identifier according to the preset correspondence stored in the target receiving end and uses it as the first transmission duration.
[0131] S903. The target receiving end determines a second time based on the first time and the first transmission duration.
[0132] Wherein, the second time is the time when the first data arrives at the target receiving end.
[0133] Exemplarily, as Figure 10 shown, the target receiving end adds the first time and the first transmission duration to determine the second time.
[0134] S904. The target receiving end receives the first data from the data sent by each sending end based on the second time.
[0135] Wherein, the first data includes an identifier.
[0136] Exemplarily, Figure 13 schematically shows a specific example diagram of the first data. As Figure 13 shown, the first data is of a standard time slice length. The first data includes Guard Time, Psync, Head, Payload Data, and CRC-32. Among them, Guard Time represents the protection time for optical switch switching and receiving data signal recovery, which is used to avoid collisions or interferences between the first data and other data during transmission, resulting in abnormalities in the first data. Psync is the same as the Psync in the link establishment message, and this application will not elaborate on it. Head includes other fields such as Type, the port number of the sending end, the port number of the receiving end, and verification in the link establishment message. The size of Head can be 4 bytes. Payload Data represents the payload data in the first data, which is the effective data that the first sending end needs to transmit to the target receiving end. The size of Payload Data can be N bytes. CRC-32 represents the CRC-32 check code of the payload data, and the size of CRC-32 can be 4 bytes.
[0137] Specifically, the target receiving end identifies the first identifier from the data sent by each sending end at a preset time before the second time. The first identifier is the synchronization alignment symbol preset corresponding to the first data. When a continuous preset number of first identifiers are identified, the first data is aligned with the memory address according to the position of the first identifier to receive the first data.
[0138] If a continuous preset number of first identifiers are not identified, a prompt message is generated. The prompt message is used to prompt that there is an abnormality in the data sending link between the receiving end and the sending end. For example, when the target receiving end samples the received data stream using a sampling window and the first identifier is not identified in the sampling results of the preset number of times, a prompt message is generated.
[0139] Among them, the sampling window is used to sample the received data stream with a preset size. The preset size of the sampling window is determined according to the byte length of the first identifier.
[0140] It should be noted that the preset moment can be 1 / 32 of a time slice. The size of the sampling window can be 1 / 16 of a time slice. This application does not limit the preset moment and the size of the sampling window.
[0141] Exemplarily, as Figure 10 shown, the target receiving end establishes a sampling window at a preset moment before the data arrival moment, and uses the sampling window to identify the first identifier from the data sent by each sending end. When the target receiving end identifies a preset number of consecutive first identifiers from the data sent by each sending end, based on the position of the alignment symbol in the data, the target receiving end receives the first data and quickly aligns the data, and the target receiving end starts the next data alignment. If the target receiving end does not identify the synchronization alignment symbol, the number of recognition failures is counted. When the number of consecutive failures is greater than or equal to K times, a prompt message is generated to prompt that the current link connection fails and report an exception. If the number of consecutive times is less than K times, the target receiving end starts the next data alignment.
[0142] In the data transmission method provided by the embodiments of this application, the target receiving end establishes a sampling window at a preset moment before the second moment when the data arrives, and identifies the synchronization alignment symbol from the data sent by each sending end based on the sampling window, which can achieve fast data alignment within the sampling window, and can avoid the frequent time slot application, time slot allocation, data sending, and data alignment processes between the sending end and the receiving end under the PON structure in a long path. The data alignment performance is higher and more reliable.
[0143] In the data transmission method provided by the embodiments of this application, after the target receiving end receives the first message sent by the optical control unit, it can determine the first moment and the first transmission duration according to the first message, determine the moment when the first data arrives at the target receiving end according to the first moment and the first transmission duration, receive the first data from the data sent by each sending end based on the second moment, and can determine the second moment when the first data arrives according to the first moment and the first transmission duration, receive the first data at the second moment, and align the first data with the memory address of the target receiving end. While achieving high-reliability transmission of the target receiving end, it meets the nanosecond-level burst data alignment ability of optical switching, and can improve the data transmission efficiency of the optical switching system.
[0144] In the data transmission method provided by the embodiments of this application, there is a one-to-one mapping between the target receiving end and the first sending end, and the bandwidth between the first sending end and the target receiving end is symmetric, and the bandwidth utilization rate is relatively high. At the same time, the target receiving end can be used as a sending end to send data to the first sending end by using the data transmission method provided by the embodiments of this application, and can perform optical switching between the sending end and the receiving end by using the bidirectional optical switching data link.
[0145] The data transmission method provided by the embodiment of the present application is applicable to the optical control unit in the above optical switching system. As Figure 14 shown, the method may include the following steps:
[0146] S1401. The optical control unit receives a data transmission request sent by a first sending end.
[0147] Among them, the data transmission request is used to request to send first data to a target receiving end. The target receiving end is any receiving end, and the first sending end is one of multiple sending ends that send data to the target receiving end based on a time-division transmission mechanism.
[0148] S1402. The optical control unit determines a first message and a second message according to the data transmission request.
[0149] S1403. The optical control unit sends the first message to the target receiving end.
[0150] Among them, the first message is used for the target receiving end to determine a first moment and a first transmission duration. The first moment is the moment when the first sending end sends the first data to the target receiving end. The first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end.
[0151] In a possible implementation manner, the first message includes the first moment and a first identifier.
[0152] In another possible implementation manner, the first message includes the first moment and the first transmission duration.
[0153] S1404. The optical control unit sends the second message to the first sending end.
[0154] Among them, the second message is used to instruct the first sending end to send the first data to the target receiving end at the first moment.
[0155] For the data transmission method provided by the embodiment of the present application, after the optical control unit receives the data transmission request sent by the first sending end, it determines the first message according to the data transmission request and sends the first message to the target receiving end, so that the target receiving end can determine the first moment and the first transmission duration after receiving the first message, determine the second moment, so as to receive the first data at the second moment, and align the first data with the memory address of the target receiving end, which can improve the data transmission efficiency of the optical switching system while achieving high-reliability transmission of the target receiving end and meeting the nanosecond-level burst data alignment ability of the optical switching. The second message is sent to the first sending end so that the first sending end can send data at the first moment.
[0156] Embodiments of the present application can divide functional modules of an electronic device according to the above method examples. For example, each functional module can be divided corresponding to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiments of the present application is illustrative, only a logical function division, and there can be other division methods in actual implementation.
[0157] In the case of dividing each functional module corresponding to each function, Figure 15 Fig. shows a possible schematic composition of the data transmission device involved in the above and embodiments. The data transmission device 1500 is deployed in an electronic device. As Figure 15 shown, the data transmission device 1500 may include: a receiving module 151, a determining module 152.
[0158] Among them, the receiving module 151 is used to support the data transmission device 1500 to execute Figure 9 S901 or S904 in the data transmission method shown.
[0159] The determining module 152 is used to support the data transmission device 1500 to execute Figure 9 S902 or S903 in the data transmission method shown.
[0160] Further, as Figure 16 shown, the data transmission device 1500 provided by the embodiments of the present application may further include: a recording module 153, an establishing module 154, an identifying module 155, an aligning module 156, and a generating module 157.
[0161] Among them, the recording module 153 is used to support the data transmission device 1500 to execute the step of recording the reception time information corresponding to the link establishment message when receiving the link establishment message sent by the first sending end in the data transmission method.
[0162] The establishing module 154 is used to support the data transmission device 1500 to execute the step of establishing a preset corresponding relationship between the first identifier and the transmission duration.
[0163] The identifying module 155 is used to support the data transmission device 1500 to execute the step of identifying a synchronization alignment symbol from the data sent by each sending end at a preset moment before the second moment, where the synchronization alignment symbol is the synchronization alignment symbol preset corresponding to the first data.
[0164] The aligning module 156 is used to support the data transmission device 1500 to execute the step of aligning the first data with the memory address according to the position of the synchronization alignment symbol when a continuous preset number of synchronization alignment symbols are identified.
[0165] A generating module 157, configured to support the data transmission device 1500 to execute the step of generating a prompt message when a continuous preset number of synchronization alignment characters are not recognized.
[0166] It should be noted that all relevant contents of the steps involved in the above method embodiments can be cited in the function descriptions of the corresponding functional modules, and will not be elaborated here.
[0167] In the case of dividing each function according to the corresponding functions into respective functional modules, Figure 17 shows a possible schematic composition diagram of the data transmission device involved in the above and the embodiments. The data transmission device 1700 is deployed in an electronic device. As Figure 17 shown, the data transmission device 1700 may include: a receiving module 171, a determining module 172, and a sending module 173.
[0168] Among them, the receiving module 171 is configured to support the data transmission device 1700 to execute Figure 14 S1401 in the data transmission method shown.
[0169] The determining module 172 is configured to support the data transmission device 1700 to execute Figure 14 S1402 in the data transmission method shown.
[0170] The sending module 173 is configured to support the data transmission device 1700 to execute Figure 14 S1403 or S1404 in the data transmission method shown.
[0171] Among them, the receiving module 151, the determining module 152, the recording module 153, the establishing module 154, the identifying module 155, the aligning module 156, the generating module 157, the receiving module 171, the determining module 172, and the sending module 173 can all be implemented by software or can be implemented by hardware. Exemplarily, next, taking the receiving module 151 as an example, the implementation manner of the receiving module 151 will be introduced. Similarly, the implementation manners of the determining module 152, the recording module 153, the establishing module 154, the identifying module 155, the aligning module 156, the generating module 157, the receiving module 171, the determining module 172, and the sending module 173 can refer to the implementation manner of the receiving module 151.
[0172] As an example of a software functional unit, the receiving module 151 may include code running on a computing instance. The computing instance may include at least one of a physical host (electronic device), a virtual machine, and a container. Further, the computing instance may be one or more. For example, the receiving module 151 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers for running the code may be distributed in the same region or in different regions. Further, the multiple hosts / virtual machines / containers for running the code may be distributed in the same availability zone (AZ) or in different AZs, and each AZ includes one data center or multiple geographically proximate data centers. Usually, one region may include multiple AZs.
[0173] Similarly, the multiple hosts / virtual machines / containers for running the code may be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, one VPC is set within one region. For cross-region communication between two VPCs within the same region and between VPCs in different regions, a communication gateway needs to be set in each VPC, and the interconnection between VPCs is realized through the communication gateway.
[0174] As an example of a hardware functional unit, the receiving module 151 may include at least one electronic device. Alternatively, the receiving module 151 may also be a device implemented by an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be implemented by a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0175] The multiple electronic devices included in the receiving module 151 may be distributed in the same region or in different regions. The multiple electronic devices included in the receiving module 151 may be distributed in the same availability zone (AZ) or in different AZs. Similarly, the multiple electronic devices included in the receiving module 151 may be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Among them, the multiple electronic devices may be any combination of electronic devices such as servers, application-specific integrated circuits (ASICs), programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), and generic array logic (GALs).
[0176] It should be noted that in other embodiments, the receiving module 151 may be used to perform any step in the data transmission method, the determining module 152 may be used to perform any step in the data transmission method, the recording module 153 may be used to perform any step in the data transmission method, the establishing module 154 may be used to perform any step in the data transmission method, the identifying module 155 may be used to perform any step in the data transmission method, the aligning module 156 may be used to perform any step in the data transmission method, the generating module 157 may be used to perform any step in the data transmission method, the receiving module 171 may be used to perform any step in the data transmission method, the determining module 172 may be used to perform any step in the data transmission method, and the sending module 173 may be used to perform any step in the data transmission method. The steps to be implemented by the receiving module 151, the determining module 152, the recording module 153, the establishing module 154, the identifying module 155, the aligning module 156, the generating module 157, the receiving module 171, the determining module 172, and the sending module 173 can be specified as needed. The full functions of the data transmission device are realized by the receiving module 151, the determining module 152, the recording module 153, the establishing module 154, the identifying module 155, the aligning module 156, the generating module 157, the receiving module 171, the determining module 172, and the sending module 173 respectively implementing different steps in the data transmission method.
[0177] The data transmission device 1500 and the data transmission device 1700 provided in the embodiments of the present application are used to execute the above data transmission method, so the same effects as the above data transmission method can be achieved.
[0178] The present application also provides an electronic device 1900. As Figure 18 shown, the electronic device 1800 includes: a bus 1801, a processor 1802, a memory 1803, and a communication interface 1804. The processor 1802, the memory 1803, and the communication interface 1804 communicate with each other through the bus 1801. The electronic device 100 may be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in the electronic device 100.
[0179] The bus 1801 can be a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, Figure 18 only one line is used to represent it in Figure 18 , but it does not mean that there is only one bus or one type of bus. The bus 1802 can include a path for transmitting information between various components of the electronic device 1800 (for example, the memory 1803, the processor 1802, and the communication interface 1804).
[0180] The processor 1802 can include any one or more of processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0181] The memory 1803 can include a volatile memory, such as a random access memory (RAM). The processor 1802 can also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0182] The executable program code is stored in the memory 1803, and the processor 1802 executes the executable program code to respectively implement the functions of the foregoing receiving module 151, determining module 152, recording module 153, establishing module 154, identifying module 155, aligning module 156, generating module 157, receiving module 171, determining module 172, and sending module 173, so as to implement the data transmission method. That is to say, the instructions for executing the data transmission method are stored on the memory 1803.
[0183] Alternatively, the executable code is stored in the memory 1803, and the processor 1802 executes the executable code to respectively implement the functions of the foregoing data transmission device, so as to implement the data transmission method. That is to say, the instructions for executing the data transmission method are stored on the memory 1803.
[0184] The communication interface 1804 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the electronic device 1800 and other devices or communication networks. An embodiment of the present application also provides an electronic device cluster. The electronic device cluster includes at least one electronic device. The electronic device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the electronic device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0185] As Figure 19 shown, the electronic device cluster includes at least one electronic device 1800. Instructions for executing a data transmission method can be stored in the same manner in the memories 1803 of one or more of the electronic devices 1800 in the electronic device cluster.
[0186] In some possible implementation manners, partial instructions for executing a data transmission method can also be stored separately in the memories 1803 of one or more of the electronic devices 1800 in the electronic device cluster. In other words, a combination of one or more electronic devices 1800 can jointly execute instructions for executing a data transmission method.
[0187] It should be noted that different memories 1803 in different electronic devices 1800 in the electronic device cluster can store different instructions, respectively for executing partial functions of a data transmission device. That is, the instructions stored in the memories 1803 of different electronic devices 1800 can implement the functions of one or more of the receiving module 151, the determining module 152, the recording module 153, the establishing module 154, the identifying module 155, the aligning module 156, the generating module 157, the receiving module 171, the determining module 172, and the sending module 173.
[0188] In some possible implementation manners, one or more electronic devices in the electronic device cluster can be connected through a network. Among them, the network can be a wide area network or a local area network, etc. Figure 20 shows a possible implementation manner. As Figure 20 shown, two electronic devices 1800A and 1800B are connected through a network. Specifically, they are connected to the network through the communication interfaces in each electronic device. In this type of possible implementation manner, instructions for executing the function of the receiving module 151 are stored in the memory 1803 of the electronic device 1800A. At the same time, instructions for executing the functions of the determining module 152, the recording module 153, the establishing module 154, the identifying module 155, the aligning module 156, the generating module 157, the receiving module 171, the determining module 172, and the sending module 173 are stored in the memory 1803 of the electronic device 1800B.
[0189] Figure 20 The connection mode between the shown electronic device clusters can be considered. The data transmission method provided in this application needs to determine the first moment and the first transmission duration according to the first message, determine the second moment according to the first moment and the first transmission duration. When receiving the link establishment message sent by the first sending end in the data transmission method, record the reception time information corresponding to the link establishment message, establish a preset corresponding relationship between the first identifier and the transmission duration, at a preset moment before the second moment, identify the synchronization alignment symbol from the data sent by each sending end, and the synchronization alignment symbol is the synchronization alignment symbol preset corresponding to the first data. When continuously identifying a preset number of synchronization alignment symbols, align the first data with the memory address according to the positions of the synchronization alignment symbols. In the case of not identifying a continuous preset number of synchronization alignment symbols, generate a prompt message. Therefore, it is considered to hand over the functions implemented by the determination module 152, the recording module 153, the establishment module 154, the identification module 155, the alignment module 156, the generation module 157, the reception module 171, the determination module 172 and the sending module 173 to the electronic device 1800B for execution.
[0190] It should be understood that Figure 20 the functions of the electronic device 1800A shown in can also be completed by multiple electronic devices 1800. Similarly, the functions of the electronic device 1800B can also be completed by multiple electronic devices 1800.
[0191] This application embodiment also provides another electronic device cluster. The connection relationship between the electronic devices in this electronic device cluster can be similarly referred to Figure 18 and Figure 19 the connection mode of the described electronic device cluster. The difference is that the same instructions for executing the data transmission method can be stored in the memory 1803 of one or more electronic devices in this electronic device cluster.
[0192] In some possible implementation manners, the memory 1803 of one or more electronic devices 1800 in this electronic device cluster can also store partial instructions for executing the data transmission method respectively. In other words, a combination of one or more electronic devices 1800 can jointly execute the instructions for executing the data transmission method.
[0193] It should be noted that the memory 1803 in different electronic devices 1800 in the electronic device cluster can store different instructions for executing partial functions of the data transmission system. That is, the instructions stored in the memory 1803 of different electronic devices 1800 can implement the functions of the data transmission device.
Claims
1. A data transmission method, characterized in that, A target receiving end applied to an optical communication system; the optical communication system includes at least one receiving end of data, and further includes an optical control unit and a plurality of sending ends of data; The target receiving end is any one of the receiving ends; the method includes: Receiving a first message sent by the optical control unit; Determining a first time and a first transmission duration according to the first message; the first time is the time when a first sending end sends first data to the target receiving end; the first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end; the first sending end is one of the plurality of sending ends that send data to the target receiving end based on a time-division transmission mechanism; Determining a second time according to the first time and the first transmission duration; the second time is the time when the first data arrives at the target receiving end; Receiving the first data from the data sent by each of the sending ends based on the second time.
2. The method according to claim 1, wherein The first message includes the first time and a first identifier; The determining the first time and the first transmission duration according to the first message includes: Obtaining the first time from the first message; and, Determining the transmission duration corresponding to the first identifier and using it as the first transmission duration; wherein, the first identifier has a corresponding preset transmission duration.
3. The method according to claim 2, wherein Any one of the sending ends is connected to any one of the receiving ends through a data transmission link; the first identifier represents a first link, and the first link is the data transmission link between the target receiving end and the first sending end; The first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
4. The method according to claim 1, characterized in that, The first message includes the first time and the first transmission duration; The determining the first time and the first transmission duration according to the first message includes: Obtaining the first time and the first transmission duration from the first message.
5. The method according to any one of claims 1-4, characterized in that, Before receiving the first message sent by the optical control unit, it further includes: When receiving a link establishment message sent by the first sending end, recording the receiving time information corresponding to the link establishment message; the receiving time information represents the time when the link establishment message is received; each link establishment message includes sending time information, and the sending time information represents the time when the first sending end sends the link establishment message; When receiving a preset number of the link establishment messages, determining the transmission duration according to the receiving time information and the included sending time information corresponding to each of the link establishment messages; Establishing a preset corresponding relationship between the first identifier and the transmission duration.
6. The method according to claim 5, wherein The method further includes: Receiving a link establishment message sent by the first sending end when the data link between the first sending end and the target receiving end is turned on.
7. The method according to claim 5, wherein When the preset number is greater than 1; the determining the transmission duration according to the receiving time information and the included sending time information corresponding to each of the link establishment messages when receiving a preset number of the link establishment messages includes: Determining a candidate transmission duration corresponding to each of the link establishment messages for the receiving time information and the sending time information corresponding to each of the link establishment messages; The average value of the candidate transmission durations corresponding to each of the link establishment messages is used as the transmission duration.
8. The method according to claim 1, characterized in that, The first data includes a preset synchronization alignment symbol; receiving the first data from the data sent by each of the sending ends based on the second moment includes: Identifying the synchronization alignment symbol from the data sent by each of the sending ends at a preset moment before the second moment; When a preset number of consecutive synchronization alignment symbols are identified, aligning the first data with a memory address according to the positions of the synchronization alignment symbols.
9. The method according to claim 8, wherein Identifying the synchronization alignment symbol from the data sent by each of the sending ends at a preset moment before the second moment includes: At a preset moment before the second moment, using a sampling window to identify the synchronization alignment symbol from the data sent by each of the sending ends; the sampling window is used to sample the data sent by each of the sending ends with a preset size; the preset size of the sampling window is determined according to the byte length of the synchronization alignment symbol.
10. The method according to claim 8 or 9, characterized in that, The method further includes: Generating a prompt message in the case where the preset number of consecutive synchronization alignment symbols is not identified; the prompt message is used to prompt that there is an abnormality in the data transmission link between the target receiving end and the first sending end.
11. The method according to any one of claims 8-10, characterized in that The case where the preset number of consecutive synchronization alignment symbols is not identified includes: the synchronization alignment symbol is not identified in the sampling results of the preset number of times of the sampling window.
12. A data transmission method, characterized in that, Applied to an optical control unit in an optical communication system; the optical communication system includes a plurality of sending ends of data and at least one receiving end of data; the method includes: Receiving a data sending request sent by a first sending end, the data sending request being used to request to send first data to a target receiving end, the target receiving end being any one of the receiving ends, and the first sending end being one of the plurality of sending ends that send data to the target receiving end based on a time-division transmission mechanism; Determining a first message and a second message according to the data sending request; Sending the first message to the target receiving end, the first message being used for the target receiving end to determine a first moment and a first transmission duration; the first moment is the moment when the first sending end sends the first data to the target receiving end; the first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end; Sending the second message to the first sending end, the second message being used to instruct the first sending end to send the first data to the target receiving end at the first moment.
13. The method according to claim 12, wherein The first message includes a first moment and a first identifier; the first identifier represents a first link, and the first link is the data transmission link between the target receiving end and the first sending end; Or, the first message includes a first moment and a first transmission duration; The first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
14. A data transmission device, characterized in that, Applied to a target receiving end in an optical communication system; the optical communication system includes at least one receiving end of data, an optical control unit, and a plurality of sending ends of data; The target receiving end is any one of the receiving ends; the device includes: a receiving module, configured to receive a first message sent by the optical control unit; a determining module, configured to determine a first time and a first transmission duration according to the first message; the first time is the time when a first receiving end sends first data to the target receiving end; the first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end; the first sending end is one of multiple sending ends that send data to the target receiving end based on a time-division transmission mechanism; a second time is determined according to the first time and the first transmission duration; the second time is the time when the first data arrives at the target receiving end; the receiving module is further configured to receive the first data from the data sent by each of the sending ends based on the second time.
15. The device according to claim 14, characterized in that, The first message includes the first time and a first identifier; The determining module is specifically configured to obtain the first time from the first message; and determine the transmission duration corresponding to the first identifier as the first transmission duration; wherein, the first identifier is preset with a corresponding transmission duration.
16. The device according to claim 15, wherein Any one of the sending ends is connected to any one of the receiving ends through a data transmission link; the first identifier represents a first link, and the first link is the data transmission link between the target receiving end and the first sending end; The first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
17. The device according to claim 14, characterized in that, The first message includes the first time and the first transmission duration; The determining module is configured to obtain the first time and the first transmission duration from the first message.
18. The device according to any one of claims 14 - 17, characterized in that The device further includes: a recording module, configured to record the reception time information corresponding to the link establishment message when receiving the link establishment message sent by the first sending end; the reception time information represents the time when the link establishment message is received; each link establishment message includes sending time information, and the sending time information represents the time when the first sending end sends the link establishment message; the determining module is further configured to determine the transmission duration according to the reception time information and the included sending time information corresponding to each of the preset number of link establishment messages when receiving the preset number of link establishment messages; a establishing module, configured to establish a preset correspondence between the first identifier and the transmission duration.
19. The device according to claim 18, wherein the receiving module is further configured to receive the link establishment message sent by the first sending end when the data link between the first sending end and the target receiving end is turned on.
20. The device according to claim 18, characterized in that, The preset number is greater than one; The determining module is specifically configured to determine the candidate transmission duration corresponding to each link establishment message for the reception time information and the sending time information corresponding to each link establishment message; and use the average value of the candidate transmission durations corresponding to each link establishment message as the transmission duration.
21. The device according to claim 14, characterized in that, The first data includes a preset synchronization alignment symbol; the device further includes: An identification module, configured to identify the synchronization alignment symbol from the data sent by each of the sending ends at a preset moment before the second moment; An alignment module, configured to align the first data with a memory address according to the positions of the synchronization alignment symbols when a preset number of consecutive synchronization alignment symbols are identified; 22. The apparatus according to claim 21, wherein the identification module is specifically configured to identify the synchronization alignment symbol from the data sent by each of the sending ends at a preset moment before the second moment by using a sampling window; the sampling window is used to sample the data sent by each of the sending ends with a preset size; the preset size of the sampling window is determined according to the byte length of the synchronization alignment symbol.
23. The device according to claim 21 or 22, characterized in that, The apparatus further comprises: a generation module, configured to generate a prompt message when the preset number of consecutive synchronization alignment symbols are not identified; the prompt message is used to prompt that there is an abnormality in the data transmission link between the target receiving end and the first sending end.
24. The device according to any one of claims 21-23, characterized in that, The situation that the preset number of consecutive synchronization alignment symbols are not identified includes that the synchronization alignment symbol is not identified in the sampling results of the preset number of times of the sampling window.
25. A data transmission device, characterized in that, Applied to an optical control unit in an optical communication system; the optical communication system includes a plurality of sending ends of data and at least one receiving end of data; the apparatus comprises: a receiving module, configured to receive a data sending request sent by a first sending end, where the data sending request is used to request to send first data to a target receiving end, the target receiving end is any one of the receiving ends, and the first sending end is one of a plurality of sending ends that send data to the target receiving end based on a time-division transmission mechanism; a determination module, configured to determine a first message and a second message according to the data sending request; a sending module, configured to send the first message to the target receiving end, where the first message is used for the target receiving end to determine a first moment and a first transmission duration; the first moment is the moment when the first sending end sends the first data to the target receiving end; the first transmission duration is the time taken for the first data to be transmitted from the first sending end to the target receiving end; send the second message to the first sending end, where the second message is used to instruct the first sending end to send the first data to the target receiving end at the first moment.
26. The device according to claim 25, characterized in that, The first message includes a first moment and a first identifier; the first identifier represents a first link, and the first link is a data transmission link between the target receiving end and the first sending end; or, the first message includes a first moment and a first transmission duration; the first transmission duration corresponding to the first identifier is the time taken for the first data to be transmitted from the first sending end to the target receiving end through the first link.
27. An electronic device, comprising a memory, a processor, and a computer program stored on the memory, characterized in that, The processor executes the computer program to implement the steps of the data transmission method according to any one of claims 1-11 or claim 12 or claim 13.
28. An optical communication system, characterized in that, Including at least one electronic device, and each electronic device includes a processor and a memory; The processor of the at least one electronic device is configured to execute instructions stored in the memory of the at least one electronic device, so that the electronic device performs the steps of the data transmission method according to any one of claims 1-11, or claim 12, or claim 13.
29. A computer-readable storage medium having computer programs / instructions stored thereon, characterized in that, When the computer program / instructions are executed by a processor, the steps of the data transmission method according to any one of claims 1-11, or claim 12, or claim 13 are implemented.
30. A computer program product, comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by a processor, the steps of the data transmission method according to any one of claims 1-11, or claim 12, or claim 13 are implemented.