Data transmission method, ethernet device, and optical passive switching system
By using passive components and optical splitters in Ethernet equipment, combined with TDMA mechanism and broadcast transmission, the complexity and high cost of active switches in Ethernet are solved, and efficient passive optical switching and data transmission are achieved.
Patent Information
- Application Number
- PCT/CN2024/079101
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-28
- Filing Date
- 2024-02-28
- Publication Date
- 2024-09-06
AI Technical Summary
As the scale of the network expands, the deployment complexity of active switches in Ethernet increases, and the difficulty of management increases. Moreover, existing technologies require complex equipment and high costs when implementing passive optical switching.
By using passive components and optical splitters in Ethernet equipment to achieve data exchange and transmission, the TDMA mechanism is used to avoid uplink message conflicts, and downlink messages are transmitted through broadcast, reducing reliance on external chips and CPU processing.
It realizes passive optical transmission and splitting, reduces equipment complexity and cost, improves the feasibility and efficiency of network management, and reduces the occurrence of uplink message conflicts.
Smart Images

Figure 00000000_0000
Abstract
Description
Data transmission method, Ethernet device and optical passive switching system
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on February 28, 2023, with application number 202310176217.7 and application name “A Data Transmission Method, Ethernet Device and Optical Passive Switching System”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of communication technology, and in particular to a data transmission method, Ethernet equipment, and an optical passive switching system. Background Art
[0004] The IEEE 802.3 protocol standard defines Ethernet's Media Access Control (MAC) and Physical (PHY) layers. The MAC layer uses Carrier Sense Multiple Access with Collision Detection (CSMA / CD). All stations using this mechanism share the transmission medium and need to monitor it. If they detect another station sending a message, they will randomly delay sending a message.
[0005] In related technologies, devices are interconnected using switches, enabling full-duplex data exchange between each site and providing exclusive access to transmission bandwidth. In other words, switches are required between the central office and the terminals to support data exchange and transmission.
[0006] However, as the scale of networks grows, the deployment of active switches in Ethernet networks becomes increasingly complex, and the management of switches becomes increasingly difficult.
[0007] Summary of the Invention
[0008] The embodiments of the present application provide a data transmission method, an Ethernet device, and an optical passive switching system, which can realize data exchange and transmission through passive components.
[0009] In a first aspect, an embodiment of the present application provides a core Ethernet device, including a first Ethernet media access control chip and a first optical module connected to the first Ethernet MAC chip:
[0010] The first optical module is used to receive an uplink message sent by the optical splitter; wherein the uplink message is sent by the access Ethernet device to the optical splitter during the corresponding sending period, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter;
[0011] The first Ethernet MAC chip is used to transmit the downlink message to the first optical module;
[0012] The first optical module is further configured to send the downlink message to the optical splitter, so that the optical splitter sends the downlink message to each connected access Ethernet device.
[0013] The above solution does not require the use of a passive optical network (PON) chip. Instead, it uses Ethernet frame-formatted messages to achieve passive optical transmission between Ethernet network devices using the MAC chips of network devices in traditional network architectures, and passive optical splitting is achieved through an optical splitter. Furthermore, when transmitting downlink messages via broadcast, there is no need to convert Ethernet frame-formatted messages into PON frame formats. Instead, the uplink transmission periods of access devices are controlled to avoid overlap. In other words, uplink messages are transmitted by different access Ethernet devices corresponding to different transmission periods. Each access Ethernet device will only send uplink messages during the corresponding transmission period. Active switches are not required to exchange data between terminal devices and central office devices. Passive optical splitting is also performed through an optical splitter, avoiding the occurrence of uplink message conflicts when performing passive optical splitting using an optical splitter. This embodiment achieves passive optical splitting without the need for other external chips or a CPU to process messages (such message processing may include message integration, message splitting, or format modification, such as changing the message frame format from Ethernet frame format to PON format).
[0014] In some optional implementations, the uplink message and the downlink message are messages in a standard Ethernet frame format.
[0015] In some optional implementation manners, the first Ethernet MAC chip is further used to:
[0016] Determine the historical transmission traffic of each connected Ethernet device;
[0017] Based on the historical transmission traffic of all connected Ethernet devices, determine the sending start time and sending duration of each connected Ethernet device;
[0018] The first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and the sending duration is transmitted to the first optical module.
[0019] In the above scheme, the historical transmission traffic of each access Ethernet device reflects the sending needs of the access Ethernet device, such as how long data transmission is required and how long a data transmission takes. Based on the historical transmission traffic of all access Ethernet devices, the sending start time and sending duration (that is, the corresponding sending time period) of each access Ethernet device can be reasonably determined; and then the first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and sending duration is transmitted to the first optical module, so that the corresponding access Ethernet device obtains its corresponding sending time period.
[0020] In some optional implementation manners, the first Ethernet MAC chip is further used to:
[0021] At preset intervals, a second downlink message carrying the address of the access Ethernet device and the first sending time is transmitted to the first optical module, so that the corresponding access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter after receiving the second downlink message; wherein, the first sending time is the sending time of the second downlink message, the first receiving time is the time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is the time when the corresponding access Ethernet device sends the target uplink message;
[0022] Determining a target adjustment time of a corresponding access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0023] The third downlink message carrying the address of the access Ethernet device and the corresponding target adjustment time is transmitted to the first optical module, so that the corresponding access Ethernet device adjusts the clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0024] In some optional implementation manners, the first Ethernet MAC chip is specifically used to:
[0025] Subtract the first sending time from the second receiving time to determine the reply interval;
[0026] Subtract the first receiving time from the second sending time to determine the processing time of the access Ethernet device;
[0027] Subtract the processing time from the reply interval to get the uplink and downlink round-trip time. Half of the round-trip time is the single transmission duration.
[0028] Add the first sending time to the single transmission duration to get the theoretical receiving time;
[0029] Comparing the first receiving time with the theoretical receiving time to obtain a time error; and
[0030] The sum of the current time, the time error, and the duration of a single transmission is determined as the target adjustment time.
[0031] In each of the above exemplary schemes, the core Ethernet device and each access Ethernet device interact with each other through the above-mentioned messages carrying time information at preset intervals to achieve time correction for each access Ethernet device, so that the access Ethernet devices have a unified time standard, further reducing the occurrence of uplink message conflicts.
[0032] In a second aspect, an embodiment of the present application provides an Ethernet access device, including a second Ethernet MAC chip and a second optical module connected to the second Ethernet MAC chip:
[0033] The second Ethernet MAC chip is used to place the uplink message into a message queue; obtain the uplink message from the message queue in sequence during the sending period corresponding to the access Ethernet device, and transmit it to the second optical module;
[0034] The second optical module is used to send the uplink message to the optical splitter, so that the optical splitter sends the uplink message to the core Ethernet device;
[0035] The second optical module is further used to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein the downlink message is sent by the optical splitter to each connected access Ethernet device after receiving the downlink message sent by the core Ethernet device;
[0036] There is no overlap between the sending time periods corresponding to the access Ethernet switching devices connected to the optical splitter.
[0037] The above scheme implements passive optical transmission between Ethernet network devices, and passive optical splitting is achieved through an optical splitter. In addition, downlink messages are transmitted by broadcasting, and uplink messages are transmitted by different access Ethernet devices corresponding to different sending time periods. Each access Ethernet device will only send uplink messages during the corresponding sending time period. There is no need to deploy an active switch to exchange data between the terminal device and the central office device. Passive optical splitting is also performed by the optical splitter, avoiding the occurrence of uplink message conflicts when performing passive optical splitting through the optical splitter. This embodiment can achieve passive optical splitting without the need for other external chips. In the exemplary embodiment of the present application, the transmitted messages are all messages in the standard Ethernet frame format. The Ethernet message format is not modified. Instead, the time is synchronized with high precision using the Ethernet time synchronization protocol. The core Ethernet device then synchronizes the non-overlapping sending time periods to each access Ethernet device, and each access Ethernet device sends uplink messages based on the sending time period. That is, by modifying the CSMA / CD mechanism used by the MAC layer of each access Ethernet device to send uplink messages to a TDMA mechanism, time-sharing transmission is achieved for each access Ethernet device, thereby achieving optical transmission.
[0038] In some optional implementations, the uplink message and the downlink message are messages in a standard Ethernet frame format.
[0039] In some optional implementation manners, the second Ethernet MAC chip is specifically used to:
[0040] If the current moment is in the sending period of the access Ethernet device, then the uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue.
[0041] The above solution caches the uplink messages in the message queue. If the current time is in the corresponding sending period, the uplink messages will be taken out from the message queue in the order of storage and sent to the splitter, reducing the occurrence of uplink message conflicts and sending the uplink messages in an orderly manner.
[0042] In some optional implementations, before sequentially acquiring uplink messages from the message queue, the second Ethernet MAC chip is further configured to:
[0043] Turning on the light source of the second optical module and the switch indicating transmission in the second Ethernet MAC chip;
[0044] After the second optical module sends the uplink message to the optical splitter, the second Ethernet MAC chip is further configured to:
[0045] If there is no uplink message in the message queue, or the sending period of the access Ethernet device ends, the switch representing sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0046] The above scheme turns on the light source of the second optical module when the access Ethernet device wants to send data, and then turns on the switch representing transmission in the second Ethernet MAC chip; and after the access Ethernet device determines that no data needs to be sent (there are no uplink messages that need to be sent in the message queue, or the corresponding sending period has ended), turns off the switch representing transmission in the second Ethernet MAC chip, and then turns off the light source of the second optical module. This ensures that the switch representing transmission in the second Ethernet MAC chip remains turned on and the light source of the second optical module remains turned on during the entire sending process, thereby realizing the sending of uplink messages. Except for the sending process, the switch representing transmission in the second Ethernet MAC chip remains turned off and the light source of the second optical module remains turned off, thereby reducing the sending of no data messages on the access Ethernet device side and reducing the optical interference caused to other access Ethernet devices.
[0047] In some optional implementations, the switch representing transmission is a circuit switch provided on a transmission circuit; wherein the transmission circuit includes a transmission circuit of a MAC layer connected to an Ethernet device and a transmission circuit of a physical layer.
[0048] In a third aspect, an embodiment of the present application provides an optical passive switching system, comprising: a core Ethernet device, at least one optical splitter, and an access Ethernet device;
[0049] The access Ethernet device is configured to send the uplink message to the corresponding optical splitter within a corresponding sending period; wherein the sending period is allocated by the core Ethernet device to each access Ethernet device connected to the optical splitter, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter;
[0050] The optical splitter is used to send the uplink message to the core Ethernet device;
[0051] The core Ethernet device is further configured to send downlink messages to the corresponding optical splitter;
[0052] The optical splitter is further configured to send the downlink message to each connected access Ethernet device respectively;
[0053] The access Ethernet device is further configured to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message.
[0054] In some optional implementations, if there are multiple optical splitters, different optical splitters are connected to different optical modules in the core Ethernet device.
[0055] In some optional implementations, the core Ethernet device is further configured to:
[0056] Determine the historical transmission traffic of each connected Ethernet device;
[0057] Based on the historical transmission traffic of all connected Ethernet devices, determine the sending start time and sending duration of each connected Ethernet device;
[0058] A first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and the sending duration is sent to the optical splitter.
[0059] In some optional implementations, the core Ethernet device is further configured to send a second downlink message carrying the address of the access Ethernet device and the first sending time to the optical splitter at a preset time interval; wherein the first sending time is the sending time of the second downlink message;
[0060] The access Ethernet device is further configured to, after receiving the second downlink message, send a target uplink message carrying a first receiving time and a second sending time to the optical splitter; wherein the first receiving time is the time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is the time when the corresponding access Ethernet device sends the target uplink message;
[0061] The core Ethernet device is further configured to determine a target adjustment time of the corresponding access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0062] The core Ethernet device is further configured to send a third downlink message carrying an address of the access Ethernet device and a corresponding target adjustment time to the optical splitter;
[0063] The access Ethernet device is further configured to adjust the clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0064] In some optional implementation manners, the access Ethernet device is specifically used to:
[0065] If the current moment is in the sending period of the access Ethernet device, uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue, and the uplink messages obtained from the message queue are sent to the optical splitter.
[0066] In some optional implementations, the Ethernet access device is further configured to:
[0067] Before sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, turning on the light source of the second optical module of the access Ethernet device and the switch representing sending in the second Ethernet MAC chip of the access Ethernet device;
[0068] After the uplink message in the message queue is sent to the optical splitter within the sending period corresponding to the access Ethernet device, if there is no uplink message in the message queue, or the sending period of the access Ethernet device ends, the switch representing the sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0069] In a fourth aspect, an embodiment of the present application provides a first data transmission method, applied to a controller of a core Ethernet device, the method comprising:
[0070] Receive an uplink message sent by the optical splitter; wherein the uplink message is sent by the access Ethernet device to the optical splitter during the corresponding sending period, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter; and
[0071] Sending a downlink message to the optical splitter so that the optical splitter sends the downlink message to each connected access Ethernet device respectively.
[0072] Some optional implementations further include:
[0073] Determine the historical transmission traffic of each connected Ethernet device;
[0074] Based on the historical transmission traffic of all connected Ethernet devices, determine the sending start time and sending duration of each connected Ethernet device;
[0075] A first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and the sending duration is sent to the optical splitter.
[0076] Some optional implementations further include:
[0077] At preset intervals, a second downlink message carrying the address of the access Ethernet device and the first sending time is sent to the optical splitter, so that the corresponding access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter after receiving the second downlink message; wherein the first sending time is the sending time of the second downlink message, the first receiving time is the time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is the time when the corresponding access Ethernet device sends the target uplink message;
[0078] Determining a target adjustment time of a corresponding access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0079] The third downlink message carrying the address of the access Ethernet device and the corresponding target adjustment time is sent to the optical splitter, so that the corresponding access Ethernet device adjusts the clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0080] In some optional implementations, the uplink message and the downlink message are messages in a standard Ethernet frame format.
[0081] In some optional implementations, determining the target adjustment time of the corresponding access Ethernet device based on the second receiving time, the first sending time, the first receiving time, and the second sending time specifically includes:
[0082] Subtract the first sending time from the second receiving time to determine the reply interval;
[0083] Subtract the first receiving time from the second sending time to determine the processing time of the access Ethernet device;
[0084] Subtract the processing time from the reply interval to get the uplink and downlink round-trip time. Half of the round-trip time is the single transmission duration.
[0085] Add the first sending time to the single transmission duration to get the theoretical receiving time;
[0086] Comparing the first receiving time with the theoretical receiving time to obtain a time error; and
[0087] The sum of the current time, the time error, and the duration of a single transmission is determined as the target adjustment time.
[0088] In a fifth aspect, an embodiment of the present application provides a data transmission method, applied to a controller connected to an Ethernet device, the method comprising:
[0089] Putting the uplink message into the message queue in the access Ethernet device, and sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, so that the optical splitter sends the uplink message to the core Ethernet device; and
[0090] Determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein the downlink message is sent by the optical splitter to each connected access Ethernet device after receiving the downlink message sent by the core Ethernet device;
[0091] There is no overlap between the sending time periods corresponding to the access Ethernet switching devices connected to the optical splitter.
[0092] In some optional implementations, sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device includes:
[0093] If the current moment is in the sending period of the access Ethernet device, uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue, and the uplink messages obtained from the message queue are sent to the optical splitter.
[0094] In some optional implementations, before sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, the method further includes:
[0095] Turning on a light source of a second optical module of the access Ethernet device and a switch for transmitting in a second Ethernet MAC chip of the access Ethernet device;
[0096] After sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, the method further includes:
[0097] If there is no uplink message in the message queue, or the sending period of the access Ethernet device ends, the switch representing sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0098] In a sixth aspect, an embodiment of the present application provides a first data transmission device, which is applied to a controller of a core Ethernet device, and includes:
[0099] An uplink message receiving module, configured to receive an uplink message sent by an optical splitter; wherein the uplink message is sent by an access Ethernet device to the optical splitter during a corresponding sending period, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter;
[0100] The downlink message sending module is used to send the downlink message to the optical splitter, so that the optical splitter sends the downlink message to each connected access Ethernet device respectively.
[0101] In a seventh aspect, an embodiment of the present application provides a data transmission device, which is applied to a controller connected to an Ethernet device, and the device includes:
[0102] An uplink message sending module, configured to place an uplink message into a message queue in the access Ethernet device, and send the uplink message in the message queue to the optical splitter within a sending period corresponding to the access Ethernet device, so that the optical splitter sends the uplink message to the core Ethernet device;
[0103] A downlink message receiving module is used to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein, the downlink message is sent by the optical splitter to each connected access Ethernet device after receiving the downlink message sent by the core Ethernet device;
[0104] There is no overlap between the sending time periods corresponding to the access Ethernet switching devices connected to the optical splitter.
[0105] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program executable by a processor. When the program runs on the processor, the processor executes the data transmission method described in any one of the fourth or fifth aspects above.
[0106] In a ninth aspect, an embodiment of the present application provides a core Ethernet device, comprising a first Ethernet media access control (MAC) chip and a first optical module connected to the first Ethernet MAC chip:
[0107] The first optical module is configured to receive an uplink message sent by an optical splitter; wherein the uplink message is sent by a first access Ethernet device to the optical splitter in a first sending period, and the first sending period does not overlap with one or more second sending periods corresponding to one or more second access Ethernet devices connected to the optical splitter;
[0108] The first Ethernet MAC chip is used to transmit the downlink message to the first optical module; and
[0109] The first optical module is further configured to send the downlink message to the optical splitter, so that the optical splitter sends the downlink message to the first access Ethernet device and the one or more second access Ethernet devices respectively.
[0110] In some optional implementations, the uplink message and the downlink message are messages in a standard Ethernet frame format.
[0111] In some optional implementation manners, the first Ethernet MAC chip is further used to:
[0112] Determining historical transmission traffic of the first access Ethernet device;
[0113] Determining a sending start time and a sending duration of the first access Ethernet device based on a historical transmission flow of the first access Ethernet device; and
[0114] The first downlink message carrying the address of the first access Ethernet device, the sending start time, and the sending duration is transmitted to the first optical module.
[0115] In some optional implementation manners, the first Ethernet MAC chip is further used to:
[0116] At preset intervals, a second downlink message carrying the address of the first access Ethernet device and the first sending time is transmitted to the first optical module, so that after receiving the second downlink message, the first access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter; wherein, the first sending time is the sending time of the second downlink message, the first receiving time is the time when the first access Ethernet device receives the second downlink message, and the second sending time is the time when the first access Ethernet device sends the target uplink message;
[0117] Determining a target adjustment time for the first access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message; and
[0118] A third downlink message carrying the address of the first access Ethernet device and the target adjustment time is transmitted to the first optical module, so that after receiving the third downlink message, the first access Ethernet device adjusts the time of the first access Ethernet device from the current time to the target adjustment time.
[0119] In some optional implementations, the first Ethernet MAC chip is configured to determine the target adjustment time of the first access Ethernet device based on the second receiving time, the first sending time, the first receiving time, and the second sending time, including:
[0120] subtracting the first sending time from the second receiving time to determine a reply interval;
[0121] Determine a processing duration of the first access Ethernet device by subtracting the first receiving time from the second sending time;
[0122] Subtract the processing time from the response interval to obtain the uplink and downlink round-trip time, where half of the round-trip time is the single transmission duration;
[0123] Add the first sending time to the single transmission duration to obtain a theoretical receiving time;
[0124] Comparing the first receiving time with the theoretical receiving time to obtain a time error; and
[0125] The sum of the current time, the time error, and the single transmission duration is determined as the target adjustment time.
[0126] In a tenth aspect, an embodiment of the present application provides an Ethernet access device, comprising a second Ethernet media access control unit MAC and a second optical module connected to the second Ethernet MAC chip:
[0127] The second Ethernet MAC chip is used to place the uplink message into a message queue; sequentially obtain the uplink message from the message queue during the first sending period corresponding to the access Ethernet device, and transmit the uplink message to the second optical module;
[0128] The second optical module is configured to send the uplink message to the optical splitter, so that the optical splitter sends the uplink message to the core Ethernet device; and
[0129] The second optical module is further used to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein, the downlink message is sent by the optical splitter to the access Ethernet device and one or more second access Ethernet devices connected to the optical splitter after receiving the downlink message sent by the core Ethernet device;
[0130] There is no overlap between the first sending period and one or more second sending periods corresponding to the one or more second access Ethernet switching devices.
[0131] In some optional implementations, the uplink message and the downlink message are messages in a standard Ethernet frame format.
[0132] In some optional implementation manners, the second Ethernet MAC chip is specifically used to:
[0133] If the current moment is in the first sending period of the access Ethernet device, then the uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue.
[0134] In some optional implementations, before sequentially acquiring uplink messages from the message queue, the second Ethernet MAC chip is further configured to:
[0135] Turning on the light source of the second optical module and the switch indicating transmission in the second Ethernet MAC chip;
[0136] After the second optical module sends the uplink message to the optical splitter, the second Ethernet MAC chip is further configured to:
[0137] If there is no uplink message in the message queue, or the first sending period of the access Ethernet device ends, the switch representing sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0138] In some optional implementations, the switch representing transmission is a switch provided on a transmission circuit; wherein the transmission circuit includes a transmission circuit of a MAC layer and a transmission circuit of a physical layer of the Ethernet access device.
[0139] In an eleventh aspect, an embodiment of the present application provides an optical passive switching system, comprising: a core Ethernet device, an optical splitter, and a plurality of access Ethernet devices, wherein the plurality of access Ethernet devices include a first access Ethernet device connected to the optical splitter, and one or more second access Ethernet devices connected to the optical splitter;
[0140] The first access Ethernet device is configured to send the uplink message to the optical splitter within a corresponding first sending period; wherein the first sending period is allocated by the core Ethernet device to the first access Ethernet device connected to the optical splitter, and the first sending period does not overlap with one or more second sending periods corresponding to the one or more second access Ethernet devices;
[0141] The optical splitter is used to send the uplink message to the core Ethernet device;
[0142] The core Ethernet device is further configured to send downlink messages to the corresponding optical splitter;
[0143] The optical splitter is further configured to send the downlink message to the first access Ethernet device and the one or more second access Ethernet devices respectively; and
[0144] The first access Ethernet device is further configured to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message.
[0145] In some optional implementations, the system further includes one or more other optical splitters, and different optical splitters are connected to different optical modules in the core Ethernet device.
[0146] In a twelfth aspect, an embodiment of the present application provides a data transmission method, applied to a core Ethernet device, the method comprising:
[0147] Receive an uplink message sent by the optical splitter; wherein the uplink message is sent by the first access Ethernet device to the optical splitter in a first sending time period, and there is no overlap between the first sending time period and one or more second sending time periods corresponding to one or more second access Ethernet devices connected to the optical splitter; and
[0148] Send a downlink message to the optical splitter, so that the optical splitter sends the downlink message to the first access Ethernet device and the one or more second access Ethernet devices respectively.
[0149] In some optional implementations, the method further comprises:
[0150] Determining historical transmission traffic of the first access Ethernet device;
[0151] Determining a sending start time and a sending duration of the first access Ethernet device based on a historical transmission volume of the first access Ethernet device; and
[0152] Sending a first downlink message carrying the address of the first access Ethernet device, the sending start time, and the sending duration to the optical splitter.
[0153] In some optional implementations, the method further comprises:
[0154] At preset intervals, a second downlink message carrying the address of the first access Ethernet device and the first sending time is sent to the optical splitter, so that after receiving the second downlink message, the first access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter; wherein the first sending time is the sending time of the second downlink message, the first receiving time is the time when the first access Ethernet device receives the second downlink message, and the second sending time is the time when the first access Ethernet device sends the target uplink message;
[0155] Determining a target adjustment time for the first access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message; and
[0156] Sending a third downlink message carrying the address of the first access Ethernet device and the target adjustment time to the optical splitter, so that the first access Ethernet device adjusts the time of the first access Ethernet device from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0157] In some optional implementations, determining the target adjustment time of the first access Ethernet device based on the second receiving time, the first sending time, the first receiving time, and the second sending time specifically includes:
[0158] subtracting the first sending time from the second receiving time to determine a reply interval;
[0159] Determine a processing duration of the first access Ethernet device by subtracting the first receiving time from the second sending time;
[0160] Subtract the processing time from the response interval to obtain the uplink and downlink round-trip time, where half of the round-trip time is the single transmission duration;
[0161] Add the first sending time to the single transmission duration to obtain a theoretical receiving time;
[0162] Comparing the first receiving time with the theoretical receiving time to obtain a time error; and
[0163] The sum of the current time, the time error, and the single transmission duration is determined as the target adjustment time.
[0164] In a thirteenth aspect, an embodiment of the present application provides a data transmission method, which is applied to access an Ethernet device, and the method includes:
[0165] Putting the uplink message into a message queue in the access Ethernet device, and sending the uplink message in the message queue to the optical splitter within a first sending period corresponding to the access Ethernet device, so that the optical splitter sends the uplink message to the core Ethernet device; and
[0166] Determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein the downlink message is sent by the optical splitter to the access Ethernet device and one or more second access Ethernet devices connected to the optical splitter after receiving the downlink message sent by the core Ethernet device;
[0167] There is no overlap between the first sending period and one or more second sending periods corresponding to the one or more second access Ethernet switching devices.
[0168] In some optional implementations, before sending the uplink message in the message queue to the optical splitter within the first sending period corresponding to the access Ethernet device, the method includes:
[0169] If the current moment is in the first sending period of the access Ethernet device, uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue, and the uplink messages obtained from the message queue are sent to the optical splitter.
[0170] In some optional implementations, before sending the uplink message in the message queue to the optical splitter within the first sending period corresponding to the access Ethernet device, the method further includes:
[0171] Turning on a light source of a second optical module of the access Ethernet device and a switch for transmitting in a second Ethernet MAC chip of the access Ethernet device;
[0172] After sending the uplink message in the message queue to the optical splitter within the first sending period corresponding to the access Ethernet device, the method further includes:
[0173] If there is no uplink message in the message queue, or the first sending period of the access Ethernet device ends, the switch representing sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0174] Other features and advantages of the present application will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present application. The purposes and other advantages of the present application can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0175] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the description of the embodiments or the conventional technology will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, they can also obtain drawings of other embodiments based on these drawings without paying any creative work.
[0176] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0177] FIG1 is a first system architecture diagram provided by conventional technology;
[0178] FIG2 is a second system architecture diagram provided by conventional technology;
[0179] FIG3 is a third system architecture diagram provided by conventional technology;
[0180] FIG4 is a system architecture diagram provided in an embodiment of the present application;
[0181] FIG5 is a system architecture diagram provided in an embodiment of the present application;
[0182] FIG6 is a system architecture diagram provided in an embodiment of the present application;
[0183] FIG7 is a structural diagram of a core Ethernet device provided in an embodiment of the present application;
[0184] FIG8 is a structural diagram of an Ethernet access device provided in an embodiment of the present application;
[0185] FIG9 is a schematic diagram of an uplink message sending process provided by conventional technology;
[0186] FIG9 a is a schematic diagram showing the structure of a standard Ethernet frame provided by conventional technology;
[0187] FIG10 is a schematic diagram of an uplink message sending process provided in an embodiment of the present application;
[0188] FIG11 is an interactive flow chart of a data transmission method provided in an embodiment of the present application;
[0189] FIG12 is an interactive flow chart of a data transmission method provided in an embodiment of the present application;
[0190] FIG13 is a schematic structural diagram of a data transmission device provided in an embodiment of the present application;
[0191] FIG14 is a schematic structural diagram of a data transmission device provided in an embodiment of the present application;
[0192] FIG15 is a schematic diagram of the structure of the controller of the core Ethernet device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0193] To make the purpose, technical solutions, and advantages of the embodiments of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are part of the embodiments of the technical solutions of this application, but not all of them. Based on the embodiments described in this application document, all other embodiments obtained by ordinary technicians in this field without making creative efforts shall fall within the scope of protection of the technical solutions of this application.
[0194] The terms "first" and "second" in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of its variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in this application can mean at least two, for example, two, three or more, and the embodiments of this application are not limited thereto.
[0195] In addition, the term "and / or" in this document simply describes an association between related objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this document, unless otherwise specified, generally indicates an "or" relationship between the related objects.
[0196] In the description of this application, it should be noted that, unless otherwise specified or limited, the term "connection" should be understood in a broad sense. For example, it can mean direct connection, indirect connection through an intermediate medium, internal communication between two devices, or communication connection between two devices. Those skilled in the art will understand the specific meanings of the above terms in this application based on specific circumstances.
[0197] The IEEE 802.3 protocol standard defines Ethernet's media access control layer and physical layer. The media access control layer uses CSMA / CD, a mechanism that allows all stations to share the transmission medium. Stations monitor the transmission medium and randomly delay sending messages if they detect another station sending a message.
[0198] As shown in Figure 1, devices are interconnected using switches, enabling full-duplex data exchange between each site (e.g., central office equipment, terminal equipment, etc.), with dedicated transmission bandwidth. This means that aggregation switches are required between the central office and the terminal to support data exchange and transmission.
[0199] However, as the network scale grows, the deployment of aggregation switches as active switches becomes increasingly complex, and the management of switches becomes increasingly difficult.
[0200] As shown in Figure 2, passive optical switching is achieved through wavelength division. However, this approach requires two components, a combiner and a splitter, making deployment complex and costly. Furthermore, colored optical modules are required at both the terminal and the central office, further increasing deployment costs.
[0201] As shown in Figure 3, optical splitting is performed using a PON chip. However, this approach requires external equipment (e.g., a device with a PON chip) on both the terminal and central office sides, making deployment more complex. If the two chips are integrated, they share a common port, limiting flexible port configuration and complicating the manufacturing process.
[0202] Each exemplary embodiment of the present application provides a data transmission method, an Ethernet device, and an optical passive switching system. Referring to FIG4 , the system provided in this embodiment includes a core Ethernet device, at least one optical splitter, and multiple access Ethernet devices. FIG4 illustrates one optical splitter and two access Ethernet devices as an example; however, more optical splitters and access Ethernet devices may be provided.
[0203] In some optional implementations, the wavelength corresponding to the uplink message is different from the wavelength corresponding to the downlink message. Uplink and downlink messages can be transmitted using the same optical fiber. Taking Figure 4 as an example, the core Ethernet device and the optical splitter are connected via a single optical fiber. That is, access Ethernet device 1 is connected to the optical splitter via a single optical fiber, and access Ethernet device 2 is connected to the optical splitter via a single optical fiber.
[0204] As shown in FIG5 , multiple optical splitters can be configured in the system, with different optical splitters connected to different optical modules in the core Ethernet device. That is, when multiple optical modules are configured in the core Ethernet device, multiple optical splitters can be connected. The core Ethernet device in FIG5 is configured with two optical modules, each of which is connected to an optical splitter. In other embodiments, the core Ethernet device can be configured with more optical modules, with some optical modules connected to optical splitters and others not connected to optical splitters, etc., and this application does not impose specific limitations on this.
[0205] The core Ethernet device or access Ethernet device determines whether its own optical module is a traditional optical module (such as a colored optical module) or the optical module in the embodiment of the present application based on the identification of its own optical module. If it is a traditional optical module, the traditional data forwarding mechanism (CSMA / CD access mechanism) is adopted. If it is an optical module in the embodiment of the present application, the data forwarding mechanism in the embodiment of the present application is adopted.
[0206] In one embodiment, the access Ethernet device is configured to send the uplink message to the corresponding optical splitter within a corresponding sending period; wherein the sending period is allocated by the core Ethernet device to each access Ethernet device connected to the optical splitter, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter;
[0207] The optical splitter is used to send the uplink message to the core Ethernet device;
[0208] The core Ethernet device is further configured to send downlink messages to the corresponding optical splitter;
[0209] The optical splitter is further configured to send the downlink message to each connected access Ethernet device respectively;
[0210] The access Ethernet device is further configured to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message.
[0211] As shown in FIG6 , in practice, multiple optical splitters can be used to achieve multi-level optical splitting. That is, an optical splitter can be connected to another optical splitter to achieve multi-level optical splitting through the cascade connection of optical splitters.
[0212] The above solution does not require the use of a PON chip. Instead, it uses Ethernet frame-formatted messages to achieve passive optical transmission between Ethernet network devices using the MAC chips of network devices in traditional network architectures, and implements passive optical splitting through an optical splitter. Furthermore, when transmitting downlink messages via broadcast, there is no need to process Ethernet frame-formatted messages into PON frame format. Instead, the uplink transmission time periods of access devices are controlled to avoid overlap. In other words, different access Ethernet devices transmit uplink messages corresponding to different transmission time periods. Each access Ethernet device will only send uplink messages during the corresponding transmission time period. There is no need to deploy an active switch to exchange data between terminal devices and central office devices. Passive optical splitting is also performed through an optical splitter, avoiding the occurrence of uplink message conflicts when performing passive optical splitting through an optical splitter. This embodiment achieves passive optical splitting without the need for other external chips or modifications to Ethernet frame-formatted messages.
[0213] The following will be combined with the accompanying drawings and specific embodiments to explain in detail the technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0214] Referring to FIG. 7 , a core Ethernet device provided in an embodiment of the present application includes a first Ethernet MAC chip and a first optical module connected to the first Ethernet MAC chip.
[0215] The first optical module is used to receive an uplink message sent by an optical splitter; wherein the uplink message is sent by an access Ethernet device to the optical splitter during a corresponding sending period, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter.
[0216] In practice, the MAC layer uses the CSMA / CD access mechanism. If this mechanism is used, message collisions may occur when multiple access Ethernet devices send uplink messages to the optical splitter.
[0217] Based on this, this embodiment allocates different sending time periods to different access Ethernet devices. The uplink adopts the time division multiple access (TDMA) mechanism. The access Ethernet device will not send uplink messages outside the sending time period, thereby reducing conflicts with uplink messages sent by other access Ethernet devices.
[0218] If implemented with the help of a PON chip, it is necessary to process the Ethernet frame format messages into PON frame format messages. In the exemplary embodiment of the present application, the transmitted messages are all messages in the standard Ethernet frame format, and there is no need to modify the format of the messages. Instead, high-precision time synchronization is achieved by calculating the time based on the Ethernet time synchronization protocol. Then the core Ethernet device synchronizes the non-overlapping sending time periods to each access Ethernet device, and each access Ethernet device sends an uplink message based on the sending time period; that is, by modifying the CSMA / CD mechanism of the MAC layer of each access Ethernet device to send an uplink message to a TDMA mechanism, time-sharing transmission of each access Ethernet device is achieved, thereby realizing optical transmission.
[0219] The first optical module performs optical-electrical conversion on the received uplink message and then sends the converted uplink message to the first Ethernet MAC chip for processing.
[0220] The first Ethernet MAC chip is used to transmit the downlink message to the first optical module; the first optical module is also used to send the downlink message to the optical splitter, so that the optical splitter sends the downlink message to each connected access Ethernet device.
[0221] In implementation, the MAC layer adopts the CSMA / CD access mechanism. With this mechanism, no message collision occurs during the transmission of downlink messages. Based on this, this embodiment can use downlink broadcasting to send downlink messages.
[0222] In this embodiment, the first Ethernet MAC chip transmits the downlink message to the first optical module, and the first optical module sends the downlink message to the optical splitter. After receiving the downlink message, the optical splitter needs to send the downlink message to each connected access Ethernet device, so that each access Ethernet device can receive the downlink message.
[0223] In some optional implementations, the first Ethernet MAC chip in the core Ethernet device is further configured to:
[0224] Determine the historical transmission traffic of each connected Ethernet device;
[0225] Based on the historical transmission traffic of all connected Ethernet devices, determine the sending start time and sending duration of each connected Ethernet device;
[0226] The first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and the sending duration is transmitted to the first optical module.
[0227] In practice, since each access Ethernet device can only transmit uplink messages during its corresponding sending period, in order to meet the data transmission requirements of each access Ethernet device as much as possible, it is necessary to reasonably allocate a sending period to each access Ethernet device.
[0228] The historical transmission traffic of each access Ethernet device reflects the transmission requirements of the access Ethernet device, such as how often data transmission is required and how long a data transmission takes. Based on this, the core Ethernet device in this embodiment takes into account the historical transmission traffic of all access Ethernet devices when allocating transmission time periods, that is, the distribution of previous transmission traffic.
[0229] In the above scheme, the historical transmission traffic of each access Ethernet device reflects the sending needs of the access Ethernet device, such as how long data transmission is required and how long a data transmission takes. Based on the historical transmission traffic of all access Ethernet devices, the sending start time and sending duration (that is, the corresponding sending time period) of each access Ethernet device can be reasonably determined; and then the first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and sending duration is transmitted to the splitter, so that the corresponding access Ethernet device obtains its corresponding sending time period.
[0230] In some optional implementation manners, the first Ethernet MAC chip is further used to:
[0231] At preset intervals, a second downlink message carrying the address of the access Ethernet device and the first sending time is transmitted to the first optical module, so that the corresponding access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter after receiving the second downlink message; wherein, the first sending time is the sending time of the second downlink message, the first receiving time is the time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is the time when the corresponding access Ethernet device sends the target uplink message;
[0232] Determining a target adjustment time of a corresponding access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0233] The third downlink message carrying the address of the access Ethernet device and the corresponding target adjustment time is transmitted to the first optical module, so that the corresponding access Ethernet device adjusts the clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0234] During implementation, since Ethernet access devices need to refer to time to send uplink messages, the Ethernet access devices need to have a unified time standard. If the time standards of different Ethernet access devices differ significantly, uplink message conflicts may still occur.
[0235] Based on this, in this embodiment, time correction is performed on each Ethernet device connected at a preset time interval.
[0236] Exemplarily, the core Ethernet device subtracts the first sending time from the second receiving time to determine the reply interval; the core Ethernet device subtracts the first receiving time from the second sending time to determine the processing time of the access Ethernet device; the reply interval subtracts the processing time to obtain the uplink + downlink round-trip time, and half of the round-trip time is the single transmission time; the core Ethernet device adds the single transmission time to the first sending time to obtain the theoretical receiving time; the first receiving time is compared with the theoretical receiving time to obtain the time error; the sum of the current time, the time error and the single transmission time is determined as the target adjustment time.
[0237] The above method of determining the target adjustment time is only an example. Other methods can be used to determine the target adjustment time during implementation, which will not be described in detail here.
[0238] The above scheme realizes time correction of each access Ethernet device by exchanging the messages carrying time information between the core Ethernet device and each access Ethernet device at preset intervals, so that the access Ethernet devices have a unified time standard and further reduce the occurrence of uplink message conflicts.
[0239] 8 , an Ethernet access device provided in an embodiment of the present application includes a second Ethernet MAC chip and a second optical module connected to the second Ethernet MAC chip.
[0240] The second Ethernet MAC chip is used to put the uplink message into the message queue; obtain the uplink message from the message queue in sequence during the sending period corresponding to the access Ethernet device, and transmit it to the second optical module; wherein the uplink message is a message in the standard Ethernet frame format.
[0241] The second optical module is used to send the uplink message to the optical splitter, so that the optical splitter sends the uplink message to the core Ethernet device.
[0242] In traditional technologies, the MAC layer uses the CSMA / CD access mechanism. If this mechanism is used, message collisions may occur when multiple access Ethernet devices send uplink messages to the optical splitter.
[0243] As shown in Figure 9, when access Ethernet device 1 sends upstream message 1 (including data A and data B) at time T0, access Ethernet device 2 sends upstream message 2 (including data C and data D) at time T0'. There is overlap between T0 and T0', causing a conflict between data B and data C, resulting in erroneous data E. As a result, the upstream message sent to the core Ethernet device via the optical splitter includes data A, data E, and data D, rather than upstream message 1 and upstream message 2.
[0244] Based on this, in an embodiment of the present application, the core Ethernet device allocates different sending time periods to different access Ethernet devices, that is, the uplink adopts the time division multiple access (English: Time division multiple access, abbreviated: TDMA) mechanism. After receiving the uplink message, the second Ethernet MAC chip of the access Ethernet device does not directly send the uplink message, but puts the uplink message into the message queue. The uplink message will only be sent within the sending time period, and the uplink message will not be sent outside the sending time period, thereby reducing conflicts with uplink messages sent by other access Ethernet devices.
[0245] The embodiments of the present application do not limit the specific implementation of the message queue, such as using a hardware queue, a software queue, or a combination of a hardware queue and a software queue. In the embodiments of the present application, the uplink and / or downlink messages transmitted in the uplink and / or downlink are all messages in the standard Ethernet frame format.
[0246] FIG9 a shows an embodiment of the structure of a standard Ethernet frame, including the Institute of Electrical and Electronics Engineers (IEEE) 802.3 format and the Ethernet II format.
[0247] The beginning of the two Ethernet frames consists of a preamble and a frame delimiter. The preamble is 7 bytes long and the frame delimiter is 1 byte long.
[0248] The following fields are DA, SA, and Length / Type. DA is the 6-byte destination MAC address, used to identify the frame's receiver. SA is the 6-byte source MAC address, used to identify the frame's sender. The Length / Type field value can distinguish two frame types: When the Length / Type field value is less than or equal to 1500 (hexadecimal: 0x05DC), the Ethernet frame uses the IEEE 802.3 format. When the Length / Type field value is greater than or equal to 1536 (hexadecimal: 0x0600), the Ethernet frame uses the Ethernet II format.
[0249] The frame's payload (including data and / or padding) is at least 46 bytes long and ends with a Frame Check Sequence (FCS), which is 4 bytes long and is used to check for data corruption.
[0250] Referring to Figure 10, this embodiment allocates a sending period T0 to access Ethernet device 1 and a sending period T1 to access Ethernet device 2. There is no overlap between T0 and T1. Access Ethernet device 1 sends uplink message 1 (including data A + data B) at T0, and access Ethernet device 2 sends uplink message 2 (including data C + data D) at T1. Since there is no overlap between T0 and T1, uplink message 1 and uplink message 2 will not conflict. In this way, the uplink message 1 and uplink message 2 can be sent to the core Ethernet device through the optical splitter.
[0251] The second optical module is further used to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein the downlink message is sent by the optical splitter to each connected access Ethernet device after receiving the downlink message sent by the core Ethernet device;
[0252] There is no overlap between the sending time periods corresponding to the access Ethernet switching devices connected to the optical splitter.
[0253] As described above, this embodiment uses a downlink broadcast method to send downlink messages. After receiving the downlink message, the optical splitter needs to send the downlink message to each connected access Ethernet device respectively, and the access Ethernet device only needs to receive its own downlink message. Based on this, the access Ethernet device needs to determine whether the destination address of the downlink message is its own address. If it is its own address, it means that the downlink message is sent to itself by the core Ethernet device, and the downlink message is received. Otherwise, it means that the downlink message is sent to other access Ethernet devices by the core Ethernet device, and the downlink message is discarded.
[0254] In some optional implementation manners, the second Ethernet MAC chip is specifically used to:
[0255] If the current moment is in the sending period of the access Ethernet device, then the uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue.
[0256] For example, in order to avoid uplink message conflicts, the Ethernet access device cannot send uplink messages at any time. Uplink messages can only be sent during the corresponding sending period. Therefore, the uplink message needs to be placed in the message queue for caching first. If the current moment is in the corresponding sending period, the uplink message will be taken out from the message queue in the order of storage and sent to the splitter; if the current moment is no longer in the corresponding sending period, it is necessary to continue waiting for the next sending period.
[0257] The above solution caches the uplink messages in the message queue. If the current time is in the corresponding sending period, the uplink messages will be taken out from the message queue in the order of storage and sent to the splitter, reducing the occurrence of uplink message conflicts and sending the uplink messages in an orderly manner.
[0258] In some optional implementations, before sequentially acquiring uplink messages from the message queue, the second Ethernet MAC chip is further configured to:
[0259] Turning on the light source of the second optical module and the switch indicating transmission in the second Ethernet MAC chip;
[0260] After the second optical module sends the uplink message to the optical splitter, the second Ethernet MAC chip is further configured to:
[0261] If there is no uplink message in the message queue, or the sending period of the access Ethernet device ends, the switch representing sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0262] Exemplarily, the switch representing transmission is a circuit switch (e.g., a register enable switch) provided on a transmission circuit (including a transmission circuit of the MAC layer and a transmission circuit of the physical layer). For example, the switch representing transmission can be implemented by programmably controlling the enabling or disabling of a register having a transmission function.
[0263] During implementation, if the light source of the optical module connected to the Ethernet device and the switch indicating transmission are always turned on, the Ethernet device side will send no data packets, which will cause optical interference to normal data packets.
[0264] Based on this, in this embodiment, the access Ethernet device turns on the switch indicating transmission and the light source of the optical module only when the access Ethernet device is about to send data. In this embodiment, after determining that data does not need to be sent, the switch indicating transmission in the second Ethernet MAC chip and the light source of the second optical module need to be turned off.
[0265] Since there is a message queue in the access Ethernet device, there may be uplink messages remaining in the message queue during transmission. In some optional implementations, the light source of the second optical module is first turned on, and then the switch representing transmission in the second Ethernet MAC chip is turned on. By turning on the light source of the second optical module first when the access Ethernet device is to send data, if there are uplink messages remaining in the message queue where the uplink message is located, the uplink message in the message queue can be sent immediately at this time, thereby improving transmission efficiency.
[0266] In some optional implementations, when data transmission is not required, the switch representing transmission in the second Ethernet MAC chip is first turned off, and then the light source of the second optical module is turned off, thereby ensuring that no new uplink messages reach the second optical module.
[0267] The above solution, when the Ethernet device is connected to send data, turns on the light source of the second optical module, and then turns on the switch in the second Ethernet MAC chip that represents transmission; and after the Ethernet device determines that it does not need to send data (there are no uplink messages to be sent in the message queue, or the corresponding transmission period has ended), turns off the switch in the second Ethernet MAC chip that represents transmission, and then turns off the light source of the second optical module. This ensures that the switch in the second Ethernet MAC chip that represents transmission remains on and the light source of the second optical module remain on throughout the entire transmission process, thereby achieving the transmission of uplink messages. Except for the transmission process, the switch in the second Ethernet MAC chip that represents transmission remains off and the light source of the second optical module remains off, reducing the transmission of dataless messages on the Ethernet device side and reducing the optical interference caused to other Ethernet devices. Message transmission can be achieved by simply controlling the switch that represents transmission and the light source of the optical module. No format changes, message integration, or message splitting of the messages in the message queue are required to achieve the transmission of uplink messages. No external chip is required and no CPU is required to process specific message operations, thereby reducing costs while improving uplink message processing efficiency.
[0268] FIG11 is an interactive flow chart of a first data transmission method provided in an embodiment of the present application. As shown in FIG11 , the method includes the following steps:
[0269] Step S1101: The core Ethernet device sends a downlink message to the optical splitter.
[0270] Step S1102: the optical splitter sends the downlink message to each connected access Ethernet device respectively.
[0271] Step S1103: The access Ethernet device determines whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receives the downlink message; otherwise, discards the downlink message.
[0272] Step S1104: The access Ethernet device puts the uplink message into the message queue of the access Ethernet device.
[0273] Step S1105: The access Ethernet device sends the uplink message in the message queue to the optical splitter within the corresponding sending period.
[0274] Step S1106: The optical splitter sends the uplink message to the core Ethernet device.
[0275] Steps S1101 to S1103 are the transmission process of the downlink message, and steps S1104 to S1106 are the transmission process of the uplink message. The transmission processes of the uplink and downlink messages do not affect each other and there is no necessary order.
[0276] The above scheme realizes passive splitting through an optical splitter; in addition, downlink messages are transmitted by broadcasting, and uplink messages are transmitted by time division multiple access. Different access Ethernet devices correspond to different sending time periods, and each access Ethernet device will send uplink messages only during the corresponding sending time period. That is to say, different access Ethernet devices will send uplink messages in different sending time periods, which reduces the occurrence of uplink message conflicts when passive splitting is performed through an optical splitter. This embodiment can realize passive splitting without the help of other external chips.
[0277] In some optional implementations, the above step S1105 can be implemented as follows:
[0278] If the current moment is in the sending period of the access Ethernet device, uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue, and the uplink messages obtained from the message queue are sent to the optical splitter.
[0279] The above solution caches the uplink messages in the message queue. If the current time is in the corresponding sending period, the uplink messages will be taken out from the message queue in the order of storage and sent to the splitter, reducing the occurrence of uplink message conflicts and sending the uplink messages in an orderly manner.
[0280] FIG12 is an interactive flow chart of a data transmission method provided in an embodiment of the present application. As shown in FIG12 , the method includes the following steps:
[0281] Step S1201: The core Ethernet device sends a downlink message to the optical splitter.
[0282] Step S1202: The optical splitter sends the downlink message to each connected access Ethernet device respectively.
[0283] Step S1203: The access Ethernet device determines whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receives the downlink message; otherwise, discards the downlink message.
[0284] Step S1204: The access Ethernet device puts the uplink message into the message queue of the access Ethernet device.
[0285] Step S1205: The access Ethernet device turns on the light source of the second optical module of the access Ethernet device and the switch representing transmission in the second Ethernet MAC chip of the access Ethernet device within the corresponding transmission period.
[0286] Step S1206: The access Ethernet device sends the uplink message in the message queue to the optical splitter.
[0287] Step S1207: If there is no uplink message in the message queue, or the sending period of the access Ethernet device ends, the access Ethernet device turns off the switch representing sending in the second Ethernet MAC chip and the light source of the second optical module.
[0288] Step S1208: The optical splitter sends the uplink message to the core Ethernet device.
[0289] There is no logical association between steps S1207 and S1208 , that is, this embodiment does not limit the execution order of S1207 and S1208 .
[0290] Steps S1201 to S1203 are the transmission process of the downlink message, and steps S1204 to S1208 are the transmission process of the uplink message. The transmission processes of the uplink and downlink messages do not affect each other and there is no necessary order.
[0291] The above scheme turns on the light source of the second optical module when the access Ethernet device wants to send data, and then turns on the switch representing transmission in the second Ethernet MAC chip; and after the access Ethernet device determines that no data needs to be sent (there are no uplink messages that need to be sent in the message queue, or the corresponding sending period has ended), turns off the switch representing transmission in the second Ethernet MAC chip, and then turns off the light source of the second optical module. This ensures that the switch representing transmission in the second Ethernet MAC chip remains turned on and the light source of the second optical module remains turned on during the entire sending process, thereby realizing the sending of uplink messages. Except for the sending process, the switch representing transmission in the second Ethernet MAC chip remains turned off and the light source of the second optical module remains turned off, thereby reducing the sending of no data messages on the access Ethernet device side and reducing the optical interference caused to other access Ethernet devices.
[0292] In some optional implementations, based on the above data transmission interaction method, before step S1101, the core Ethernet device further performs the following steps:
[0293] Determine the historical transmission traffic of each connected Ethernet device;
[0294] Based on the historical transmission traffic of all connected Ethernet devices, determine the sending start time and sending duration of each connected Ethernet device;
[0295] Step S1101 is specifically implemented in the following manner:
[0296] A first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and the sending duration is sent to the optical splitter.
[0297] In the above scheme, the historical transmission traffic of each access Ethernet device reflects the sending needs of the access Ethernet device, such as how long data transmission is required and how long a data transmission takes. Based on the historical transmission traffic of all access Ethernet devices, the sending start time and sending duration (that is, the corresponding sending time period) of each access Ethernet device can be reasonably determined; and then the first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and sending duration is transmitted to the splitter, so that the corresponding access Ethernet device obtains its corresponding sending time period.
[0298] In some optional implementations, based on the above data transmission interaction method, the core Ethernet device further performs the following steps:
[0299] At preset intervals, a second downlink message carrying the address of the access Ethernet device and the first sending time is sent to the optical splitter, so that the corresponding access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter after receiving the second downlink message; wherein the first sending time is the sending time of the second downlink message, the first receiving time is the time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is the time when the corresponding access Ethernet device sends the target uplink message;
[0300] Determining a target adjustment time of a corresponding access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0301] The third downlink message carrying the address of the access Ethernet device and the corresponding target adjustment time is sent to the optical splitter, so that the corresponding access Ethernet device adjusts the clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0302] It can be understood that steps S1101 to S1103 are the transmission process of the downlink message, steps S1104 to S1106 are the transmission process of the uplink message, and the above steps are the process of adjusting the time. The uplink process, the downlink process, and the time adjustment process do not affect each other.
[0303] The above scheme realizes time correction of each access Ethernet device by exchanging the messages carrying time information between the core Ethernet device and each access Ethernet device at preset intervals, so that the access Ethernet devices have a unified time standard and further reduce the occurrence of uplink message conflicts.
[0304] The specific implementation of the above interaction process can be found in the implementation of the core Ethernet device and the access Ethernet device, and the repeated parts will be omitted.
[0305] The data transmission method performed by the core Ethernet device in the embodiment of the present application includes the following steps:
[0306] Receive an uplink message sent by the optical splitter; wherein the uplink message is sent by the access Ethernet device to the optical splitter during the corresponding sending period, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter; and
[0307] Sending a downlink message to the optical splitter so that the optical splitter sends the downlink message to each connected access Ethernet device respectively.
[0308] Some optional implementations further include:
[0309] Determine the historical transmission traffic of each connected Ethernet device;
[0310] Based on the historical transmission traffic of all connected Ethernet devices, determine the sending start time and sending duration of each connected Ethernet device;
[0311] A first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and the sending duration is sent to the optical splitter.
[0312] Some optional implementations further include:
[0313] At preset intervals, a second downlink message carrying the address of the access Ethernet device and the first sending time is sent to the optical splitter, so that the corresponding access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter after receiving the second downlink message; wherein the first sending time is the sending time of the second downlink message, the first receiving time is the time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is the time when the corresponding access Ethernet device sends the target uplink message;
[0314] Determining a target adjustment time of a corresponding access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0315] The third downlink message carrying the address of the access Ethernet device and the corresponding target adjustment time is sent to the optical splitter, so that the corresponding access Ethernet device adjusts the clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0316] The specific implementation of the above embodiment can refer to the implementation of the above core Ethernet device, and the repeated parts will be omitted.
[0317] In an embodiment of the present application, a data transmission method performed by a second Ethernet MAC chip connected to an Ethernet device includes the following steps:
[0318] Putting the uplink message into the message queue in the access Ethernet device, and sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, so that the optical splitter sends the uplink message to the core Ethernet device; and
[0319] Determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein the downlink message is sent by the optical splitter to each connected access Ethernet device after receiving the downlink message sent by the core Ethernet device;
[0320] There is no overlap between the sending time periods corresponding to the access Ethernet switching devices connected to the optical splitter.
[0321] In some optional implementations, sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device includes:
[0322] If the current moment is in the sending period of the access Ethernet device, uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue, and the uplink messages obtained from the message queue are sent to the optical splitter.
[0323] In some optional implementations, before sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, the method further includes:
[0324] Turning on a light source of a second optical module of the access Ethernet device and a switch for transmitting in a second Ethernet MAC chip of the access Ethernet device;
[0325] After sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, the method further includes:
[0326] If there is no uplink message in the message queue, or the sending period of the access Ethernet device ends, the switch representing sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0327] The specific implementation of the above embodiment can refer to the implementation of the above-mentioned access Ethernet device, and the repeated parts will be omitted.
[0328] As shown in FIG13 , based on the same inventive concept as the data transmission method on the core Ethernet device side, an embodiment of the present application provides a first data transmission apparatus 1300 , which is applied to a core Ethernet device. The apparatus includes:
[0329] An uplink message receiving module 1301 is configured to receive an uplink message sent by an optical splitter; wherein the uplink message is sent by an access Ethernet device to the optical splitter during a corresponding sending period, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter;
[0330] The downlink message sending module 1302 is configured to send a downlink message to the optical splitter, so that the optical splitter sends the downlink message to each connected access Ethernet device.
[0331] In some optional implementations, the downlink message sending module 1302 is further configured to:
[0332] Determine the historical transmission traffic of each connected Ethernet device;
[0333] Based on the historical transmission traffic of all connected Ethernet devices, determine the sending start time and sending duration of each connected Ethernet device;
[0334] A first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and the sending duration is sent to the optical splitter.
[0335] In some optional implementations, the downlink message sending module 1302 is further configured to:
[0336] At preset intervals, a second downlink message carrying the address of the access Ethernet device and the first sending time is sent to the optical splitter, so that the corresponding access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter after receiving the second downlink message; wherein the first sending time is the sending time of the second downlink message, the first receiving time is the time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is the time when the corresponding access Ethernet device sends the target uplink message;
[0337] Determining a target adjustment time of a corresponding access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0338] The third downlink message carrying the address of the access Ethernet device and the corresponding target adjustment time is sent to the optical splitter, so that the corresponding access Ethernet device adjusts the clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0339] The specific implementation of the above embodiment can refer to the implementation of the above core Ethernet device, and the repeated parts will be omitted.
[0340] As shown in FIG14 , based on the same inventive concept as the data transmission method for accessing an Ethernet device, an embodiment of the present application provides a second data transmission apparatus 1400 , which is applied to accessing an Ethernet device. The apparatus includes:
[0341] An uplink message sending module 1401 is configured to place an uplink message into a message queue in the access Ethernet device, and send the uplink message in the message queue to an optical splitter within a sending period corresponding to the access Ethernet device, so that the optical splitter sends the uplink message to a core Ethernet device;
[0342] The downlink message receiving module 1402 is configured to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein the downlink message is sent by the optical splitter to each connected access Ethernet device after receiving the downlink message sent by the core Ethernet device;
[0343] There is no overlap between the sending time periods corresponding to the access Ethernet switching devices connected to the optical splitter.
[0344] In some optional implementations, the uplink message sending module 1401 is specifically configured to:
[0345] If the current moment is in the sending period of the access Ethernet device, uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue, and the uplink messages obtained from the message queue are sent to the optical splitter.
[0346] In some optional implementations, the uplink message sending module 1401 is further configured to:
[0347] Before sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, turning on the light source of the second optical module of the access Ethernet device and the switch representing sending in the second Ethernet MAC chip of the access Ethernet device;
[0348] After the uplink message in the message queue is sent to the optical splitter within the sending period corresponding to the access Ethernet device, if there is no uplink message in the message queue, or the sending period of the access Ethernet device ends, the switch representing the sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0349] The specific implementation of the above embodiment can refer to the implementation of the above-mentioned access Ethernet device, and the repeated parts will be omitted.
[0350] Based on the same technical concept, an embodiment of the present application also provides a controller 1500 for a core Ethernet device, as shown in FIG15 , comprising at least one processor 1501 and a memory 1502 connected to the at least one processor. The specific connection medium between the processor 1501 and the memory 1502 is not limited in the embodiment of the present application. FIG15 illustrates the connection between the processor 1501 and the memory 1502 via a bus 1503. Buses can be divided into address buses, data buses, control buses, and the like. For ease of illustration, FIG15 uses only one thick line, but this does not imply that there is only one bus or only one type of bus.
[0351] Among them, the processor 1501 is the control center of the controller of the core Ethernet device. It can use various interfaces and lines to connect various parts of the controller of the core Ethernet device, and realize data processing by running or executing instructions stored in the memory 1502 and calling data stored in the memory 1502. Optionally, the processor 1501 may include one or more processing units. The processor 1501 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes the issuance of instructions. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1501. In some embodiments, the processor 1501 and the memory 1502 may be implemented on the same chip. In some embodiments, they may also be implemented separately on independent chips.
[0352] The processor 1501 can be a general-purpose processor, such as a digital signal processor, an application-specific integrated circuit (ASIC), a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in conjunction with the data transmission method embodiment can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0353] The memory 1502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 1502 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (English: Random Access Memory, referred to as RAM), a static random access memory (English: Static Random Access Memory, referred to as SRAM), a programmable read-only memory (English: Programmable Read Only Memory, referred to as PROM), a read-only memory (English: Read Only Memory, referred to as ROM), an electrically erasable programmable read-only memory (English: Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 1502 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 1502 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0354] In the embodiment of the present application, the memory 1502 stores a computer program. When the program is executed by the processor 1501, the processor 1501 executes:
[0355] Receive an uplink message sent by the optical splitter; wherein the uplink message is sent by the access Ethernet device to the optical splitter during the corresponding sending period, and there is no overlap between the sending periods corresponding to the access Ethernet devices connected to the optical splitter; and
[0356] Sending a downlink message to the optical splitter so that the optical splitter sends the downlink message to each connected access Ethernet device respectively.
[0357] In some optional implementations, the processor 1501 further executes:
[0358] Determine the historical transmission traffic of each connected Ethernet device;
[0359] Based on the historical transmission traffic of all connected Ethernet devices, determine the sending start time and sending duration of each connected Ethernet device;
[0360] A first downlink message carrying the address of the access Ethernet device, the corresponding sending start time and the sending duration is sent to the optical splitter.
[0361] In some optional implementations, the processor 1501 further executes:
[0362] At preset intervals, a second downlink message carrying the address of the access Ethernet device and the first sending time is sent to the optical splitter, so that the corresponding access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter after receiving the second downlink message; wherein the first sending time is the sending time of the second downlink message, the first receiving time is the time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is the time when the corresponding access Ethernet device sends the target uplink message;
[0363] Determining a target adjustment time of a corresponding access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0364] The third downlink message carrying the address of the access Ethernet device and the corresponding target adjustment time is sent to the optical splitter, so that the corresponding access Ethernet device adjusts the clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0365] Based on the same technical concept, an embodiment of the present application further provides a controller for accessing an Ethernet device, comprising at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor performs:
[0366] Putting the uplink message into the message queue in the access Ethernet device, and sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, so that the optical splitter sends the uplink message to the core Ethernet device; and
[0367] Determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; otherwise, discard the downlink message; wherein the downlink message is sent by the optical splitter to each connected access Ethernet device after receiving the downlink message sent by the core Ethernet device;
[0368] There is no overlap between the sending time periods corresponding to the access Ethernet switching devices connected to the optical splitter.
[0369] In some optional implementations, the processor specifically performs:
[0370] If the current moment is in the sending period of the access Ethernet device, uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue, and the uplink messages obtained from the message queue are sent to the optical splitter.
[0371] In some optional implementations, the processor further executes:
[0372] Before sending the uplink message in the message queue to the optical splitter within the sending period corresponding to the access Ethernet device, turning on the light source of the second optical module of the access Ethernet device and the switch representing sending in the second Ethernet MAC chip of the access Ethernet device;
[0373] After the uplink message in the message queue is sent to the optical splitter within the sending period corresponding to the access Ethernet device, if there is no uplink message in the message queue, or the sending period of the access Ethernet device ends, the switch representing the sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
[0374] Based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program executable by a processor. When the program runs on the processor, the processor executes the steps of the above-mentioned data transmission method.
[0375] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0376] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each flow and / or box in the flow chart and / or block diagram, as well as the combination of the flow chart and / or box in the flow chart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more flow charts and / or one or more boxes in the block diagram.
[0377] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0378] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and / or one or more boxes in the block diagram.
[0379] Although the embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the embodiments and all changes and modifications that fall within the scope of the present application.
[0380] Obviously, those skilled in the art may make various changes and modifications to this application without departing from the spirit and scope of this application. Thus, if these modifications and variations of this application fall within the scope of the claims of this application and their equivalents, this application is intended to include these modifications and variations.
Claims
1. A core Ethernet device, comprising a first Ethernet media access control MAC chip and a first optical module connected to the first Ethernet MAC chip: The first optical module is used to receive the uplink message sent by the optical splitter; wherein, The uplink message is sent by the first access Ethernet device to the optical splitter in a first sending time period, and there is no overlap between the first sending time period and one or more second sending time periods corresponding to one or more second access Ethernet devices connected to the optical splitter; The first Ethernet MAC chip is used to transmit the downlink message to the first optical module; as well as The first optical module is further used to send the downlink message to the optical splitter, so that the optical splitter sends the downlink message to the first access Ethernet device and the one or more second access Ethernet devices respectively.
2. The core Ethernet device of claim 1, wherein: The uplink message and the downlink message are messages in a standard Ethernet frame format.
3. The core Ethernet device of claim 1, wherein: The first Ethernet MAC chip is further used for: Determining a historical transmission flow of the first access Ethernet device; Determine a sending start time and a sending duration of the first access Ethernet device based on a historical transmission flow of the first access Ethernet device; as well as A first downlink message carrying the address of the first access Ethernet device, the sending start time, and the sending duration is transmitted to the first optical module.
4. The core Ethernet device according to any one of claims 1 to 3, wherein: The first Ethernet MAC chip is further used for: At preset intervals, a second downlink message carrying the address of the first access Ethernet device and the first sending time is transmitted to the first optical module, so that after receiving the second downlink message, the first access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter; wherein the first sending time is the sending time of the second downlink message, the first receiving time is the time when the first access Ethernet device receives the second downlink message, and the second sending time is the time when the first access Ethernet device sends the target uplink message; Determine a target adjustment time of the first access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message; and A third downlink message carrying the address of the first access Ethernet device and the target adjustment time is transmitted to the first optical module, so that after receiving the third downlink message, the first access Ethernet device adjusts the time of the first access Ethernet device from the current time to the target adjustment time.
5. The core Ethernet device as claimed in claim 4, wherein: The first Ethernet MAC chip is used to determine the target adjustment time of the first access Ethernet device based on the second receiving time, the first sending time, the first receiving time, and the second sending time, including: Subtracting the first sending time from the second receiving time to determine a reply interval; Subtract the first receiving time from the second sending time to determine the processing duration of the first access Ethernet device; Subtract the processing time from the reply interval to obtain the uplink and downlink round trip times, where half of the round trip time is the single transmission time; Add the first sending time to the single transmission duration to obtain a theoretical receiving time; Comparing the first receiving time with the theoretical receiving time to obtain a time error; and The sum of the current time, the time error and the single transmission duration is determined as the target adjustment time.
6. An Ethernet access device, wherein: The device comprises a second Ethernet media access control MAC chip and a second optical module connected to the second Ethernet MAC chip: The second Ethernet MAC chip is used to put the uplink message into a message queue; obtain the uplink message from the message queue in sequence during the first sending period corresponding to the access Ethernet device, and transmit it to the second optical module; The second optical module is used to send the uplink message to the optical splitter, so that the optical splitter sends the uplink message to the core Ethernet device; and The second optical module is further used to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; wherein the downlink message is sent by the optical splitter to the access Ethernet device and one or more second access Ethernet devices connected to the optical splitter after receiving the downlink message sent by the core Ethernet device; There is no overlap between the first sending time period and one or more second sending time periods corresponding to the one or more second access Ethernet switching devices.
7. The Ethernet access device according to claim 6, wherein: The uplink message and the downlink message are messages in a standard Ethernet frame format.
8. The Ethernet access device according to claim 6, wherein: The second Ethernet MAC chip is specifically used for: If the current moment is in the first sending period of the access Ethernet device, then the uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue.
9. The Ethernet access device according to any one of claims 6 to 8, wherein: Before sequentially acquiring uplink messages from the message queue, the second Ethernet MAC chip is further used to: Turning on the light source of the second optical module and the switch representing transmission in the second Ethernet MAC chip; After the second optical module sends the uplink message to the optical splitter, the second Ethernet MAC chip is further used for: If there is no uplink message in the message queue, or the first sending period of the access Ethernet device ends, the switch representing sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
10. The Ethernet access device according to claim 9, wherein: The switch representing transmission is a switch set on a transmission circuit; wherein the transmission circuit includes a transmission circuit of a MAC layer and a transmission circuit of a physical layer of the Ethernet device.
11. An optical passive switching system, comprising: A core Ethernet device, an optical splitter, and a plurality of access Ethernet devices, wherein the plurality of access Ethernet devices include a first access Ethernet device connected to the optical splitter, and one or more second access Ethernet devices connected to the optical splitter; The first access Ethernet device is used to send the uplink message to the optical splitter within a corresponding first sending period; wherein the first sending period is allocated by the core Ethernet device to the first access Ethernet device connected to the optical splitter, and there is no overlap between the first sending period and one or more second sending periods corresponding to the one or more second access Ethernet devices; The optical splitter is used to send the uplink message to the core Ethernet device; The core Ethernet device is also used to send downlink messages to the corresponding optical splitter; The optical splitter is further used to send the downlink message to the first access Ethernet device and the one or more second access Ethernet devices respectively; and The first access Ethernet device is further used to determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message.
12. The system of claim 11, wherein: The system further comprises one or more other optical splitters, and different optical splitters are connected to different optical modules in the core Ethernet device.
13. A data transmission method, applied to a core Ethernet device, the method comprising: Receiving an uplink message sent by the optical splitter; wherein the uplink message is sent by the first access Ethernet device to the optical splitter in a first sending time period, and there is no overlap between the first sending time period and one or more second sending time periods corresponding to one or more second access Ethernet devices connected to the optical splitter; and Send a downlink message to the optical splitter, so that the optical splitter sends the downlink message to the first access Ethernet device and the one or more second access Ethernet devices respectively.
14. The method of claim 13, wherein: The method further comprises: Determining a historical transmission flow of the first access Ethernet device; Determine a sending start time and a sending duration of the first access Ethernet device based on a historical transmission flow of the first access Ethernet device; and A first downlink message carrying the address of the first access Ethernet device, the sending start time, and the sending duration is sent to the optical splitter.
15. The method according to claim 13 or 14, wherein: The method further comprises: At preset intervals, a second downlink message carrying the address of the first access Ethernet device and the first sending time is sent to the optical splitter, so that after receiving the second downlink message, the first access Ethernet device sends a target uplink message carrying the first receiving time and the second sending time to the optical splitter; wherein the first sending time is the sending time of the second downlink message, the first receiving time is the time when the first access Ethernet device receives the second downlink message, and the second sending time is the time when the first access Ethernet device sends the target uplink message; Determine a target adjustment time of the first access Ethernet device based on a second receiving time, the first sending time, the first receiving time, and the second sending time; wherein the second receiving time is the time when the core Ethernet device receives the target uplink message; and A third downstream message carrying the address of the first access Ethernet device and the target adjustment time is sent to the optical splitter, so that the first access Ethernet device adjusts the time of the first access Ethernet device from the current time to the corresponding target adjustment time after receiving the third downstream message.
16. The method of claim 15, wherein: The determining, based on the second receiving time, the first sending time, the first receiving time, and the second sending time, a target adjustment time of the first access Ethernet device specifically includes: Subtracting the first sending time from the second receiving time to determine a reply interval; Subtract the first receiving time from the second sending time to determine the processing duration of the first access Ethernet device; Subtract the processing time from the reply interval to obtain the uplink and downlink round trip times, where half of the round trip time is the single transmission time; Add the first sending time to the single transmission duration to obtain a theoretical receiving time; Comparing the first receiving time with the theoretical receiving time to obtain a time error; and The sum of the current time, the time error and the single transmission duration is determined as the target adjustment time.
17. A data transmission method, applied to access an Ethernet device, the method comprising: Putting the uplink message into the message queue in the access Ethernet device, and sending the uplink message in the message queue to the optical splitter within the first sending period corresponding to the access Ethernet device, so that the optical splitter sends the uplink message to the core Ethernet device; as well as Determine whether the destination address of the downlink message sent by the optical splitter is the address corresponding to the access Ethernet device; if so, receive the downlink message; wherein the downlink message is sent by the optical splitter to the access Ethernet device and one or more second access Ethernet devices connected to the optical splitter after receiving the downlink message sent by the core Ethernet device; There is no overlap between the first sending period and one or more second sending periods corresponding to one or more second access Ethernet switching devices connected to the optical splitter.
18. The method of claim 17, wherein: The step of sending the uplink message in the message queue to the optical splitter within the first sending period corresponding to the access Ethernet device includes: If the current moment is in the first sending period of the access Ethernet device, then the uplink messages are sequentially obtained from the message queue according to the storage order of the uplink messages in the message queue, and the uplink messages obtained from the message queue are sent to the optical splitter.
19. The method according to claim 17 or 18, wherein: Before sending the uplink message in the message queue to the optical splitter within the first sending period corresponding to the access Ethernet device, the method further includes: Turning on the light source of the second optical module connected to the Ethernet device and the switch representing transmission in the second Ethernet MAC chip connected to the Ethernet device; After sending the uplink message in the message queue to the optical splitter within the first sending period corresponding to the access Ethernet device, the method further includes: If there is no uplink message in the message queue, or the first sending period of the access Ethernet device ends, the switch representing the sending in the second Ethernet MAC chip and the light source of the second optical module are turned off.
20. A computer-readable storage medium, wherein: It stores a computer program executable by a computer. When the program is run on the computer, the computer executes the method according to any one of claims 13 to 16, or the method according to any one of claims 17 to 19.
Citation Information
Patent Citations
Optical network unit, optical line terminal, passive fiber-optic access network and its transmission
CN101030822A
Passive optical network optical module, all-optical access network system and control method
CN112911427A
Communication equipment, MAC chip and optical module
CN113347510A
Optical comunications module link, systems, and methods
US20180212706A1
