Data forwarding method based on vehicle-mounted passive optical network and related device
By employing a data forwarding method using an onboard passive optical network in intelligent connected vehicles, and utilizing the mapping relationship between the ONU gateway and the OLT, multiple frames of packets are aggregated and encapsulated into GEM frames. This solves the problems of low efficiency and uncontrollable latency in low-speed data forwarding in intelligent connected vehicles, and achieves efficient and low-latency data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHONGQING CHANGAN AUTOMOBILE CO LTD
- Filing Date
- 2026-03-31
- Publication Date
- 2026-06-23
AI Technical Summary
The existing control data services of intelligent connected vehicles suffer from low-speed data forwarding efficiency and uncontrollable latency due to heterogeneous protocols and complex layers, making it difficult to meet the requirements of high real-time performance and efficient collaboration.
The data forwarding method based on the vehicle-mounted passive optical network (PON) is adopted. The first ONU gateway receives multiple frames of messages, groups and encapsulates them into uplink GEM frames, generates uplink burst frames, and sends them directly to the OLT. The OLT generates downlink GEM frames according to the mapping relationship, and finally transmits them to the corresponding physical subnet through the second ONU gateway.
It enables efficient and low-latency transmission of low-speed data on the vehicle-mounted PON network, improves bandwidth utilization, reduces system resource consumption, and meets the high real-time requirements of vehicle-mounted scenarios.
Smart Images

Figure CN121940674B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of vehicle communication technology, specifically to a data forwarding method and related apparatus based on an in-vehicle passive optical network. Background Technology
[0002] As the electronic and electrical architecture of intelligent connected vehicles evolves towards centralization and domain control, vehicular networks place higher demands on high bandwidth, low latency, and cross-domain collaborative capabilities for data transmission. Passive Optical Networks (PONs), as a next-generation vehicular communication technology, possess advantages such as point-to-multipoint topology, high bandwidth, and resistance to electromagnetic interference, making them promising candidates for application in the vehicle's data backbone, particularly suitable for uplink transmission of high-bandwidth video data.
[0003] Currently, control data services in intelligent connected vehicles are typically carried by various physical subnets based on different communication protocols, such as Controller Area Network (CAN), Local Interconnect Network (LIN), and in-vehicle Ethernet. These physical subnets, based on these communication protocols, are responsible for critical vehicle functions in traditional in-vehicle network architectures, such as engine control, body electronics, and safety systems. However, the heterogeneous protocols and complex hierarchical structures between different physical subnets mean that low-speed data forwarding often relies on gateways for protocol conversion and routing, resulting in low forwarding efficiency, high computational resource consumption, and uncontrollable end-to-end latency. This makes it difficult to meet the high real-time performance and efficient collaboration requirements of intelligent connected vehicle domain control architectures.
[0004] Therefore, how to utilize vehicle-mounted PON to achieve efficient and low-latency transmission of low-speed data has become a key technical problem that urgently needs to be solved. Summary of the Invention
[0005] One of the objectives of this invention is to provide a data forwarding method and related apparatus based on a vehicle-mounted passive optical network (PON) to achieve efficient and low-latency transmission of low-speed data on a vehicle-mounted PON.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0007] In a first aspect, the present invention provides a data forwarding method based on vehicular PON, applied to a first optical network unit (ONU) gateway, which is connected to an optical line terminal (OLT) and a first physical subnet, respectively, for sending data transmitted by the first physical subnet to the OLT. The method includes: receiving multiple frames of packets transmitted by the first physical subnet, each frame of the multiple frames carrying a target packet identifier; based on a first mapping relationship between the packet identifier and the GEM channel identifier, grouping the multiple frames of packets according to the target packet identifier of each frame of packets to obtain different packet groups, each packet group including at least one frame of packets; encapsulating the multiple frames of packets in each packet group into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each packet group, the multiple frames of packets sharing the same GEM frame header; encoding the uplink GEM frame corresponding to each packet group to generate an uplink burst frame, and sending the uplink burst frame to the OLT.
[0008] Furthermore, based on the first mapping relationship between the message identifier and the GEM channel identifier, multiple frames of messages are grouped according to the target message identifier of each frame of messages to obtain different message groups, including: determining the first target GEM channel identifier corresponding to each frame of messages according to the target message identifier of each frame of messages and the first mapping relationship; and grouping messages corresponding to the same first target GEM channel identifier into a group to obtain different message groups.
[0009] Furthermore, multiple frames in each group of messages are encapsulated into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. This includes: concatenating multiple frames in each group of messages to generate a Service Data Unit (SDU) corresponding to each group of messages; for each SDU, encapsulating the SDU and the corresponding first target GEM channel identifier into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages; wherein, the SDU is the payload of the uplink GEM frame, and the first target GEM channel identifier is the frame header of the uplink GEM frame.
[0010] Furthermore, the multiple frames in each group of messages are concatenated to generate the SDU corresponding to each group of messages. This includes: concatenating the multiple frames in each group of messages to obtain the concatenated message; determining whether the byte length of the concatenated message is greater than a preset byte length; if the byte length is greater than the preset byte length, then the concatenated message is segmented according to the preset byte length to obtain at least two segmented messages, and each segmented message is identified as an SDU; if the byte length is less than or equal to the preset byte length, then the concatenated message is identified as an SDU.
[0011] Furthermore, the uplink GEM frame corresponding to each group of messages is encoded to generate an uplink burst frame, including: based on the second mapping relationship between the GEM channel identifier and the transmission container, determining the target transmission container corresponding to the uplink GEM frame according to the first target GEM channel identifier in the uplink GEM frame; sending the uplink GEM frame to the target transmission container for queuing; obtaining the uplink GEM frame corresponding to the same allocated time slot, and encoding the corresponding uplink GEM frame to generate an uplink burst frame.
[0012] Secondly, the present invention provides a data forwarding method based on vehicular PON, applied to an OLT, which is connected to a first ONU gateway and a second ONU gateway respectively. The method includes: receiving an uplink burst frame sent by the first ONU gateway, wherein the uplink burst frame is obtained by the first ONU gateway grouping multiple frames of packets transmitted from a first physical subnet based on a first mapping relationship between a packet identifier and a GEM channel identifier, and encapsulating and encoding each group of packets; decoding the uplink burst frame to obtain each uplink GEM frame in the uplink burst frame; determining a second target GEM channel identifier based on a third mapping relationship between the ONU gateway identifier and the GEM channel identifier, and according to the identifier of the second ONU gateway and the third mapping relationship; combining the second target GEM channel identifier with the payload of each uplink GEM frame respectively to generate a downlink GEM frame corresponding to each uplink GEM frame, and sending the downlink GEM frame to the second ONU gateway.
[0013] Furthermore, sending downlink GEM frames to the second ONU gateway includes: determining the target PON port based on the fourth mapping relationship between the GEM channel identifier and the PON port, according to the second target GEM channel identifier; and sending downlink GEM frames to the second ONU gateway through the target PON port.
[0014] Thirdly, the present invention provides a data forwarding method based on vehicle-mounted PON, applied to a second ONU gateway, the second ONU gateway being connected to an OLT and a second physical subnet respectively, for transmitting data sent by the OLT to the second physical subnet. The method includes: receiving downlink GEM frames sent by the OLT, the downlink GEM frames being obtained by the OLT performing data forwarding processing on received uplink burst frames, the uplink burst frames being obtained by the first ONU gateway grouping multiple frames of packets received from the first physical subnet based on a first mapping relationship between packet identifiers and GEM channel identifiers, and encapsulating and encoding each group of packets; parsing the downlink GEM frames to obtain the SDU corresponding to the downlink GEM frames; and transmitting the SDU to the second physical subnet.
[0015] Fourthly, the present invention provides a data forwarding system based on vehicle-mounted PON, comprising: an OLT, and a first ONU gateway and a second ONU gateway respectively connected to the OLT, wherein the first ONU gateway is connected to a first physical subnet and the second ONU gateway is connected to a second physical subnet;
[0016] The first ONU gateway is used to perform the data forwarding method provided in the first aspect above;
[0017] OLT is used to perform the data forwarding method as provided in the second aspect above;
[0018] The second ONU gateway is used to perform the data forwarding method provided in the third aspect above.
[0019] Fifthly, the present invention provides a vehicle, comprising: a vehicle body and a data forwarding system based on an onboard passive optical network as provided in the fourth aspect above.
[0020] Sixthly, the present invention provides a data forwarding device based on vehicle-mounted PON, applied to a first ONU gateway, the first ONU gateway being connected to both an OLT and a first physical subnet, for sending data transmitted from the first physical subnet to the OLT. The device includes:
[0021] The receiving module is used to receive multiple frames of messages transmitted from the first physical subnet. Each frame of the multiple messages carries a target message identifier.
[0022] The grouping module is used to group multiple frames of messages based on the first mapping relationship between the message identifier and the GEM channel identifier, according to the target message identifier of each frame of messages, to obtain different message groups, and each message group includes at least one frame of messages.
[0023] The data encapsulation module is used to encapsulate multiple frames of messages in each group into the same uplink GEM frame, so as to obtain the uplink GEM frame corresponding to each group of messages. Multiple frames of messages share the same GEM frame header.
[0024] The processing module is used to encode the uplink GEM frame corresponding to each group of messages, generate uplink burst frames, and send the uplink burst frames to the OLT.
[0025] In a seventh aspect, the present invention provides a data forwarding device based on vehicle-mounted PON, applied to an OLT, wherein the OLT is connected to a first ONU gateway and a second ONU gateway respectively, comprising:
[0026] The receiving module is used to receive uplink burst frames sent by the first ONU gateway. The uplink burst frames are obtained by the first ONU gateway grouping the received multi-frame messages transmitted from the first physical subnet based on the first mapping relationship between the message identifier and the GEM channel identifier, and encapsulating and encoding each group of messages.
[0027] The decoding module is used to decode the uplink burst frames to obtain each uplink GEM frame in the uplink burst frames;
[0028] The determination module is used to determine the second target GEM channel identifier based on the third mapping relationship between the ONU gateway identifier and the GEM channel identifier, according to the identifier of the second ONU gateway and the third mapping relationship;
[0029] The forwarding module is used to combine the second target GEM channel identifier with the payload of each uplink GEM frame to generate the downlink GEM frame corresponding to each uplink GEM frame, and send the downlink GEM frame to the second ONU gateway.
[0030] Eighthly, the present invention provides a data forwarding device based on vehicle-mounted PON, applied to a second ONU gateway, the second ONU gateway being connected to both an OLT and a second physical subnet, for transmitting data sent by the OLT to the second physical subnet, including:
[0031] The receiving module is used to receive downlink GEM frames sent by the OLT. The downlink GEM frames are obtained by the OLT through data forwarding processing of the received uplink burst frames. The uplink burst frames are obtained by the first ONU gateway grouping the received multi-frame packets transmitted from the first physical subnet based on the first mapping relationship between the packet identifier and the GEM channel identifier, and encapsulating and encoding each group of packets.
[0032] The parsing module is used to parse downlink GEM frames to obtain the SDU corresponding to the downlink GEM frames;
[0033] The transmission module is used to transmit SDUs to the second physical subnet.
[0034] In a ninth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, are used to implement the data forwarding method provided above.
[0035] In a tenth aspect, the present invention provides a computer program product, comprising: a computer program that, when executed by a processor, implements the data forwarding method provided above.
[0036] The beneficial effects of this invention are:
[0037] This invention provides a data forwarding method and related apparatus based on a vehicular passive optical network (PON). In this method, a first ONU gateway receives multiple frames of packets transmitted from a first physical subnet. Based on a first mapping relationship between packet identifiers and GEM channel identifiers, and according to the target packet identifier of each frame, the multiple frames are grouped into different packet groups. Each packet group includes at least one frame. The multiple frames in each group are encapsulated into the same uplink GEM frame, allowing the multiple frames to share the same GEM frame header, resulting in the uplink GEM frame corresponding to each packet group. The uplink GEM frame corresponding to each packet group is then encoded to generate an uplink burst frame, which is sent to the OLT. This invention, by aggregating and encapsulating the received multiple frames into the same uplink GEM frame, and allowing the multiple frames to share the same GEM frame header, effectively reduces the frame header overhead during low-speed data transmission and improves the bandwidth utilization of the vehicular PON network. Meanwhile, the first ONU gateway directly completes message packetization, uplink GEM frame encapsulation, and uplink burst frame encoding, and sends the uplink burst frames to the OLT, reducing latency and system resource consumption. This adapts to the high real-time requirements of low-speed data (such as sensors and control signaling) in vehicle scenarios, thereby achieving efficient and low-latency transmission of low-speed data on the vehicle PON network. Attached Figure Description
[0038] Figure 1 This is a schematic diagram of the structure of a data forwarding system based on vehicle-mounted PON provided in an embodiment of the present invention;
[0039] Figure 2 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 1 ;
[0040] Figure 3 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 2 ;
[0041] Figure 4 A schematic diagram illustrating the data encapsulation rules provided in an embodiment of the present invention;
[0042] Figure 5 A schematic diagram of the structure of the ONU gateway provided in an embodiment of the present invention. Figure 1 ;
[0043] Figure 6 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 3 ;
[0044] Figure 7 This is a schematic diagram of the structure of an OLT provided in an embodiment of the present invention;
[0045] Figure 8 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 4 ;
[0046] Figure 9 A schematic diagram of the structure of the ONU gateway provided in an embodiment of the present invention. Figure 2 ;
[0047] Figure 10 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 5 ;
[0048] Figure 11 A schematic diagram of the structure of the data forwarding device based on vehicle-mounted PON provided in an embodiment of the present invention. Figure 1 ;
[0049] Figure 12 A schematic diagram of the structure of the data forwarding device based on vehicle-mounted PON provided in an embodiment of the present invention. Figure 2 ;
[0050] Figure 13 A schematic diagram of the structure of the data forwarding device based on vehicle-mounted PON provided in an embodiment of the present invention. Figure 3 .
[0051] The accompanying drawings have illustrated specific embodiments of the invention, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the invention in any way, but rather to illustrate the concept of the invention to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0052] The embodiments of the present invention will be described below with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. It should be understood that the preferred embodiments are only for illustrating the present invention and not for limiting the scope of protection of the present invention.
[0053] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. Therefore, the drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the form, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0054] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with some aspects of the invention as detailed in the appended claims.
[0055] The terms "comprising," "including," or any other variations thereof are intended to cover a non-exclusive inclusion, such that a process, method, product, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, product, or apparatus. Without further limitation, the presence of additional identical or equivalent elements in the process, method, product, or apparatus that includes elements is not excluded. For example, the use of terms such as "first," "second," etc., to indicate names does not imply any particular order.
[0056] To address the aforementioned issues, the first ONU gateway in this embodiment of the invention aggregates and encapsulates multiple received frames into a single uplink GEM frame, enabling these frames to share the same GEM frame header. This effectively reduces header overhead during low-speed data transmission and improves bandwidth utilization in the vehicular PON network. Simultaneously, the first ONU gateway directly performs message grouping, uplink GEM frame encapsulation, and uplink burst frame encoding, then sends the uplink burst frame to the OLT, reducing latency and system resource consumption. This adapts to the high real-time requirements of low-speed data (such as sensor and control signaling) in vehicular scenarios, thereby achieving efficient and low-latency transmission of low-speed data on the vehicular PON network.
[0057] The application scenarios of the embodiments of the present invention will be described below first.
[0058] The data forwarding method based on vehicle-mounted PON provided in this invention is applicable to the vehicle-mounted PON architecture of intelligent connected vehicles, where multiple ONU nodes (such as cameras, domain controllers, and gateways) are connected through an OLT to form a point-to-multipoint backbone network. This backbone network needs to simultaneously carry high-bandwidth video data (such as camera data) and low-speed control data (such as CAN / CAN FD data). For example, engine control data from the powertrain domain needs to be transmitted in real time to the instrument display system in the cockpit domain, or body electronic control data from the body domain needs to be coordinated with the decision-making module in the intelligent driving domain. In this scenario, the first ONU gateway needs to encapsulate the message into a GEM frame and transmit it to the OLT through the PON uplink channel. The OLT then forwards the message to the second ONU gateway according to the forwarding rules, and finally sends it to the corresponding controller node through the physical subnet interface.
[0059] The application scenarios mentioned above are only some examples. Those skilled in the art can expand the application according to specific needs and scenarios. The embodiments of the present invention do not impose specific limitations in this regard.
[0060] Figure 1 This is a schematic diagram of the structure of a data forwarding system based on vehicle-mounted PON provided in an embodiment of the present invention. Figure 1 As shown, the data forwarding system based on vehicle-mounted PON includes an OLT, and a first ONU gateway and a second ONU gateway connected to the OLT respectively. The first ONU gateway is connected to the first physical subnet, and the second ONU gateway is connected to the second physical subnet.
[0061] The first ONU gateway is used to send data transmitted from the first physical subnet to the OLT, and the second ONU gateway is used to transmit data sent by the OLT to the second physical subnet, so as to achieve low-latency and high-efficiency transmission of cross-physical subnet data in vehicle-mounted PON.
[0062] For example, the OLT can be the central computing platform of the vehicle.
[0063] like Figure 1 As shown, for example, the OLT is connected to the first ONU gateway through optical splitter 1, that is, the first ONU gateway accesses the vehicle PON backbone network through optical splitter 1; the OLT is connected to the second ONU gateway through optical splitter 2, that is, the second ONU gateway accesses the vehicle PON backbone network through optical splitter 2.
[0064] like Figure 1 As shown, the first ONU gateway is connected to multiple communication protocol lines, each of which is connected to multiple controller nodes. These multiple communication protocol lines and their connected controller nodes together form the first physical subnet in the vehicle's electronic and electrical architecture. Similarly, the second ONU gateway is connected to multiple communication protocol lines, each of which is connected to multiple controller nodes. These multiple communication protocol lines and their connected controller nodes together form the second physical subnet in the vehicle's electronic and electrical architecture. The communication protocol lines can be CAN bus or CANFD bus, and the corresponding controller nodes can be CAN-type or CANFD-type controller nodes. Both the first and second physical subnets are low-speed control subnets within the vehicle's electronic and electrical architecture. This embodiment of the invention does not limit the type of communication protocol lines, the number of corresponding controller nodes, or the number of communication protocol lines connected to the same ONU gateway; these can be determined based on actual application requirements.
[0065] like Figure 1As shown, ONU domain controller 1 is connected to the vehicle-mounted PON backbone network via optical splitter 1, and ONU domain controller 2 is connected to the vehicle-mounted PON backbone network via optical splitter 2. It should be noted that in the vehicle-mounted PON-based data forwarding system provided in this embodiment of the invention, vehicle body camera nodes, cockpit display screen nodes, gateway controller nodes, driver and passenger monitoring camera nodes, augmented reality head-up display (AR-HUD) nodes, instrument cluster nodes, and domain controller nodes can all be connected to the vehicle-mounted PON backbone network as ONU nodes. This embodiment of the invention does not limit the number or type of ONU nodes connected to the vehicle-mounted PON backbone network; the specific number or type can be determined according to actual application requirements.
[0066] Based on the data forwarding system for vehicular PON provided in this embodiment of the invention, a possible implementation of low-latency and high-efficiency data transmission across physical subnets in vehicular PON is as follows: A first ONU gateway receives multiple frames of packets transmitted from a first physical subnet, aggregates and encapsulates these multiple frames into a single uplink GEM frame to obtain the corresponding uplink GEM frame, encodes the uplink GEM frame to obtain an uplink burst frame, and sends the uplink burst frame to the OLT; the OLT decodes the received uplink burst frame into individual uplink GEM frames according to the set data forwarding rules, generates downlink GEM frames corresponding to each uplink GEM frame, and forwards the downlink GEM frame to a second ONU gateway; the second ONU gateway parses the received downlink GEM frame to obtain the corresponding multiple frames of packets, and transmits these multiple frames to the second physical subnet, thereby achieving low-latency and high-efficiency data transmission across physical subnets in vehicular PON.
[0067] The following is based on Figure 1 The first ONU gateway shown is the execution entity. The specific implementation of the data forwarding method based on vehicle-mounted PON provided in this embodiment of the invention will be described in detail with reference to specific embodiments.
[0068] Figure 2 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 1 .like Figure 2 As shown, a specific implementation of this data forwarding method based on vehicle-mounted PON may include the following steps:
[0069] S201, Receive multiple frames of messages transmitted from the first physical subnet, each frame of the multiple frames carrying a target message identifier.
[0070] For example, when the first physical subnet is a physical subnet based on the CAN communication protocol or the CANFD communication protocol, the corresponding multi-frame messages are multi-frame CAN messages or multi-frame CANFD messages. These multi-frame messages can be messages transmitted on the same communication protocol bus or messages transmitted on multiple communication protocol buses.
[0071] For example, the message identifier can be an identifier (ID) carried in the message transmitted in the first physical subnet, used to characterize the message attribute information. The message attribute information includes, but is not limited to, the message source (such as the controller node that sent the message), the message type (such as vehicle control message, sensor data message, status feedback message, and fault diagnosis message, etc.), and the data priority.
[0072] In this step, one possible implementation is: the first ONU gateway receives multiple frames of messages transmitted by the first physical subnet through the physical interface.
[0073] S202, based on the first mapping relationship between the message identifier and the GEM channel identifier, group multiple frames of messages according to the target message identifier of each frame of messages to obtain different message groups, each group of messages including at least one frame of messages.
[0074] For example, the GEM port ID is a number used in the vehicular PON protocol to identify GEM channels. It is used to distinguish different service channels between the OLT and ONU, and to isolate, schedule, and forward different services or different message flows. For instance, it can be used to distinguish and schedule different service channels between the OLT and the first ONU gateway or the second ONU gateway.
[0075] Table 1 shows the first mapping relationship between message identifiers and GEM channel identifiers provided in the embodiments of the present invention.
[0076] Table 1
[0077]
[0078] As shown in Table 1, when the message identifier is a, b, or c, its corresponding GEM channel identifier is A; when the message identifier is d, its corresponding GEM channel identifier is B; when the message identifier is e, its corresponding GEM channel identifier is C; and when the message identifiers are f or g, their corresponding GEM channel identifiers are D. That is, multiple different message identifiers can correspond to the same GEM channel identifier, or one message identifier can correspond to one GEM channel identifier, etc.
[0079] It should be noted that the first mapping relationship between the message identifier and the GEM channel identifier shown in Table 1 is only an example. The embodiments of the present invention do not limit the representation of the message identifier, the representation of the GEM channel identifier, or the specific correspondence of the first mapping relationship. The specific correspondence can be determined according to the actual application requirements.
[0080] Optionally, in one possible implementation, the first mapping relationship between the packet identifier and the GEM channel identifier can adopt a dynamic allocation strategy, which is dynamically adjusted according to historical service traffic patterns and current network load. For example, when a surge in packet traffic transmitted in the first physical subnet is detected, the number of GEM channel identifiers corresponding to the first physical subnet is automatically expanded, and the mapping rules and forwarding paths are synchronously updated at the OLT. This dynamic allocation strategy can adjust the mapping table in real time through hardware logic, reducing the complexity of manual configuration and improving the adaptive scheduling capability and transmission efficiency of the vehicle-mounted PON.
[0081] Alternatively, in another possible implementation, a first mapping relationship between the message identifier and the GEM channel identifier can be dynamically generated based on the message identifier and the transmission and reception relationship across physical subnets.
[0082] S203, encapsulate multiple frames in each group of messages into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages, and the multiple frames of messages share the same GEM frame header.
[0083] For example, in one possible implementation, for each group of messages, if the group of messages contains only one frame, then the group of messages is directly identified as an SDU; if the group of messages contains multiple frames, then the multiple frames are spliced together according to the chronological order of the multiple frames to obtain a spliced message, and the spliced message is identified as an SDU. Each SDU is then encapsulated to obtain the uplink GEM frame corresponding to each group of messages.
[0084] Optionally, when encapsulating data for each SDU (such as an SDU obtained by concatenating multiple frames), the method further includes: if the byte length corresponding to the SDU is greater than a preset byte length, then the SDU is divided into at least two SDUs, wherein one SDU has a byte length less than or equal to the preset byte length, and the bytes corresponding to the other SDUs are equal to the preset byte length. Each of the divided SDUs is then encapsulated into the same uplink GEM frame, resulting in an uplink GEM frame corresponding to each SDU. The preset byte length can be the length of the payload in a GEM frame.
[0085] S204: Encode the uplink GEM frame corresponding to each group of messages, generate uplink burst frames, and send the uplink burst frames to the OLT.
[0086] For example, in one possible implementation, for each group of messages, the uplink GEM frames corresponding to the same allocation time slot are encoded to generate uplink burst frames corresponding to the same allocation time slot, and the corresponding uplink burst frames are sent to the OLT in the corresponding allocation time slot so that the OLT forwards the corresponding multi-frame messages to the second ONU gateway.
[0087] In this embodiment of the invention, the first ONU gateway aggregates and encapsulates multiple received frames into a single uplink GEM frame, allowing multiple frames to share the same GEM frame header. This effectively reduces frame header overhead during low-speed data transmission and improves bandwidth utilization of the vehicular PON network. Simultaneously, the first ONU gateway directly performs message grouping, uplink GEM frame encapsulation, and uplink burst frame encoding, and sends the uplink burst frame to the OLT, reducing latency and system resource consumption. This adapts to the high real-time requirements of low-speed data (such as sensor and control signaling) in vehicular scenarios, thereby achieving efficient and low-latency transmission of low-speed data on the vehicular PON network.
[0088] Optionally, step S202, based on the first mapping relationship between the message identifier and the GEM channel identifier, groups multiple frames of messages according to the target message identifier of each frame of messages to obtain different message groups. One possible implementation is as follows: determine the first target GEM channel identifier corresponding to each frame of messages according to the target message identifier of each frame of messages and the first mapping relationship; group the messages corresponding to the same first target GEM channel identifier into a group to obtain different message groups.
[0089] For example, as shown in Table 1 above, packets whose first target GEM channel identifiers are all A are grouped together.
[0090] Understandably, by grouping multiple frames of packets based on the first mapping relationship between the packet identifier and the GEM channel identifier, the aggregation of multiple frames of packets can be achieved. Then, data encapsulation can be performed based on the aggregated packets. This can effectively reduce the frame header overhead in the low-speed data transmission process and improve the bandwidth utilization of the vehicle-mounted PON. At the same time, the automatic mapping between the packet identifier and the GEM channel identifier reduces the complexity of manually configuring the routing table and enhances the transparency of cross-physical subnet communication.
[0091] The following is combined with Figure 3 The specific implementation of step S203, which encapsulates multiple frames in each group of messages into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages, is described in detail.
[0092] Figure 3 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 2 .like Figure 3As shown, this data forwarding method encapsulates multiple frames in each group of packets into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of packets. A specific implementation may include the following steps:
[0093] S301, concatenates multiple frames in each group of messages to generate the SDU corresponding to each group of messages.
[0094] For example, if a group of messages includes multiple frames, the multiple frames are spliced together in chronological order to obtain a spliced message, and an SDU corresponding to the spliced message is generated based on the spliced message.
[0095] Understandably, if a group of messages consists of only one frame, then that message is directly assigned an SDU.
[0096] Optionally, one possible implementation of this step is as follows: concatenate multiple frames of messages in each group of messages to obtain concatenated messages; determine whether the byte length of the concatenated messages is greater than a preset byte length; if the byte length is greater than the preset byte length, then divide the concatenated messages according to the preset byte length to obtain at least two segmented messages, and determine each segmented message as an SDU; if the byte length is less than or equal to the preset byte length, then determine the concatenated messages as an SDU.
[0097] For example, the preset byte length is similar to that described above, and will not be repeated here.
[0098] It is understandable that the byte length corresponding to each SDU is less than or equal to the preset byte length.
[0099] S302, for each SDU, encapsulate the SDU and the corresponding first target GEM channel identifier into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages.
[0100] In this context, SDU is the payload of the uplink GEM frame, and the first target GEM channel identifier is the frame header of the uplink GEM frame.
[0101] It is understandable that the first target GEM channel identifier corresponding to the SDU is the first target GEM channel identifier mapped by the target message identifier carried in the message corresponding to the SDU.
[0102] It is understandable that the uplink GEM frame corresponding to each group of messages includes at least one uplink GEM frame.
[0103] Figure 4 This is a schematic diagram illustrating the data encapsulation rules provided in an embodiment of the present invention. For example... Figure 4As shown, the multi-frame message includes message 1, message 2, message 3 and message 4, etc. Message 1, message 2 and message 4 belong to the same message group, message 3 belongs to another message group, and the message groups to which message 1, message 2 and message 4 belong correspond to SDU1 and SDU3, and the message group to which message 3 belongs corresponds to SDU2.
[0104] like Figure 4 As shown, one possible implementation of encapsulating the SDU and the corresponding first target GEM channel identifier into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages is as follows: map all data content of the SDU to the payload of the uplink GEM frame, and map the corresponding first target GEM channel identifier of the SDU to the frame header of the uplink GEM frame to generate the uplink GEM frame corresponding to each group of messages, and further transmit the generated uplink GEM frame to the transmission container for queuing.
[0105] For example, when the length of a single packet is 20 bytes and the header of an uplink GEM frame is 5 bytes, the bandwidth utilization of the uplink GEM frame can be improved by approximately 15.38% by merging three packets and encapsulating them into a single uplink GEM frame with a shared header.
[0106] In this embodiment of the invention, multiple frames in each group of messages are spliced together to generate an SDU corresponding to each group of messages. For each SDU, the SDU and the first target GEM channel identifier corresponding to the SDU are encapsulated into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. This effectively reduces the frame header overhead in the low-speed data transmission process and improves the bandwidth utilization of the vehicle-mounted PON.
[0107] Figure 5 A schematic diagram of the structure of the ONU gateway provided in an embodiment of the present invention. Figure 1 .like Figure 5 As shown, the ONU gateway provided in this embodiment of the invention includes multiple physical interfaces, a GEM channel allocation unit, multiple GEM encapsulation units, multiple transmission container units, a framing unit, and an optical transceiver unit.
[0108] For example, the physical interface can be a CAN interface or a CANFD interface.
[0109] For example, each transmission container unit supports buffering and priority scheduling of uplink burst frames. This buffering and priority scheduling of uplink burst frames can be implemented using priority tag-based queue management or a hardware scheduler.
[0110] For example, the number of GEM encapsulation units is the same as the number of GEM channel identifiers corresponding to the ONU gateway, that is, each GEM channel identifier corresponds to one GEM encapsulation unit.
[0111] For example, one possible implementation of the data forwarding method based on vehicular PON provided by the first ONU gateway in this embodiment of the invention can be as follows: The GEM channel allocation unit in the first ONU gateway receives multiple frames of packets transmitted by the first physical subnet through the physical interface, and based on the first mapping relationship between the packet identifier and the GEM channel identifier, groups the multiple frames of packets according to the target packet identifier carried by each frame of packets to obtain different packet groups. Further, based on the mapping relationship between the GEM channel identifier and the GEM encapsulation unit, the target GEM encapsulation unit corresponding to each group of packets is determined according to the first target GEM channel identifier corresponding to each group of packets, and the different groups of packets are sent to the corresponding target GEM encapsulation unit; each target GEM encapsulation unit is configured as follows: Figure 4 The data encapsulation rules shown above encapsulate the corresponding message groups, generating uplink GEM frames corresponding to the message groups. Furthermore, based on the second mapping relationship between GEM channel identifiers and transmission containers, and according to the first target GEM channel identifier corresponding to each target GEM encapsulation unit, the target transmission container unit is determined. The generated uplink GEM frames are then transmitted to the target transmission container unit for queuing (as described above). Figure 4 (As shown in the figure); the framing unit obtains the uplink GEM frame corresponding to the same allocation time slot from the target transmission container unit, and encodes the corresponding uplink GEM frame to generate an uplink burst frame; the optical transceiver unit sends the uplink burst frame corresponding to the allocation time slot to the OLT in the corresponding allocation time slot.
[0112] Optionally, in one possible implementation, the GEM channel allocation unit can dynamically generate a first mapping relationship between the message identifier and the GEM channel identifier based on the message identifier and the transmission and reception relationship across physical subnets.
[0113] For example, the mapping relationship between GEM channel identifiers and GEM packaging units can be obtained by looking up a table or implemented based on hardware register configuration.
[0114] It is understood that, in this embodiment of the invention, by introducing a transmission container unit and a framing unit in the ONU gateway, the caching and priority scheduling of uplink burst frames can be supported to ensure low-latency transmission of data across physical subnets.
[0115] Optionally, one possible implementation of encoding the uplink GEM frame corresponding to each group of messages in step S204 to generate an uplink burst frame is as follows: based on the second mapping relationship between the GEM channel identifier and the transmission container, determine the target transmission container corresponding to the uplink GEM frame according to the first target GEM channel identifier in the uplink GEM frame; send the uplink GEM frame to the target transmission container for queuing; obtain the uplink GEM frame corresponding to the same allocated time slot, and encode the corresponding uplink GEM frame to generate an uplink burst frame.
[0116] Optionally, a priority label can be set in the transmission container. The second mapping relationship between the GEM channel identifier and the transmission container can be set based on the service type priority of the message transmitted by the GEM channel identifier. This enables dynamic scheduling of the uplink GEM frame queue according to the message service type (such as safety, control, comfort, etc.), significantly shortening the end-to-end latency. At the same time, the scheduling of low-priority data transmission will not affect the real-time transmission of high-priority data, thereby ensuring the stability and responsiveness of the vehicle control system in complex business scenarios.
[0117] For example, safety-related messages (such as brake control) within the service type of the message can be marked as high priority and directly enter the high-priority queue through hardware logic; comfort-related messages (such as seat adjustment) enter the low-priority queue. The transmission container dynamically adjusts the transmission order of the corresponding uplink GEM frame queues based on the priority tags through the hardware scheduler, ensuring that high-priority data is encapsulated and transmitted first.
[0118] For example, one possible implementation of obtaining the uplink GEM frame corresponding to the same allocation time slot and encoding the corresponding uplink GEM frame to generate an uplink burst frame can be as follows: according to the uplink time slot scheduling rules of the vehicle-mounted PON, one or more uplink GEM frames in the same allocation time slot are aggregated and framed, and the aggregated GEM frame data stream is physically encoded to generate the uplink burst frame corresponding to the allocation time slot.
[0119] The following is based on the above. Figure 1 The OLT shown is the execution entity. The specific implementation of the data forwarding method based on vehicle-mounted PON provided in this embodiment of the invention will be described in detail with reference to specific embodiments.
[0120] Figure 6 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 3 .like Figure 6 As shown, a specific implementation of this data forwarding method based on vehicle-mounted PON may include the following steps:
[0121] S601 receives uplink burst frames sent by the first ONU gateway.
[0122] Among them, the uplink burst frame is obtained by the first ONU gateway grouping the received multi-frame messages transmitted from the first physical subnet based on the first mapping relationship between the message identifier and the GEM channel identifier, and encapsulating and encoding each group of messages.
[0123] For example, in one possible implementation, the OLT receives uplink burst frames sent by the first ONU gateway through the PON port.
[0124] S602 decodes the uplink burst frames to obtain each uplink GEM frame in the uplink burst frames.
[0125] One possible implementation of this step is to perform physical layer decoding, descrambling, frame delimiting, and forward error correction decoding on the uplink burst frame to recover the GEM frame data stream carried in the uplink burst frame, and perform frame synchronization and splitting on the GEM frame data stream according to the frame header identifier of the GEM frame to obtain each uplink GEM frame contained in the uplink burst frame.
[0126] S603, based on the third mapping relationship between the ONU gateway identifier and the GEM channel identifier, determine the second target GEM channel identifier according to the identifier of the second ONU gateway and the third mapping relationship.
[0127] For example, Table 2 shows the third mapping relationship between the ONU gateway identifier and the GEM channel identifier provided in the embodiments of the present invention.
[0128] As shown in Table 2, when the ONU gateway identifier is 10, the corresponding GEM channel identifier is A; when the ONU gateway identifier is 11, the corresponding GEM channel identifier is B; when the ONU gateway identifier is 01, the corresponding GEM channel identifier is C; and when the ONU gateway identifier is 00, the corresponding GEM channel identifier is D.
[0129]
[0130] It should be noted that the third mapping relationship between the ONU gateway identifier and the GEM channel identifier shown in Table 2 above is only an example. The embodiments of the present invention do not limit the representation of the ONU gateway identifier, the representation of the GEM channel identifier, or the specific correspondence of the third mapping relationship. The specific details can be determined according to the actual application requirements.
[0131] S604, combine the second target GEM channel identifier with the payload of each uplink GEM frame to generate the downlink GEM frame corresponding to each uplink GEM frame, and send the downlink GEM frame to the second ONU gateway.
[0132] For example, in one possible implementation, each uplink GEM frame is decomposed to obtain the frame header and payload portion of each uplink GEM frame, and the second target GEM channel identifier is used as the frame header and recombined with the payload portion obtained from the decomposition of each uplink GEM frame to generate the downlink GEM frame corresponding to each uplink GEM frame.
[0133] In this embodiment of the invention, the OLT receives uplink burst frames sent by the first ONU gateway, decodes the uplink burst frames to obtain each uplink GEM frame in the uplink burst frame, and determines the second target GEM channel identifier based on the third mapping relationship between the ONU gateway identifier and the GEM channel identifier, according to the identifier of the second ONU gateway and the third mapping relationship. Then, the second target GEM channel identifier is combined with the payload of each uplink GEM frame to generate the downlink GEM frame corresponding to each uplink GEM frame, and the downlink GEM frame is sent to the second ONU gateway, thereby improving data forwarding efficiency and realizing efficient transmission of cross-physical subnet data in vehicular PON.
[0134] Optionally, one possible implementation of sending downlink GEM frames to the second ONU gateway in step S602 is as follows: based on the fourth mapping relationship between GEM channel identifiers and PON ports, determine the target PON port according to the second target GEM channel identifier; and send downlink GEM frames to the second ONU gateway through the target PON port.
[0135] Figure 7 This is a schematic diagram of the structure of an OLT provided in an embodiment of the present invention. Figure 7 As shown, the OLT includes multiple PON ports and a transmission aggregation layer processing unit. The transmission aggregation layer processing unit generates corresponding downlink GEM frames from each uplink GEM frame, as illustrated in the dashed box 71 in the figure, and is similar to the above. Further, after generating the downlink GEM frames corresponding to each uplink GEM frame, based on the fourth mapping relationship between the GEM channel identifier and the PON port, the target PON port is determined according to the second target GEM channel identifier, and the downlink GEM frame is sent to the second ONU gateway through the target PON port, thus achieving the forwarding of multiple frames. The transmission aggregation layer processing unit can be a Media Access Control (MAC) chip.
[0136] It is understood that in the data forwarding method based on vehicle-mounted PON provided in the embodiments of the present invention, by sinking the data forwarding logic to the MAC chip of the OLT and completing the data forwarding processing through the MAC chip, the software computing resources of the processor can be saved, the software processing burden of the central computing platform can be reduced, thereby reducing the system resource occupancy rate and improving data forwarding efficiency and transmission performance.
[0137] The following is based on the above. Figure 1 The second ONU gateway shown is the execution entity. The specific implementation of the data forwarding method based on vehicle-mounted PON provided in this embodiment of the invention will be described in detail with reference to specific embodiments.
[0138] Figure 8A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 4 .like Figure 8 As shown, a specific implementation of this data forwarding method based on vehicle-mounted PON may include the following steps:
[0139] S801 receives downlink GEM frames sent by the OLT.
[0140] Among them, the downlink GEM frame is obtained by the OLT through data forwarding processing of the received uplink burst frame. The uplink burst frame is obtained by the first ONU gateway through grouping the received multi-frame messages transmitted in the first physical subnet based on the first mapping relationship between the message identifier and the GEM channel identifier, and encapsulating and encoding each group of messages.
[0141] For example, in one possible implementation, the optical transceiver unit of the second ONU gateway receives downlink GEM frames sent by the OLT.
[0142] S802, parse the downlink GEM frame to obtain the SDU corresponding to the downlink GEM frame.
[0143] Figure 9 A schematic diagram of the structure of the ONU gateway provided in an embodiment of the present invention. Figure 2 .like Figure 9 As shown, the ONU gateway provided in this embodiment of the invention further includes a frame parsing unit and a message allocation processing unit.
[0144] In one possible implementation, the frame parsing unit parses each downlink GEM frame, strips off the transmission information fields (such as the frame header) in each downlink GEM frame, and restores the SDUs included in each downlink GEM frame to obtain multiple SDUs. The multiple SDUs are then sent to the message allocation processing unit. The message allocation processing unit groups the multiple SDUs into a transmission queue according to the messages to be sent by the communication protocol line connected to each physical interface, so that the messages of the corresponding queue can be sent through the physical layer (PHY) transceiver unit of the corresponding physical interface.
[0145] S803 transmits SDU to the second physical subnet.
[0146] The specific implementation method is similar to that described above, and will not be repeated here.
[0147] In this embodiment of the invention, the second ONU gateway receives downlink GEM frames sent by the OLT, parses the downlink GEM frames to obtain the SDU corresponding to the downlink GEM frames, and further transmits the SDU to the second physical subnet, thereby realizing efficient data transmission across physical subnets based on vehicle-mounted PON.
[0148] Figure 10 A flowchart illustrating the data forwarding method based on vehicular PON provided in this embodiment of the invention. Figure 5 ,like Figure 10 As shown, a specific implementation of this data forwarding method based on vehicle-mounted PON may include the following steps:
[0149] S1, the first ONU gateway receives multiple frames of messages transmitted from the first physical subnet, and based on the first mapping relationship between the message identifier and the GEM channel identifier, groups the multiple frames of messages according to the target message identifier of each frame of message to obtain different message groups.
[0150] S2, the first ONU gateway encapsulates multiple frames of each group of messages into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages.
[0151] S3, the first ONU gateway encodes the uplink GEM frame corresponding to each group of messages to generate uplink burst frames.
[0152] S4, the first ONU gateway sends an uplink burst frame to the OLT.
[0153] S5, OLT decodes the uplink burst frames to obtain each uplink GEM frame in the uplink burst frames.
[0154] S6, the OLT determines the second target GEM channel identifier based on the third mapping relationship between the ONU gateway identifier and the GEM channel identifier, according to the identifier of the second ONU gateway and the third mapping relationship.
[0155] S7, the OLT combines the second target GEM channel identifier with the payload of each uplink GEM frame to generate the downlink GEM frame corresponding to each uplink GEM frame.
[0156] S8, the OLT sends a downlink GEM frame to the second ONU gateway through the target PON port.
[0157] S9, the second ONU gateway parses the downlink GEM frame, obtains the SDU corresponding to the downlink GEM frame, and transmits the SDU to the second physical subnet.
[0158] The first physical subnet and the second physical subnet can be different low-speed subnets in the vehicle's electronic and electrical architecture.
[0159] The specific implementation of this embodiment is similar to that described above, and will not be repeated here.
[0160] In this embodiment of the invention, the first ONU gateway aggregates and encapsulates multiple received frames into the same uplink GEM frame, enabling multiple frames to share the same GEM frame header. This effectively reduces the frame header overhead during low-speed data transmission and improves the bandwidth utilization of the vehicular PON network. Simultaneously, the first ONU gateway directly completes message grouping, uplink GEM frame encapsulation, and uplink burst frame encoding, and sends the uplink burst frame to the OLT, reducing latency and system resource consumption. This achieves efficient and low-latency transmission of low-speed data on the vehicular PON network. The OLT parses and forwards uplink GEM frames from the first ONU gateway based on the GEM channel identifier and the identifier of the second ONU gateway, generating corresponding downlink GEM frames and sending them to the corresponding second ONU gateway, thus improving the efficiency of data forwarding across physical subnets. The second ONU gateway parses the received downlink GEM frames to obtain corresponding multi-frame messages and sends them to the second physical subnet, eliminating the need for multiple protocol conversions and gateway forwarding processes between heterogeneous physical subnets in traditional methods. This further reduces latency and computational resource consumption, enabling efficient carrying of low-speed data on the vehicle-mounted PON and low-latency, high-efficiency transmission of data across physical subnets.
[0161] In summary, compared to related technologies, on the one hand, PON lacks a complete data encapsulation and protocol conversion method when applied to vehicle networks; on the other hand, PON suffers from low forwarding efficiency when carrying low-speed vehicle services, and the controller processing unit needs to process higher-layer protocols in the PON transmission frames, resulting in high computational resource consumption and high communication processing latency. The data forwarding method based on vehicular PON provided in this embodiment of the invention aggregates and encapsulates multiple received frames into the same uplink GEM frame, allowing multiple frames to share the same GEM frame header, effectively reducing frame header overhead during low-speed data transmission and improving the bandwidth utilization of vehicular PON. Simultaneously, protocol adaptation and GEM frame encapsulation are directly completed through the first ONU gateway, and the uplink burst frames are sent to the OLT for forwarding, eliminating the need for multiple protocol conversions and gateway forwarding processes between traditional heterogeneous physical subnets, reducing latency and computational resource consumption, thereby achieving efficient low-speed data transport on vehicular PON and low-latency, high-efficiency transmission of data across physical subnets.
[0162] The following are embodiments of the apparatus of the present invention, which can be used to execute embodiments of the method of the present invention. For details not disclosed in the embodiments of the apparatus of the present invention, please refer to the embodiments of the method of the present invention.
[0163] Figure 11 A schematic diagram of the structure of the data forwarding device based on vehicle-mounted PON provided in an embodiment of the present invention. Figure 1 .like Figure 11As shown, the data forwarding device 11 is applied to a first ONU gateway, which is connected to the OLT and the first physical subnet respectively, and is used to send data transmitted by the first physical subnet to the OLT. The data forwarding device 11 includes: a receiving module 111, a packet module 112, a data encapsulation module 113, and a processing module 114.
[0164] The receiving module 111 is used to receive multiple frames of messages transmitted by the first physical subnet, and each frame of messages carries a target message identifier.
[0165] The grouping module 112 is used to group multiple frames of messages based on the first mapping relationship between the message identifier and the GEM channel identifier, according to the target message identifier of each frame of messages, to obtain different message groups, each group of messages including at least one frame of messages.
[0166] Data encapsulation module 113 is used to encapsulate multiple frames of messages in each group of messages into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages, and the multiple frames of messages share the same GEM frame header;
[0167] The processing module 114 is used to encode the uplink GEM frame corresponding to each group of messages, generate uplink burst frames, and send the uplink burst frames to the OLT.
[0168] Furthermore, the grouping module 112 is specifically used to: determine the first target GEM channel identifier corresponding to each frame of message based on the target message identifier of each frame of message and the first mapping relationship; and group the messages corresponding to the same first target GEM channel identifier into a group to obtain different message groups.
[0169] Furthermore, the data encapsulation module 113 is specifically used to: splice multiple frames of messages in each group of messages to generate an SDU corresponding to each group of messages; for each SDU, encapsulate the SDU and the first target GEM channel identifier corresponding to the SDU into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages; wherein, the SDU is the payload of the uplink GEM frame, and the first target GEM channel identifier is the frame header of the uplink GEM frame.
[0170] Furthermore, the data encapsulation module 113 is also used to: concatenate multiple frames of messages in each group of messages to obtain concatenated messages; determine whether the byte length of the concatenated messages is greater than a preset byte length; if the byte length is greater than the preset byte length, then divide the concatenated messages according to the preset byte length to obtain at least two segmented messages, and determine each segmented message as an SDU; if the byte length is less than or equal to the preset byte length, then determine the concatenated messages as an SDU.
[0171] Furthermore, the processing module 114 is specifically used to: determine the target transmission container corresponding to the uplink GEM frame based on the second mapping relationship between the GEM channel identifier and the transmission container, according to the first target GEM channel identifier in the uplink GEM frame; send the uplink GEM frame to the target transmission container for queuing; obtain the uplink GEM frame corresponding to the same allocated time slot, and encode the corresponding uplink GEM frame to generate an uplink burst frame.
[0172] The data forwarding device based on vehicle-mounted PON provided in this embodiment of the invention can be used to execute the method steps of the above method embodiment. The specific implementation and technical effects are similar, and will not be repeated here.
[0173] Figure 12 A schematic diagram of the structure of the data forwarding device based on vehicle-mounted PON provided in an embodiment of the present invention. Figure 2 .like Figure 12 As shown, the data forwarding device 12 is applied to an OLT, which is connected to a first ONU gateway and a second ONU gateway. The data forwarding device 12 includes a receiving module 121, a decoding module 122, a determining module 123, and a forwarding module 124.
[0174] The receiving module 121 is used to receive uplink burst frames sent by the first ONU gateway. The uplink burst frames are obtained by the first ONU gateway grouping the received multi-frame messages transmitted in the first physical subnet based on the first mapping relationship between the message identifier and the GEM channel identifier, and encapsulating and encoding each group of messages.
[0175] Decoding module 122 is used to decode uplink burst frames to obtain each uplink GEM frame in the uplink burst frames;
[0176] The determination module 123 is used to determine the second target GEM channel identifier based on the third mapping relationship between the ONU gateway identifier and the GEM channel identifier, according to the identifier of the second ONU gateway and the third mapping relationship;
[0177] The forwarding module 124 is used to combine the second target GEM channel identifier with the payload of each uplink GEM frame to generate the downlink GEM frame corresponding to each uplink GEM frame, and send the downlink GEM frame to the second ONU gateway.
[0178] Furthermore, the forwarding module 124 is specifically used to: determine the target PON port based on the fourth mapping relationship between the GEM channel identifier and the PON port, according to the second target GEM channel identifier; and send downlink GEM frames to the second ONU gateway through the target PON port.
[0179] The data forwarding device based on vehicle-mounted PON provided in this embodiment of the invention can be used to execute the method steps of the above method embodiment. The specific implementation and technical effects are similar, and will not be repeated here.
[0180] Figure 13 A schematic diagram of the structure of the data forwarding device based on vehicle-mounted PON provided in an embodiment of the present invention. Figure 3 .like Figure 13 As shown, the data forwarding device 13 is applied to the second ONU gateway, which is connected to the OLT and the second physical subnet respectively, and is used to transmit the data sent by the OLT to the second physical subnet. The data forwarding device 13 includes: a receiving module 131, a parsing module 132 and a transmission module 133.
[0181] The receiving module 131 is used to receive downlink GEM frames sent by the OLT. The downlink GEM frames are obtained by the OLT through data forwarding processing of the received uplink burst frames. The uplink burst frames are obtained by the first ONU gateway grouping the received multi-frame packets transmitted in the first physical subnet based on the first mapping relationship between the packet identifier and the GEM channel identifier, and encapsulating and encoding each group of packets.
[0182] The parsing module 132 is used to parse the downlink GEM frame to obtain the SDU corresponding to the downlink GEM frame;
[0183] Transmission module 133 is used to transmit SDU to the second physical subnet.
[0184] The data forwarding device based on vehicle-mounted PON provided in this embodiment of the invention can be used to execute the method steps of the above method embodiment. The specific implementation and technical effects are similar, and will not be repeated here.
[0185] This invention also provides a vehicle, including: a vehicle body and as described above. Figure 1 The data forwarding system based on vehicle-mounted PON shown is illustrated.
[0186] For example, the vehicle can be a smart connected car.
[0187] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0188] This invention also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0189] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0190] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0191] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0192] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0193] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0194] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0195] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0196] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments. The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this specification.
[0197] Other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of the invention are indicated by the following claims.
[0198] The above embodiments are merely preferred embodiments provided to fully illustrate the present invention, and the scope of protection of the present invention is not limited thereto. Equivalent substitutions or modifications made by those skilled in the art based on the present invention are all within the scope of protection of the present invention.
Claims
1. A data forwarding method based on a vehicle-mounted passive optical network, characterized in that, The method is applied to a first ONU gateway, which is connected to both an OLT and a first physical subnet, and is used to send data transmitted from the first physical subnet to the OLT. The first physical subnet is a low-speed control subnet in the vehicle's electronic and electrical architecture. The method includes: Receive multiple frames of messages transmitted from the first physical subnet. Each frame of the multiple frames carries a target message identifier. The target message identifier is an identifier used to characterize message attribute information, which includes message source, message type, and data priority. Based on the first mapping relationship between the message identifier and the GEM channel identifier, the multiple frames of messages are grouped according to the target message identifier of each frame of messages to obtain different message groups. Each group of messages includes at least one frame of messages. The first mapping relationship adopts a dynamic allocation strategy and is dynamically adjusted according to historical service traffic patterns and current network load. Multiple frames in each group of messages are encapsulated into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. The multiple frames of messages share the same GEM frame header. Based on the second mapping relationship between GEM channel identifiers and transmission containers, the target transmission container corresponding to the uplink GEM frame is determined according to the first target GEM channel identifier in the uplink GEM frame. The transmission container is equipped with a priority label, which is set according to the message service type. The service types include security, control, and comfort. The uplink GEM frame is sent to the target transmission container for queuing. The uplink GEM frame corresponding to the same allocated time slot is obtained, the corresponding uplink GEM frame is encoded to generate an uplink burst frame, and the uplink burst frame is sent to the OLT.
2. The data forwarding method according to claim 1, characterized in that, Based on the first mapping relationship between the message identifier and the GEM channel identifier, the multiple frames of messages are grouped according to the target message identifier of each frame to obtain different message groups, including: Based on the target message identifier of each message frame and the first mapping relationship, determine the first target GEM channel identifier corresponding to each message frame; Messages corresponding to the same first target GEM channel identifier are grouped together to obtain different message groups.
3. The data forwarding method according to claim 2, characterized in that, The step of encapsulating multiple frames in each group of messages into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages includes: Multiple frames in each group of messages are spliced together to generate the service data unit corresponding to each group of messages. For each service data unit, the service data unit and the first target GEM channel identifier corresponding to the service data unit are encapsulated into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. The service data unit is the payload of the uplink GEM frame, and the first target GEM channel identifier is the frame header of the uplink GEM frame.
4. The data forwarding method according to claim 3, characterized in that, The step of concatenating multiple frames in each group of messages to generate a service data unit corresponding to each group of messages includes: Multiple frames in each group of messages are spliced together to obtain the spliced message; Determine whether the byte length of the concatenated message is greater than the preset byte length; If the byte length is greater than the preset byte length, the concatenated message is segmented according to the preset byte length to obtain at least two segmented messages, and each segmented message is determined as a business data unit. If the byte length is less than or equal to the preset byte length, the concatenated message is determined as a business data unit.
5. A data forwarding method based on a vehicle-mounted passive optical network, characterized in that, Applied to an OLT, the OLT is connected to a first ONU gateway and a second ONU gateway, the first ONU gateway is connected to a first physical subnet, and the second ONU gateway is connected to a second physical subnet. Both the first and second physical subnets are low-speed control subnets within the vehicle's electronic and electrical architecture. The method includes: Receive uplink burst frames sent by the first ONU gateway; Decode the uplink burst frame to obtain each uplink GEM frame in the uplink burst frame; Based on the third mapping relationship between the ONU gateway identifier and the GEM channel identifier, the second target GEM channel identifier is determined according to the identifier of the second ONU gateway and the third mapping relationship. The second target GEM channel identifier is combined with the payload of each uplink GEM frame to generate a downlink GEM frame corresponding to each uplink GEM frame, and the downlink GEM frame is sent to the second ONU gateway. The uplink burst frame sent by the first ONU gateway is obtained in the following way: The first ONU gateway receives multiple frames of messages transmitted by the first physical subnet. Each frame of the multiple messages carries a target message identifier. The target message identifier is an identifier used to characterize message attribute information, which includes message source, message type, and data priority. The first ONU gateway, based on the first mapping relationship between the message identifier and the GEM channel identifier, groups the multiple frames of messages according to the target message identifier of each frame of messages to obtain different message groups. Each group of messages includes at least one frame of messages. The first mapping relationship adopts a dynamic allocation strategy and is dynamically adjusted according to historical service traffic patterns and current network load. The first ONU gateway encapsulates multiple frames of messages in each group into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. The multiple frames of messages share the same GEM frame header. The first ONU gateway determines the target transmission container corresponding to the uplink GEM frame based on the second mapping relationship between the GEM channel identifier and the transmission container, according to the first target GEM channel identifier in the uplink GEM frame. The transmission container is equipped with a priority label, which is set according to the message service type. The service type includes security, control, and comfort. The first ONU gateway sends the uplink GEM frame to the target transmission container for queuing; The first ONU gateway obtains the uplink GEM frame corresponding to the same allocated time slot, encodes the corresponding uplink GEM frame, and generates the uplink burst frame.
6. The data forwarding method according to claim 5, characterized in that, Sending the downlink GEM frame to the second ONU gateway includes: Based on the fourth mapping relationship between GEM channel identifiers and PON ports, the target PON port is determined according to the second target GEM channel identifier; The downlink GEM frame is sent to the second ONU gateway through the target PON port.
7. A data forwarding method based on a vehicle-mounted passive optical network, characterized in that, The method is applied to a second ONU gateway, which is connected to both an OLT and a second physical subnet, for transmitting data sent by the OLT to the second physical subnet, wherein the second physical subnet is a low-speed control subnet in the vehicle's electronic and electrical architecture. The method includes: Receive downlink GEM frames sent by the OLT, wherein the downlink GEM frames are obtained by the OLT through data forwarding processing of the received uplink burst frames; The downlink GEM frame is parsed to obtain the service data unit corresponding to the downlink GEM frame; Transmit the service data unit to the second physical subnet; The uplink burst frames are obtained in the following way: The first ONU gateway receives multiple frames of messages transmitted from the first physical subnet. Each frame of the multiple messages carries a target message identifier. The target message identifier is an identifier used to characterize message attribute information, which includes message source, message type, and data priority. The first ONU gateway, based on the first mapping relationship between the message identifier and the GEM channel identifier, groups the multiple frames of messages according to the target message identifier of each frame of messages to obtain different message groups. Each group of messages includes at least one frame of messages. The first mapping relationship adopts a dynamic allocation strategy and is dynamically adjusted according to historical service traffic patterns and current network load. The first ONU gateway encapsulates multiple frames of messages in each group into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. The multiple frames of messages share the same GEM frame header. The first ONU gateway determines the target transmission container corresponding to the uplink GEM frame based on the second mapping relationship between the GEM channel identifier and the transmission container, according to the first target GEM channel identifier in the uplink GEM frame. The transmission container is equipped with a priority label, which is set according to the message service type. The service type includes security, control, and comfort. The first ONU gateway sends the uplink GEM frame to the target transmission container for queuing; The first ONU gateway obtains the uplink GEM frame corresponding to the same allocated time slot, encodes the corresponding uplink GEM frame, and generates the uplink burst frame.
8. A data forwarding system based on a vehicle-mounted passive optical network, characterized in that, include: OLT, and a first ONU gateway and a second ONU gateway respectively connected to the OLT, the first ONU gateway being connected to a first physical subnet, and the second ONU gateway being connected to a second physical subnet; both the first physical subnet and the second physical subnet are low-speed control subnets in the vehicle electronic and electrical architecture. The first ONU gateway is used to perform the data forwarding method as described in any one of claims 1 to 4; The OLT is used to perform the data forwarding method as described in claim 5 or 6; The second ONU gateway is used to perform the data forwarding method as described in claim 7.
9. A vehicle, characterized in that, include: The vehicle body and the data forwarding system based on the vehicle-mounted passive optical network as described in claim 8.
10. A data forwarding device based on a vehicle-mounted passive optical network, characterized in that, Applied to a first ONU gateway, which is connected to the OLT, this device sends data transmitted via a first physical subnet to the OLT. The first physical subnet is a low-speed control subnet within the vehicle's electronic and electrical architecture, and includes: The receiving module is used to receive multiple frames of messages transmitted from the first physical subnet. Each frame of the multiple frames carries a target message identifier. The target message identifier is an identifier used to characterize message attribute information, including message source, message type, and data priority. The grouping module is used to group the multiple frames of packets according to the target packet identifier of each frame of packets based on the first mapping relationship between the packet identifier and the GEM channel identifier, so as to obtain different packet groups. Each packet group includes at least one frame of packets. The first mapping relationship adopts a dynamic allocation strategy and is dynamically adjusted according to historical service traffic patterns and current network load. The data encapsulation module is used to encapsulate multiple frames of messages in each group of messages into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. The multiple frames of messages share the same GEM frame header. The processing module is used to determine the target transmission container corresponding to the uplink GEM frame based on the second mapping relationship between the GEM channel identifier and the transmission container, according to the first target GEM channel identifier in the uplink GEM frame. The transmission container is equipped with a priority label, which is set according to the message service type, including security, control, and comfort. The module sends the uplink GEM frame to the target transmission container for queuing. It also obtains uplink GEM frames corresponding to the same allocated time slot, encodes the corresponding uplink GEM frames to generate uplink burst frames, and sends the uplink burst frames to the OLT.
11. A data forwarding device based on a vehicle-mounted passive optical network, characterized in that, Applied to an OLT, the OLT is connected to a first ONU gateway and a second ONU gateway, respectively. The first ONU gateway is connected to a first physical subnet, and the second ONU gateway is connected to a second physical subnet. Both the first and second physical subnets are low-speed control subnets in the vehicle's electronic and electrical architecture, including: The receiving module is used to receive uplink burst frames sent by the first ONU gateway; The decoding module is used to decode the uplink burst frame to obtain each uplink GEM frame in the uplink burst frame; The determination module is used to determine the second target GEM channel identifier based on the third mapping relationship between the ONU gateway identifier and the GEM channel identifier, according to the identifier of the second ONU gateway and the third mapping relationship; The forwarding module is used to combine the second target GEM channel identifier with the payload of each uplink GEM frame to generate a downlink GEM frame corresponding to each uplink GEM frame, and send the downlink GEM frame to the second ONU gateway. The uplink burst frame sent by the first ONU gateway is obtained in the following way: The first ONU gateway receives multiple frames of messages transmitted from the first physical subnet. Each frame of the multiple messages carries a target message identifier. The target message identifier is an identifier used to characterize message attribute information, which includes message source, message type, and data priority. The first ONU gateway, based on the first mapping relationship between the message identifier and the GEM channel identifier, groups the multiple frames of messages according to the target message identifier of each frame of messages to obtain different message groups. Each group of messages includes at least one frame of messages. The first mapping relationship adopts a dynamic allocation strategy and is dynamically adjusted according to historical service traffic patterns and current network load. The first ONU gateway encapsulates multiple frames of messages in each group into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. The multiple frames of messages share the same GEM frame header. The first ONU gateway determines the target transmission container corresponding to the uplink GEM frame based on the second mapping relationship between the GEM channel identifier and the transmission container, according to the first target GEM channel identifier in the uplink GEM frame. The transmission container is equipped with a priority label, which is set according to the message service type. The service type includes security, control, and comfort. The first ONU gateway sends the uplink GEM frame to the target transmission container for queuing; The first ONU gateway obtains the uplink GEM frame corresponding to the same allocated time slot, encodes the corresponding uplink GEM frame, and generates the uplink burst frame.
12. A data forwarding device based on a vehicle-mounted passive optical network, characterized in that, Applied to a second ONU gateway, which is connected to both the OLT and a second physical subnet, for transmitting data sent by the OLT to the second physical subnet. The second physical subnet is a low-speed control subnet within the vehicle's electronic and electrical architecture, including: The receiving module is used to receive downlink GEM frames sent by the OLT, wherein the downlink GEM frames are obtained by the OLT through data forwarding processing of the received uplink burst frames; The parsing module is used to parse the downlink GEM frame to obtain the service data unit corresponding to the downlink GEM frame; The transmission module is used to transmit the service data unit to the second physical subnet; The uplink burst frames are obtained in the following way: The first ONU gateway receives multiple frames of messages transmitted from the first physical subnet. Each frame of the multiple messages carries a target message identifier. The target message identifier is an identifier used to characterize message attribute information, which includes message source, message type, and data priority. The first ONU gateway, based on the first mapping relationship between the message identifier and the GEM channel identifier, groups the multiple frames of messages according to the target message identifier of each frame of messages to obtain different message groups. Each group of messages includes at least one frame of messages. The first mapping relationship adopts a dynamic allocation strategy and is dynamically adjusted according to historical service traffic patterns and current network load. The first ONU gateway encapsulates multiple frames of messages in each group into the same uplink GEM frame to obtain the uplink GEM frame corresponding to each group of messages. The multiple frames of messages share the same GEM frame header. The first ONU gateway determines the target transmission container corresponding to the uplink GEM frame based on the second mapping relationship between the GEM channel identifier and the transmission container, according to the first target GEM channel identifier in the uplink GEM frame. The transmission container is equipped with a priority label, which is set according to the message service type. The service type includes security, control, and comfort. The first ONU gateway sends the uplink GEM frame to the target transmission container for queuing; The first ONU gateway obtains the uplink GEM frame corresponding to the same allocated time slot, encodes the corresponding uplink GEM frame, and generates the uplink burst frame.
13. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the data forwarding method as described in any one of claims 1 to 7.
14. A computer program product, characterized in that, include: A computer program that, when executed by a processor, implements the data forwarding method according to any one of claims 1 to 7.