EP3952351A1 - Data transmission method and device, and computer-readable storage medium - Google Patents
Data transmission method and device, and computer-readable storage medium Download PDFInfo
- Publication number
- EP3952351A1 EP3952351A1 EP20787083.3A EP20787083A EP3952351A1 EP 3952351 A1 EP3952351 A1 EP 3952351A1 EP 20787083 A EP20787083 A EP 20787083A EP 3952351 A1 EP3952351 A1 EP 3952351A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- addressing
- address
- data
- adaptation layer
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/321—Interlayer communication protocols or service data unit [SDU] definitions; Interfaces between layers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/44—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for communication between vehicles and infrastructures, e.g. vehicle-to-cloud [V2C] or vehicle-to-home [V2H]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
- H04W4/46—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for vehicle-to-vehicle communication [V2V]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/24—Connectivity information management, e.g. connectivity discovery or connectivity update
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W80/00—Wireless network protocols or protocol adaptations to wireless operation
- H04W80/02—Data link layer protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W92/00—Interfaces specially adapted for wireless communication networks
- H04W92/16—Interfaces between hierarchically similar devices
- H04W92/18—Interfaces between hierarchically similar devices between terminal devices
Definitions
- This application relates to the field of communication technologies, and in particular, to a data sending method and apparatus, and a computer-readable storage medium.
- a vehicle-mounted terminal may obtain traffic condition information or receive an information service in a timely manner through communication technologies such as vehicle-to-vehicle (vehicle to vehicle, V2V) communication, vehicle-to-infrastructure (vehicle to infrastructure, V2I) communication, vehicle-to-pedestrian (vehicle to pedestrian, V2P) communication, or vehicle-to-network (vehicle to network, V2N) communication.
- V2V vehicle-to-vehicle
- V2I vehicle to infrastructure
- V2P vehicle-to-pedestrian
- V2N vehicle-to-network
- the long term evolution (Long Term Evolution, LTE)-V2X communication protocol standardized by the 3rd Generation Partnership Project (3rd Generation Partner Project, 3GPP) can support sidelink-based V2X communication, that is, communication directly performed without a need for forwarding through a transition device (for example, a base station).
- a transition device for example, a base station
- Embodiments of this application provide a data sending method and apparatus, and a computer-readable storage medium, to resolve a prior-art technical problem in which sidelink-based V2X communication cannot support unicast or multicast communication.
- an embodiment of this application provides a data sending method, including: An adaptation layer obtains first data and attribute information corresponding to the first data from a network layer.
- the attribute information includes destination address information.
- the adaptation layer generates a first access layer address based on the destination address information.
- the adaptation layer transfers the first data and the first access layer address to an access layer.
- the access layer sends the first data through a sidelink based on the first access layer address.
- the adaptation layer, the network layer, and the access layer are all protocol stacks of a first device.
- the first access layer address may indicate a destination device corresponding to the first data.
- the destination device may determine, based on the first access layer address, whether the first data is data sent to the destination device, and receive the first data when determining that an address of the destination device matches the first access layer address.
- unicast communication is implemented when the destination address information indicates an address of a single destination device
- multicast communication is implemented when the destination address information indicates addresses of a plurality of destination devices. This effectively resolves the prior-art technical problem in which sidelink-based V2X communication cannot support unicast or multicast communication.
- the adaptation layer may further determine that an addressing type corresponding to the first data is address-based addressing.
- the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing
- the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- the adaptation layer determines, based on a value of the destination address information, that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines, based on a bit quantity of the destination address information, that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines, based on a preset field in the destination address information, that the addressing type is address-based addressing.
- the preset field indicates that the addressing type of the first data is address-based addressing.
- the preset field indicates that a transmission mode corresponding to the first data is non-broadcast.
- the adaptation layer determines that the addressing type is address-based addressing.
- the preset field indicates that a transmission mode corresponding to the first data is unicast or multicast.
- the adaptation layer determines that the addressing type is address-based addressing.
- the attribute information obtained by the adaptation layer from the network layer may further include the service type information in addition to the destination address information.
- the service type information indicates a service type corresponding to the first data.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines, based on a bit quantity of the service type information, that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines, based on a preset field in the service type information, that the addressing type is address-based addressing.
- the preset field indicates that the addressing type of the first data is address-based addressing.
- the preset field indicates that a transmission mode corresponding to the first data is non-broadcast.
- the adaptation layer determines that the addressing type is address-based addressing.
- the preset field indicates that a transmission mode corresponding to the first data is unicast or multicast.
- the adaptation layer determines that the addressing type is address-based addressing.
- a specific implementation in which the adaptation layer determines, based on the service type information and the destination address information, that the addressing type corresponding to the first data is address-based addressing may be a combination of any implementation in the solution 1 and/or the solution 2.
- the adaptation layer determines that the addressing type is address-based addressing. For another example, when the value of the destination address information is greater than or equal to the first threshold, and the value of the service type information is greater than or equal to the fifth threshold, the adaptation layer determines that the addressing type is address-based addressing.
- the service type information in the solution 2 and the solution 3 may be an application identifier (application ID, AID)/provider service identifier (provider service identifier, PSID).
- the attribute information obtained by the adaptation layer from the network layer may further include the transmission mode indication information in addition to the destination address information.
- the transmission mode indication information indicates a transmission mode corresponding to the first data.
- the adaptation layer may obtain the first access layer address by intercepting a preset field in the destination address information.
- the preset field may be a field at any location in the destination address information. This is not specifically limited in this embodiment of this application.
- the adaptation layer may use a field on most significant 24 bits or a field on least significant 24 bits in the destination address information as the first access layer address.
- the adaptation layer may splice a first preset field and a second preset field in the destination address information as the first access layer address.
- a specific splicing manner is not specifically limited in this embodiment of this application.
- the adaptation layer may alternatively determine that the addressing type is not address-based addressing, but, for example, service type-based addressing.
- the adaptation layer may generate a second access layer address based on the service type information.
- the adaptation layer transfers the first data and the second access layer address to the access layer, so that the access layer sends the first data through a sidelink based on the second access layer address.
- a receive end device can identify, based on the second access layer address, only a service type corresponding to the first data, and cannot identify the destination device corresponding to the first data. Therefore, only broadcast communication can be implemented in such a manner.
- an embodiment of this application provides a data sending apparatus, including:
- the adaptation layer module is further configured to: before generating the first access layer address based on the destination address information, determine that an addressing type corresponding to the first data is address-based addressing.
- adaptation layer module For specific implementations of the operations performed by the adaptation layer module and the access layer module, refer to the specific implementations in which the adaptation layer and the access layer perform the corresponding method steps in the first aspect. Details are not described herein again.
- an embodiment of this application provides a data sending apparatus.
- the apparatus includes at least one processor, and a memory and a communications interface that are communicatively connected to the at least one processor.
- the memory stores an instruction that can be executed by the at least one processor.
- the at least one processor executes the instruction stored in the memory, to perform the method according to any one of the first aspect or the possible implementations of the first aspect.
- an embodiment of this application provides a computer-readable storage medium.
- the computer-readable storage medium stores a computer program.
- the computer program includes a program instruction. When executed by a computer, the computer is enabled to perform the method according to any one of the first aspect or the possible implementations of the first aspect.
- the technologies described herein can be used for various types of communications systems, for example, a long term evolution (long term evolution, LTE) system, a fifth-generation mobile communications system (5G), and other such communications systems.
- LTE long term evolution
- 5G fifth-generation mobile communications system
- the technical solutions in the embodiments of this application are not limited to V2X communication, but can also be used for other device-to-device communication, machine-to-machine communication, or communication in another internet-of-things system.
- An internet-of-vehicles system (vehicle network) is intended to improve road safety, improve traffic operation efficiency, and provide users with rich streaming media services through V2V, V2I, V2P, V2N, and other communications technologies.
- An intelligent transportation system (intelligent transportation system, ITS) has strict requirements for low latency and high reliability of communication.
- the LTE-V2X technology standardized by 3GPP has advantages such as a low latency, a high speed, wide coverage, and high reliability, and is a good internet-of-vehicles technology.
- the LTE-V2X supports vehicle-to-vehicle, vehicle-to-pedestrian, vehicle-to-infrastructure, and vehicle-to-network bidirectional communication.
- the V2V communication is mainly used as an example for description.
- LTE-V2X communication supports two communication modes, including sidelink-based V2X communication shown in FIG. 1 and V2X communication based on cellular network (eNB) transition shown in FIG. 2 .
- a terminal in FIG. 1 is a vehicle.
- the terminal may alternatively be another type of terminal, such as a mobile phone or a computer. This is not specifically limited in this embodiment of this application.
- the sidelink-based V2X communication means that a data sending terminal and a data receiving terminal directly communicate with each other through a sidelink.
- the link through which the terminals implement direct communication is referred to as a sidelink (sidelink, SL), or referred to as a side link.
- the V2V communication based on cellular network transition means that terminals implement communication through transition by a base station.
- data sent by a data sending terminal needs to be forwarded by the base station to a data receiving terminal.
- UE sends data to a base station through an uplink between the UE and the base station, and then the base station sends the data to another UE through a downlink between the base station and the another UE.
- the sidelink-based V2X communication is further classified into two communication modes: a base station scheduling mode (mode 3) and autonomous resource selection and scheduling (mode 4).
- a terminal accesses an LTE network
- a base station is responsible for allocating a resource for sidelink transmission of vehicle-to-vehicle direct communication, and the terminal performs sidelink communication by using the resource scheduled by the base station.
- the base station configures a resource pool for the terminal by using radio resource control (radio resource control, RRC) signaling (including dedicated RRC signaling or a system information block (system information block, SIB) message).
- RRC radio resource control
- SIB system information block
- the terminal autonomously obtains a resource from the resource pool to perform sidelink communication.
- the resource pool may be preconfigured. In this case, the terminal obtains a resource from the preconfigured resource pool to perform sidelink communication.
- the terminal may autonomously obtain a resource from the resource pool in a random resource selection manner, or in an interception-based resource selection manner, or in another manner. This is not limited in the embodiments of this application.
- FIG. 3 is a schematic diagram of a protocol stack architecture of ITS system data transmission.
- the protocol stack architecture includes at least an application layer, a network layer, an adaptation layer, and an access layer.
- the access layer is a layer used to provide functions such as communication network node addressing, communication medium access control, and data transmission communication physical connection establishment, keeping, and maintenance.
- the access layer can provide a communications interface for communication between devices.
- the access layer may include a plurality of different access technologies, such as an LTE-V2X PC5 interface and a wireless network (wireless fidelity, Wi-Fi) interface. Different access technologies may correspond to different communications interfaces.
- the network layer is located above the access layer and is configured to implement network topology control, data routing, device data transmission, and an application communication service.
- the application layer is located above the network layer and is a layer configured to provide a user with various types of applications and service means.
- the adaptation layer is configured to provide transport adaptation functions between the different access technologies and the different networks and/or transport protocols.
- the adaptation layer receives a data packet transferred by an upper layer (above the adaptation layer), distinguishes a bottom layer (under the adaptation layer) access technology (such as LTE-V2X PC5 or Wi-Fi) used by the data packet, and submits the data packet to a bottom layer (under the adaptation layer) conforming to the corresponding access technology for transmission; or receives a data packet from a bottom layer (under the adaptation layer), distinguishes a type of an upper layer (above the adaptation layer) protocol to which the data packet belongs, and submits the data packet to the corresponding upper layer protocol for processing.
- different networks and/or transport protocols and different access layer technologies may use different address information.
- the adaptation layer generates an access layer address based on destination address information corresponding to the data packet, and submits the
- the adaptation layer is a logical layer, and a function of the adaptation layer may exist as an independent layer and is also included in a "generalized network layer” or a "generalized access layer” (for example, as a sublayer).
- a generalized network layer includes at least functions of the network layer and the adaptation layer in the present invention.
- the "generalized access layer” includes at least functions of the access layer and the adaptation layer in the present invention.
- FIG. 4 is a schematic diagram of a possible specific protocol stack architecture of ITS system data transmission.
- An adaptation layer is used as a sublayer of a "generalized network layer".
- an access layer protocol stack includes, from top to bottom, a packet data convergence protocol (packet date convergence protocol, PDCP) layer, a radio link control (radio link control, RLC) layer, a medium access control (medium access control, MAC) layer, and a physical layer (physical layer, PHY).
- PDCP packet data convergence protocol
- RLC radio link control
- MAC medium access control
- PHY physical layer
- the PDCP layer may be configured to process data of an upper layer (above the PDCP layer). For example, in a user plane, after receiving the data from the upper layer, the PDCP layer may perform header compression and encryption on the data, and then submit (submit) the data to the RLC layer. In addition, the PDCP layer may further provide the upper layer with sequential submission and repeated packet detection functions. For example, in a control plane, the PDCP layer may provide the upper layer with an RRC signaling transmission service, and implement encryption and consistency protection of RRC signaling.
- the MAC layer provides a data transmission service on logical channels (logical channels). The logical channels usually may be divided into two categories: control channel and service channel.
- the control channel is configured to transmit control plane information
- the service channel is configured to transmit user plane information.
- the MAC layer may be further responsible for mapping the logical channel to a transport channel.
- the PHY layer is under the MAC layer.
- the PHY layer is mainly responsible for mapping the transport channel to a physical channel.
- the network layer may include a network protocol and/or a transport protocol of an open systems interconnection model (open systems interconnection model, OSI), and is responsible for exchanging data with different applications and providing a connection-oriented service and/or data forwarding.
- the network layer may include a dedicated short message protocol (dedicated short message protocal, DSMP), a geographic location-based network protocol (GeoNetworking), a wireless access short message protocol (WAVE short message protocal, WSMP; wireless access in vehicleure enviroments, WAVE) in an internet-of-vehicles environment, at least one of non-IP (non-IP) network protocols such as a fast network and transport layer protocol (fast network & transport layer protocal, FNTP), and/or an IP network protocol.
- non-IP non-IP
- the network layer may further include a transport protocol such as a user datagram protocol (user datagram protocol, UDP)/transmission control protocol (transmission control protocol, TCP).
- UDP user datagram protocol
- TCP transmission control protocol
- the network layer may include only one of the non-IP protocols, for example, a dedicated short message protocol (dedicated short message protocal, DSMP).
- a dedicated short message protocol dedicated short message protocal, DSMP
- the network layer may distinguish between different application layer services by using application identifiers (application ID, AID)/provider service identifiers (provider service identifier, PSID).
- Information may be transferred between layers through an interface (also referred to as a service access point (Service Acess Point, SAP)).
- an interface also referred to as a service access point (Service Acess Point, SAP)
- information may be transferred between the application layer and the network layer in a form of a service primitive (service primitive, SP) (a primitive for short) through an interface SAP1
- service primitive, SP service primitive for short
- information may be transferred between the network layer and the adaptation layer in a form of a primitive through an interface SAP2
- information may be transferred between the adaptation layer and the access layer in a form of a primitive through an interface SAP3.
- a request (request), an indication (indication), a response (response), and a confirmation (confirm).
- the request is sent from an upper layer to a lower layer, to request the lower layer to provide a specified service, such as data transmission.
- the indication is sent from the lower layer to the upper layer, to notify the upper layer that something has happened, for example, the lower layer receives data sent by a remote peer entity.
- the response is sent from the upper layer to the lower layer, and is a response to the indication sent by the lower layer to the upper layer.
- the confirmation is sent from the lower layer to the upper layer, to indicate that the service requested by the upper layer request has been completed and is confirmed.
- the upper layer requests a bottom layer to send data.
- the primitive also referred to as a service primitive, Service Primitive
- the primitive may include:
- the upper layer requests the bottom layer to send data.
- the primitive transmitted between the adaptation layer and the access layer through the SAP3 may include:
- a primitive includes one or more primitive parameters.
- primitive parameters For example, Applicationldentifier, NetworkProtocolType, Data, and the like included in the foregoing primitives are all primitive parameters.
- the destination address information indicates a destination address to which the data is sent.
- the network and/or transport protocol type information indicates a network and/or a transport protocol corresponding to the data, such as an IP, or a non-IP.
- the destination address information may alternatively indicate a non-IP protocol corresponding to the data.
- the WSMP protocol, the DSMP protocol, the FNTP protocol, and the GeoNetworking protocol are all typical non-IP protocols.
- the network and/or transport protocol type information may indicate a DSMP protocol corresponding to the data.
- the sidelink-based V2X communication supports only a broadcast communication mode, and does not support a unicast or multicast communication mode, for the following two main reasons:
- an embodiment of this application provides a data sending method.
- An adaptation layer obtains data and attribute information corresponding to the data from a network layer.
- the attribute information includes destination address information.
- the adaptation layer then generates a first access layer address based on the destination address information.
- the adaptation layer then transfers the data and the first access layer address to an access layer, so that the access layer sends the data through a sidelink based on the first access layer address. Because the first access layer address is generated by the adaptation layer based on the destination address information obtained from the network layer, the first access layer address may indicate a destination device corresponding to the data, and then can effectively support sidelink-based V2X communication to implement unicast or multicast communication.
- FIG. 6A may be an application scenario according to an embodiment of this application.
- FIG. 6A includes a first device, a second device, and a base station.
- the first device and the second device are based on a sidelink.
- the first device sends data to the second device through the sidelink.
- destination devices corresponding to the first device may further include another device.
- FIG. 6B may be another application scenario according to an embodiment of this application.
- the first device may communicate with a plurality of devices (for example, a second device and a third device) based on the sidelink at the same time.
- the second device and the third device in FIG. 6B are merely an example.
- more devices may further communicate with the first device based on the sidelink.
- a quantity of devices is not limited in this embodiment of this application.
- a terminal is a vehicle is used as an example.
- An embodiment of this application provides a service data transmission method.
- the method may be performed by the first device in FIG. 6A and FIG. 6B .
- FIG. 7 is a flowchart of the method.
- An adaptation layer of the first device obtains first data and attribute information corresponding to the first data from a network layer of the first device.
- the adaptation layer may obtain the first data and the attribute information corresponding to the first data from the network layer by using a primitive of an interface SAP2 between the adaptation layer and the network layer.
- the attribute information includes at least destination address information.
- the destination address information may indicate one destination device, or may indicate a plurality of destination devices. This is not specifically limited in this embodiment of this application.
- the destination address information may be one unicast address, for example, an address of the second device.
- the destination device corresponding to the first device may be the second device only.
- the destination address information may be one multicast address. In this case, the destination address information may correspond to a plurality of destination devices, for example, the second device and the third device.
- the attribute information may further include other information, such as source address information corresponding to the first data, network and/or transport protocol type information (used to indicate a network and/or a transport protocol, such as an IP, a WSMP, an FNTP, or a DSMP), an AID, and a PSID.
- transport protocol type information used to indicate a network and/or a transport protocol, such as an IP, a WSMP, an FNTP, or a DSMP
- an AID a PSID.
- a correspondence between the first data and the attribute information may be implicit, or may be explicit. This is not specifically limited in this embodiment of this application.
- the destination address information and the source address information may be indicated by using two different primitives respectively, or may be indicated by using one primitive. This is not specifically limited in this embodiment of this application.
- the primitive needs to be parsed to obtain the destination address information.
- the destination address information and the source address information are spliced to form one primitive.
- the adaptation layer parses a low-order field of the primitive to obtain the destination address information.
- a specific method and rule for parsing out the destination address information by the adaptation layer is not limited in this embodiment of this application.
- the adaptation layer generates a first access layer address based on the destination address information.
- the adaptation layer may obtain the first access layer address by intercepting a preset field in the destination address.
- the preset field may be a field at any location in the destination address information. This is not specifically limited in this embodiment of this application.
- the adaptation layer may use a field on most significant 24 bits or a field on least significant 24 bits in the destination address information as the first access layer address.
- the adaptation layer may splice a first preset field and a second preset field in the destination address information as the first access layer address.
- a specific splicing manner is not limited in this embodiment of this application.
- the adaptation layer may alternatively generate a first access layer address based on the destination address information when determining that an addressing type corresponding to the first data is address-based addressing.
- Solution 1 The adaptation layer determines, based on the destination address information, that the addressing type is address-based addressing.
- adaptation layer determines, based on the destination address information, that the addressing type is address-based addressing may further include the following three implementations:
- the destination address information may have a plurality of bits, and the adaptation layer determines, based on a value of the destination address information, that the addressing type is address-based addressing.
- the adaptation layer may determine, when determining that the value of the destination address information falls within a predetermined value range, that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the value of the destination address information is greater than or equal to a third threshold and is less than or equal to a fourth threshold.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- the foregoing thresholds may be preconfigured on the first device (for example, preconfigured on a SIM card of the first device), or may be transmitted by the base station to the first device by using RRC signaling. This is not specifically limited in this embodiment of this application. Both dedicated RRC signaling and a SIB message are referred to as RRC signaling.
- the destination address information may have a plurality of bits, and the adaptation layer may determine, based on a bit quantity of the destination address information, that the addressing type is address-based addressing.
- the adaptation layer may determine, when determining that the bit quantity of the destination address information falls within a predetermined bit quantity range, that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the bit quantity of the destination address information is less than or equal to a second bit quantity
- the adaptation layer determines that the addressing type is address-based addressing.
- the bit quantity of the destination address information is greater than or equal to a third bit quantity and is less than or equal to a fourth bit quantity
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the foregoing preset bit quantities may be preconfigured on the first device (for example, preconfigured on, but not limited to, a SIM card of the first device), or may be transmitted by the base station to the first device by using RRC signaling.
- RRC signaling This is not specifically limited in this embodiment of this application. Both dedicated RRC signaling and a SIB message are referred to as RRC signaling.
- the destination address information may have a plurality of bits, different bits in the destination address information may have different meanings, and the adaptation layer may determine, based on a preset field in the destination address information, that the addressing type is address-based addressing.
- FIG. 8 is a possible schematic diagram of destination address information.
- the destination address information has a total of 64 bits.
- First 24 bits may be used to identify a company identifier (company_id; identification, ID) corresponding to a destination device.
- Last 40 bits are an extension identifier (extension identifier). The first 24 bits and the last 40 bits jointly determine an address of the destination device.
- adaptation layer determines, based on the preset field in the destination address information, that the addressing type is address-based addressing may further include the following three implementations:
- the first preset field in the destination address information includes 2 bits, where 00 represents unicast, 01 represents multicast, and 10 represents broadcast.
- the adaptation layer parses the first preset field to obtain 00, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- a specific location of the first preset field and meanings represented by different values may be specified by using a protocol.
- the preset field indicates that the addressing type of the first data is address-based addressing.
- the second preset field in the destination address information includes 1 bit, where 0 represents address-based addressing, and 1 represents service type-based addressing.
- the adaptation layer parses the second preset field to obtain 0, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- a specific location of the second preset field and meanings represented by different values may be specified by using a protocol.
- the preset field in the destination address information indicates that a transmission mode corresponding to the first data is non-broadcast.
- the adaptation layer determines that the preset field in the destination address information indicates that the transmission mode corresponding to the first data is non-broadcast, the adaptation layer determines that the addressing type is address-based addressing.
- a third preset field in the destination address information includes 1 bit, where 0 represents broadcast, and 1 represents non-broadcast.
- the adaptation layer parses the third preset field to obtain 1, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- a specific location of the third preset field and meanings represented by different values may be specified by using a protocol.
- Solution 2 The adaptation layer determines, based on service type information, that the addressing type is address-based addressing.
- the attribute information obtained by the adaptation layer from the network layer in step S71 may further include service type information.
- the service type information is used to indicate a service type corresponding to the first data, for example, a collision warning service or a vehicle platooning service.
- the service type information may be specifically the application identifier AID or the provider service identifier PSID described above.
- the service type information may also have a plurality of bits.
- Specific implementations in which the adaptation layer determines, based on the service type information, that the addressing type is address-based addressing may further include the following three implementations: First implementation: The adaptation layer determines, based on a value of the service type information, that the addressing type is address-based addressing.
- the adaptation layer may determine, when determining that the value of the service type information falls within a predetermined value range, that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the value of the service type information is greater than or equal to a seventh threshold and is less than or equal to an eighth threshold.
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- the foregoing thresholds may be preconfigured on a fifth device (for example, preconfigured on, but not limited to, a SIM card of the fifth device), or may be transmitted by the base station to the fifth device by using RRC signaling. This is not specifically limited in this embodiment of this application.
- the adaptation layer may determine, based on a bit quantity of the service type information, that the addressing type is address-based addressing.
- the adaptation layer may determine, when determining that the bit quantity of the service type information falls within a predetermined bit quantity range, that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the bit quantity of the service type information is less than or equal to a sixth bit quantity
- the adaptation layer determines that the addressing type is address-based addressing.
- the bit quantity of the service type information is greater than or equal to a seventh bit quantity and is less than or equal to an eighth bit quantity
- the adaptation layer determines that the addressing type is address-based addressing.
- the adaptation layer determines that the addressing type is address-based addressing.
- the foregoing preset bit quantities may be preconfigured on the first device (for example, preconfigured on, but not limited to, a SIM card of the first device), or may be transmitted by the base station to the first device by using RRC signaling. This is not specifically limited in this embodiment of this application.
- Different bits in the service type information may have different meanings, and the adaptation layer may determine, based on a preset field in the service type information, that the addressing type is address-based addressing.
- adaptation layer determines, based on the preset field in the service type information, that the addressing type is address-based addressing may further include the following three implementations:
- a fourth preset field in the service type information includes 2 bits, where 00 represents unicast, 01 represents multicast, and 10 represents broadcast.
- the adaptation layer parses the fourth preset field to obtain 00, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- a specific location of the fourth preset field and meanings represented by different values may be specified by using a protocol.
- the preset field in the service type information indicates that the addressing type of the first data is address-based addressing.
- a fifth preset field in the service type information includes 1 bit, where 1 represents address-based addressing, and 0 represents service type-based addressing.
- the adaptation layer parses the fifth preset field to obtain 1, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- a specific location of the fifth preset field and meanings represented by different values may be specified by using a protocol.
- the preset field in the service type information indicates that a transmission mode corresponding to the first data is non-broadcast.
- the adaptation layer determines that the preset field in the service type information indicates that the transmission mode corresponding to the first data is non-broadcast, the adaptation layer determines that the addressing type is address-based addressing.
- a sixth preset field in the service type information includes 1 bit, where 0 represents broadcast, and 1 represents non-broadcast.
- the adaptation layer parses the sixth preset field to obtain 1, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- a specific location of the sixth preset field and meanings represented by different values may be specified by using a protocol.
- Solution 3 The adaptation layer determines, based on the service type information and the destination address information, that the addressing type corresponding to the first data is address-based addressing.
- the attribute information obtained by the adaptation layer from the network layer in step S71 may further include the service type information.
- the service type information in this implementation refer to the specific implementation of the service type information in the solution 2. Details are not described herein again.
- a specific implementation in which the adaptation layer determines, based on the service type information and the destination address information, that the addressing type corresponding to the first data is address-based addressing may be a combination of any implementation in the solution 1 and/or the solution 2.
- the destination address information includes a seventh preset field, and the seventh preset field specifically includes two bits, where 01 represents unicast, 00 represents multicast, and 11 represents broadcast.
- a threshold being 2 ⁇ 24 is further configured on the first device.
- the service type information includes an eighth preset field, and the eighth preset field specifically includes 1 bit, where 0 represents address-based addressing, and 1 represents service type-based addressing.
- a threshold being 2 ⁇ 64 is further configured on the first device.
- the service type information includes a ninth preset field, and the ninth preset field specifically includes two bits, where 01 represents unicast, 00 represents multicast, and 11 represents broadcast. Thresholds being 2 ⁇ 24 and 2 ⁇ 64 are further configured on the first device.
- the adaptation layer parses the ninth preset field to obtain 00, and the value of the destination address information is greater than 2 ⁇ 24 and is less than 2 ⁇ 64, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- Solution 4 The adaptation layer determines, based on transmission mode indication information, that the addressing type corresponding to the first data is address-based addressing.
- the attribute information obtained by the adaptation layer from the network layer in step S71 may further include the transmission mode indication information.
- the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- the transmission mode indication information may be a primitive parameter newly added to SAP2, and is specially used to indicate the addressing type or the transmission mode corresponding to the first data.
- the adaptation layer transfers the first data and the first access layer address to an access layer of the first device.
- the adaptation layer may transfer the first data and the first access layer address to the access layer of the first device by using a primitive of an interface SAP3 between the adaptation layer and the access layer.
- the adaptation layer may transfer the first data to the access layer in a form of a data packet.
- the data packet includes the first data.
- each protocol layer adds packet header information of the protocol layer.
- the access layer sends the first data through a sidelink based on the first access layer address.
- the access layer adds the first access layer address to a packet header of a MAC layer data packet carrying the first data.
- the destination device may determine, based on the packet header information in the data packet, whether the first data in the data packet is data sent to the destination device, and receive the first data in the data packet when determining that the address of the destination device matches the first access layer address in the data packet.
- unicast communication is implemented when the destination address information indicates an address of a single destination device
- multicast communication is implemented when the destination address information indicates addresses of a plurality of destination devices.
- the adaptation layer of the first device obtains the first data and the attribute information corresponding to the first data from the network layer.
- the attribute information includes the destination address information.
- the adaptation layer then generates the first access layer address based on the destination address information.
- the adaptation layer transfers the first data and the first access layer address to the access layer, so that the access layer sends the first data through the sidelink based on the first access layer address. Because the first access layer address is generated by the adaptation layer based on the destination address information, the first access layer address may indicate the destination device corresponding to the first data.
- the destination device when receiving data, may determine, based on the first access layer address, whether the first data is data sent to the destination device, and receive the first data when determining that the address of the destination device matches the first access layer address. Further, unicast communication is implemented when the destination address information indicates an address of a single destination device, and multicast communication is implemented when the destination address information indicates addresses of a plurality of destination devices. This effectively resolves the prior-art technical problem in which sidelink-based V2X communication cannot support unicast or multicast communication.
- step S71 after step S71 is performed, alternatively, it may be determined that the addressing type is not address-based addressing, but, for example, service type-based addressing.
- the adaptation layer may generate a second access layer address based on the service type information, and then the adaptation layer transfers the first data and the second access layer address to the access layer of the first device, so that the access layer sends the first data through the sidelink based on the second access layer address.
- a receive end device can identify, based on the second access layer address, only a service type corresponding to the first data, and cannot identify the destination device corresponding to the first data. Therefore, only broadcast communication can be implemented in such a manner.
- FIG. 9 is a possible schematic structural diagram of the data sending apparatus.
- the data sending apparatus 900 includes:
- the adaptation layer module 901 is further configured to: before generating the first access layer address based on the destination address information, determine that an addressing type corresponding to the first data is address-based addressing.
- the adaptation layer module 901 may determine, based on a value of the destination address information, that the addressing type is address-based addressing; or the adaptation layer module 901 may determine, based on a bit quantity of the destination address information, that the addressing type is address-based addressing; or the adaptation layer module 901 may determine, based on a preset field in the destination address information, that the addressing type is address-based addressing.
- the adaptation layer module 901 when determining, based on the value of the destination address information, that the addressing type is address-based addressing, is specifically configured to: when the value of the destination address information is greater than or equal to a first threshold, determine that the addressing type is address-based addressing; or when the value of the destination address information is less than or equal to a second threshold, determine that the addressing type is address-based addressing; or when the value of the destination address information is greater than or equal to a third threshold and is less than or equal to a fourth threshold, determine that the addressing type is address-based addressing.
- the preset field may indicate that the addressing type of the first data is address-based addressing.
- the adaptation layer module 901 determines that the addressing type is address-based addressing.
- the preset field may indicate that a transmission mode corresponding to the first data is non-broadcast.
- the adaptation layer module 901 determines that the addressing type is address-based addressing.
- the preset field indicates that a transmission mode corresponding to the first data is unicast or multicast.
- the adaptation layer module 901 determines that the addressing type is address-based addressing.
- the adaptation layer module 901 may determine, based on the service type information, that the addressing type corresponding to the first data is address-based addressing.
- the attribute information may further include the service type information corresponding to the first data.
- the service type information indicates a service type corresponding to the first data.
- the adaptation layer module 901 determines, based on the service type information, that the addressing type corresponding to the first data is address-based addressing, specifically, the adaptation layer module 901 may determine, based on a value of the service type information, that the addressing type is address-based addressing; or the adaptation layer module 901 may determine, based on a bit quantity of the service type information, that the addressing type is address-based addressing; or the adaptation layer module 901 may determine, based on a preset field in the service type information, that the addressing type is address-based addressing.
- the adaptation layer module 901 when determining, based on the value of the service type information, that the addressing type is address-based addressing, is specifically configured to: when the value of the service type information is greater than or equal to a fifth threshold, determine that the addressing type is address-based addressing; or when the value of the service type information is less than or equal to a sixth threshold, determine that the addressing type is address-based addressing; or when the value of the service type information is greater than or equal to a seventh threshold and is less than or equal to an eighth threshold, determine that the addressing type is address-based addressing.
- the preset field may indicate that the addressing type of the first data is address-based addressing.
- the adaptation layer module 901 determines that the addressing type is address-based addressing.
- the preset field indicates that a transmission mode corresponding to the first data is non-broadcast.
- the adaptation layer module 901 determines that the addressing type is address-based addressing.
- the preset field indicates that a transmission mode corresponding to the first data is unicast or multicast.
- the adaptation layer module 901 determines that the addressing type is address-based addressing.
- the service type information may be an AID or a PSID.
- the adaptation layer module 901 may determine, based on the transmission mode indication information, that the addressing type corresponding to the first data is address-based addressing.
- the attribute information may further include the transmission mode indication information corresponding to the first data.
- the transmission mode indication information indicates a transmission mode corresponding to the first data.
- the adaptation layer module 901 determines that the addressing type is address-based addressing.
- the adaptation layer module 901 determines that the addressing type is address-based addressing.
- the adaptation layer module 901 is specifically configured to use a field on most significant 24 bits or a field on least significant 24 bits in the destination address information as the first access layer address.
- the method and the apparatus in this application are based on a same technical concept, and problem resolving principles of the method and the apparatus are similar. Therefore, for specific implementations of the operations performed by the foregoing modules, refer to the corresponding steps in the data transmission method in the embodiments of this application. Therefore, implementations of the apparatus and the method may be cross-referenced. No repetition is made.
- an embodiment of this application further provides a data sending apparatus 1000.
- the apparatus 1000 includes at least one processor 1001, and a memory 1002 and a communications interface 1003 that are communicatively connected to the at least one processor 1001.
- the memory 1002 stores an instruction that can be executed by the at least one processor 1001.
- the at least one processor 1001 executes the instruction stored in the memory 1002, to perform, by using the communications interface 1003, the data transmission method in the embodiments of this application.
- the processor 1001 may specifically include a central processing unit (central processing unit, CPU) and an application-specific integrated circuit (application specific integrated circuit, ASIC), and may be one or more integrated circuits configured to control program execution, or may be a hardware circuit that is developed by using a field-programmable gate array (field programmable gate array, FPGA), or may be a baseband processor.
- CPU central processing unit
- ASIC application specific integrated circuit
- the processor 1001 may include at least one processing core.
- the memory 1002 may include a read-only memory (read only memory, ROM), a random access memory (random access memory, RAM), and a magnetic disk memory.
- the memory 1002 is configured to store data required by the processor 1001 during operation.
- the method and the apparatus in this application are based on a same technical concept, and problem resolving principles of the method and the apparatus are similar. Therefore, for specific implementations of the operations performed by the foregoing at least one processor 1001, refer to the corresponding steps in the data transmission method in the embodiments of this application. Therefore, implementations of the apparatus and the method may be cross-referenced. No repetition is made.
- An embodiment of this application further provides a computer-readable storage medium.
- the computer-readable storage medium stores a computer program.
- the computer program includes a program instruction. When executed by a computer, the computer is enabled to perform the data transmission method in the embodiments of this application.
- These computer program instructions may be provided for a general-purpose computer, a dedicated computer, an embedded processor, or a processor of any other programmable data processing device to generate a machine, so that the instructions executed by a computer or a processor of any other programmable data processing device generate an apparatus for implementing a specific function in one or more processes in the flowcharts and/or in one or more blocks in the block diagrams.
- All or some of the foregoing embodiments may be implemented by using software, hardware, firmware, or any combination thereof.
- the embodiments may be implemented completely or partially in a form of a computer program product.
- the computer program product includes one or more computer instructions.
- the computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable apparatuses.
- the computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium.
- the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (digital subscriber line, DSL)) or wireless (for example, infrared, radio, or microwave) manner.
- the computer-readable storage medium may be any usable medium accessible by a computer, or a data storage device, such as a server or a data center, integrating one or more usable media.
- the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a digital versatile disc (digital versatile disc, DVD), a semiconductor medium (for example, a solid-state drive (solid state disk, SSD)), or the like.
- a magnetic medium for example, a floppy disk, a hard disk, or a magnetic tape
- an optical medium for example, a digital versatile disc (digital versatile disc, DVD)
- a semiconductor medium for example, a solid-state drive (solid state disk, SSD)
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
- This application claims priority to
Chinese Patent Application No. 201910277864.0, filed with the China National Intellectual Property Administration on April 8, 2019 - This application relates to the field of communication technologies, and in particular, to a data sending method and apparatus, and a computer-readable storage medium.
- A vehicle-mounted terminal may obtain traffic condition information or receive an information service in a timely manner through communication technologies such as vehicle-to-vehicle (vehicle to vehicle, V2V) communication, vehicle-to-infrastructure (vehicle to infrastructure, V2I) communication, vehicle-to-pedestrian (vehicle to pedestrian, V2P) communication, or vehicle-to-network (vehicle to network, V2N) communication. These communication modes may be collectively referred to as V2X communication.
- The long term evolution (Long Term Evolution, LTE)-V2X communication protocol standardized by the 3rd Generation Partnership Project (3rd Generation Partner Project, 3GPP) can support sidelink-based V2X communication, that is, communication directly performed without a need for forwarding through a transition device (for example, a base station).
- However, in the current LTE-V2X protocol, only a mode of broadcast transmission on a sidelink can be supported, a unicast or multicast transmission mode cannot be supported.
- Embodiments of this application provide a data sending method and apparatus, and a computer-readable storage medium, to resolve a prior-art technical problem in which sidelink-based V2X communication cannot support unicast or multicast communication.
- According to a first aspect, an embodiment of this application provides a data sending method, including: An adaptation layer obtains first data and attribute information corresponding to the first data from a network layer. The attribute information includes destination address information. The adaptation layer generates a first access layer address based on the destination address information. The adaptation layer transfers the first data and the first access layer address to an access layer. The access layer sends the first data through a sidelink based on the first access layer address.
- The adaptation layer, the network layer, and the access layer are all protocol stacks of a first device.
- In this embodiment of this application, because the first access layer address is generated by the adaptation layer based on the destination address information, the first access layer address may indicate a destination device corresponding to the first data. In this case, when receiving data, the destination device may determine, based on the first access layer address, whether the first data is data sent to the destination device, and receive the first data when determining that an address of the destination device matches the first access layer address. Further, unicast communication is implemented when the destination address information indicates an address of a single destination device, and multicast communication is implemented when the destination address information indicates addresses of a plurality of destination devices. This effectively resolves the prior-art technical problem in which sidelink-based V2X communication cannot support unicast or multicast communication.
- In a possible design, before generating the first access layer address based on the destination address information, the adaptation layer may further determine that an addressing type corresponding to the first data is address-based addressing.
- To improve solution flexibility, in this embodiment of this application, for the step in which the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing, there may be at least the following four implementation solutions:
- Solution 1: The adaptation layer determines, based on the destination address information, that the addressing type is address-based addressing.
- Solution 2: The adaptation layer determines, based on service type information, that the addressing type is address-based addressing.
- Solution 3: The adaptation layer determines, based on the service type information and the destination address information, that the addressing type corresponding to the first data is address-based addressing.
- Solution 4: The adaptation layer determines, based on transfer mode indication information, that the addressing type corresponding to the first data is address-based addressing.
- To further improve solution flexibility, in a possible design, in the
solution 1, for the step in which the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing, there may be at least the following three specific implementations:
First implementation: The adaptation layer determines, based on a value of the destination address information, that the addressing type is address-based addressing. - For example, when the value of the destination address information is greater than or equal to a first threshold, the adaptation layer determines that the addressing type is address-based addressing. Alternatively, when the value of the destination address information is less than or equal to a second threshold, the adaptation layer determines that the addressing type is address-based addressing. Alternatively, when the value of the destination address information is greater than or equal to a third threshold and is less than or equal to a fourth threshold, the adaptation layer determines that the addressing type is address-based addressing.
- Second implementation: The adaptation layer determines, based on a bit quantity of the destination address information, that the addressing type is address-based addressing.
- For example, when the bit quantity of the destination address information is greater than or equal to a first bit quantity, the adaptation layer determines that the addressing type is address-based addressing. Alternatively, when the bit quantity of the destination address information is less than or equal to a second bit quantity, the adaptation layer determines that the addressing type is address-based addressing. Alternatively, when the bit quantity of the destination address information is greater than or equal to a third bit quantity and is less than or equal to a fourth bit quantity, the adaptation layer determines that the addressing type is address-based addressing.
- Third implementation: The adaptation layer determines, based on a preset field in the destination address information, that the addressing type is address-based addressing.
- For example, the preset field indicates that the addressing type of the first data is address-based addressing. For another example, the preset field indicates that a transmission mode corresponding to the first data is non-broadcast. Correspondingly, when the adaptation layer determines that the preset field in the destination address information indicates that the transmission mode corresponding to the first data is non-broadcast, the adaptation layer determines that the addressing type is address-based addressing. For another example, the preset field indicates that a transmission mode corresponding to the first data is unicast or multicast. Correspondingly, when the adaptation layer determines that the preset field in the destination address information indicates that the transmission mode corresponding to the first data is unicast or multicast, the adaptation layer determines that the addressing type is address-based addressing.
- To further improve solution flexibility, in a possible design, in the
solution 2, the attribute information obtained by the adaptation layer from the network layer may further include the service type information in addition to the destination address information. The service type information indicates a service type corresponding to the first data. For the step in which the adaptation layer determines, based on the service type information, that the addressing type corresponding to the first data is address-based addressing, there may be at least the following three specific implementations:
First implementation: The adaptation layer determines, based on a value of the service type information, that the addressing type is address-based addressing. - For example, when the value of the service type information is greater than or equal to a fifth threshold, the adaptation layer determines that the addressing type is address-based addressing. Alternatively, when the value of the service type information is less than or equal to a sixth threshold, the adaptation layer determines that the addressing type is address-based addressing. Alternatively, when the value of the service type information is greater than or equal to a seventh threshold and is less than or equal to an eighth threshold, the adaptation layer determines that the addressing type is address-based addressing.
- Second implementation: The adaptation layer determines, based on a bit quantity of the service type information, that the addressing type is address-based addressing.
- For example, when the bit quantity of the service type information is greater than or equal to a fifth bit quantity, the adaptation layer determines that the addressing type is address-based addressing. Alternatively, when the bit quantity of the service type information is less than or equal to a sixth bit quantity, the adaptation layer determines that the addressing type is address-based addressing. Alternatively, when the bit quantity of the service type information is greater than or equal to a seventh bit quantity and is less than or equal to an eighth bit quantity, the adaptation layer determines that the addressing type is address-based addressing.
- Third implementation: The adaptation layer determines, based on a preset field in the service type information, that the addressing type is address-based addressing.
- For example, the preset field indicates that the addressing type of the first data is address-based addressing. For another example, the preset field indicates that a transmission mode corresponding to the first data is non-broadcast. Correspondingly, when the adaptation layer determines that the preset field in the service type information indicates that the transmission mode corresponding to the first data is non-broadcast, the adaptation layer determines that the addressing type is address-based addressing. For another example, the preset field indicates that a transmission mode corresponding to the first data is unicast or multicast. Correspondingly, when the adaptation layer determines that the preset field in the service type information indicates that the transmission mode corresponding to the first data is unicast or multicast, the adaptation layer determines that the addressing type is address-based addressing.
- To further improve solution flexibility, in a possible design, in the
solution 3, a specific implementation in which the adaptation layer determines, based on the service type information and the destination address information, that the addressing type corresponding to the first data is address-based addressing may be a combination of any implementation in thesolution 1 and/or thesolution 2. - For example, when the value of the destination address information is greater than or equal to the first threshold, and the preset field in the destination address information indicates that the addressing type of the first data is address-based addressing, the adaptation layer determines that the addressing type is address-based addressing. For another example, when the value of the destination address information is greater than or equal to the first threshold, and the value of the service type information is greater than or equal to the fifth threshold, the adaptation layer determines that the addressing type is address-based addressing. Certainly, only two example descriptions are provided herein, and there may be another combination manner during specific implementation.
- For example, the service type information in the
solution 2 and thesolution 3 may be an application identifier (application ID, AID)/provider service identifier (provider service identifier, PSID). - To further improve solution flexibility, in a possible design, in the
solution 4, the attribute information obtained by the adaptation layer from the network layer may further include the transmission mode indication information in addition to the destination address information. The transmission mode indication information indicates a transmission mode corresponding to the first data. For the step in which the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing, there may at least the following three implementations: - First implementation: When the transmission mode indication information indicates address-based addressing, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- Second implementation: When the transmission mode indication information indicates that the transmission mode corresponding to the first data is unicast or multicast, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- Third implementation: When the transmission mode indication information indicates that the transmission mode corresponding to the first data is non-broadcast, the adaptation layer determines that the addressing type corresponding to the first data is address-based addressing.
- In a possible design, the adaptation layer may obtain the first access layer address by intercepting a preset field in the destination address information. The preset field may be a field at any location in the destination address information. This is not specifically limited in this embodiment of this application.
- For example, the adaptation layer may use a field on most significant 24 bits or a field on least significant 24 bits in the destination address information as the first access layer address.
- For example, the adaptation layer may splice a first preset field and a second preset field in the destination address information as the first access layer address. A specific splicing manner is not specifically limited in this embodiment of this application.
- For solution integrity, in a possible design, the adaptation layer may alternatively determine that the addressing type is not address-based addressing, but, for example, service type-based addressing. In this case, the adaptation layer may generate a second access layer address based on the service type information. Then, the adaptation layer transfers the first data and the second access layer address to the access layer, so that the access layer sends the first data through a sidelink based on the second access layer address. In this implementation, based on a correspondence between a service type and the second access layer address, a receive end device can identify, based on the second access layer address, only a service type corresponding to the first data, and cannot identify the destination device corresponding to the first data. Therefore, only broadcast communication can be implemented in such a manner.
- According to a second aspect, an embodiment of this application provides a data sending apparatus, including:
- an adaptation layer module, configured to: obtain first data and attribute information corresponding to the first data from a network layer, where the attribute information includes destination address information; generate a first access layer address based on the destination address information; and transfer the first data and the first access layer address to an access layer module; and
- the access layer module, configured to send the first data through a sidelink based on the first access layer address.
- In a possible design, the adaptation layer module is further configured to: before generating the first access layer address based on the destination address information, determine that an addressing type corresponding to the first data is address-based addressing.
- For specific implementations of the operations performed by the adaptation layer module and the access layer module, refer to the specific implementations in which the adaptation layer and the access layer perform the corresponding method steps in the first aspect. Details are not described herein again.
- According to a third aspect, an embodiment of this application provides a data sending apparatus. The apparatus includes at least one processor, and a memory and a communications interface that are communicatively connected to the at least one processor. The memory stores an instruction that can be executed by the at least one processor. The at least one processor executes the instruction stored in the memory, to perform the method according to any one of the first aspect or the possible implementations of the first aspect.
- According to a fourth aspect, an embodiment of this application provides a computer-readable storage medium. The computer-readable storage medium stores a computer program. The computer program includes a program instruction. When executed by a computer, the computer is enabled to perform the method according to any one of the first aspect or the possible implementations of the first aspect.
-
-
FIG. 1 is a schematic diagram of sidelink-based V2X communication; -
FIG. 2 is a schematic diagram of V2X communication based on cellular network (eNB) transition; -
FIG. 3 is a schematic diagram of a protocol stack architecture of ITS system data transmission; -
FIG. 4 is a schematic diagram of a possible specific protocol stack architecture of ITS system data transmission; -
FIG. 5 is a schematic structural diagram of a packet header of a MAC layer data packet of a sidelink; -
FIG. 6A andFIG. 6B are schematic diagrams of two application scenarios according to an embodiment of this application; -
FIG. 7 is a schematic flowchart of a service data transmission method according to an embodiment of this application; -
FIG. 8 is a possible schematic diagram of destination address information; -
FIG. 9 is a schematic structural diagram of a possible data sending apparatus according to an embodiment of this application; and -
FIG. 10 is a schematic structural diagram of another possible data sending apparatus according to an embodiment of this application. - To make the purpose, technical solutions, and advantages of the embodiments of this application clearer, the following clearly and completely describes the technical solutions of the embodiments of this application with reference to the accompanying drawings in the embodiments of this application.
- In the following, some terms of the embodiments of this application are described, so as to help persons skilled in the art have a better understanding.
- (1) A terminal may refer to a device that provides a user with voice and/or data connectivity, for example, may be a handheld device with a wireless connection function, or a processing device connected to a wireless modem. The terminal may communicate with a core network through a radio access network (radio access network, RAN), and exchange voice and/or data with the RAN. The terminal may be referred to as a vehicle, user equipment (user equipment, UE), a wireless terminal device, a mobile terminal device, a subscriber unit (subscriber unit), a subscriber station (subscriber station), a mobile station (mobile station), a mobile console (mobile), a remote station (remote station), an access point (access point, AP), a remote terminal (remote terminal), an access terminal (access terminal), a user terminal device (user terminal), a user agent (user agent), a user device (user device), or the like. For example, the terminal may include a mobile phone (or referred to as a "cellular" phone), a computer with a mobile terminal device, a dedicated terminal device in a narrowband internet of things (narrow band internet of things, NB-IoT), or a portable, pocket-sized, handheld, computer built-in, or vehicle-mounted mobile apparatus. For example, it may be a device such as a personal communication service (personal communication service, PCS) phone, a cordless telephone set, a session initiation protocol (session initiation protocol, SIP) phone, a wireless local loop (wireless local loop, WLL) station, or a personal digital assistant (personal digital assistant, PDA).
In the embodiments of this application, the terminal may further include a V2X device, for example, an On-Board-Unit (on broad unit, OBU) in a vehicle. In the following description, for example, the terminal is mainly a V2X device. - (2) The base station may be configured to mutually convert a received over-the-air frame and an IP packet and serve as a router between the wireless terminal and a rest portion of the access network, where the rest portion of the access network may include an Internet protocol (Internet protocol, IP) network. The base station may coordinate attribute management of the air interface. For example, the base station may be a network device in a 5G system, for example, a next-generation Node B (next generation Node B, gNB), or may be a base transceiver station (base transceiver station, BTS) in the global system for mobile communications (global system for mobile Communication, GSM) or code division multiple access (code division multiple access, CDMA), or may be a Node B (NodeB) in wideband code division multiple access (wideband code division multiple access, WCDMA), or may be an evolved Node B (evolutional Node B, eNB or e-NodeB) in LTE. This is not limited in the embodiments of this application.
- (3) V2X: Currently, a vehicle may obtain traffic information or receive information through V2V, V2I, V2P, V2N, or another manner. These communication modes may be collectively referred to as V2X communication. The most common V2V and V2I are used as an example. A vehicle may broadcast information, such as a vehicle speed, a driving direction, a specific location, or whether an emergency brake is stepped on, of the vehicle to a nearby vehicle through V2V communication. The nearby vehicle obtains such information, so that a driver can better sense a traffic status beyond a visual range, to make an early judgment on a dangerous status, and further make timely avoidance. For V2I communication, in addition to interaction of the foregoing security information, a roadside infrastructure may further provide various types of service information, data network access, and the like for the vehicle. Functions such as no-stop charging and in-vehicle entertainment greatly improve traffic intelligence. Usually, a network used for V2X communication is referred to as an internet of vehicles.
- (4) A PC5 interface is a direct communications interface between terminal devices that is introduced in a D2D project of the 3rd generation partnership project (3rd generation partnership project, 3GPP) release 12 (Rel-12). Adjacent terminals may transmit data to each other through a direct link within an effective communication range of PC5, without a need for forwarding through a central node (for example, a base station) or a need for information transmission through a conventional cellular link. Therefore, the communication is fast and easy. Sidelink communication between V2X devices is also performed through the PC5 interface.
- (5) The terms "system" and "network" may be used interchangeably in the embodiments of this application. The term "and/or" describes an association relationship for describing associated objects and represents that three relationships may exist. For example, A and/or B may represent the following three cases: Only A exists, both A and B exist, and only B exists. In addition, the character "/" generally indicates an "or" relationship between the associated objects. Terms such as "first" and "second" are used only to distinguish between purposes of description, and should not be understood as indicating or implying relative importance, and should not be understood as indicating or implying an order. "Multiple" refers to two or more than two.
- The technologies described herein can be used for various types of communications systems, for example, a long term evolution (long term evolution, LTE) system, a fifth-generation mobile communications system (5G), and other such communications systems. The technical solutions in the embodiments of this application are not limited to V2X communication, but can also be used for other device-to-device communication, machine-to-machine communication, or communication in another internet-of-things system.
- To better understand the technical solutions provided in the embodiments of this application, the following first describes the technical background of the embodiments of this application.
- A large quantity of traffic accidents occur every year around the world, causing a large quantity of casualties and property losses. A main reason for traffic accidents is the lack of timely and reliable information interaction between vehicles. An internet-of-vehicles system (vehicle network) is intended to improve road safety, improve traffic operation efficiency, and provide users with rich streaming media services through V2V, V2I, V2P, V2N, and other communications technologies.
- An intelligent transportation system (intelligent transportation system, ITS) has strict requirements for low latency and high reliability of communication. The LTE-V2X technology standardized by 3GPP has advantages such as a low latency, a high speed, wide coverage, and high reliability, and is a good internet-of-vehicles technology. The LTE-V2X supports vehicle-to-vehicle, vehicle-to-pedestrian, vehicle-to-infrastructure, and vehicle-to-network bidirectional communication. The V2V communication is mainly used as an example for description.
- Currently, LTE-V2X communication supports two communication modes, including sidelink-based V2X communication shown in
FIG. 1 and V2X communication based on cellular network (eNB) transition shown inFIG. 2 . For example, a terminal inFIG. 1 is a vehicle. During actual application, the terminal may alternatively be another type of terminal, such as a mobile phone or a computer. This is not specifically limited in this embodiment of this application. - The sidelink-based V2X communication means that a data sending terminal and a data receiving terminal directly communicate with each other through a sidelink. The link through which the terminals implement direct communication is referred to as a sidelink (sidelink, SL), or referred to as a side link. The V2V communication based on cellular network transition means that terminals implement communication through transition by a base station. To be specific, data sent by a data sending terminal needs to be forwarded by the base station to a data receiving terminal. Specifically, UE sends data to a base station through an uplink between the UE and the base station, and then the base station sends the data to another UE through a downlink between the base station and the another UE.
- Further, the sidelink-based V2X communication is further classified into two communication modes: a base station scheduling mode (mode 3) and autonomous resource selection and scheduling (mode 4).
- In the base station scheduling mode, a terminal accesses an LTE network, a base station is responsible for allocating a resource for sidelink transmission of vehicle-to-vehicle direct communication, and the terminal performs sidelink communication by using the resource scheduled by the base station. In the autonomous resource selection and scheduling by the terminal, the base station configures a resource pool for the terminal by using radio resource control (radio resource control, RRC) signaling (including dedicated RRC signaling or a system information block (system information block, SIB) message). The terminal autonomously obtains a resource from the resource pool to perform sidelink communication. When the terminal falls out coverage of the network, the resource pool may be preconfigured. In this case, the terminal obtains a resource from the preconfigured resource pool to perform sidelink communication. The terminal may autonomously obtain a resource from the resource pool in a random resource selection manner, or in an interception-based resource selection manner, or in another manner. This is not limited in the embodiments of this application.
-
FIG. 3 is a schematic diagram of a protocol stack architecture of ITS system data transmission. As shown inFIG. 3 , the protocol stack architecture includes at least an application layer, a network layer, an adaptation layer, and an access layer. - The access layer is a layer used to provide functions such as communication network node addressing, communication medium access control, and data transmission communication physical connection establishment, keeping, and maintenance. The access layer can provide a communications interface for communication between devices. The access layer may include a plurality of different access technologies, such as an LTE-V2X PC5 interface and a wireless network (wireless fidelity, Wi-Fi) interface. Different access technologies may correspond to different communications interfaces.
- The network layer is located above the access layer and is configured to implement network topology control, data routing, device data transmission, and an application communication service.
- The application layer is located above the network layer and is a layer configured to provide a user with various types of applications and service means.
- There may be different networks and/or transport protocols at the network layer, and there may be a plurality of different access technologies at the access layer. Therefore, the adaptation layer is configured to provide transport adaptation functions between the different access technologies and the different networks and/or transport protocols. For example, the adaptation layer receives a data packet transferred by an upper layer (above the adaptation layer), distinguishes a bottom layer (under the adaptation layer) access technology (such as LTE-V2X PC5 or Wi-Fi) used by the data packet, and submits the data packet to a bottom layer (under the adaptation layer) conforming to the corresponding access technology for transmission; or receives a data packet from a bottom layer (under the adaptation layer), distinguishes a type of an upper layer (above the adaptation layer) protocol to which the data packet belongs, and submits the data packet to the corresponding upper layer protocol for processing. For another example, different networks and/or transport protocols and different access layer technologies may use different address information. The adaptation layer generates an access layer address based on destination address information corresponding to the data packet, and submits the access layer address to the access layer.
- It should be noted that, the adaptation layer is a logical layer, and a function of the adaptation layer may exist as an independent layer and is also included in a "generalized network layer" or a "generalized access layer" (for example, as a sublayer). When the function of the adaptation layer is included in a "generalized network layer", the "generalized network layer" includes at least functions of the network layer and the adaptation layer in the present invention. Similarly, when the function of the adaptation layer is included in a "generalized access layer", the "generalized access layer" includes at least functions of the access layer and the adaptation layer in the present invention.
- For example,
FIG. 4 is a schematic diagram of a possible specific protocol stack architecture of ITS system data transmission. An adaptation layer is used as a sublayer of a "generalized network layer". - When an access layer technology is LTE-V2X, an access layer protocol stack includes, from top to bottom, a packet data convergence protocol (packet date convergence protocol, PDCP) layer, a radio link control (radio link control, RLC) layer, a medium access control (medium access control, MAC) layer, and a physical layer (physical layer, PHY).
- The PDCP layer may be configured to process data of an upper layer (above the PDCP layer). For example, in a user plane, after receiving the data from the upper layer, the PDCP layer may perform header compression and encryption on the data, and then submit (submit) the data to the RLC layer. In addition, the PDCP layer may further provide the upper layer with sequential submission and repeated packet detection functions. For example, in a control plane, the PDCP layer may provide the upper layer with an RRC signaling transmission service, and implement encryption and consistency protection of RRC signaling. The MAC layer provides a data transmission service on logical channels (logical channels). The logical channels usually may be divided into two categories: control channel and service channel. The control channel is configured to transmit control plane information, and the service channel is configured to transmit user plane information. In addition, the MAC layer may be further responsible for mapping the logical channel to a transport channel. The PHY layer is under the MAC layer. The PHY layer is mainly responsible for mapping the transport channel to a physical channel.
- For example, the network layer may include a network protocol and/or a transport protocol of an open systems interconnection model (open systems interconnection model, OSI), and is responsible for exchanging data with different applications and providing a connection-oriented service and/or data forwarding. For example, the network layer may include a dedicated short message protocol (dedicated short message protocal, DSMP), a geographic location-based network protocol (GeoNetworking), a wireless access short message protocol (WAVE short message protocal, WSMP; wireless access in vehicleure enviroments, WAVE) in an internet-of-vehicles environment, at least one of non-IP (non-IP) network protocols such as a fast network and transport layer protocol (fast network & transport layer protocal, FNTP), and/or an IP network protocol. In addition, the network layer may further include a transport protocol such as a user datagram protocol (user datagram protocol, UDP)/transmission control protocol (transmission control protocol, TCP). The network layer transmits a data packet that the application layer is interested in to the application layer, and receives a data packet from the application layer.
- In a possible implementation form, the network layer may include only one of the non-IP protocols, for example, a dedicated short message protocol (dedicated short message protocal, DSMP).
- The network layer may distinguish between different application layer services by using application identifiers (application ID, AID)/provider service identifiers (provider service identifier, PSID).
- Information may be transferred between layers through an interface (also referred to as a service access point (Service Acess Point, SAP)). Specifically, information may be transferred between the application layer and the network layer in a form of a service primitive (service primitive, SP) (a primitive for short) through an interface SAP1, information may be transferred between the network layer and the adaptation layer in a form of a primitive through an interface SAP2, and information may be transferred between the adaptation layer and the access layer in a form of a primitive through an interface SAP3.
- Usually, there are four types of primitives: a request (request), an indication (indication), a response (response), and a confirmation (confirm). The request is sent from an upper layer to a lower layer, to request the lower layer to provide a specified service, such as data transmission. The indication is sent from the lower layer to the upper layer, to notify the upper layer that something has happened, for example, the lower layer receives data sent by a remote peer entity. The response is sent from the upper layer to the lower layer, and is a response to the indication sent by the lower layer to the upper layer. The confirmation is sent from the lower layer to the upper layer, to indicate that the service requested by the upper layer request has been completed and is confirmed.
- Using the protocol architecture shown in
FIG. 4 as an example, for example, the upper layer requests a bottom layer to send data. In this case, the primitive (also referred to as a service primitive, Service Primitive) transferred between the network layer and the adaptation layer through the SAP2 may include:
ADAPTATION-LAYER.request( Applicationldentifier //an AID or a PSID ProtocolType //network and/or transport protocol type information Data //data (data submitted by the network layer to the adaptation layer) Peer address //destination address information Source address //transmit address information )
ACCESS-LAYER.request( Source_address //source address information of the access layer Destination_address //destination address information of the access layer Data //data (data submitted by the adaptation layer to the access layer) PDCP SDU type, //data type information of the access layer)
- (1) In a current LTE V2X protocol, a communication mode is indicated at the access layer by using version number information carried in a packet header of a MAC layer data packet. For example,
FIG. 5 is a schematic structural diagram of a packet header of a MAC layer data packet of a sidelink, and V in a field (Oct) 1 indicates a version number. However, in the current LTE V2X protocol, only "0011" is defined to be used to represent a broadcast transmission mode, and no representation manner is defined for a unicast transmission mode or a multicast transmission mode. - (2) Still referring to
FIG. 5 , in the current LTE V2X protocol, the packet header of the MAC layer data packet includes a source address (source_address, SRC) and a destination address (destination_address, DST) of 24 bits. The address is referred to as an access layer address, and is also referred to as a layer-2 address or a MAC address. The DST is generated based on an application identifier (application ID, AID) or a provider service identifier (provider service identifier, PSID) transferred by an upper layer (that is, the layer above the access layer), and therefore, can be used only to indicate a service type corresponding to data, and cannot identify a destination device (the destination device may also be referred to as a peer device herein) corresponding to the data. Therefore, the DST cannot support unicast or multicast communication.
Solution 1: The adaptation layer determines, based on the destination address information, that the addressing type is address-based addressing.
- (1) The preset field in the destination address information indicates that a transmission mode corresponding to the first data is unicast or multicast. Correspondingly, when the adaptation layer determines that the preset field in the destination address information indicates that the transmission mode corresponding to the first data is unicast or multicast, the adaptation layer determines that the addressing type is address-based addressing.
First implementation: The adaptation layer determines, based on a value of the service type information, that the addressing type is address-based addressing.
- (1) The preset field in the service type information indicates that a transmission mode corresponding to the first data is unicast or multicast. Correspondingly, when the adaptation layer determines that the preset field in the service type information indicates that the transmission mode corresponding to the first data is unicast or multicast, the adaptation layer determines that the addressing type is address-based addressing.
- an
adaptation layer module 901, configured to: obtain first data and attribute information corresponding to the first data from a network layer, where the attribute information includes destination address information; generate a first access layer address based on the destination address information; and transfer the first data and the first access layer address to an access layer module 404; and - the
access layer module 902, configured to send the first data through a sidelink based on the first access layer address.
Claims (28)
- A data sending method, comprising:obtaining, by an adaptation layer, first data and attribute information corresponding to the first data from a network layer, wherein the attribute information comprises destination address information;generating, by the adaptation layer, a first access layer address based on the destination address information;transferring, by the adaptation layer, the first data and the first access layer address to an access layer; andsending, by the access layer, the first data through a sidelink based on the first access layer address.
- The method according to claim 1, wherein before the generating, by the adaptation layer, a first access layer address based on the destination address information, the method further comprises:
determining, by the adaptation layer, that an addressing type corresponding to the first data is address-based addressing. - The method according to claim 2, wherein the determining, by the adaptation layer, that an addressing type corresponding to the first data is address-based addressing comprises:determining, by the adaptation layer based on a value of the destination address information, that the addressing type is address-based addressing; ordetermining, by the adaptation layer based on a preset field in the destination address information, that the addressing type is address-based addressing.
- The method according to claim 3, wherein the determining, by the adaptation layer based on a value of the destination address information, that the addressing type is address-based addressing comprises:when the value of the destination address information is greater than or equal to a first threshold, determining, by the adaptation layer, that the addressing type is address-based addressing; orwhen the value of the destination address information is less than or equal to a second threshold, determining, by the adaptation layer, that the addressing type is address-based addressing; orwhen the value of the destination address information is greater than or equal to a third threshold and is less than or equal to a fourth threshold, determining, by the adaptation layer, that the addressing type is address-based addressing.
- The method according to claim 3, whereinthe preset field indicates that the addressing type of the first data is address-based addressing; orthe preset field indicates that a transmission mode corresponding to the first data is unicast or multicast; and the determining, by the adaptation layer based on a preset field in the destination address information, that the addressing type is address-based addressing comprises: when the adaptation layer determines that the preset field in the destination address information indicates that the transmission mode corresponding to the first data is unicast or multicast, determining, by the adaptation layer, that the addressing type is address-based addressing.
- The method according to claim 2, wherein the attribute information further comprises service type information corresponding to the first data, and the service type information indicates a service type corresponding to the first data; and
the determining, by the adaptation layer, that an addressing type corresponding to the first data is address-based addressing comprises:
determining, by the adaptation layer based on the service type information, that the addressing type corresponding to the first data is address-based addressing. - The method according to claim 6, wherein the determining, by the adaptation layer based on the service type information, that the addressing type corresponding to the first data is address-based addressing comprises:determining, by the adaptation layer based on a value of the service type information, that the addressing type is address-based addressing; ordetermining, by the adaptation layer based on a preset field in the service type information, that the addressing type is address-based addressing.
- The method according to claim 7, wherein the determining, by the adaptation layer based on a value of the service type information, that the addressing type is address-based addressing comprises:when the value of the service type information is greater than or equal to a fifth threshold, determining, by the adaptation layer, that the addressing type is address-based addressing; orwhen the value of the service type information is less than or equal to a sixth threshold, determining, by the adaptation layer, that the addressing type is address-based addressing; orwhen the value of the service type information is greater than or equal to a seventh threshold and is less than or equal to an eighth threshold, determining, by the adaptation layer, that the addressing type is address-based addressing.
- The method according to claim 7, whereinthe preset field indicates that the addressing type of the first data is address-based addressing; orthe preset field indicates that a transmission mode corresponding to the first data is unicast or multicast; and the determining, by the adaptation layer based on a preset field in the service type information, that the addressing type is address-based addressing comprises: when the adaptation layer determines that the preset field in the service type information indicates that the transmission mode corresponding to the first data is unicast or multicast, determining, by the adaptation layer, that the addressing type is address-based addressing.
- The method according to any one of claims 6 to 9, wherein the service type information is an application identifier AID or a provider service identifier PSID.
- The method according to claim 2, wherein the attribute information further comprises transmission mode indication information corresponding to the first data, wherein the transmission mode indication information indicates a transmission mode corresponding to the first data; and
the determining, by the adaptation layer, that an addressing type corresponding to the first data is address-based addressing comprises:
determining, by the adaptation layer based on the transmission mode indication information, that the addressing type corresponding to the first data is address-based addressing. - The method according to claim 11, wherein the determining, by the adaptation layer based on the transmission mode indication information, that the addressing type corresponding to the first data is address-based addressing comprises:
when the transmission mode indication information indicates that the transmission mode corresponding to the first data is unicast or multicast, determining, by the adaptation layer, that the addressing type is address-based addressing. - The method according to any one of claims 1 to 12, wherein the generating, by the adaptation layer, a first access layer address based on the destination address information comprises:
using, by the adaptation layer, a field on most significant 24 bits or a field on least significant 24 bits in the destination address information as the first access layer address. - A data sending apparatus, comprising:an adaptation layer module, configured to: obtain first data and attribute information corresponding to the first data from a network layer, wherein the attribute information comprises destination address information; generate a first access layer address based on the destination address information; and transfer the first data and the first access layer address to an access layer module; andthe access layer module, configured to send the first data through a sidelink based on the first access layer address.
- The apparatus according to claim 14, wherein the adaptation layer module is further configured to:
before generating the first access layer address based on the destination address information, determine that an addressing type corresponding to the first data is address-based addressing. - The apparatus according to claim 15, wherein when the adaptation layer module determines that the addressing type corresponding to the first data is address-based addressing, the adaptation layer module is specifically configured to:determine, based on a value of the destination address information, that the addressing type is address-based addressing; ordetermine, based on a preset field in the destination address information, that the addressing type is address-based addressing.
- The apparatus according to claim 16, wherein when the adaptation layer module determines, based on a value of the destination address information, that the addressing type is address-based addressing, the adaptation layer module is specifically configured to:when the value of the destination address information is greater than or equal to a first threshold, determine that the addressing type is address-based addressing; orwhen the value of the destination address information is less than or equal to a second threshold, determine that the addressing type is address-based addressing; orwhen the value of the destination address information is greater than or equal to a third threshold and is less than or equal to a fourth threshold, determine that the addressing type is address-based addressing.
- The apparatus according to claim 16, whereinthe preset field indicates that the addressing type of the first data is address-based addressing; orthe preset field indicates that a transmission mode corresponding to the first data is unicast or multicast; and when the adaptation layer module determines, based on the preset field in the destination address information, that the addressing type is address-based addressing, the adaptation layer module is specifically configured to: when the preset field in the destination address information indicates that the transmission mode corresponding to the first data is unicast or multicast, determine that the addressing type is address-based addressing.
- The apparatus according to claim 15, wherein the attribute information further comprises service type information corresponding to the first data, and the service type information indicates a service type corresponding to the first data; and
when the adaptation layer module determines that the addressing type corresponding to the first data is address-based addressing, the adaptation layer module is specifically configured to:
determine, based on the service type information, that the addressing type corresponding to the first data is address-based addressing. - The apparatus according to claim 19, wherein when the adaptation layer module determines, based on the service type information, that the addressing type corresponding to the first data is address-based addressing, the adaptation layer module is specifically configured to:determine, based on a value of the service type information, that the addressing type is address-based addressing; ordetermine, based on a preset field in the service type information, that the addressing type is address-based addressing.
- The apparatus according to claim 20, wherein when the adaptation layer module determines, based on the value of the service type information, that the addressing type is address-based addressing, the adaptation layer module is specifically configured to:when the value of the service type information is greater than or equal to a fifth threshold, determine that the addressing type is address-based addressing; orwhen the value of the service type information is less than or equal to a sixth threshold, determine that the addressing type is address-based addressing; orwhen the value of the service type information is greater than or equal to a seventh threshold and is less than or equal to an eighth threshold, determine that the addressing type is address-based addressing.
- The apparatus according to claim 20, whereinthe preset field indicates that the addressing type of the first data is address-based addressing; orthe preset field indicates that a transmission mode corresponding to the first data is unicast or multicast; and when the adaptation layer module determines, based on the preset field in the service type information, that the addressing type is address-based addressing, the adaptation layer module is specifically configured to: when the preset field in the service type information indicates that the transmission mode corresponding to the first data is unicast or multicast, determine that the addressing type is address-based addressing.
- The apparatus according to any one of claims 19 to 22, wherein the service type information is an AID or a PSID.
- The apparatus according to claim 15, wherein the attribute information further comprises transmission mode indication information corresponding to the first data, wherein the transmission mode indication information indicates a transmission mode corresponding to the first data; and
when the adaptation layer module determines that the addressing type corresponding to the first data is address-based addressing, the adaptation layer module is specifically configured to:
determine, based on the transmission mode indication information, that the addressing type corresponding to the first data is address-based addressing. - The apparatus according to claim 24, wherein when the adaptation layer module determines, based on the transmission mode indication information, that the addressing type corresponding to the first data is address-based addressing, the adaptation layer module is specifically configured to:
when the transmission mode indication information indicates that the transmission mode corresponding to the first data is unicast or multicast, determine that the addressing type is address-based addressing. - The apparatus according to any one of claims 14 to 25, wherein the adaptation layer module is specifically configured to:
use a field on most significant 24 bits or a field on least significant 24 bits in the destination address information as the first access layer address. - A data sending apparatus, comprising:at least one processor; anda memory and a communications interface that are communicatively connected to the at least one processor, whereinthe memory stores an instruction that can be executed by the at least one processor, and the at least one processor executes the instruction stored in the memory, to perform the method according to any one of claims 1 to 13.
- A computer-readable storage medium, wherein
the computer-readable storage medium stores a computer program, wherein the computer program comprises a program instruction; and when the program instruction is executed by a computer, the computer is enabled to perform the method according to any one of claims 1 to 13.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910277864.0A CN111800756B (en) | 2019-04-08 | 2019-04-08 | Data sending method and device and computer readable storage medium |
PCT/CN2020/076228 WO2020207126A1 (en) | 2019-04-08 | 2020-02-21 | Data transmission method and device, and computer-readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
EP3952351A1 true EP3952351A1 (en) | 2022-02-09 |
EP3952351A4 EP3952351A4 (en) | 2022-05-18 |
Family
ID=72751888
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP20787083.3A Pending EP3952351A4 (en) | 2019-04-08 | 2020-02-21 | Data transmission method and device, and computer-readable storage medium |
Country Status (6)
Country | Link |
---|---|
US (1) | US20220030400A1 (en) |
EP (1) | EP3952351A4 (en) |
JP (1) | JP7177287B2 (en) |
KR (1) | KR102552951B1 (en) |
CN (1) | CN111800756B (en) |
WO (1) | WO2020207126A1 (en) |
Family Cites Families (37)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB9621774D0 (en) * | 1996-10-18 | 1996-12-11 | Northern Telecom Ltd | Digital communications system |
CN1636356A (en) * | 2002-01-29 | 2005-07-06 | 皇家飞利浦电子股份有限公司 | Internet protocol based wireless communication arrangements |
US7466810B1 (en) * | 2004-12-20 | 2008-12-16 | Neltura Technology, Inc. | Distributed system for sharing of communication service resources between devices and users |
KR100899809B1 (en) * | 2007-12-11 | 2009-05-27 | 한국전자통신연구원 | Coordinator, gateway and transmission method for ipv6 in wireless sensor network |
KR101475345B1 (en) * | 2007-12-20 | 2014-12-22 | 삼성전자주식회사 | An apparatus of configuration address in a IPv6-based Low-power Wireless Personal Area Network and a method thereof |
DE102007061986A1 (en) * | 2007-12-21 | 2009-06-25 | Bayerische Motoren Werke Aktiengesellschaft | communication system |
US8706124B2 (en) * | 2009-09-17 | 2014-04-22 | Nokia Corporation | Data path transfer for multiband communication |
US8848590B2 (en) * | 2009-09-24 | 2014-09-30 | Nokia Corporation | Multicast group management in wireless networks |
CN102045882B (en) * | 2009-10-19 | 2015-01-21 | 华为技术有限公司 | Method, device and system of external communication of 6LoWPAN (internet protocol 6 over low power wireless personal area network) intra-network device and outside |
US8254386B2 (en) * | 2010-03-26 | 2012-08-28 | Verizon Patent And Licensing, Inc. | Internet protocol multicast on passive optical networks |
US9300491B2 (en) * | 2011-02-11 | 2016-03-29 | Qualcomm Incorporated | Frame delivery path selection in hybrid communication networks |
CN103379651B (en) * | 2012-04-13 | 2016-12-14 | 华为技术有限公司 | The method and apparatus of transmission signal |
US9229825B2 (en) * | 2013-06-28 | 2016-01-05 | International Business Machines Corporation | Quick failover of blade server |
CN103875205B (en) * | 2013-09-13 | 2016-12-28 | 华为技术有限公司 | The method and apparatus of transmission data |
US9420518B2 (en) * | 2014-08-07 | 2016-08-16 | Gainspan Corporation | Layer-3 mesh connectivity of wireless local networks |
US10412652B2 (en) * | 2015-04-10 | 2019-09-10 | Samsung Electronics Co., Ltd. | Apparatus and method for routing data packet to user equipment in LTE-WLAN aggregation system |
WO2016163032A1 (en) * | 2015-04-10 | 2016-10-13 | 富士通株式会社 | Wireless communication system, base station, mobile station, and processing method |
WO2017026442A1 (en) * | 2015-08-11 | 2017-02-16 | 京セラ株式会社 | Wireless terminal, base station, and wlan device |
CN108605320B (en) * | 2016-03-30 | 2023-03-14 | Oppo广东移动通信有限公司 | Method and apparatus for establishing radio resource control connection |
WO2018016882A1 (en) * | 2016-07-21 | 2018-01-25 | Samsung Electronics Co., Ltd. | A system and method for discovering user equipment (ue) over side link in device to device (d2d) communication |
US10469154B2 (en) * | 2017-03-30 | 2019-11-05 | Lg Electronics Inc. | Method for performing management of local id identifying a remote UE in a relay UE in wireless communication system and a device therefor |
CN110100496B (en) * | 2017-03-31 | 2022-09-02 | Lg电子株式会社 | Method for transmitting signal by terminal for V2X communication in wireless communication system and apparatus using the same |
CN108809897A (en) * | 2017-04-28 | 2018-11-13 | 中兴通讯股份有限公司 | A kind of relaying is found and relay transfer method, equipment and storage medium |
CN108092830B (en) * | 2018-02-09 | 2020-01-24 | 乐鑫信息科技(上海)股份有限公司 | Method for applying TCP/IP protocol in Mesh network |
WO2019160282A1 (en) * | 2018-02-14 | 2019-08-22 | 주식회사 케이티 | Method for processing uplink user data in relay node, and device for same |
KR102322381B1 (en) * | 2018-02-14 | 2021-11-10 | 주식회사 케이티 | Method for processing a RRC message of relay node and Apparatuses thereof |
CN110324784B (en) * | 2018-03-29 | 2021-02-19 | 维沃移动通信有限公司 | Communication range information processing method and terminal |
CN110351700B (en) * | 2018-04-05 | 2022-06-17 | 中兴通讯股份有限公司 | Relay forwarding method and node for self-access return link |
CN110891324B (en) * | 2018-09-07 | 2023-06-02 | 华为技术有限公司 | RRC connection method, device and system |
CN110972103B (en) * | 2018-09-28 | 2021-06-15 | 华为技术有限公司 | Communication method and device |
JP7268685B2 (en) * | 2018-10-10 | 2023-05-08 | ソニーグループ株式会社 | Communication device, communication method, program, and communication system |
CN111212459B (en) * | 2018-11-22 | 2021-09-14 | 华为技术有限公司 | Relay communication method and device |
EP3879907B1 (en) * | 2018-12-14 | 2022-09-28 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Data processing method and device, and storage medium |
CN111526559B (en) * | 2019-02-02 | 2022-05-10 | 华为技术有限公司 | Communication method and device |
KR20200114863A (en) * | 2019-03-29 | 2020-10-07 | 삼성전자주식회사 | Apparatus and method for supporting one-to-one communication service in wireless communication system |
KR102631108B1 (en) * | 2019-04-26 | 2024-01-30 | 삼성전자 주식회사 | METHOD FOR SUPPORTING DEVICE TO DEVICE COMMUNICATION THROUGH BROADCAST AND GROUPCAST BASED ON QoS FLOW IN WIRELESS COMMUNICATION SYSTEM |
CN113891292B (en) * | 2020-07-01 | 2024-01-12 | 华硕电脑股份有限公司 | Method and apparatus for establishing side link radio bearers for inter-UE relay communication in a wireless communication system |
-
2019
- 2019-04-08 CN CN201910277864.0A patent/CN111800756B/en active Active
-
2020
- 2020-02-21 WO PCT/CN2020/076228 patent/WO2020207126A1/en unknown
- 2020-02-21 JP JP2021559667A patent/JP7177287B2/en active Active
- 2020-02-21 KR KR1020217036109A patent/KR102552951B1/en active IP Right Grant
- 2020-02-21 EP EP20787083.3A patent/EP3952351A4/en active Pending
-
2021
- 2021-10-08 US US17/496,928 patent/US20220030400A1/en active Pending
Also Published As
Publication number | Publication date |
---|---|
CN111800756B (en) | 2021-12-14 |
EP3952351A4 (en) | 2022-05-18 |
JP7177287B2 (en) | 2022-11-22 |
KR102552951B1 (en) | 2023-07-10 |
US20220030400A1 (en) | 2022-01-27 |
WO2020207126A1 (en) | 2020-10-15 |
JP2022528541A (en) | 2022-06-14 |
CN111800756A (en) | 2020-10-20 |
KR20210147050A (en) | 2021-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021159906A1 (en) | Sidelink relay communication method and apparatus, device and medium | |
US11252752B2 (en) | Information feedback method and apparatus | |
CN108307536B (en) | Routing method and device | |
EP3998786A1 (en) | Data transmission method and apparatus, first communication node, and second communication node | |
EP3952398B1 (en) | Radio bearer configuration method, apparatus and system | |
US11902860B2 (en) | Communication method and device | |
WO2020143690A1 (en) | Radio bearer configuration method, terminal and communication device | |
WO2016173078A1 (en) | Data transfer method and system, and ue having relay function | |
WO2016173076A1 (en) | Data transfer method and system, and ue having relay function | |
US12010018B2 (en) | Wireless communication method and device | |
WO2017113207A1 (en) | Service message transmission method, first terminal and network-side device | |
WO2013091510A1 (en) | Data frame transmission method and device | |
WO2022205234A1 (en) | Communication method and apparatus | |
US8315192B2 (en) | Method and system for configuring a media access control header to reduce a header overhead | |
WO2021134754A1 (en) | Method and apparatus for establishing terminal connection | |
US12047849B2 (en) | Method and apparatus for groupcast connection establishment and transmission | |
EP3952351A1 (en) | Data transmission method and device, and computer-readable storage medium | |
CN117837093A (en) | Network triggered aggregation operations | |
US20170311135A1 (en) | Control Signaling Transmission Method in MCPTT Architecture and Related Device | |
WO2023169451A1 (en) | Communication method and apparatus and storage medium | |
WO2024016279A1 (en) | Communication method, apparatus and device, and storage medium, chip, product and program | |
WO2019213905A1 (en) | Method and apparatus for binding data stream, and computer storage medium | |
WO2024035818A1 (en) | Systems and methods for facilitating ue route selection policy rule enforcement | |
CN115701089A (en) | Communication method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE INTERNATIONAL PUBLICATION HAS BEEN MADE |
|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: REQUEST FOR EXAMINATION WAS MADE |
|
17P | Request for examination filed |
Effective date: 20211027 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC MK MT NL NO PL PT RO RS SE SI SK SM TR |
|
A4 | Supplementary search report drawn up and despatched |
Effective date: 20220421 |
|
RIC1 | Information provided on ipc code assigned before grant |
Ipc: H04W 4/40 20180101AFI20220413BHEP |
|
DAV | Request for validation of the european patent (deleted) | ||
DAX | Request for extension of the european patent (deleted) |