Communication System, Communication Method, and Related Apparatus
20240372933 ยท 2024-11-07
Inventors
Cpc classification
H04L49/3081
ELECTRICITY
H04L67/12
ELECTRICITY
International classification
Abstract
A communication system includes a connection module, a processing module, and K nodes. The connection module is configured to connect the processing module and the K nodes. The processing module includes L communication units, where each of the L communication units corresponds to one node, the L communication units include a first communication unit, and the K nodes include a first node. The first communication unit is configured to process a packet of the first node that corresponds to the first communication unit.
Claims
1. A communication system comprising: K nodes comprising a first node, wherein K is an integer greater than zero; a processing device comprising L communication components, wherein each of the L communication components corresponds to one of the K nodes, wherein the L communication components comprise a first communication component that is configured to process a first packet of the first node, and wherein L is an integer greater than zero; and a connection device configured to: couple the processing device and the K nodes; and add a first packet identifier to a second packet that passes through the connection device.
2. The communication system of claim 1, wherein the first communication component is further configured to: listen to the first packet; or send the second packet to the first node.
3. The communication system of claim 1, wherein the connection device comprises M ports, wherein the M ports comprise a first port, wherein the first node is configured to access the connection device through a the first port, and wherein the first port and the first communication component correspond to a first identifier.
4. The communication system of claim 3, wherein the connection device is further configured to add the first packet identifier to the first packet, and wherein the first communication component is further configured to listen to the first packet based on the first packet having the first packet identifier.
5. The communication system of claim 4, wherein a destination Internet Protocol (IP) address of the first packet is an IP address of the processing device.
6. The communication system of claim 4, wherein a destination Internet Protocol (IP) address of the first packet is a multicast address or a broadcast address, and wherein the connection device is further configured to: obtain N third packets based on the first packet, wherein N is greater than or equal to one; and forward the N third packets to a second port that is of the M ports and that corresponds to the destination IP address.
7. The communication system of claim 3, wherein the first communication component is further configured to send a third packet, wherein the connection device is further configured to: receive the third packet; add a second packet identifier to the third packet, wherein the second packet identifier is the first identifier; and send, based on the first identifier, the third packet through the first port to the first node.
8. The communication system of claim 7, wherein a local Internet Protocol (IP) address of the third packet is an IP address of the first communication component.
9. The communication system of claim 1, wherein Internet Protocol (IP) addresses of the K nodes are the same when K is an integer greater than one.
10. The communication system of claim 1, wherein the processing device is further configured to: receive a configuration information packet from the first node, wherein the configuration information packet comprises an Internet Protocol (IP) address of the first node; and create, based on the configuration information packet, the first communication component corresponding to the first node.
11. The communication system of claim 1, wherein the first communication component comprises a virtual device instance, or wherein the connection device comprises a switch.
12. A method implemented by a communication system, wherein the method comprises: connecting, by a connection device of the communication system, a processing device of the communication system and K nodes of the communication system, wherein the processing device comprises L communication components, wherein each of the L communication components corresponds to one of the K nodes, and wherein K and L are integers greater than zero; processing, by the processing device, a first packet of a first node of the K nodes using a first communication component of the L communication components; and adding, by the connection device, a first packet identifier to a second packet that passes through the connection device.
13. The method of claim 12, further comprising: listening, by the processing device, to the first packet using the first communication component; or sending, by the processing device, the second packet to the first node using the first communication component.
14. The method of claim 12, wherein the connection device comprises M ports, and wherein the method further comprises accessing, by the first node, the connection device through a first port of the M ports, wherein the first node is coupled to the first port, and wherein each of the first port and the first communication component corresponds to a first identifier.
15. The method of claim 14, further comprising: adding, by the connection device, the first packet identifier to the first packet; and listening, by the processing device using the first communication component, to the first packet first packet based on the first packet having the first packet identifier.
16. The method of claim 15, wherein a destination Internet Protocol (IP) address of the first packet is an IP address of the processing device.
17. The method of claim 16, wherein the destination IP address is a multicast address or a broadcast address, and wherein the method further comprises: obtaining, by the connection device, N third packets based on the first packet; and forwarding, by the connection device, the N third packets to a second port that is of the M ports and that corresponds to the destination IP address.
18. The method of claim 14, further comprising: receiving, by the connection device from the first communication component, a third packet; adding, by the connection device, a second packet identifier to the third packet, wherein the second packet identifier is the first identifier; and sending, by the connection device, based on the first identifier, the third packet through the first port to the first node.
19. The method of claim 18, wherein a local Internet Protocol (IP) address of the third packet is an IP address of the first communication component.
20. A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by at least one processor, cause a communication system to: connect, using a connection device of the communication system, a processing device of the communication system and K nodes of the communication system, wherein the processing device comprises L communication components, wherein each of the L communication components corresponds to one of the K nodes, and wherein K and L are integers greater than zero; process, using the processing device, a first packet of a first node of the K nodes using a first communication component of the L communication components; and add, using the connection device, a first packet identifier to a second packet that passes through the connection device.
Description
BRIEF DESCRIPTION OF DRAWINGS
[0080] The following briefly describes accompanying drawings used in descriptions of embodiments.
[0081]
[0082]
[0083]
[0084]
[0085]
[0086]
[0087]
[0088]
[0089]
[0090]
[0091]
DESCRIPTION OF EMBODIMENTS
[0092] The following describes embodiments of this disclosure in detail with reference to accompanying drawings.
[0093] For ease of understanding, some concepts related to the embodiments of this disclosure are described for reference by using examples below. Details are as follows. [0094] 1. Socket:
[0095] A socket is an abstraction of an endpoint for bidirectional communication between application processes on different hosts in a network.
[0096] One socket is one end of process communication on the network, and provides a mechanism for a process on an application layer to exchange data by using a network protocol. In terms of a status of the socket, the socket is connected to an application process upstream and a network protocol stack downstream. The socket is an interface for communication between applications through the network protocol and an interface for interaction between an application and the network protocol stack. [0097] 2. Scalable Service-Oriented Middleware over IP (SOME/IP)
[0098] SOME/IP is a concept introduced in onboard Ethernet communication, and is located above Layer 4 of an Open Systems Interconnection (OSI) 7-layer model. The SOME/IP is sent only when required by a receiver. An advantage of this method is that a bus does not contain too much unnecessary data, thus reducing a load.
[0099] In a network, a node sometimes needs to invoke a service implemented on another node. In this case, a transmitting end and a receiving end play roles of a client and a server respectively. The SOME/IP is an interface for implementing such remote service invocation. [0100] 3. Node:
[0101] A node is an electronic device that has a communication capability and/or a computing capability, and is also referred to as a communication node or a computing node. For example, the node may include an independent device such as a handheld terminal, a vehicle, a vehicle-mounted device, a network side device, user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile console, a remote station, a remote terminal, a wireless communication device, a user agent, or a user apparatus, or may be a part (for example, a chip or an integrated circuit) included in the independent device.
[0102] For example, when the node is the vehicle-mounted device, the node may be one or more of a module such as a sensor (for example, a camera, a lidar, or a millimeter-wave radar), a screen, a microphone, a speaker, an electronic key, and a keyless entry or start system controller. In the vehicle, the node may further be a battery management system and a battery in a battery pack.
[0103] The node in the embodiments of this disclosure may be applied to a plurality of application scenarios, such as the mobile internet, the internet of vehicles, industrial control, unmanned driving, transportation safety, the Internet of things (IoT), a smart city, or a smart home.
[0104] In some application scenarios or some network types, a device with a similar communication capability and/or computing capability may alternatively not be referred to as a node. However, for ease of description, an electronic device with a similar communication capability and/or computing capability is collectively referred to as a node in the embodiments of this disclosure.
[0105] The foregoing example descriptions of the concepts may be applied in the following embodiments.
[0106] The following describes an application scenario and a system architecture in the embodiments of this disclosure.
[0107]
[0108] Similarly, there may be one or more nodes. For ease of description, in this disclosure, a quantity of nodes is set to K, where K is an integer greater than 0. A node may be, for example, referred to as a first node. It should be understood that the first node and the like are merely used to facilitate description of the node, and do not indicate that a sequence number, a communication sequence, and a number of the node are limited. For example, in the communication system shown in
[0109] The following describes parts in the communication system 10. [0110] (1) The processing module is a communication endpoint in the communication system 10. The processing module may access a connection module 103, and communicate with another node by using the connection module 103. For example, the processing module may receive a packet from the node or send a packet to the node by using the connection module 103.
[0111] In a possible design, the processing module has a computing capability, and can process data.
[0112] In a possible design, the processing module may include any quantity of units with computing functions. For example, a processing module may include one or more of the following functional units: a CPU, an application processor (AP), a graphics processing unit (GPU), a microprocessing unit (MPU), an application-specific integrated circuit (ASIC), an image signal processor (ISP), a digital signal processor (DSP), a field-programmable gate array (FPGA), a complex programmable logic device (CPLD), a coprocessor (for assisting the CPU in completing corresponding processing and application), a microcontroller unit (MCU), a neural network processing unit (NPU), and/or the like.
[0113] In another possible design, the processing module may be a CDC, a VCU, a GW, an HMI, a VIU, a T-box, another apparatus with a computing capability, or the like in the vehicle.
[0114] In another possible design, the processing module is included in an electronic control unit (ECU) of the vehicle. For example, the processing module may be a processor in the ECU, and is configured to process data from the node. [0115] (2) The node is another communication endpoint in the communication system 10. The node may access the connection module 103, and communicate with the connection module and the other node by using the connection module 103.
[0116] In some scenarios, the node may include a detection apparatus, an output apparatus, and the like.
[0117] The detection apparatus, which may also be referred to as a sensor, can collect detected information, and form the collected information into an electrical signal or another required form for output. For example, the node includes but is not limited to a radar, a lidar, a camera, a temperature sensor, an optical sensor, or the like.
[0118] The output apparatus may implement data output, such as displaying, printing, sound playing, and peripheral device operation controlling. For example, the node includes but is not limited to a display, a printer, a speaker, a disk, or the like. [0119] (3) The connection module 103 may be connected to the processing module and the node, to provide a communication path for the processing module and the node.
[0120] Further, for example, communication data is a packet, and the connection module 103 may forward the packet. For example, a packet from the node 102a is forwarded to the processing module 101a, and the like.
[0121] Optionally, the connection module 103 has M ports, where M is an integer greater than 1. As shown in
[0122] In a design, the connection module 103 may include a switch, a router, and the like. For example, the connection module 103 may include a local area network (LAN) switch.
[0123] In a possible solution, the processing module and the connection module may be integrated or independent. For example, the VIU in the vehicle includes the LAN switch and a plurality of CPUs, where the plurality of CPUs may be considered as a plurality of processing modules, and the LAN switch may be considered as the connection module. For another example, the connection module 103 and the processing module may be integrated into the ECU, and the connection module 103 may be an Ethernet switch inside the ECU, and is configured to connect the processing module and the node through the Ethernet (ETH).
[0124] It should be understood that an apparatus such as the node or the switch in this embodiment of this disclosure may be a physical apparatus, or may be a virtual apparatus, or may be partially the physical apparatus and partially the virtual apparatus. For example, the connection module 103 may include a virtual switch, a virtual router, or the like. In addition, the system shown in
[0125] The node communicates with the processing module by using the connection module 103. For example, the node and the processing module communicate in a form of a packet. A packet from the node is sent to one or more processing modules by using the connection module 103. Similarly, a packet from the processing module is sent to one or more nodes by using the connection module 103. In a communication process, to make packets of different nodes and processing modules not interfere with each other, complex communication configuration and management transactions are required before communication between the node and the processing module. For example, because the packet is forwarded through a communication address, different communication addresses need to be configured for the node 102a and the node 102b before communication, so that the packet can be correctly sent to the node that requires the communication.
[0126] For another example, a same node is installed at different locations, and a function performed by the same node may be different. In a vehicle using a plurality of radars, the radars at different locations in the vehicle may use different occasions, weights, and manners for calculation. Therefore, a location of the node needs to be bound to the node.
[0127] In conclusion, complex configuration work of the node in the communication system increases management costs, and affects efficiency of a communication establishment process, leading to poor user experience.
[0128] In view of this, this embodiment of this disclosure provides a communication method, and a related apparatus, to reduce communication costs and improve efficiency of communication connection establishment.
[0129] In the communication system provided in this embodiment of this disclosure, the processing module includes one or more communication units. For ease of description, in this disclosure, a quantity of communication units in the processing module is set to L, where L is an integer greater than 0. As shown in
[0130] There is a one-to-one correspondence between the communication unit and the node, and the communication unit is configured to process a packet of a node corresponding to the communication unit. For example, the communication unit 105a in the processing module 101a is configured to process a packet of the corresponding node 102a, and the communication unit 105b in the processing module 101a is configured to process a packet of the corresponding node 102b. Other cases can be deduced by analogy. In this way, the processing module does not need to differentiate between the nodes, and packets of different nodes can be differentiated by using the communication unit. In other words, the processing module performs virtualization processing on the different nodes by using the communication units, and isolates the packets of the different nodes by using different communication units, so as to avoid complex configuration of the nodes, save communication time, and improve communication efficiency.
[0131] In a possible design, the processing module may include a communication protocol stack for performing communication protocol processing and support communication between the nodes. For example, the communication protocol stack in the processing module includes but is not limited to one or more of a Transmission Control Protocol (TCP)/IP stack, an SOME/IP, and the like.
[0132] Further optionally, the processing module may implement a plurality of independent protocol stacks through the socket. A conflict of information about an IP address among a plurality of protocol stacks does not affect a function of the protocol stacks because the IP address is unique in each of the independent protocol stacks. In this way, each communication unit may correspond to one independent protocol stack. The communication units may establish virtual connections to the different nodes through the independent protocol stacks, and communication between the processing module and the node is performed on the virtual connection, thereby achieving an objective of configuration-free communication.
[0133] It should be noted that the one-to-one correspondence does not indicate that the quantity of communication units is completely the same as the quantity of nodes. Instead, the one-to-one correspondence is used to indicate that one communication unit corresponds to one node. In a specific implementation process, a node may not have a corresponding communication unit. For example, the processing module temporarily does not need to communicate with a node X. Therefore, there can be no communication unit corresponding to the node X in the processing module. For another example, the node X is a newly accessed node, and has not submitted configuration information to the processing module. Therefore, the processing module does not create a communication unit corresponding to the node X.
[0134] In a possible implementation, the communication system may isolate the packets of the different nodes through identifiers added to the packets, a value of a field in the packets, or the like.
[0135] The following describes solutions of this disclosure by using an example in which the packets of the different nodes are differentiated by adding packet identifiers. Different packet identifiers may be added to packets from different ports (for example, ports connected to the nodes). Because one node accesses one port, the packets from the different nodes may be differentiated through the packet identifiers.
[0136] Table 1 is a table of possible correspondences provided in this embodiment of this disclosure. The communication system shown in
TABLE-US-00001 TABLE 1 Table of correspondences among packet identifiers, ports, nodes, and communication units Packet identifier Port Node Communication unit Identifier A 104a 102a 105a Identifier B 104b 102b 105b Identifier C 104c 102c 105c . . . . . . . . . . . .
[0137] It should be understood that the foregoing describes the correspondences in a table form only for ease of understanding, but does not aim at an existence form of the correspondences. In a specific implementation process, the correspondences may also be recorded in another manner, for example, a linked list, a heap, a stack, or a database table. Examples are not provided herein one by one.
[0138] In a possible design, an apparatus for adding the packet identifier to the packet may be the connection module (the connection module 103 shown in the figure). Further, when there is a plurality of connection modules, any one of the plurality of connection modules may add the packet identifier to the packet. Alternatively, which connection module (or connection modules) adds the packet identifier to the packet is determined based on a preset value or a predefined rule.
[0139] For example, the connection module 103 may include a packet identifier management module. The packet identifier management module may add a packet identifier to a packet that passes through the connection module 103, and isolate packets related to the different nodes through the packet identifiers, so that the packets of the different nodes do not interfere with each other.
[0140] In the following, description is made by using an example in which the processing module sends a packet to the node. A node accessed by the port 104a is the node 102a, and a packet identifier corresponding to the port 104a is the identifier A. When the node 102a sends the packet to the processing module 101a, the connection module 103 may add the identifier A to the packet from the node 102a. In the processing module 101a, the communication unit 105a is configured to listen to the packet whose packet identifier is the identifier A. Similarly, a packet identifier corresponding to a packet from the node 102b is the identifier B, and the communication unit 105b in the processing module 101a is configured to listen to the packet whose packet identifier is the identifier B. Packets from other nodes are deduced by analogy.
[0141] In a possible design, when the processing module sends the packet to the node, the packet sent to the node is sent by using the corresponding communication units. When receiving the packet from the corresponding communication unit, the connection module adds a corresponding packet identifier to the packet. Further, the connection module forwards the packet to the corresponding node based on the packet identifier.
[0142] For example, when the processing module 101a needs to send a packet to the node 102a, the processing module 101a may send the packet by using the communication unit 105a, and the connection module 103 may add a corresponding packet identifier, which is the identifier A, to the packet from the communication unit 105a. The connection module 103 forwards the packet whose packet identifier is the identifier A through the port 104a, so that the node 102a receives the packet. Similarly, when the processing module 101a needs to send a packet to the node 102b, the processing module 101a may send the packet by using the communication unit 105b, and the connection module 103 may add a corresponding packet identifier, which is the identifier B, to the packet from the communication unit 105b. The connection module 103 forwards the packet whose packet identifier is the identifier B through the port 104b, so that the node 102b receives the packet.
[0143] The following describes the solutions of this disclosure by using an example in which a value of a field in the packet is used to differentiate between the packets of the different nodes. A packet usually includes a plurality of fields, and these fields indicate a type of information based on a predefined format and value. For example,
[0144] Table 2 is a table of possible correspondences among values of first fields, the ports, the nodes, and the communication units listed in this embodiment of this disclosure. It may be learned that the value of the first field of the packet from the port 104a is 00 (hexadecimal), and the communication unit 105a may be used for a packet of which the value of the first field is 00. Similarly, the value of the first field of the packet from the port 104b is 01 (hexadecimal), and the communication unit 105b may be used for a packet of which the value of the first field is 01. Other values are deduced by analogy. In this way, the packets of the different nodes can be isolated through the value of the first field, and there is no need to allocate a different IP address to each node, thereby avoiding a complex configuration transaction.
TABLE-US-00002 TABLE 2 Table of correspondences among values of first fields, ports, nodes, and communication units Value of a first field Port Node Communication unit 0x00 104a 102a 105a 0x01 104b 102b 105b 0x02 104c 102c 105c . . . . . . . . . . . .
[0145] Optionally, the value of the first field is determined by the connection module. For a related design, refer to the foregoing related description of the packet identifiers.
[0146] Alternatively and optionally, the value of the first field may be determined by the node. In a design, when a node accesses a port of the connection module, the connection module may notify the node of a corresponding value of the node, and when sending a packet, the node carries the corresponding value in the first field.
[0147] The following describes in detail a method in an embodiment of this disclosure.
[0148]
[0149] The communication method shown in
[0150] Step S301: A connection module connects a processing module and a plurality of nodes.
[0151] There may be one or more processing modules. There may be one or more nodes. In this embodiment of this disclosure, a quantity of nodes is set to K, where K is an integer greater than 0. For ease of description, the following uses a first node as an example for description.
[0152] Optionally, the connection module may include a plurality of ports. The processing module and the node are connected to the connection module through a port. The connection module provides a path between ports. Therefore, the processing module and the node may communicate with each other by using the connection module. For example, a packet sent by the processing module to the first node may be forwarded to the first node by using the connection module. Similarly, a packet sent by the first node to the processing module may be forwarded to the processing module by using the connection module.
[0153] Step S302: The processing module processes a packet of a corresponding first node by using a first communication unit.
[0154] Further, the processing module includes one or more communication units, which are referred to as L communication units for ease of description. There is a one-to-one correspondence between the communication unit and the node, and the first communication unit corresponds to the first node.
[0155] The communication unit is configured to process a packet of a node corresponding to the communication unit. For example, as shown in
[0156] In a possible design, a correspondence among a packet identifier, the port, the node, and the communication unit may be established through indication information such as an identifier added to a packet or a value of a specific field in the packet, so that a packet of a corresponding node is processed by using the communication unit. For details, refer to the related descriptions in Table 1 and Table 2 above.
[0157] In a possible solution, the connection module may add a packet identifier to a packet that passes through the connection module. For example, the packet that passes through the connection module may include a packet from the first node (referred to as a first packet for ease of differentiation), a packet from the first communication unit (referred to as a second packet for ease of differentiation), and the like. The following describes a packet sending process in this embodiment of this disclosure with reference to
[0158]
[0159] The communication unit processes the packet of the corresponding node in the following possible cases.
[0160] Case 1: A packet from the corresponding node is listened to by using the communication unit.
[0161]
[0162] Similarly,
[0163] For a packet transmission process of another node, also refer to
[0164] In some communication systems, a location of the port is relatively fixed. For example, the communication system shown in
[0165] In addition, in some possible cases, when the node needs to be replaced due to a limited service life of the node, a fault, or an accident, because the packet identifier corresponds to the port, the packet identifier and the IP address do not need to be reconfigured after the node is replaced. Therefore, the configuration steps in the communication connection establishment process are reduced, efficiency of communication connection establishment is improved, and user experience is improved.
[0166] The foregoing describes an example of point-to-point communication between the processing module and the node. The following describes an example of a multicast mode.
[0167] The connection module may forward the packet P5_1 to the packet P5_N to a port at which a processing module (for example, the processing module 101a and the processing module 101b) corresponding to the multicast address is located. The communication unit 105c in the processing module 101a is configured to listen to the packet P5_1 whose packet identifier is the identifier C, so that the processing module 101a may receive the packet from the node 102c by using the communication unit 105c. Similarly, the communication unit 106c in the processing module 101b is configured to listen to a packet P5_2 whose packet identifier is the identifier C, so that the processing module 101b may receive the packet from the node 102c by using the communication unit 106c.
[0168] It should be understood that the foregoing description is provided by using an example in which replicating the packet N times is implemented by using the connection module. In a specific implementation process, a function of replicating the packet may also be implemented by another apparatus, for example, the node, another communication apparatus other than the connection module, or the like. For example, in a possible design, the connection module and the processing module are integrated in a communication apparatus (for example, an apparatus such as a VIU or a LAN switch in the vehicle), the connection module is configured to implement a communication-related process (receiving, sending, forwarding, and adding an identifier to the packet), and the processing module is configured to implement a processing-related process (for example, replicate the packet).
[0169] A broadcast mode is similar to the multicast mode. A difference is that in the broadcast mode, a corresponding IP address is a broadcast address.
[0170] It should be noted that the packet from the first node may be a data packet or a management packet. When the packet from the first node is the management packet, the packet includes but is not limited to an acknowledgment (ACK) and a negative acknowledgment (NACK).
[0171] In a possible case, when the processing module communicates with the first node by using TCP/IP or SOME/IP, if the first node sends the data packet to the processing module, the first node may serve as a client, and the processing module (or an application in the processing module) serves as a server side.
[0172] Case 2: A packet destined for the corresponding first node is sent by using the communication unit.
[0173]
[0174] Similarly,
[0175] It should be noted that a packet from the processing module may be a data packet or a management packet. When the packet from the processing module is the management packet, the first node may return a feedback packet, for example, an ACK, or a NACK.
[0176] In a possible case, when the processing module communicates with the first node by using TCP/IP or SOME/IP, if the processing module sends the management packet to the first node, the processing module (or an application in the processing module) may serve as a client, and the first node serves as a server side.
[0177] In this embodiment of this disclosure, address information of a plurality of nodes does not need to be configured separately. Even if the address information of the plurality of nodes is completely the same, packets of nodes may be differentiated. In a possible solution, the node can be configured with default address information at delivery. For example, a local MAC address, a local IP address, a local port number, a destination IP address, a destination port number, and the like of the node can be configured by pre-defining or presetting. Therefore, re-configuration is not required during communication. The local IP address is an IP address of the node itself, and refers to an IP address of a sender of a packet in the packet, and may also be referred to as a source IP address. Similarly, the local port number is a number of a port connected to the node. In addition, the local IP address corresponds to a peer IP address. The peer IP address is an IP address of another end of communication. During packet transmission, the peer IP address is also used to indicate an address of a receiver of the packet or an address at which the packet arrives next, and is also referred to as the destination IP address.
[0178] In a possible solution, the node may send a configuration information packet to the processing module (or the connection module), to perform configuration initialization. The configuration information packet may include information of user data packet communication, information of user management packet communication, or the like. For example, the configuration information packet includes but is not limited to an IP address, a port number, a MAC address, or the like of the processing module.
[0179] In a possible design, when a new node accesses a port, the processing module may create a corresponding communication unit to correspondingly process a packet of the new node.
[0180] In some specific implementation processes, the local IP address of the node and a local IP address of the communication unit may not be in a same network segment. Therefore, the node in this embodiment of this disclosure is a node that supports cross-network segment communication. For example, the node is set through factory settings or user settings to communicate across network segments. Further, cross-network segment communication between the node and the communication unit may be implemented through an IP address mask.
[0181] It should be understood that, for ease of understanding, the packet identifier is used as an example for description in this embodiment of this disclosure. A person skilled in the art should know that this disclosure is also applicable to other indication information.
[0182] The foregoing describes in detail the method in the embodiments of this disclosure. The following provides an apparatus according to an embodiment of this disclosure.
[0183] It may be understood that, to implement the functions in the foregoing embodiments of the method, a plurality of apparatuses provided in this embodiment of this disclosure, for example, a communication apparatus, include a corresponding hardware structure, software unit, or a combination of a hardware structure and a software structure for performing the functions. A person skilled in the art should easily be aware that, in combination with units and algorithm steps of the examples described in the embodiments disclosed in this specification, the embodiments of this disclosure can be implemented by hardware or a combination of hardware and computer software. Whether a specific function is performed by hardware or hardware driven by computer software depends on particular applications and design constraints of the technical solutions. A person skilled in the art may implement the foregoing embodiments of the method by using different apparatus implementations in different usage scenarios. It should not be considered that different implementations of the apparatus go beyond the scope of the embodiments of this disclosure.
[0184] In the embodiments of this disclosure, the apparatus may be divided into functional units. For example, the functional units may be obtained through division based on corresponding functions, or two or more functions may be integrated into one functional unit. The integrated module may be implemented in a form of hardware, or may be implemented in a form of a software functional unit. It should be noted that, in the embodiments of this disclosure, division into the units is an example, and is merely logical function division. In actual implementation, another division manner may be used.
[0185] The following lists several possible apparatuses.
[0186] An embodiment of this disclosure provides a processing module. The processing module includes one or more communication units. The processing module is configured to implement the communication method in the foregoing embodiments. For example, the processing module is configured to implement the method on the processing module side in the embodiments in
[0187] An embodiment of this disclosure provides a node. The node is configured to implement the communication method in the foregoing embodiments. For example, the node is configured to implement the method on the first node side in the embodiments in
[0188] In a possible design, the node may include a sending unit and a receiving unit. Optionally, the node further includes one or more of a processing unit, a sensing unit, and an output unit.
[0189] The sending unit may be configured to implement the operations such as sending or forwarding in the foregoing embodiments, and the receiving unit may be configured to implement the operations such as receiving or listening in the foregoing embodiments. The processing unit may be configured to implement the operations such as determining, calculating, generating, or replicating in the foregoing embodiments, and/or be configured to support another process such as packet output in the foregoing embodiments. The sensing unit is configured to obtain sensing information, including but not limited to one or more of an image, a sound, a distance, a speed, light, temperature, or the like. The output unit is configured to implement data output, including but not limited to one or more of displaying, printing, sound playing, peripheral device operation controlling, or the like.
[0190] An embodiment of this disclosure provides a connection module. The connection module is configured to implement the communication method in the foregoing embodiments. For example, the connection module is configured to implement the method on the connection module side in the embodiments in
[0191] Optionally, the connection module may further include a sending unit, a receiving unit and a processing unit. The sending unit may be configured to implement the operations such as sending or forwarding in the foregoing embodiments, and the receiving unit may be configured to implement the operations such as receiving or forwarding in the foregoing embodiments. The processing unit may be configured to implement the operations such as determining, calculating, generating, or replicating in the foregoing embodiments.
[0192]
[0193] The communication apparatus 110 may be an independent device such as a vehicle, an unmanned aerial vehicle, or a robot, or may be a component included in the independent device, for example, a chip, a software module, an integrated circuit, or the like. The communication apparatus 110 may include at least one processor 1101 and a communication interface 1102. Optionally, the communication apparatus may further include at least one memory 1103. Further, optionally, the communication apparatus may further include a connecting circuit 1104. The processor 1101, the communication interface 1102, and/or the memory 1103 are connected through the connecting circuit 1104, and communicate with each other through the connecting circuit 1104, to transfer a control signal and/or a data signal. Optionally, the communication apparatus 110 may further include one or more (not shown in the figure) of a sensing module, an output module, or the like. [0194] (1) The processor 1101 is a module that performs an arithmetic operation and/or a logical operation, and may further include one or more of the following apparatuses: a CPU, an MCU, a GPU, an MPU, an ASIC, an FPGA, a CPLD, a coprocessor (for assisting a CPU in completing corresponding processing and application), an NPU, and/or the like. [0195] (2) The communication interface 1102 may be configured to provide information input or output for the at least one processor. In some possible scenarios, the communication interface 1102 may include an interface circuit, and/or the communication interface 1102 may be configured to receive data sent from the outside and/or send data to the outside. For example, the communication interface 1102 may be a wired link interface including an Ethernet cable and the like, or may be a wireless link (WI-FI, BLUETOOTH, universal wireless transmission, an onboard short-range communication technology, another short-range wireless communication technology, or the like) interface. Optionally, the communication interface 1102 may further include a transmitter (for example, a radio frequency transmitter, an antenna, and the like), a receiver, or the like that is coupled to the interface.
[0196] Optionally, if the communication apparatus 110 is an independent device, the communication interface 1102 may include a receiver and a transmitter. The receiver and the transmitter may be a same component or different components. When the receiver and the transmitter are a same component, the component may be referred to as a transceiver.
[0197] Optionally, if the communication apparatus 110 is a chip or a circuit, the communication interface 1102 may include an input interface and an output interface, and the input interface and the output interface may be a same interface or different interfaces.
[0198] Optionally, a function of the communication interface 1102 may be implemented through a transceiver circuit or a dedicated transceiver chip. The processor 1101 may be implemented by using a dedicated processing chip, a processing circuit, a processor, or a general-purpose chip. [0199] (3) The memory 1103 is configured to provide storage space, and the storage space may store data such as an operating system and a computer program. The memory 1103 may be one or a combination of a random-access memory (RAM), a ROM, an erasable programmable ROM (EPROM), a compact disc (CD) ROM (CD-ROM), and the like.
[0200] Functions and actions of modules or units in the communication apparatus 110 listed above are merely examples for description.
[0201] Functional units in the communication apparatus 110 may be configured to implement the foregoing communication method. For example, the communication apparatus may be one or more of the processing module, the connection module, the first node, or the like in the embodiments shown in
[0202] Optionally, the processor 1101 may be a processor (referred to as a dedicated processor for ease of differentiation) that is specially configured to perform the foregoing method, or may be a processor (referred to as a dedicated processor for ease of differentiation) that invokes a computer program to perform the foregoing method. Optionally, the at least one processor may further include both a dedicated processor and a general-purpose processor.
[0203] Optionally, when a computing device includes the at least one memory 1103, if the processor 1101 invokes a computer program to implement the foregoing communication method, the computer program may be stored in the memory 1103.
[0204] An embodiment of this disclosure further provides a chip system. The chip system includes a processor and a communication interface. The communication interface is configured to receive and/or send data, and/or the communication interface is configured to provide input and/or output for the processor. The chip system is configured to implement the foregoing signal processing methods, for example, the methods described in
[0205] An embodiment of this disclosure further provides a computer-readable storage medium. The computer-readable storage medium stores instructions, and when the instructions are run on at least one processor, the foregoing signal processing methods are implemented, for example, the methods described in
[0206] An embodiment of this disclosure further provides a computer program product. The computer program product includes computer instructions. When the computer program product is executed by a computing device, the foregoing signal processing methods are implemented, for example, the methods described in
[0207] In the embodiments of this disclosure, the word example, for example, or the like is used to represent giving an example, an illustration, or a description. Any embodiment or design scheme described as an example or for example in this disclosure should not be explained as being more preferred or having more advantages than another embodiment or design scheme. To be precise, use of the word such as example or for example is intended to present a relative concept in a specific manner.
[0208] In the embodiments of this disclosure, at least one means one or more, and a plurality of means two or more. At least one of the following items or a similar expression thereof refers to any combination of these items, including a singular item or any combination of plural items. For example, at least one of a, b, or c may indicate: a, b, c, (a and b), (a and c), (b and c), or (a, b, and c), where a, b, and c may be singular or plural. The term and/or describes an association between associated objects, and indicates that three relationships may exist. For example, A and/or B may indicate the following three cases: only A exists, both A and B exist, and only B exists, where A and B may be singular or plural. The character / generally indicates an or relationship between the associated objects.
[0209] In addition, unless otherwise stated, ordinal numbers such as first and second in the embodiments of this disclosure are for differentiation between a plurality of objects, but are not intended to limit an order, a time sequence, priorities, or importance of the plurality of objects. For example, a first device and a second device are merely for ease of description, and do not indicate a difference of the first device and the second device in terms of a structure and a degree of importance. In some embodiments, the first device and the second device may alternatively be the same device.
[0210] According to the context, the term when used in the foregoing embodiments may be interpreted as a meaning of if, after, in response to determining, or in response to detecting. The foregoing descriptions are merely optional embodiments of this disclosure, but are not intended to limit this disclosure. Any modification, equivalent replacement, improvement, or the like made within the concept and principle of this disclosure shall fall within the protection scope of this disclosure.
[0211] A person of ordinary skill in the art may understand that all or some of the steps of the foregoing embodiments may be implemented by hardware or a program instructing related hardware. The program may be stored in a computer-readable storage medium. The storage medium may be a ROM, a magnetic disk, a CD, or the like.