A data transmission method, an Ethernet device, and an optical passive switching system.
By combining passive components and optical splitters, and employing different transmission periods and time correction techniques, the problem of complex management of active switches was solved, enabling passive optical transmission and low-cost data exchange, reducing conflicts, and unifying time standards.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-28
- Publication Date
- 2026-03-10
AI Technical Summary
As network scale expands, the deployment of active switches becomes increasingly complex and management becomes more difficult. Furthermore, existing passive optical switching methods suffer from deployment difficulties and high costs.
Passive devices are used to achieve data exchange and transmission. Passive optical splitting is performed through an optical splitter. Uplink and downlink messages are transmitted using different transmission periods to avoid collisions. Collisions are further reduced through time correction and message queue management to achieve passive optical splitting.
It enables passive optical transmission, reduces the difficulty of switch management and deployment complexity, lowers costs, avoids uplink message conflicts, and unifies the time standard for accessing Ethernet devices.
Smart Images

Figure CN118612577B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of communication, and in particular, to a data transmission method, an Ethernet device and an optical passive switching system. BACKGROUND
[0002] In the protocol standard of IEEE 802.3, the media access control layer and the physical layer of Ethernet are defined. The media access control layer adopts carrier sense multiple access with collision detection (CSMA / CD). All stations adopting this mechanism will share the transmission medium, and need to listen to the transmission medium. After discovering that other stations are sending messages, the station will send messages after a random delay.
[0003] In the related art, devices are interconnected by switches. Full-duplex data exchange is implemented between each station, and the transmission bandwidth is exclusively used. That is, a switch is needed to support data exchange transmission between the local end and the terminal.
[0004] However, as the network scale becomes larger, the deployment of active switches becomes more complex, and the management of switches becomes more difficult. SUMMARY
[0005] Embodiments of the present application provide a data transmission method, an Ethernet device and an optical passive switching system, to realize data exchange transmission through passive devices.
[0006] In a first aspect, embodiments of the present application provide a core Ethernet device, comprising a first Ethernet media access controller (Media Access Control, MAC for short) and a first optical module connected with the first Ethernet MAC:
[0007] The first optical module is configured to receive an uplink message sent by a splitter. The uplink message is sent by an access Ethernet device to the splitter in a corresponding sending period. The corresponding sending periods of the access Ethernet devices connected with the splitter do not cross.
[0008] The first Ethernet MAC is configured to transmit a downlink message to the first optical module.
[0009] The first optical module is further configured to send the downlink message to the splitter, so that the splitter sends the downlink message to each access Ethernet device connected therewith.
[0010] The scheme realizes passive optical transmission between Ethernet network devices, and realizes passive optical splitting through the optical splitter. In addition, the downlink message is transmitted in a broadcast manner, and the uplink message is transmitted through different access Ethernet devices corresponding to different transmission time periods. Each access Ethernet device transmits the uplink message only in the corresponding transmission time period, that is, different access Ethernet devices transmit the uplink message in different transmission time periods. No active switch needs to be deployed to exchange and transmit data between the terminal device and the local device. Passive optical splitting is also realized through the optical splitter, so that the uplink message conflict occurs when the optical splitter is used for passive optical splitting is avoided. The embodiment can realize passive optical splitting without the aid of other external chips.
[0011] In some optional embodiments, the first Ethernet MAC is further configured to:
[0012] determine historical transmission flows of the access Ethernet devices;
[0013] determine transmission start time and transmission duration of each access Ethernet device based on the historical transmission flows of all the access Ethernet devices;
[0014] transmit, to the first optical module, a first downlink message carrying an address of the access Ethernet device, the transmission start time and the transmission duration.
[0015] The historical transmission flows of the access Ethernet devices reflect the transmission requirements of the access Ethernet devices, such as how long the data transmission needs to be performed every time, and how long the data transmission needs to be performed once. Based on the historical transmission flows of all the access Ethernet devices, the transmission start time and the transmission duration (that is, the corresponding transmission time period) of each access Ethernet device can be reasonably determined. Then, the first downlink message carrying the address of the access Ethernet device, the transmission start time and the transmission duration is transmitted to the first optical module, so that the corresponding access Ethernet device obtains the corresponding transmission time period.
[0016] In some optional embodiments, the first Ethernet MAC is further configured to:
[0017] transmit, to the first optical module, a second downlink message carrying an address of the access Ethernet device and a first transmission time every preset time duration, so that the corresponding access Ethernet device transmits, to the optical splitter, a target uplink message carrying a first reception time and a second transmission time after receiving the second downlink message. The first transmission time is a transmission time of the second downlink message, the first reception time is a time when the corresponding access Ethernet device receives the second downlink message, and the second transmission time is a time when the corresponding access Ethernet device transmits the target uplink message.
[0018] determine a 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, wherein the second receiving time is a time when the core Ethernet device receives the target uplink message;
[0019] transmit a third downlink message carrying an address of the access Ethernet device and the corresponding target adjustment time to the first optical module, so that the corresponding access Ethernet device adjusts a clock module from a current time to the corresponding target adjustment time after receiving the third downlink message.
[0020] The above scheme realizes time correction of each access Ethernet device by the core Ethernet device and each access Ethernet device interacting through the message carrying time information every preset time length, so that the access Ethernet devices unify the time standard, and further reduce the occurrence of uplink message conflict.
[0021] In a second aspect, an embodiment of the present application provides an access Ethernet device, comprising a second Ethernet MAC and a second optical module connected with the second Ethernet MAC:
[0022] The second Ethernet MAC is configured to put an uplink message into a message queue, and sequentially acquire the uplink message from the message queue in a sending period corresponding to the access Ethernet device and transmit the uplink message to the second optical module.
[0023] The second optical module is configured to transmit the uplink message to a splitter, so that the splitter transmits the uplink message to a core Ethernet device.
[0024] The second optical module is further configured to determine whether a destination address of a downlink message transmitted by the splitter is an address corresponding to the access Ethernet device, and if yes, receive the downlink message, and if not, discard the downlink message, wherein the downlink message is transmitted by the splitter to each access Ethernet device connected with the splitter after receiving a downlink message transmitted by the core Ethernet device.
[0025] The sending periods corresponding to each access Ethernet switch device connected with the splitter do not cross.
[0026] The scheme realizes passive optical transmission between Ethernet network devices, and realizes passive optical splitting through the optical splitter. In addition, the downlink message is transmitted through broadcasting, and the uplink message is transmitted through different access Ethernet devices corresponding to different transmission time periods. Each access Ethernet device transmits the uplink message only in the corresponding transmission time period, that is, different access Ethernet devices transmit the uplink message in different transmission time periods. No active switch needs to be deployed between the terminal device and the local device for data exchange and transmission. Passive optical splitting is also realized through the optical splitter, which avoids the uplink message conflict when passive optical splitting is realized through the optical splitter. The embodiment can realize passive optical splitting without the aid of other external chips.
[0027] In some optional embodiments, the second Ethernet MAC is specifically used for:
[0028] If the current time is in the transmission time period of the access Ethernet device, the uplink message is sequentially obtained from the message queue according to the storage order of the uplink message in the message queue.
[0029] The scheme stores the uplink message in the message queue for buffering. If the current time is in the corresponding transmission time period, the uplink message is taken out from the message queue according to the storage order and transmitted to the optical splitter, so as to reduce the occurrence of uplink message conflict and sequentially transmit the uplink message.
[0030] In some optional embodiments, before sequentially obtaining the uplink message from the message queue, the second Ethernet MAC is further used for:
[0031] Turning on the light source of the second optical module and the switch representing transmission in the second Ethernet MAC;
[0032] After the second optical module transmits the uplink message to the optical splitter, the second Ethernet MAC is further used for:
[0033] If there is no uplink message in the message queue or the transmission time period of the access Ethernet device ends, the switch representing transmission in the second Ethernet MAC and the light source of the second optical module are turned off.
[0034] The above solution ensures that the second optical module's light source remains on and the second optical module's light source remains on throughout the entire transmission process, enabling uplink packet transmission. This is achieved by keeping the second optical module's light source on and the second Ethernet MAC's light source off, except during the transmission process itself. This reduces the number of data packets that need to be transmitted on the Ethernet access device side, thus minimizing optical interference to other Ethernet access devices. When the Ethernet access device determines that it no longer needs to transmit data (there are no more uplink packets in the packet queue, or the corresponding transmission period has ended), the second optical module's light source remains on and the second Ethernet MAC's light source remains off.
[0035] Thirdly, embodiments of this application provide an optical passive switching system, including: a core Ethernet device, at least one optical splitter, and an access Ethernet device;
[0036] The access Ethernet device is used to send uplink messages to the corresponding optical splitter within the corresponding transmission period; wherein the transmission 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 transmission periods of each access Ethernet device connected to the optical splitter;
[0037] The optical splitter is used to send the uplink message to the core Ethernet device;
[0038] The core Ethernet device is also used to send downlink packets to the corresponding optical splitter;
[0039] The optical splitter is also used to send the downlink packets to each connected access Ethernet device respectively;
[0040] 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, the downlink message is received; otherwise, the downlink message is discarded.
[0041] In some alternative implementations, if there are multiple optical splitters, the different optical splitters are connected to different optical modules in the core Ethernet device.
[0042] In some optional implementations, the core Ethernet device is further configured to:
[0043] Determine the historical transmission traffic of each access Ethernet device;
[0044] Based on the historical transmission traffic of all access Ethernet devices, determine the transmission start time and transmission duration of each access Ethernet device.
[0045] The first downlink message, carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration, is sent to the optical splitter.
[0046] In some optional implementations, the core Ethernet device is further configured to send a second downlink packet carrying the address of the access Ethernet device and a first transmission time to the optical splitter at preset intervals; wherein, the first transmission time is the transmission time of the second downlink packet;
[0047] The access Ethernet device is further configured to send a target uplink message carrying a first reception time and a second transmission time to the optical splitter after receiving the second downlink message; wherein, the first reception time is the time when the corresponding access Ethernet device receives the second downlink message, and the second transmission time is the time when the corresponding access Ethernet device sends the target uplink message.
[0048] The core Ethernet device is further configured to determine 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; wherein, the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0049] The core Ethernet device is also used to send a third downlink message carrying the address of the access Ethernet device and the corresponding target adjustment time to the optical splitter;
[0050] The Ethernet access 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.
[0051] In some optional implementations, the Ethernet access device is specifically used for:
[0052] If the current time is during the transmission period of the access Ethernet device, then uplink packets are sequentially retrieved from the packet queue according to the storage order of the uplink packets in the packet queue, and the uplink packets retrieved from the packet queue are sent to the optical splitter.
[0053] In some optional implementations, the Ethernet access device is further configured to:
[0054] Before sending the uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, turn on the light source of the second optical module of the access Ethernet device and the switch representing transmission in the second Ethernet MAC of the access Ethernet device.
[0055] After sending uplink packets from the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, if there are no uplink packets in the packet queue, or if the transmission period of the access Ethernet device ends, then the switch representing transmission in the second Ethernet MAC and the light source of the second optical module are turned off.
[0056] Fourthly, embodiments of this application provide a first data transmission method applied to the controller of a core Ethernet device, the method comprising:
[0057] Receive uplink messages sent by the optical splitter; wherein the uplink messages are sent to the optical splitter by the access Ethernet devices during their corresponding transmission periods, and there is no overlap between the transmission periods of the various access Ethernet devices connected to the optical splitter; and
[0058] Downlink messages are sent to the optical splitter so that the optical splitter sends the downlink messages to each connected access Ethernet device.
[0059] Some optional implementations also include:
[0060] Determine the historical transmission traffic of each access Ethernet device;
[0061] Based on the historical transmission traffic of all access Ethernet devices, determine the transmission start time and transmission duration of each access Ethernet device.
[0062] The first downlink message, carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration, is sent to the optical splitter.
[0063] Some optional implementations also include:
[0064] At preset intervals, a second downlink packet carrying the address of the access Ethernet device and a first transmission time is sent to the optical splitter, so that the corresponding access Ethernet device, after receiving the second downlink packet, sends a target uplink packet carrying a first reception time and a second transmission time to the optical splitter; wherein, the first transmission time is the transmission time of the second downlink packet, the first reception time is the time when the corresponding access Ethernet device receives the second downlink packet, and the second transmission time is the time when the corresponding access Ethernet device sends the target uplink packet;
[0065] Based on the second receiving time, the first sending time, the first receiving time, and the second sending time, the target adjustment time of the corresponding access Ethernet device is determined; wherein, the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0066] 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 its clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0067] Fifthly, embodiments of this application provide a second data transmission method applied to a controller accessing an Ethernet device, the method comprising:
[0068] The uplink packet is placed into the packet queue in the access Ethernet device, and the uplink packet in the packet queue is sent to the optical splitter during the corresponding transmission period of the access Ethernet device, so that the optical splitter sends the uplink packet to the core Ethernet device; and
[0069] 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;
[0070] There is no overlap between the transmission time periods of the various access Ethernet switching devices connected to the optical splitter.
[0071] In some optional implementations, sending uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device includes:
[0072] If the current time is during the transmission period of the access Ethernet device, then uplink packets are sequentially retrieved from the packet queue according to the storage order of the uplink packets in the packet queue, and the uplink packets retrieved from the packet queue are sent to the optical splitter.
[0073] In some optional implementations, before sending the uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, the method further includes:
[0074] Turn on the light source of the second optical module of the access Ethernet device and the switch representing transmission in the second Ethernet MAC of the access Ethernet device;
[0075] After sending the uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, the method further includes:
[0076] If there are no uplink messages in the message queue, or the transmission period of the access Ethernet device ends, then the switch representing transmission in the second Ethernet MAC and the light source of the second optical module are turned off.
[0077] Sixthly, embodiments of this application provide a first data transmission apparatus applied to a controller of a core Ethernet device, the apparatus comprising:
[0078] The uplink message receiving module is used to receive uplink messages sent by the optical splitter; wherein, the uplink message is sent to the optical splitter by the access Ethernet device in the corresponding transmission period, and there is no overlap between the transmission periods of the access Ethernet devices connected to the optical splitter;
[0079] The downlink message sending module is used to send downlink messages to the optical splitter, so that the optical splitter sends the downlink messages to each connected access Ethernet device respectively.
[0080] In some optional implementations, the downlink message sending module is also used for:
[0081] Determine the historical transmission traffic of each access Ethernet device;
[0082] Based on the historical transmission traffic of all access Ethernet devices, determine the transmission start time and transmission duration of each access Ethernet device.
[0083] The first downlink message, carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration, is sent to the optical splitter.
[0084] In some optional implementations, the downlink message sending module is also used for:
[0085] At preset intervals, a second downlink packet carrying the address of the access Ethernet device and a first transmission time is sent to the optical splitter, so that the corresponding access Ethernet device, after receiving the second downlink packet, sends a target uplink packet carrying a first reception time and a second transmission time to the optical splitter; wherein, the first transmission time is the transmission time of the second downlink packet, the first reception time is the time when the corresponding access Ethernet device receives the second downlink packet, and the second transmission time is the time when the corresponding access Ethernet device sends the target uplink packet;
[0086] Based on the second receiving time, the first sending time, the first receiving time, and the second sending time, the target adjustment time of the corresponding access Ethernet device is determined; wherein, the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0087] 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 its clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0088] In a seventh aspect, embodiments of this application provide a second data transmission apparatus applied to a controller accessing an Ethernet device, the apparatus comprising:
[0089] The uplink message sending module is used to put uplink messages into the message queue in the access Ethernet device, and send the uplink messages in the message queue to the optical splitter during the corresponding sending time period of the access Ethernet device, so that the optical splitter sends the uplink messages to the core Ethernet device.
[0090] The 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, the downlink message is received; otherwise, the downlink message is discarded; 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 transmission time periods of the various access Ethernet switching devices connected to the optical splitter.
[0092] In some optional implementations, the uplink message sending module is specifically used for:
[0093] If the current time is during the transmission period of the access Ethernet device, then uplink packets are sequentially retrieved from the packet queue according to the storage order of the uplink packets in the packet queue, and the uplink packets retrieved from the packet queue are sent to the optical splitter.
[0094] In some optional implementations, the uplink message sending module is also used for:
[0095] Before sending the uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, turn on the light source of the second optical module of the access Ethernet device and the switch representing transmission in the second Ethernet MAC of the access Ethernet device.
[0096] After sending uplink packets from the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, if there are no uplink packets in the packet queue, or if the transmission period of the access Ethernet device ends, then the switch representing transmission in the second Ethernet MAC and the light source of the second optical module are turned off.
[0097] Eighthly, embodiments of this application provide a computer-readable storage medium storing a computer program executable by a processor, which, when run on the processor, causes the processor to perform the data transmission method described in either the fourth or fifth aspect above. Attached Figure Description
[0098] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0099] Figure 1 A first system architecture diagram provided for embodiments of this application;
[0100] Figure 2 A second system architecture diagram provided for embodiments of this application;
[0101] Figure 3 A third system architecture diagram provided for embodiments of this application;
[0102] Figure 4 A fourth system architecture diagram provided for embodiments of this application;
[0103] Figure 5 A fifth system architecture diagram provided for embodiments of this application;
[0104] Figure 6 A sixth system architecture diagram provided for embodiments of this application;
[0105] Figure 7 A structural diagram of the core Ethernet device provided in the embodiments of this application;
[0106] Figure 8 This is a structural diagram of an access Ethernet device provided in an embodiment of this application;
[0107] Figure 9 This is a schematic diagram of the first type of uplink message transmission process provided in the embodiments of this application;
[0108] Figure 10 This is a schematic diagram of a second uplink message transmission process provided in an embodiment of this application;
[0109] Figure 11 An interactive flowchart of the first data transmission method provided in the embodiments of this application;
[0110] Figure 12 An interactive flowchart of the second data transmission method provided in the embodiments of this application;
[0111] Figure 13 This is a schematic diagram of the structure of a first data transmission device provided in an embodiment of this application;
[0112] Figure 14 This is a schematic diagram of the structure of a second data transmission device provided in an embodiment of this application;
[0113] Figure 15 This is a schematic diagram of the controller of the core Ethernet device provided in the embodiments of this application. Detailed Implementation
[0114] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0115] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.
[0116] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the term "connection" should be interpreted broadly. For example, it can refer to a direct connection, an indirect connection through an intermediate medium, or a connection within two devices. Those skilled in the art can understand the specific meaning of the above term in this application based on the specific circumstances.
[0117] The IEEE 802.3 protocol standard defines the Ethernet Media Access Control (MAC) layer and the physical layer. The MAC layer uses CSMA / CD, a mechanism where all stations share the transmission medium and need to monitor it. Upon detecting another station sending a message, the station randomly delays sending its own message.
[0118] See Figure 1 As shown, the devices are interconnected using switches, enabling full-duplex data exchange between each site and providing dedicated transmission bandwidth. In other words, an aggregation switch is needed to support data exchange and transmission between the central office and the terminals.
[0119] However, as networks grow larger, the deployment of aggregation switches as active switches becomes increasingly complex, and the management of these switches becomes increasingly difficult.
[0120] See Figure 2 As shown, in some embodiments, passive optical switching is achieved through wavelength division multiplexing (WDM). However, this method requires two devices, a multiplexer and a demultiplexer, which is cumbersome and costly to deploy; in addition, colored optical modules need to be installed at both the terminal and the central office, further increasing deployment costs.
[0121] See Figure 3 As shown, in some embodiments, optical splitting is performed using a PON chip. However, this method requires external equipment at both the terminal and central office sides, making deployment complex; if two chips are integrated together, they need to share a port, which limits port configuration flexibility and complicates the manufacturing process.
[0122] Therefore, embodiments of this application propose a data transmission method, an Ethernet device, and an optical passive switching system, see reference. Figure 4 As shown, the system provided in this embodiment includes a core Ethernet device, at least one optical splitter, and multiple access Ethernet devices; Figure 4 Taking one optical splitter and two Ethernet access devices as an example, in practice, more optical splitters and Ethernet access devices can be set up.
[0123] In some optional implementations, the wavelengths corresponding to uplink messages and downlink messages are different, and both uplink and downlink messages can be transmitted using the same optical fiber. (As described above...) Figure 4 For example, a fiber optic cable is connected between the core Ethernet device and the optical splitter, a fiber optic cable is connected between access Ethernet device 1 and the optical splitter, and a fiber optic cable is connected between access Ethernet device 2 and the optical splitter.
[0124] See Figure 5 As shown, the system can be configured with multiple optical splitters, each connecting to different optical modules in the core Ethernet device. In other words, when multiple optical modules are configured in the core Ethernet device, multiple optical splitters can be connected. Figure 5 Taking a core Ethernet device with two optical modules and each optical module connected to a splitter as an example, in practice, the core Ethernet device can be equipped with more optical modules, some of which can be connected to the splitter and some of which cannot be connected to the splitter, etc. This application does not make specific limitations in this regard.
[0125] The core Ethernet device or access Ethernet device determines whether its optical module is a traditional optical module (such as a colored optical module) or the optical module of this embodiment based on the identifier of its own optical module. If it is a traditional optical module, a traditional data forwarding mechanism (CSMA / CD access mechanism) is used; if it is the optical module of this embodiment, the data forwarding mechanism of this embodiment is used, for example:
[0126] The access Ethernet device is used to send uplink messages to the corresponding optical splitter within the corresponding transmission period; wherein the transmission 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 transmission periods of each access Ethernet device connected to the optical splitter;
[0127] The optical splitter is used to send the uplink message to the core Ethernet device;
[0128] The core Ethernet device is also used to send downlink packets to the corresponding optical splitter;
[0129] The optical splitter is also used to send the downlink packets to each connected access Ethernet device respectively;
[0130] 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, the downlink message is received; otherwise, the downlink message is discarded.
[0131] See Figure 6 As shown, in practice, multi-stage beam splitting can also be achieved through multiple beam splitters.
[0132] The above solution achieves passive optical transmission between Ethernet network devices by using a splitter for passive optical splitting. Furthermore, it transmits downlink messages via broadcast and uplink messages via different transmission periods corresponding to different access Ethernet devices. Each access Ethernet device sends uplink messages only during its designated transmission period, meaning different access Ethernet devices will send uplink messages at different times. This eliminates the need for active switches to exchange data between terminal devices and central office equipment. The use of a splitter for passive optical splitting avoids uplink message conflicts that can occur with passive optical splitting. This embodiment achieves passive optical splitting without the need for external chips.
[0133] The technical solution of this application and how it solves the above-mentioned technical problems will be described in detail below with reference to the accompanying drawings and specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0134] See Figure 7 As shown, a core Ethernet device provided in an embodiment of this application includes a first Ethernet MAC and a first optical module connected to the first Ethernet MAC:
[0135] The first optical module is used to receive uplink messages sent by the optical splitter; wherein the uplink messages are sent to the optical splitter by the access Ethernet devices during the corresponding transmission time period, and there is no overlap between the transmission time periods of the access Ethernet devices connected to the optical splitter.
[0136] In practice, the MAC layer uses the CSMA / CD access mechanism. If this mechanism is used, multiple access Ethernet devices may cause packet collisions when sending uplink packets to the optical splitter.
[0137] Based on this, this embodiment allocates different transmission time periods for different access Ethernet devices. The uplink adopts the Time Division Multiple Access (TDMA) mechanism, and the access Ethernet devices will not send uplink packets outside the transmission time period, thereby reducing conflicts with uplink packets sent by other access Ethernet devices.
[0138] The first Ethernet MAC is used to transmit downlink packets to the first optical module; the first optical module is also used to send the downlink packets to the optical splitter, so that the optical splitter sends the downlink packets to each connected access Ethernet device respectively.
[0139] In practice, the MAC layer uses the CSMA / CD access mechanism, which ensures that no message collisions occur during the transmission of downlink messages. Based on this, this embodiment uses downlink broadcasting to send downlink messages.
[0140] In this embodiment, the first Ethernet MAC 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.
[0141] In some optional implementations, the first Ethernet MAC in the core Ethernet device is also used for:
[0142] Determine the historical transmission traffic of each access Ethernet device;
[0143] Based on the historical transmission traffic of all access Ethernet devices, determine the transmission start time and transmission duration of each access Ethernet device.
[0144] The first downlink message, carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration, is transmitted to the first optical module.
[0145] In practice, since each access Ethernet device can only transmit uplink messages during its corresponding transmission period, it is necessary to allocate transmission periods to each access Ethernet device in a reasonable manner in order to meet the data transmission needs of each access Ethernet device as much as possible.
[0146] The historical transmission traffic of each access Ethernet device reflects the transmission needs of the access Ethernet device, such as how often data transmission is required and how long a single 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, i.e., the distribution of previous transmission traffic, when allocating transmission time periods.
[0147] The above scheme uses the historical transmission traffic of each access Ethernet device to reflect the transmission needs of the access Ethernet device, such as how often data transmission is required and how long a single data transmission takes. Based on the historical transmission traffic of all access Ethernet devices, the transmission start time and transmission duration (i.e., the corresponding transmission period) of each access Ethernet device can be reasonably determined. Then, the first downlink message carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration is transmitted to the optical splitter, so that the corresponding access Ethernet device can obtain its corresponding transmission period.
[0148] In some optional implementations, the first Ethernet MAC is further used for:
[0149] At preset intervals, a second downlink packet carrying the address of the access Ethernet device and a first transmission time is transmitted to the first optical module, so that the corresponding access Ethernet device, after receiving the second downlink packet, sends a target uplink packet carrying a first reception time and a second transmission time to the optical splitter; wherein, the first transmission time is the transmission time of the second downlink packet, the first reception time is the time when the corresponding access Ethernet device receives the second downlink packet, and the second transmission time is the time when the corresponding access Ethernet device sends the target uplink packet;
[0150] Based on the second receiving time, the first sending time, the first receiving time, and the second sending time, the target adjustment time of the corresponding access Ethernet device is determined; wherein, the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0151] 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 its clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0152] In practice, since access Ethernet devices need to refer to time to send uplink messages, the access Ethernet devices need to have a unified time standard. If the time standards of different access Ethernet devices are significantly different, uplink message conflicts may still occur.
[0153] Therefore, in this embodiment, time correction is performed on each Ethernet access device every preset time interval.
[0154] For example, the core Ethernet device subtracts the first transmission time from the second reception time to determine the response interval; the core Ethernet device subtracts the first reception time from the second transmission time to determine the processing time of the access Ethernet device; the response interval is subtracted from the processing time to obtain the uplink + downlink round-trip time, half of which is the single transmission duration; the core Ethernet device adds the single transmission duration to the first transmission time to obtain the theoretical reception time; the first reception time is compared with the theoretical reception time to obtain the time error; the sum of the current time, the time error, and the single transmission duration is determined as the target adjustment time.
[0155] The above method for determining the target adjustment time is only an example. Other methods can be used to determine the target adjustment time in practice, which will not be elaborated here.
[0156] The above scheme achieves time correction for each access Ethernet device by exchanging time-informed messages between the core Ethernet device and each access Ethernet device at preset intervals, thereby unifying the time standard of the access Ethernet devices and further reducing the occurrence of uplink message conflicts.
[0157] See Figure 8 As shown, the access Ethernet device provided in this application embodiment includes a second optical module connected to the second Ethernet MAC:
[0158] The second Ethernet MAC is used to put uplink packets into the packet queue; during the transmission period corresponding to the access Ethernet device, uplink packets are sequentially retrieved from the packet queue and transmitted to the second optical module.
[0159] 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.
[0160] In practice, the MAC layer uses the CSMA / CD access mechanism. If this mechanism is used, multiple access Ethernet devices may cause packet collisions when sending uplink packets to the optical splitter.
[0161] See Figure 9 As shown, when Ethernet access device 1 sends uplink message 1 (including data A + data B) at time T0, Ethernet access device 2 sends uplink message 2 (including data C + data D) at time T0'. There is an overlap between T0 and T0', and data B and data C collide, resulting in erroneous data E. Thus, the uplink message sent to the core Ethernet device through the optical splitter includes data A + data E + data D, instead of the aforementioned uplink message 1 and uplink message 2.
[0162] Based on this, this embodiment allocates different transmission time periods for different access Ethernet devices. The uplink adopts the Time Division Multiple Access (TDMA) mechanism. After receiving the uplink packet, the controller of the access Ethernet device does not send the uplink packet directly. Instead, it puts the uplink packet into the packet queue and sends the uplink packet only during the transmission time period. It will not send the uplink packet outside the transmission time period, thereby reducing the conflict with the uplink packets sent by other access Ethernet devices.
[0163] This embodiment does not limit the specific implementation method of the message queue, such as using a hardware queue, a software queue, or a combination of hardware and software queues.
[0164] See Figure 10 As shown, in this embodiment, a transmission time period T0 is allocated for access Ethernet device 1, and a transmission time period T1 is allocated for 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) in T0, and access Ethernet device 2 sends uplink message 2 (including data C + data D) in 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.
[0165] The second optical module 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, the downlink message is received; otherwise, the downlink message is discarded; 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;
[0166] There is no overlap between the transmission time periods of the various access Ethernet switching devices connected to the optical splitter.
[0167] As described above, this embodiment uses downlink broadcasting to send downlink messages. After receiving the downlink message, the splitter needs to send the downlink message to each connected access Ethernet device. The access Ethernet devices only need to receive their own downlink messages. Based on this, the access Ethernet devices need to determine whether the destination address of the downlink message is their own address. If it is their own address, it means that the downlink message was sent to them by the core Ethernet device, and they accept the downlink message. Otherwise, it means that the downlink message was sent to other access Ethernet devices by the core Ethernet device, and they discard the downlink message.
[0168] In some optional implementations, the second Ethernet MAC is specifically used for:
[0169] If the current time is during the transmission period of the access Ethernet device, then uplink packets are retrieved sequentially from the packet queue according to the storage order of the uplink packets in the packet queue.
[0170] For example, to avoid uplink message conflicts, access Ethernet devices cannot send uplink messages at any time. They can only send uplink messages during the corresponding transmission period. Therefore, uplink messages need to be placed in a message queue for buffering. If the current time is within the corresponding transmission period, the uplink message will be retrieved from the message queue in the order it was stored and sent to the splitter. If the current time is not within the corresponding transmission period, it needs to wait for the next transmission period.
[0171] The above scheme reduces uplink message collisions by buffering uplink messages in a message queue. If the current time is within the corresponding transmission period, the uplink message will be retrieved from the message queue in the order it was stored and sent to the splitter. This ensures that uplink messages are sent in an orderly manner.
[0172] In some optional implementations, before sequentially retrieving uplink packets from the packet queue, the second Ethernet MAC is further configured to:
[0173] Turn on the light source of the second optical module and the switch representing transmission in the second Ethernet MAC;
[0174] After the second optical module sends the uplink message to the optical splitter, the second Ethernet MAC is also used for:
[0175] If there are no uplink messages in the message queue, or the transmission period of the access Ethernet device ends, then the switch representing transmission in the second Ethernet MAC and the light source of the second optical module are turned off.
[0176] For example, the switch that represents transmission described above is a switch set on the transmission circuit (including the transmission circuit of the MAC layer and the transmission circuit of the physical layer).
[0177] In practice, if the light source of the optical module of the access Ethernet device and the switch representing transmission are always on, the access Ethernet device will send no data packets, which will cause optical interference to normal data packets.
[0178] Therefore, in this embodiment, the Ethernet access device only turns on the switch indicating transmission and the light source of the optical module when the access Ethernet device needs to send data. After determining that data transmission is not required, this embodiment also needs to turn off the switch indicating transmission in the second Ethernet MAC and the light source of the second optical module.
[0179] Since there is a message queue in the access Ethernet device, uplink messages may remain in the message queue when sending. In some optional implementations, the light source of the second optical module is turned on first, and then the switch representing transmission in the second Ethernet MAC is turned on. By turning on the light source of the second optical module first when the access Ethernet device needs to send data, the uplink messages in the message queue can be sent directly, thereby improving transmission efficiency.
[0180] In some alternative implementations, when no data needs to be sent, the switch representing transmission in the second Ethernet MAC is turned off first, and then the light source of the second optical module is turned off, thereby ensuring that no new uplink messages arrive at the second optical module.
[0181] The above solution ensures that the second optical module's light source remains on and the second optical module's light source remains on throughout the entire transmission process, enabling uplink packet transmission. This is achieved by keeping the second optical module's light source on and the second Ethernet MAC's light source off, except during the transmission process itself. This reduces the number of data packets that need to be transmitted on the Ethernet access device side, thus minimizing optical interference to other Ethernet access devices. When the Ethernet access device determines that it no longer needs to transmit data (there are no more uplink packets in the packet queue, or the corresponding transmission period has ended), the second optical module's light source remains on and the second Ethernet MAC's light source remains off.
[0182] Figure 11 An interactive flowchart of the first data transmission method provided in the embodiments of this application is shown below. Figure 11 As shown, it includes the following steps:
[0183] Step S1101: The core Ethernet device sends downlink packets to the optical splitter.
[0184] Step S1102: The optical splitter sends the downlink packets to each connected access Ethernet device.
[0185] 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, the downlink message is received; otherwise, the downlink message is discarded.
[0186] Step S1104: The access Ethernet device puts the uplink packet into the packet queue in the access Ethernet device.
[0187] Step S1105: The access Ethernet device sends the uplink packets in the packet queue to the optical splitter during the corresponding transmission period.
[0188] Step S1106: The optical splitter sends the uplink message to the core Ethernet device.
[0189] Steps S1101 to S1103 are the transmission process of downlink messages, and steps S1104 to S1106 are the transmission process of uplink messages. The uplink and downlink processes do not affect each other.
[0190] The above scheme achieves passive optical splitting through a splitter. In addition, uplink messages are transmitted via broadcast and downlink messages are transmitted via time-division multiple access. Different access Ethernet devices correspond to different transmission periods, and each access Ethernet device will send uplink messages only during its corresponding transmission period. In other words, different access Ethernet devices will send uplink messages at different transmission periods, which reduces the occurrence of uplink message conflicts when performing passive optical splitting through a splitter. This embodiment can achieve passive optical splitting without the need for other external chips.
[0191] In some optional implementations, step S1105 above can be implemented in the following ways:
[0192] If the current time is during the transmission period of the access Ethernet device, then uplink packets are sequentially retrieved from the packet queue according to the storage order of the uplink packets in the packet queue, and the uplink packets retrieved from the packet queue are sent to the optical splitter.
[0193] The above scheme reduces uplink message collisions by buffering uplink messages in a message queue. If the current time is within the corresponding transmission period, the uplink message will be retrieved from the message queue in the order it was stored and sent to the splitter. This ensures that uplink messages are sent in an orderly manner.
[0194] Figure 12 The interaction flowchart of the second data transmission method provided in the embodiments of this application is as follows: Figure 12 As shown, it includes the following steps:
[0195] Step S1201: The core Ethernet device sends a downlink message to the optical splitter.
[0196] Step S1202: The optical splitter sends the downlink packets to each connected access Ethernet device.
[0197] 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, the downlink message is received; otherwise, the downlink message is discarded.
[0198] Step S1204: The access Ethernet device puts the uplink packet into the packet queue in the access Ethernet device.
[0199] Step S1205: During the corresponding transmission period, 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 of the access Ethernet device.
[0200] Step S1206: The access Ethernet device sends the uplink packets in the packet queue to the optical splitter.
[0201] Step S1207: If there are no uplink messages in the message queue, or the transmission period of the access Ethernet device ends, the access Ethernet device turns off the switch representing transmission in the second Ethernet MAC and the light source of the second optical module.
[0202] Step S1208: The optical splitter sends the uplink message to the core Ethernet device.
[0203] There is no logical connection between steps S1207 and S1208, meaning that this embodiment does not limit the execution order of S1207 and S1208.
[0204] Steps S1201 to S1203 are the transmission process of downlink messages, and steps S1204 to S1208 are the transmission process of uplink messages. The uplink and downlink processes do not affect each other.
[0205] The above solution ensures that the second optical module's light source remains on and the second optical module's light source remains on throughout the entire transmission process, enabling uplink packet transmission. This is achieved by keeping the second optical module's light source on and the second Ethernet MAC's light source off, except during the transmission process itself. This reduces the number of data packets that need to be transmitted on the Ethernet access device side, thus minimizing optical interference to other Ethernet access devices. When the Ethernet access device determines that it no longer needs to transmit data (there are no more uplink packets in the packet queue, or the corresponding transmission period has ended), the second optical module's light source remains on and the second Ethernet MAC's light source remains off.
[0206] In some optional implementations, based on the above data transmission interaction method, before step S1101, the core Ethernet device further performs the following steps:
[0207] Determine the historical transmission traffic of each access Ethernet device;
[0208] Based on the historical transmission traffic of all access Ethernet devices, determine the transmission start time and transmission duration of each access Ethernet device.
[0209] Step S1101 is implemented in the following way:
[0210] The first downlink message, carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration, is sent to the optical splitter.
[0211] The above scheme uses the historical transmission traffic of each access Ethernet device to reflect the transmission needs of the access Ethernet device, such as how often data transmission is required and how long a single data transmission takes. Based on the historical transmission traffic of all access Ethernet devices, the transmission start time and transmission duration (i.e., the corresponding transmission period) of each access Ethernet device can be reasonably determined. Then, the first downlink message carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration is transmitted to the optical splitter, so that the corresponding access Ethernet device can obtain its corresponding transmission period.
[0212] In some optional implementations, in addition to the above data transmission interaction method, the core Ethernet device further performs the following steps:
[0213] At preset intervals, a second downlink packet carrying the address of the access Ethernet device and a first transmission time is sent to the optical splitter, so that the corresponding access Ethernet device, after receiving the second downlink packet, sends a target uplink packet carrying a first reception time and a second transmission time to the optical splitter; wherein, the first transmission time is the transmission time of the second downlink packet, the first reception time is the time when the corresponding access Ethernet device receives the second downlink packet, and the second transmission time is the time when the corresponding access Ethernet device sends the target uplink packet;
[0214] Based on the second receiving time, the first sending time, the first receiving time, and the second sending time, the target adjustment time of the corresponding access Ethernet device is determined; wherein, the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0215] 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 its clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0216] It is understood that steps S1101 to S1103 are the transmission process of downlink messages, steps S1104 to S1106 are the transmission process of uplink messages, and the above steps are the time adjustment process. The uplink process, downlink process, and time adjustment process do not affect each other.
[0217] The above scheme achieves time correction for each access Ethernet device by exchanging time-informed messages between the core Ethernet device and each access Ethernet device at preset intervals, thereby unifying the time standard of the access Ethernet devices and further reducing the occurrence of uplink message conflicts.
[0218] For details on the specific implementation of the above interaction process, please refer to the implementation of the core Ethernet device and the access Ethernet device. Repeated details will not be repeated here.
[0219] The data transmission method performed by the core Ethernet device in this embodiment includes the following steps:
[0220] Receive uplink messages sent by the optical splitter; wherein the uplink messages are sent to the optical splitter by the access Ethernet devices during their corresponding transmission periods, and there is no overlap between the transmission periods of the various access Ethernet devices connected to the optical splitter; and
[0221] Downlink messages are sent to the optical splitter so that the optical splitter sends the downlink messages to each connected access Ethernet device.
[0222] Some optional implementations also include:
[0223] Determine the historical transmission traffic of each access Ethernet device;
[0224] Based on the historical transmission traffic of all access Ethernet devices, determine the transmission start time and transmission duration of each access Ethernet device.
[0225] The first downlink message, carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration, is sent to the optical splitter.
[0226] Some optional implementations also include:
[0227] At preset intervals, a second downlink packet carrying the address of the access Ethernet device and a first transmission time is sent to the optical splitter, so that the corresponding access Ethernet device, after receiving the second downlink packet, sends a target uplink packet carrying a first reception time and a second transmission time to the optical splitter; wherein, the first transmission time is the transmission time of the second downlink packet, the first reception time is the time when the corresponding access Ethernet device receives the second downlink packet, and the second transmission time is the time when the corresponding access Ethernet device sends the target uplink packet;
[0228] Based on the second receiving time, the first sending time, the first receiving time, and the second sending time, the target adjustment time of the corresponding access Ethernet device is determined; wherein, the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0229] 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 its clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0230] For specific implementation details of the above embodiments, please refer to the implementation of the core Ethernet device described above; repeated details will not be repeated here.
[0231] The data transmission method executed by the controller of the Ethernet device in this embodiment includes the following steps:
[0232] The uplink packet is placed into the packet queue in the access Ethernet device, and the uplink packet in the packet queue is sent to the optical splitter during the corresponding transmission period of the access Ethernet device, so that the optical splitter sends the uplink packet to the core Ethernet device; and
[0233] 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;
[0234] There is no overlap between the transmission time periods of the various access Ethernet switching devices connected to the optical splitter.
[0235] In some optional implementations, sending uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device includes:
[0236] If the current time is during the transmission period of the access Ethernet device, then uplink packets are sequentially retrieved from the packet queue according to the storage order of the uplink packets in the packet queue, and the uplink packets retrieved from the packet queue are sent to the optical splitter.
[0237] In some optional implementations, before sending the uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, the method further includes:
[0238] Turn on the light source of the second optical module of the access Ethernet device and the switch representing transmission in the second Ethernet MAC of the access Ethernet device;
[0239] After sending the uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, the method further includes:
[0240] If there are no uplink messages in the message queue, or the transmission period of the access Ethernet device ends, then the switch representing transmission in the second Ethernet MAC and the light source of the second optical module are turned off.
[0241] For specific implementation details of the above embodiments, please refer to the implementation of the above-described access Ethernet device; repeated details will not be repeated here.
[0242] like Figure 13 As shown, based on the same inventive concept as the data transmission method on the core Ethernet device side, this application provides a first data transmission device 1300, applied to the controller of a core Ethernet device, the device comprising:
[0243] Uplink message receiving module 1301 is used to receive uplink messages sent by the optical splitter; wherein, the uplink message is sent to the optical splitter by the access Ethernet device in the corresponding transmission period, and there is no overlap between the transmission periods of the access Ethernet devices connected to the optical splitter;
[0244] The downlink message sending module 1302 is used to send downlink messages to the optical splitter, so that the optical splitter sends the downlink messages to each connected access Ethernet device respectively.
[0245] In some optional implementations, the downlink message sending module 1302 is further configured to:
[0246] Determine the historical transmission traffic of each access Ethernet device;
[0247] Based on the historical transmission traffic of all access Ethernet devices, determine the transmission start time and transmission duration of each access Ethernet device.
[0248] The first downlink message, carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration, is sent to the optical splitter.
[0249] In some optional implementations, the downlink message sending module 1302 is further configured to:
[0250] At preset intervals, a second downlink packet carrying the address of the access Ethernet device and a first transmission time is sent to the optical splitter, so that the corresponding access Ethernet device, after receiving the second downlink packet, sends a target uplink packet carrying a first reception time and a second transmission time to the optical splitter; wherein, the first transmission time is the transmission time of the second downlink packet, the first reception time is the time when the corresponding access Ethernet device receives the second downlink packet, and the second transmission time is the time when the corresponding access Ethernet device sends the target uplink packet;
[0251] Based on the second receiving time, the first sending time, the first receiving time, and the second sending time, the target adjustment time of the corresponding access Ethernet device is determined; wherein, the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0252] 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 its clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0253] For specific implementation details of the above embodiments, please refer to the implementation of the core Ethernet device described above; repeated details will not be repeated here.
[0254] like Figure 14 As shown, based on the same inventive concept as the data transmission method on the Ethernet access device side, this application provides a second data transmission device 1400, applied to the controller of the Ethernet access device, the device comprising:
[0255] The uplink message sending module 1401 is used to put uplink messages into the message queue in the access Ethernet device, and send the uplink messages in the message queue to the optical splitter during the sending period corresponding to the access Ethernet device, so that the optical splitter sends the uplink messages to the core Ethernet device.
[0256] Downlink message receiving module 1402 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, the downlink message is received; otherwise, the downlink message is discarded; 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.
[0257] There is no overlap between the transmission time periods of the various access Ethernet switching devices connected to the optical splitter.
[0258] In some optional implementations, the uplink message sending module 1401 is specifically used for:
[0259] If the current time is during the transmission period of the access Ethernet device, then uplink packets are sequentially retrieved from the packet queue according to the storage order of the uplink packets in the packet queue, and the uplink packets retrieved from the packet queue are sent to the optical splitter.
[0260] In some optional implementations, the uplink message sending module 1401 is further configured to:
[0261] Before sending the uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, turn on the light source of the second optical module of the access Ethernet device and the switch representing transmission in the second Ethernet MAC of the access Ethernet device.
[0262] After sending uplink packets from the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, if there are no uplink packets in the packet queue, or if the transmission period of the access Ethernet device ends, then the switch representing transmission in the second Ethernet MAC and the light source of the second optical module are turned off.
[0263] For specific implementation details of the above embodiments, please refer to the implementation of the above-described access Ethernet device; repeated details will not be repeated here.
[0264] Based on the same technical concept, this application also provides a controller 1500 for a core Ethernet device, such as... Figure 15 As shown, it includes at least one processor 1501 and a memory 1502 connected to at least one processor. In this embodiment, the specific connection medium between the processor 1501 and the memory 1502 is not limited. Figure 15 Taking the connection between processor 1501 and memory 1502 via bus 1503 as an example, the bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 15 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0265] The processor 1501 serves as the control center of the core Ethernet device's controller. It connects to various parts of the controller via various interfaces and lines, and performs data processing by running or executing instructions stored in the memory 1502 and accessing 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. The application processor primarily handles the operating system, user interface, and applications, while the modem processor primarily handles issuing instructions. It is understood that the 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 other embodiments, they may be implemented on separate chips.
[0266] 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 (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the data transmission method can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.
[0267] Memory 1502, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 1502 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disk, etc. Memory 1502 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 1502 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.
[0268] In this embodiment, the memory 1502 stores a computer program, which, when executed by the processor 1501, causes the processor 1501 to perform the following:
[0269] Receive uplink messages sent by the optical splitter; wherein the uplink messages are sent to the optical splitter by the access Ethernet devices during their corresponding transmission periods, and there is no overlap between the transmission periods of the various access Ethernet devices connected to the optical splitter; and
[0270] Downlink messages are sent to the optical splitter so that the optical splitter sends the downlink messages to each connected access Ethernet device.
[0271] In some alternative implementations, processor 1501 also performs:
[0272] Determine the historical transmission traffic of each access Ethernet device;
[0273] Based on the historical transmission traffic of all access Ethernet devices, determine the transmission start time and transmission duration of each access Ethernet device.
[0274] The first downlink message, carrying the address of the access Ethernet device, the corresponding transmission start time, and the transmission duration, is sent to the optical splitter.
[0275] In some alternative implementations, processor 1501 also performs:
[0276] At preset intervals, a second downlink packet carrying the address of the access Ethernet device and a first transmission time is sent to the optical splitter, so that the corresponding access Ethernet device, after receiving the second downlink packet, sends a target uplink packet carrying a first reception time and a second transmission time to the optical splitter; wherein, the first transmission time is the transmission time of the second downlink packet, the first reception time is the time when the corresponding access Ethernet device receives the second downlink packet, and the second transmission time is the time when the corresponding access Ethernet device sends the target uplink packet;
[0277] Based on the second receiving time, the first sending time, the first receiving time, and the second sending time, the target adjustment time of the corresponding access Ethernet device is determined; wherein, the second receiving time is the time when the core Ethernet device receives the target uplink message;
[0278] 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 its clock module from the current time to the corresponding target adjustment time after receiving the third downlink message.
[0279] Based on the same technical concept, embodiments of this application also provide a controller for accessing an Ethernet device, including 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 the following:
[0280] The uplink packet is placed into the packet queue in the access Ethernet device, and the uplink packet in the packet queue is sent to the optical splitter during the corresponding transmission period of the access Ethernet device, so that the optical splitter sends the uplink packet to the core Ethernet device; and
[0281] 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;
[0282] There is no overlap between the transmission time periods of the various access Ethernet switching devices connected to the optical splitter.
[0283] In some alternative implementations, the processor specifically executes:
[0284] If the current time is during the transmission period of the access Ethernet device, then uplink packets are sequentially retrieved from the packet queue according to the storage order of the uplink packets in the packet queue, and the uplink packets retrieved from the packet queue are sent to the optical splitter.
[0285] In some alternative implementations, the processor also performs:
[0286] Before sending the uplink packets in the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, turn on the light source of the second optical module of the access Ethernet device and the switch representing transmission in the second Ethernet MAC of the access Ethernet device.
[0287] After sending uplink packets from the packet queue to the optical splitter during the transmission period corresponding to the access Ethernet device, if there are no uplink packets in the packet queue, or if the transmission period of the access Ethernet device ends, then the switch representing transmission in the second Ethernet MAC and the light source of the second optical module are turned off.
[0288] Based on the same technical concept, embodiments of this application also provide a computer-readable storage medium storing a computer program executable by a processor, which, when run on the processor, causes the processor to perform the steps of the above-described data transmission method.
[0289] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0290] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0291] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0292] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0293] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0294] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A core Ethernet device, characterized by The first Ethernet media access controller (MAC) and a first optical module connected with the first Ethernet MAC; The first optical module is configured to receive an uplink message sent by the optical splitter; the uplink message is sent by an access Ethernet device to the optical splitter in a corresponding sending time period, and the corresponding sending time periods of the access Ethernet devices connected with the optical splitter do not cross each other; The first Ethernet MAC is configured to transmit a downlink message to the first optical module; 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 access Ethernet devices connected therewith.
2. The core Ethernet device of claim 1, wherein, The first Ethernet MAC is further configured to: determine historical transmission flows of the access Ethernet devices; determine a sending start time and a sending duration of each access Ethernet device based on the historical transmission flows of all the access Ethernet devices; transmit a first downlink message carrying an address of an access Ethernet device, a corresponding sending start time and a sending duration to the first optical module.
3. The core Ethernet device of claim 1 or 2, wherein, The first Ethernet MAC is further configured to: transmit a second downlink message carrying an address of an access Ethernet device and a first sending time to the first optical module every preset duration, so that the corresponding access Ethernet device sends a target uplink message carrying a first receiving time and a second sending time to the optical splitter after receiving the second downlink message; the first sending time is a sending time of the second downlink message, the first receiving time is a time when the corresponding access Ethernet device receives the second downlink message, and the second sending time is a time when the corresponding access Ethernet device sends the target uplink message; 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; the second receiving time is a time when the core Ethernet device receives the target uplink message; transmit a third downlink message carrying an address of an access Ethernet device and a corresponding target adjustment time to the first optical module, so that the corresponding access Ethernet device adjusts a clock module from a current time to the corresponding target adjustment time after receiving the third downlink message.
4. An access Ethernet device, comprising: The second Ethernet MAC and a second optical module connected with the second Ethernet MAC; The second Ethernet MAC is configured to put an uplink message into a message queue, and sequentially acquire the uplink message from the message queue and transmit the uplink message to the second optical module in a corresponding sending time period of the access Ethernet device; 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. The second optical module is further configured to determine whether a destination address of a downlink message sent by the optical splitter is an address corresponding to the access Ethernet device; if yes, 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 a downlink message sent by the core Ethernet device. The sending time periods corresponding to the access Ethernet switch devices connected to the optical splitter do not cross each other.
5. The access Ethernet device of claim 4, wherein, The second Ethernet MAC is specifically configured to: If the current time is within the sending time period of the access Ethernet device, sequentially obtain uplink messages from the message queue according to the storage order of the uplink messages in the message queue.
6. The access Ethernet device of claim 4 or 5, wherein, Before sequentially obtaining the uplink messages from the message queue, the second Ethernet MAC is further configured to: turn on a light source of the second optical module and a switch representing sending in the second Ethernet MAC; after the second optical module sends the uplink messages to the optical splitter, the second Ethernet MAC is further configured to: if there is no uplink message in the message queue or the sending time period of the access Ethernet device ends, turn off the switch representing sending in the second Ethernet MAC and the light source of the second optical module.
7. An optically passive switching system, characterized by comprise: a core Ethernet device, at least one optical splitter and an access Ethernet device; the access Ethernet device is configured to send uplink messages to a corresponding optical splitter within a corresponding sending time period; wherein the sending time period is allocated by the core Ethernet device for each access Ethernet device connected to the optical splitter, and the sending time periods corresponding to the access Ethernet switch devices connected to the optical splitter do not cross each other; the optical splitter is configured to send the uplink messages to the core Ethernet device; the core Ethernet device is further configured to send downlink messages to a corresponding optical splitter; the optical splitter is further configured to send the downlink messages to each connected access Ethernet device; the access Ethernet device is further configured to determine whether a destination address of a downlink message sent by the optical splitter is an address corresponding to the access Ethernet device; if yes, receive the downlink message; otherwise, discard the downlink message.
8. The system of claim 7, wherein, If there are multiple optical splitters, different optical splitters are connected to different optical modules in the core Ethernet device.
9. A data transmission method, characterized by, The method is applied to a core Ethernet device, and the method comprises: receiving uplink messages sent by an optical splitter; wherein the uplink messages are sent by an access Ethernet device to the optical splitter within a corresponding sending time period, and the sending time periods corresponding to the access Ethernet switch devices connected to the optical splitter do not cross each other; and sending downlink messages to the optical splitter, so that the optical splitter sends the downlink messages to each connected access Ethernet device.
10. The method of claim 9, wherein, further comprise: determining historical transmission flows of each access Ethernet device; based on the historical transmission flows of all access Ethernet devices, determining a sending start time and a sending time length of each access Ethernet device respectively; sending a first downlink message carrying an address of an access Ethernet device, a corresponding sending start time and a sending time length to the optical splitter.
11. The method of claim 9 or 10, wherein, further comprise: Every preset time length, a second downstream message carrying an address of an access Ethernet device and a first sending time is sent to the optical splitter, so that the corresponding access Ethernet device sends a target upstream message carrying a first receiving time and a second sending time to the optical splitter after receiving the second downstream message; wherein the first sending time is a sending time of the second downstream message, the first receiving time is a time when the corresponding access Ethernet device receives the second downstream message, and the second sending time is a time when the corresponding access Ethernet device sends the target upstream message; Based on a second receiving time, the first sending time, the first receiving time and the second sending time, a target adjustment time of the corresponding access Ethernet device is determined; wherein the second receiving time is a time when the core Ethernet device receives the target upstream message; A third downstream 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 downstream message.
12. A data transmission method, characterized by, Applied to an access Ethernet device, the method comprises: Putting an upstream message into a message queue in the access Ethernet device, and sending the upstream message in the message queue to an optical splitter in a sending period corresponding to the access Ethernet device, so that the optical splitter sends the upstream message to a core Ethernet device; and Determining whether a destination address of a downstream message sent by the optical splitter is an address corresponding to the access Ethernet device; if yes, receiving the downstream message; otherwise, discarding the downstream message; wherein the downstream message is sent by the optical splitter to each access Ethernet device connected respectively after receiving a downstream message sent by the core Ethernet device; Wherein, there is no intersection between the sending periods corresponding to each access Ethernet switch device connected by the optical splitter.
13. The method of claim 12, wherein, Sending the upstream message in the message queue to the optical splitter in the sending period corresponding to the access Ethernet device comprises: If the current time is in the sending period of the access Ethernet device, sequentially obtaining the upstream message from the message queue according to the storage order of the upstream message in the message queue, and sending the upstream message obtained from the message queue to the optical splitter.
14. The method of claim 12 or 13, wherein, Before sending the upstream message in the message queue to the optical splitter in the sending period corresponding to the access Ethernet device, further comprising: Turning on a light source of a second optical module of the access Ethernet device and a switch representing sending in a second Ethernet MAC of the access Ethernet device; After sending the upstream message in the message queue to the optical splitter in the sending period corresponding to the access Ethernet device, further comprising: If there is no upstream message in the message queue, or the sending period of the access Ethernet device ends, turning off the switch representing sending in the second Ethernet MAC and the light source of the second optical module.
15. A computer-readable storage medium, characterized in that, which computer program can be executed by a computer having a processor, and when the program is run on the computer, the computer is caused to perform the method according to any one of claims 9-11, or any one of claims 12-14.
Citation Information
Patent Citations
Serial port server, protocol conversion chip and data transmission method
CN102624738A
Method for processing message and network element equipment
CN102843293A