WO2023130216A1 - Communication method, apparatus and system - Google Patents

Communication method, apparatus and system Download PDF

Info

Publication number
WO2023130216A1
WO2023130216A1 PCT/CN2022/070131 CN2022070131W WO2023130216A1 WO 2023130216 A1 WO2023130216 A1 WO 2023130216A1 CN 2022070131 W CN2022070131 W CN 2022070131W WO 2023130216 A1 WO2023130216 A1 WO 2023130216A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
client
qos
service
entity
Prior art date
Application number
PCT/CN2022/070131
Other languages
French (fr)
Chinese (zh)
Inventor
万宗顺
刘哲
张翔
Original Assignee
华为技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN202280003214.7A priority Critical patent/CN116711448A/en
Priority to PCT/CN2022/070131 priority patent/WO2023130216A1/en
Publication of WO2023130216A1 publication Critical patent/WO2023130216A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Embodiments of the present application provide a communication method, which can be applied to the field of service-oriented architecture-based communications. The method comprises: a client entity acquires quality of service (QoS) information related to connection between a client application and a server application; the client entity sends a service request packet, the service request packet carrying QoS management and control information and a service request sequence of the client application for the server application, the QoS management and control information comprising an enabling indication of one or more of the QoS information. According to the communication method provided by the embodiments of the present application, a differentiated QoS management method can be provided for communication between vehicle-mounted applications, thereby providing guarantees of multiple dimensions such as priority and reliability.

Description

通信方法、装置及系统Communication method, device and system 技术领域technical field
本申请实施例涉及通信技术领域,尤其涉及面向服务架构的通信方法、装置和系统。The embodiments of the present application relate to the technical field of communication, and in particular to a communication method, device and system for a service-oriented architecture.
背景技术Background technique
随着汽车智能化和网络化的发展,智能汽车对于算力以及通信带宽的要求越来越高,整车电子电气架构逐渐向以太网作为骨干网的方向发展。图1所示为业界采用的一种智能车电子电气架构的示意图,车载通信网100包括通信总线和多个通信节点。其中,通信节点可以包括传感器120、执行器130、网关140和域控制器110a~110c。每个节点上部署了多种应用(application)实现相应的功能。通信总线可以包括以太(ethernet,Eth)网,控制器局域网(controller area network,CAN)总线,或者局域互联网络总线(local interconnect network,LIN)总线中的一种或多种。其中骨干网可以为Eth网络,Eth骨干网上的节点可以包括网关、域控制器以及直接使用Eth网协议通信的传感器、执行器。一个或多个域控制器分别负责不同域的控制功能,如座舱域,智能驾驶域控制器,以及车辆域等。在自动驾驶场景中,用于环境感知的传感器可以获得感知数据,如图像、毫米波雷达信号,激光点云等,并将感知数据发送给智能驾驶域控制器,智能驾驶域控制器上的融合应用和决策应用对该数据进行处理,并根据处理后数据做出决策和控制,将控制指令发送给用于进行车辆控制的执行器,以控制执行器执行相应的动作,如加/减速、变道、转向、刹车、或警示等。With the development of automobile intelligence and networking, smart cars have higher and higher requirements for computing power and communication bandwidth, and the electronic and electrical architecture of the whole vehicle is gradually developing towards Ethernet as the backbone network. FIG. 1 is a schematic diagram of an electrical and electronic architecture of a smart car adopted in the industry. A vehicle communication network 100 includes a communication bus and multiple communication nodes. Wherein, the communication node may include a sensor 120, an actuator 130, a gateway 140, and domain controllers 110a-110c. Various applications are deployed on each node to implement corresponding functions. The communication bus may include one or more of an Ethernet (ethernet, Eth) network, a controller area network (controller area network, CAN) bus, or a local interconnect network (LIN) bus. The backbone network may be an Eth network, and the nodes on the Eth backbone network may include gateways, domain controllers, and sensors and actuators that communicate directly using the Eth network protocol. One or more domain controllers are respectively responsible for the control functions of different domains, such as the cockpit domain, intelligent driving domain controller, and vehicle domain. In the autonomous driving scenario, the sensor used for environment perception can obtain perception data, such as images, millimeter-wave radar signals, laser point clouds, etc., and send the perception data to the intelligent driving domain controller, and the fusion on the intelligent driving domain controller Applications and decision-making applications process the data, make decisions and controls based on the processed data, and send control commands to the actuators used for vehicle control to control the actuators to perform corresponding actions, such as acceleration/deceleration, variable speed, etc. road, turn, brake, or warning, etc.
随着智能汽车的功能越来越多、软件越来越复杂、开发难度越来越高,节点上部署的应用之间的通信的数据量和频道极大的增加。业界正在引入面向服务架构(Service Oriented Architecture,SOA)用以解决智能车大规模软件开发的挑战。汽车自动驾驶、车载娱乐、远程诊断升级等新技术对车载通信提出了更高的要求。如何将现有的以太网技术运用到汽车领域是我们面临的一大挑战。With more and more functions of smart cars, more and more complex software, and more and more difficult development, the data volume and channels of communication between applications deployed on nodes will increase greatly. The industry is introducing Service Oriented Architecture (SOA) to solve the challenges of large-scale software development for smart vehicles. New technologies such as auto-driving, in-vehicle entertainment, and remote diagnostic upgrades have put forward higher requirements for in-vehicle communication. How to apply the existing Ethernet technology to the automotive field is a big challenge we face.
基于IP的可伸缩的面向服务的中间件(Scalable service-Oriented Middleware over IP,SOME/IP)是为汽车行业开发的一种通信协议,它将以太网通信作为一种中间件成功运用到了车载通信领域。当前SOME/IP协议相比其他通信协议来说提出较晚,尚不成熟。IP-based scalable service-oriented middleware (Scalable service-Oriented Middleware over IP, SOME/IP) is a communication protocol developed for the automotive industry, which successfully applies Ethernet communication as a middleware to vehicle communication field. Compared with other communication protocols, the current SOME/IP protocol was proposed later and is not yet mature.
发明内容Contents of the invention
本申请实施例公开了一种通信方法、装置和系统,可以为车载以太网通信提供业务质量(quality of service,QoS)保证,以提高其在车载通信中的安全性。The embodiment of the present application discloses a communication method, device and system, which can provide quality of service (QoS) guarantee for vehicular Ethernet communication, so as to improve its security in vehicular communication.
第一方面,提供了一种通信方法,用于客户端实体响应于客户端应用对服务端应用的服务请求,客户端实体获取与所述客户端应用和所述服务端应用连接相关的业务质量QoS信息,所述QoS信息包括以下至少一项:服务相关的域信息,优先级信息以 及可靠性信息;In the first aspect, a communication method is provided, which is used for a client entity to respond to a service request from a client application to a server application, and the client entity obtains the quality of service related to the connection between the client application and the server application QoS information, the QoS information includes at least one of the following: service-related domain information, priority information, and reliability information;
所述客户端实体发送所述客户端应用对服务端应用的服务请求报文,所述服务请求报文包括客户端连接信息,QoS管控信息以及所述客户端应用对所述服务端应用的服务请求序列,所述QoS管控信息包括所述QoS信息中一项或多项的启用指示。The client entity sends a service request message from the client application to the server application, and the service request message includes client connection information, QoS control information, and a service request from the client application to the server application. A request sequence, the QoS control information includes an activation indication of one or more items in the QoS information.
上述方法可以为车载应用之间的通信提供差异化的QoS管理方法,提供优先级、可靠性等多个维度的保证。对于不同类型的车载应用可以满足高可靠、高安全、低时延等QoS要求,从而为智能汽车提供更优异的服务化通信能力。The above method can provide a differentiated QoS management method for communication between vehicle applications, and provide guarantees in multiple dimensions such as priority and reliability. For different types of vehicle applications, it can meet QoS requirements such as high reliability, high security, and low latency, thereby providing smart cars with better service-oriented communication capabilities.
在一种可能的实现方式中,所述客户端实体以广播方式发送所述客户端应用对服务端应用的服务请求报文。In a possible implementation manner, the client entity sends the service request message of the client application to the server application in a broadcast manner.
在又一种可能的实现方式中,所述QoS管控信息包括域启用指示,并且域启用指示指示启用域控制,所述客户端实体在所述服务相关的域内以组播方式发送所述客户端应用对服务端应用的服务请求报文。从而使得服务提供的数据和其他数据隔离。In yet another possible implementation manner, the QoS control information includes a domain enabling indication, and the domain enabling indication indicates enabling domain control, and the client entity sends the client entity in a multicast manner within the service-related domain The service request message sent by the application to the server application. Thus, the data provided by the service is isolated from other data.
在又一种可能的实现方式中,所述发送所述客户端应用对服务端应用的服务请求报文之前,所述客户端实体根据所述优先级信息调度所述请求报文用于发送。所述客户端实体根据所述优先级信息调度所述请求报文用于发送有多种方式。In yet another possible implementation manner, before sending the service request message from the client application to the server application, the client entity schedules the request message for sending according to the priority information. There are multiple manners for the client entity to schedule the request message for sending according to the priority information.
例如:所述客户端实体根据所述优先级信息从系统的调度队列中确定所述优先级信息对应的调度队列;所述系统的调度队列至少包括第一调度队列和第二调度队列,所述第一调度队列的发送优先级高于所述第二调度队列;所述客户端实体调度所述请求报文进入所述优先级信息对应的调度队列。若所述优先级信息对应的调度队列中包括多个待发送报文,所述客户端实体对所述多个待发送报文和所述请求报文按照优先级信息排序以使得优先级高的报文优先发送。For example: the client entity determines the scheduling queue corresponding to the priority information from the scheduling queues of the system according to the priority information; the scheduling queue of the system includes at least a first scheduling queue and a second scheduling queue, the The sending priority of the first scheduling queue is higher than that of the second scheduling queue; the client entity schedules the request packet to enter the scheduling queue corresponding to the priority information. If the scheduling queue corresponding to the priority information includes a plurality of packets to be sent, the client entity sorts the plurality of packets to be sent and the request packets according to the priority information so that those with higher priority Packets are sent with priority.
又例如,所述客户端实体所在节点具备时延敏感网络TSN接口设备,所述客户端实体向所述TSN接口设备提供所述服务请求报文的所述QoS信息,以使得所述TSN接口设备将所述服务请求报文调度至所述QoS信息对应的发送队列中。从而可以利用TSN接口设备的能力,使得QoS控制更加丰富。For another example, the node where the client entity is located has a delay-sensitive network TSN interface device, and the client entity provides the QoS information of the service request message to the TSN interface device, so that the TSN interface device Scheduling the service request message into the sending queue corresponding to the QoS information. Therefore, the capability of the TSN interface device can be utilized to enrich the QoS control.
在又一种可能的实现方式中,所述QoS管控信息包括可靠性启用指示,所述可靠性启用指示指示启用可靠性控制,所述服务请求报文中还包括超时时长信息。In yet another possible implementation manner, the QoS control information includes a reliability enabling indication, and the reliability enabling indication indicates enabling reliability control, and the service request message further includes timeout duration information.
所述QoS信息可以通过配置工具配置的,或者,所述QoS信息是经过所述客户端实体与所述服务端实体协商得到的。The QoS information may be configured through a configuration tool, or the QoS information may be obtained through negotiation between the client entity and the server entity.
第二方面,提供了一种通信方法,用于服务端实体,服务端实体接收客户端实体发送所述客户端应用对服务端应用发起的服务请求报文,所述服务请求报文包括客户端连接信息,QoS管控信息,以及服务请求序列,所述QoS管控信息包括QoS信息中一项或多项的启用指示;In the second aspect, a communication method is provided, which is used for a server entity. The server entity receives the service request message sent by the client entity to the server application, and the service request message includes the Connection information, QoS control information, and service request sequence, where the QoS control information includes an activation indication of one or more items in the QoS information;
所述服务端实体解析所述服务请求报文获取所述客户端连接对应的QoS信息;The server entity parses the service request message to obtain QoS information corresponding to the client connection;
所述服务端实体根据QoS管控信息及所述QoS信息处理所述客户端应用对服务端应用的服务请求报文。The server entity processes the service request message from the client application to the server application according to the QoS control information and the QoS information.
上述方法可以为车载应用之间的通信提供差异化的QoS管理方法,提供优先级、可靠性等多个维度的保证。对于不同类型的车载应用可以满足高可靠、高安全、低时延等QoS要求,从而为智能汽车提供更优异的服务化通信能力。The above method can provide a differentiated QoS management method for communication between vehicle applications, and provide guarantees in multiple dimensions such as priority and reliability. For different types of vehicle applications, it can meet QoS requirements such as high reliability, high security, and low latency, thereby providing smart cars with better service-oriented communication capabilities.
在一种可能的实现方式中,所述QoS管控信息包括域启用指示,所述域启用指示指示启用域控制,所述服务端实体根据QoS信息中服务相关的域确定服务请求报文中域信息是否正确,若所述域信息错误,所述服务端实体向所述客户端实体发送回复报文,所述回复报文携带所述域信息错误对应的错误码。In a possible implementation manner, the QoS control information includes a domain enabling indication, the domain enabling indication indicates enabling domain control, and the server entity determines the domain information in the service request message according to the service-related domain in the QoS information Is it correct? If the domain information is incorrect, the server entity sends a reply message to the client entity, and the reply message carries an error code corresponding to the domain information error.
在一种可能的实现方式中,所述QoS管控信息包括优先级启用指示,所述优先级启用指示指示启用优先级控制,所述服务端实体根据优先级信息处理所述客户端应用对服务端应用的服务请求序列;所述服务端实体向所述客户端实体发送回复报文,所述回复报文携带处理信息。In a possible implementation manner, the QoS control information includes a priority enabling indication, and the priority enabling indication indicates enabling priority control, and the server entity processes the client application's request to the server according to the priority information. The service request sequence of the application; the server entity sends a reply message to the client entity, and the reply message carries processing information.
在一种可能的实现方式中,所述QoS管控信息包括可靠性启用指示,所述可靠性启用指示指示启用可靠性控制,所述服务端实体确定对所述服务请求序列的处理是否满足所述可靠性要求,若对所述服务请求序列的处理不满足所述可靠性要求,则所述处理信息指示不满足所述可靠性要求对应的错误码。In a possible implementation manner, the QoS control information includes a reliability enabling indication, and the reliability enabling indication indicates enabling reliability control, and the server entity determines whether the processing of the service request sequence satisfies the Reliability requirements. If the processing of the service request sequence does not meet the reliability requirements, the processing information indicates that the error code corresponding to the reliability requirements is not satisfied.
在一种可能的实现方式中,所述服务端实体解析接所述服务请求报文得到所述客户端连接信息和所述QoS控制信息,所述服务端实体根据所述QoS控制信息在QoS配置表获取所述客户端连接的QoS信息。In a possible implementation manner, the server entity parses and receives the service request message to obtain the client connection information and the QoS control information, and the server entity configures QoS information according to the QoS control information. The table obtains the QoS information of the client connection.
在一种可能的实现方式中,所述QoS配置表是通过配置工具配置的,或者,所述QoS配置表是经过所述服务端实体与所述客户端实体协商得到的。In a possible implementation manner, the QoS configuration table is configured through a configuration tool, or the QoS configuration table is obtained through negotiation between the server entity and the client entity.
第三方面,提供一种通信方法,用于客户端实体,客户端实体发送服务发现报文,所述服务发现报文包括服务标识、客户端标识以及QoS协商请求信息,所述QoS协商请求信息包括客户端实例标识(ParticipantID)以及以下至少一项待确认QoS信息:优先级信息、可靠性信息以及服务发布的域(domain)信息;In a third aspect, a communication method is provided, which is used for a client entity. The client entity sends a service discovery message, the service discovery message includes a service identifier, a client identifier, and QoS negotiation request information, and the QoS negotiation request information Including the client instance identifier (ParticipantID) and at least one of the following QoS information to be confirmed: priority information, reliability information, and domain information published by the service;
所述客户端实体接收服务端实体的服务提供报文及QoS协商确认信息,所述服务提供报文包括服务实例标识,所述QoS协商确认信息包括对所述QoS协商请求信息中每一项QoS信息的确认结果;The client entity receives the service providing message and QoS negotiation confirmation information of the server entity, the service providing message includes the service instance identifier, and the QoS negotiation confirmation information includes the QoS negotiation information for each item in the QoS negotiation request information. Confirmation of information;
所述客户端实体根据所述服务提供报文及所述QoS协商确认信息确定连接及所述连接对应的QoS信息。The client entity determines the connection and the QoS information corresponding to the connection according to the service provision message and the QoS negotiation confirmation information.
通过上述QoS协商过程,客户端和服务端可以分别获取到协商一致的每个CS (client-server)连接对应的QoS信息。Through the above-mentioned QoS negotiation process, the client and the server can respectively obtain QoS information corresponding to each CS (client-server) connection agreed upon through negotiation.
在一种可能的实现方式中,所述客户端实体以广播方式发送所述服务发现报文;In a possible implementation manner, the client entity sends the service discovery message in a broadcast manner;
所述客户端实体接收服务端实体的服务提供报文及QoS协商确认信息,包括:The client entity receives the service provision message and QoS negotiation confirmation information of the server entity, including:
所述客户端实体接收所述服务端实体以广播方式发送的服务提供报文;The client entity receives the service provision message sent by the server entity in broadcast mode;
所述客户端实体接收所述服务端实体以单播方式向所述客户端实体发送的QoS应答报文,所述QoS应答报文包括所述QoS协商确认信息。The client entity receives the QoS response message sent by the server entity to the client entity in a unicast manner, where the QoS response message includes the QoS negotiation confirmation information.
在一种可能的实现方式中,所述客户端实体在服务相关的域内以组播方式发送所述服务发现报文,所述QoS协商信息还包括所述服务相关的域信息;In a possible implementation manner, the client entity sends the service discovery message in a multicast manner in a service-related domain, and the QoS negotiation information further includes the service-related domain information;
所述客户端实体接收服务端实体的服务提供报文及QoS协商确认信息,包括:The client entity receives the service provision message and QoS negotiation confirmation information of the server entity, including:
所述客户端实体接收所述服务端实体在所述服务相关的域内以组播方式发送的服务提供报文;The client entity receives the service provision message sent by the server entity in a multicast manner in the service-related domain;
所述客户端实体接收所述服务端实体以单播方式向所述客户端实体发送的QoS应答报文,所述QoS应答报文包括所述QoS协商确认信息。The client entity receives the QoS response message sent by the server entity to the client entity in a unicast manner, where the QoS response message includes the QoS negotiation confirmation information.
第四方面,提供了一种通信方法,包括:服务端实体接收客户端实体的服务发现报文,所述服务发现报文包括服务标识、客户端标识以及QoS协商请求信息,所述QoS协商请求信息包括客户端实例标识(ParticipantID)以及以下至少一项待确认QoS信息:优先级信息、可靠性信息以及服务发布的域(domain)信息;In a fourth aspect, a communication method is provided, including: a server entity receives a service discovery message from a client entity, the service discovery message includes a service identifier, a client identifier, and QoS negotiation request information, and the QoS negotiation request The information includes the client instance identifier (ParticipantID) and at least one of the following QoS information to be confirmed: priority information, reliability information, and domain information issued by the service;
所述服务端实体向所述客户端实体发送响应于所述服务发现报文的服务提供报文及QoS协商确认信息,所述服务提供报文包括服务实例标识,所述QoS协商确认信息包括对所述QoS协商请求信息中每一项QoS信息的确认结果。The server entity sends a service provision message and QoS negotiation confirmation information in response to the service discovery message to the client entity, the service provision message includes a service instance identifier, and the QoS negotiation confirmation information includes A confirmation result of each item of QoS information in the QoS negotiation request information.
通过上述QoS协商过程,客户端和服务端可以分别获取到协商一致的每个CS(client-server)连接对应的QoS信息。Through the above-mentioned QoS negotiation process, the client and the server can respectively obtain the QoS information corresponding to each CS (client-server) connection agreed upon through negotiation.
在一种可能的实现方式中,所述服务端实体根据所述QoS协商请求信息生成QoS配置信息。In a possible implementation manner, the server entity generates QoS configuration information according to the QoS negotiation request information.
第五方面,提供了一种通信方法,其特征在于,响应于客户端应用对服务端应用的服务请求,客户端实体确定所述服务请求对应的会话及会话状态指示信息,所述会话包括多个客户端应用对服务端应用的服务请求;In the fifth aspect, a communication method is provided, wherein, in response to a service request from a client application to a server application, the client entity determines the session and session state indication information corresponding to the service request, and the session includes multiple A service request from a client application to a server application;
所述客户端实体发送服务请求报文,所述服务请求报文包括服务的连接信息和会话信息,所述会话信息包括会话标识及所述会话状态信息。The client entity sends a service request message, the service request message includes service connection information and session information, and the session information includes a session identifier and the session state information.
上述方法可以保证客户端应用的请求的服务数据的一致性和隔离性需求,提高了应用间通信的可靠性和安全性。The above method can ensure the consistency and isolation requirements of the service data requested by the client application, and improve the reliability and security of communication between applications.
在一种可能的实现方式中,若所述客户端应用对所述服务端应用的服务有待锁定资源,所述会话信息还包括资源标识。In a possible implementation manner, if the client application needs to lock resources for the service of the server application, the session information further includes a resource identifier.
在一种可能的实现方式中,若所述服务请求对应的会话未开启,所述会话状态指示信息指示开启会话,所述服务请求报文不携带所述客户端应用对服务端应用的服务请求序列。In a possible implementation, if the session corresponding to the service request is not opened, the session state indication information indicates that the session is opened, and the service request message does not carry the service request of the client application to the server application sequence.
在一种可能的实现方式中,所述客户端实体接收所述服务端实体发送的回复报文,所述回复报文包括所述会话开启成功的确认信息。In a possible implementation manner, the client entity receives a reply packet sent by the server entity, where the reply packet includes confirmation information that the session is opened successfully.
在一种可能的实现方式中,若所述服务请求对应的会话已开启,则会话状态指示信息指示会话进行中,所述服务请求报文还包括所述客户端应用对服务端应用的服务请求序列。In a possible implementation, if the session corresponding to the service request has been opened, the session state indication information indicates that the session is in progress, and the service request message also includes the service request of the client application to the server application sequence.
在一种可能的实现方式中,所述客户端实体确定所述会话中所有服务请求的服务请求序列均已发送至所述服务端实体,所述客户端实体发送指示所述会话提交的报文。In a possible implementation, the client entity determines that service request sequences of all service requests in the session have been sent to the server entity, and the client entity sends a message indicating that the session submits .
在一种可能的实现方式中,所述客户端实体接收所述服务端实体发送的指示会话提交结果的报文。In a possible implementation manner, the client entity receives the message indicating the session submission result sent by the server entity.
第六方面,提供了一种通信方法,其特征在于,服务端实体接收客户端实体发送的客户端应用对服务端应用的服务请求报文,所述服务请求报文包括服务端应用对客户端应用提供服务的连接信息和会话信息,所述会话信息包括会话标识及所述会话状态信息,所述会话包括多个所述客户端应用对所述服务端应用的服务请求;In the sixth aspect, a communication method is provided, wherein the server entity receives a service request message from the client application to the server application sent by the client entity, and the service request message includes the service request message sent by the server application to the client The application provides connection information and session information of the service, the session information includes a session identifier and the session state information, and the session includes multiple service requests from the client application to the server application;
所述服务端实体根据会话信息处理所述服务请求报文。The server entity processes the service request packet according to the session information.
在一种可能的实现方式中,所述会话状态信息指示开启会话,所述服务端实体确定会话状态确认信息指示开启成功;所述服务端实体向所述客户端实体发送回复报文,所述回复报文包括所述会话状态确认信息。In a possible implementation manner, the session state information indicates opening a session, and the server entity determines that the session state confirmation information indicates that the opening is successful; the server entity sends a reply message to the client entity, and the The reply packet includes the session state confirmation information.
在一种可能的实现方式中,所述会话状态信息指示开启会话,所述会话信息还包括资源标识,所述服务端实体根据会话信息处理所述服务请求报文,包括:In a possible implementation manner, the session state information indicates opening a session, the session information further includes a resource identifier, and the server entity processes the service request message according to the session information, including:
所述服务端实体确定会话状态确认信息指示开启成功;The server entity determines that the session state confirmation information indicates that the opening is successful;
所述服务端实体确定所述资源标识对应的资源是否被其他客户端占用,若所述所述资源标识对应的资源被其他客户端占用,所述会话状态确认信息指示开启失败;或者,若所述所述资源标识对应的资源空闲,所述会话状态确认信息指示开启成功,所述服务号端实体锁定所述资源标识对应的资源;The server entity determines whether the resource corresponding to the resource identifier is occupied by other clients, and if the resource corresponding to the resource identifier is occupied by other clients, the session state confirmation information indicates that opening fails; or, if the The resource corresponding to the resource identifier is idle, the session state confirmation information indicates that the opening is successful, and the service terminal entity locks the resource corresponding to the resource identifier;
所述服务端实体向所述客户端实体发送回复报文,所述回复报文包括所述会话状态确认信息。The server entity sends a reply message to the client entity, where the reply message includes the session state confirmation information.
在一种可能的实现方式中,所述会话状态指示信息指示会话进行中,所述服务请求报文中还包括所述客户端应用对所述服务端应用的服务请求序列,所述服务端实体获取所述服务请求序列。In a possible implementation manner, the session state indication information indicates that the session is in progress, and the service request message further includes a service request sequence of the client application to the server application, and the server entity Get the service request sequence.
在一种可能的实现方式中,所述服务端实体接收所述客户端实体的指示会话提交的报文;所述服务端实体向所述客户端实体发送指示会话提交结果的报文。In a possible implementation manner, the server entity receives a packet indicating session submission from the client entity; the server entity sends a packet indicating a session submission result to the client entity.
所述服务端实体处理在接收到指示会话提交报文后,处理所述会话的多个服务请求序列;The server entity processes multiple service request sequences of the session after receiving the message indicating session submission;
所述服务端实体向所述客户端实体发送回复报文指示所述多个服务请求序列的处理结果。The server entity sends a reply message to the client entity to indicate processing results of the plurality of service request sequences.
进一步,所述服务端实体解除对所述资源标识对应的资源的锁定。Further, the server entity unlocks the resource corresponding to the resource identifier.
第七方面,提供了一种通信装置,包括用于执行上述第一方面及其各实现方式、第三方面及其各实现方式,第五方面及其各实现方式中的方法的各步骤的单元或模块。所述模块或单元可以是软件和/或是硬件。In the seventh aspect, there is provided a communication device, including units for performing the steps of the methods in the above-mentioned first aspect and its various implementations, the third aspect and its various implementations, and the fifth aspect and its various implementations or modules. The modules or units may be software and/or hardware.
在一个可能的设计中,第七方面提供的通信装置,包括处理单元和收发单元,收发单元和处理单元用于实现上述客户端实体进行服务发现,请求服务等方法中各部分的功能。In a possible design, the communication device provided in the seventh aspect includes a processing unit and a transceiver unit, and the transceiver unit and the processing unit are used to realize the functions of each part in the methods of service discovery and service request by the client entity.
第八方面,提供了一种通信装置,包括用于执行上述第二方面及其各实现方式、第四方面及其各实现方式,第六方面及其各实现方式中的方法的各步骤的单元或模块。所述模块或单元可以是软件和/或是硬件。In an eighth aspect, there is provided a communication device, including units for performing the steps of the method in the above-mentioned second aspect and its various implementations, the fourth aspect and its various implementations, and the sixth aspect and its various implementations or modules. The modules or units may be software and/or hardware.
在一个可能的设计中,第八方面提供的通信装置,包括处理单元和收发单元,收发单元和处理单元用于实现上述服务端实体进行服务发现,请求服务等方法中各部分的功能。In a possible design, the communication device provided in the eighth aspect includes a processing unit and a transceiver unit, and the transceiver unit and the processing unit are used to realize the functions of each part in the methods of service discovery and service request by the server entity.
在一个可能的设计中,第八方面提供的通信装置,包括处理单元和收发单元,收发单元和处理单元用于实现上述服务端实体进行服务发现,请求服务等方法中各部分的功能。In a possible design, the communication device provided in the eighth aspect includes a processing unit and a transceiver unit, and the transceiver unit and the processing unit are used to realize the functions of each part in the methods of service discovery and service request by the server entity.
在一种设计中,第七方面或第八方面的通信装置为通信芯片,该通信芯片可以包括用于发送信息或数据的输入电路或接口,以及用于接收信息或数据的输出电路或接口。In one design, the communication device of the seventh aspect or the eighth aspect is a communication chip, and the communication chip may include an input circuit or interface for sending information or data, and an output circuit or interface for receiving information or data.
在另一种设计中,第七方面或第八方面的通信装置为通信设备,通信芯片可以包括用于发送信息的发射机,以及用于接收信息或数据的接收机。In another design, the communication device of the seventh aspect or the eighth aspect is a communication device, and the communication chip may include a transmitter for sending information, and a receiver for receiving information or data.
第九方面,提供了一种通信设备,包括,处理器,存储器,该存储器用于存储计算机程序,该处理器用于从存储器中调用并运行该计算机程序,使得该通信设备执行上述第一方面至第六方面任一方面及其各实现方式中的通信方法。According to a ninth aspect, a communication device is provided, including a processor, and a memory, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the communication device executes the above-mentioned first aspect to The communication method in any aspect of the sixth aspect and various implementations thereof.
可选地,所述处理器为一个或多个,所述存储器为一个或多个。Optionally, there are one or more processors, and one or more memories.
可选地,所述存储器可以与所述处理器集成在一起,或者所述存储器与处理器分离设置。Optionally, the memory may be integrated with the processor, or the memory may be set separately from the processor.
可选的,该通信设备还包括,发射机(发射器)和接收机(接收器)。Optionally, the communication device further includes a transmitter (transmitter) and a receiver (receiver).
第十方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序(也可以称为代码,或指令),当所述计算机程序被运行时,使得计算机执行上述第一方面至第六方面任一方面及其各实现方式中的通信方法。In a tenth aspect, a computer program product is provided, the computer program product comprising: a computer program (also referred to as code, or an instruction), when the computer program is executed, the computer executes the above-mentioned first aspect to the first aspect Any one of the six aspects and the communication method in each implementation thereof.
第十一方面,提供了一种计算机可读介质,所述计算机可读介质存储有计算机程序(也可以称为代码,或指令)当其在计算机上运行时,使得计算机执行上述第一方面至第六方面任一方面及其各实现方式中的数据传输方法。In an eleventh aspect, a computer-readable medium is provided, and the computer-readable medium stores a computer program (also referred to as code, or instruction) which, when run on a computer, causes the computer to execute the above-mentioned first aspect to The data transmission method in any aspect of the sixth aspect and its various implementation manners.
第十二方面,提供了一种通信系统,该系统包括:至少一个第七方面中任一项所述的装置和第八方面中任一项所述的装置。In a twelfth aspect, a communication system is provided, and the system includes: at least one device according to any one of the seventh aspect and the device according to any one of the eighth aspect.
第十三方面,提供了一种芯片系统,包括存储器和处理器,该存储器用于存储计算机程序,该处理器用于从存储器中调用并运行该计算机程序,使得安装有该芯片系统的通信设备执行上述第一方面至第六方面任一方面及其各实现方式中的通信方法。In a thirteenth aspect, a chip system is provided, including a memory and a processor, the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the communication device installed with the chip system executes The communication method in any one of the above-mentioned first aspect to the sixth aspect and each implementation manner thereof.
其中,该芯片系统可以包括用于发送信息或数据的输入电路或者接口,以及用于接收信息或数据的输出电路或者接口。Wherein, the chip system may include an input circuit or interface for sending information or data, and an output circuit or interface for receiving information or data.
第十四方面,提供了一种车辆,包括第十二方面的通信系统。In a fourteenth aspect, a vehicle including the communication system in the twelfth aspect is provided.
附图说明Description of drawings
为使图面简洁,各图示意性地表示出了与本发明相关部分,而并不代表其作为产品的实际结构,或是额外示出了对于本申请非必要的特征,附图所示的各个特征的组合并不用以限制本申请。为使图面简洁便于理解,在有些图中具有相同结构或功能的部件,仅示意性地绘示了其中的一个,或仅标出了其中的一个。另外,在本说明书全文中,相同的附图标记所指代的内容也是相同的。具体的附图说明如下:In order to make the drawings concise, each figure schematically shows the relevant parts of the present invention, but does not represent its actual structure as a product, or additionally shows unnecessary features for the application. The figures shown in the drawings The combination of individual features is not intended to limit the application. In order to make the drawings concise and easy to understand, in some drawings, only one of the components having the same structure or function is schematically shown, or only one of them is marked. In addition, in the whole specification, the content indicated by the same reference numeral is also the same. The specific accompanying drawings are explained as follows:
图1为本申请实施例提供的系统架构的示意图;FIG. 1 is a schematic diagram of a system architecture provided by an embodiment of the present application;
图2为SOME/IP协议栈示意图;Fig. 2 is a schematic diagram of the SOME/IP protocol stack;
图3为SOME/IP报文格式示意图;Fig. 3 is a schematic diagram of SOME/IP message format;
图4为本申请一实施例提供的功能部署示意图;FIG. 4 is a schematic diagram of function deployment provided by an embodiment of the present application;
图5为本申请一实施例提供的通信方法的示意性流程图;FIG. 5 is a schematic flowchart of a communication method provided by an embodiment of the present application;
图6(a)~图6(c)为本申请一实施例提供的报文格式示意图;6(a) to 6(c) are schematic diagrams of message formats provided by an embodiment of the present application;
图7为本申请一实施例提供的通信方法的示意性流程图;FIG. 7 is a schematic flowchart of a communication method provided by an embodiment of the present application;
图8为本申请一实施例提供的报文格式示意图;FIG. 8 is a schematic diagram of a message format provided by an embodiment of the present application;
图9为本申请一实施例提供的通信方法的示意性流程图;FIG. 9 is a schematic flowchart of a communication method provided by an embodiment of the present application;
图10为本申请一实施例提供的报文格式示意图;FIG. 10 is a schematic diagram of a message format provided by an embodiment of the present application;
图11为本申请一实施例提供的通信装置的示意性框图;FIG. 11 is a schematic block diagram of a communication device provided by an embodiment of the present application;
图12为本申请一实施例提供的通信装置的示意性框图。Fig. 12 is a schematic block diagram of a communication device provided by an embodiment of the present application.
具体实施方式Detailed ways
本文所使用的术语仅为了描述具体实施方案的目的,并不旨在限制本发明。本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例如能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。在本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的 任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a、b和c可以是单个,也可以是多个。值得注意的是,“至少一项(个)”还可以解释成“一项(个)或多项(个)”。The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein, for example, can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. In this application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three types of relationships, for example, A and/or B, which can mean: A exists alone, A and B exist at the same time, and B exists alone, where A, B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one item (piece) of a, b or c can represent: a, b, c, a and b, a and c, b and c or a and b and c, wherein a, b and c can be It can be single or multiple. It should be noted that "at least one item (item)" can also be interpreted as "one item (item) or multiple items (item)".
本文中,同样的附图标记指代同样的内容。对于本申请实施例方案中对本领域中公知的或在示例性实施方案中相互重叠的描述将被省略。Herein, the same reference numerals refer to the same content. Descriptions that are known in the art or overlap each other in exemplary embodiments in the embodiment schemes of the present application will be omitted.
应当理解的是,本申请实施例中所说“连接”可以是直接或间接地连接,其中,间接连接包括经由有线或无线通信网络的“连接”。It should be understood that the "connection" mentioned in this embodiment of the present application may be a direct or indirect connection, wherein the indirect connection includes a "connection" via a wired or wireless communication network.
此外,当陈述了一个层在另一层或基底“上”时,该层可以直接在另一层或基底之上或者第三层可以在这两者之间。Also, when it is stated that a layer is "on" another layer or substrate, the layer can be directly on the other layer or substrate or a third layer can be therebetween.
图1所示为车载通信网络100的示意图。本申请中车载通信网络100可以适用于各种交通工具中各节点通信。可以理解的是,在本申请中,交通工具可以包括一种或多种不同类型的在陆地(例如,公路,道路,铁路等),水面(例如:水路,江河,海洋等)或者空间上操作或移动的运输工具或者可移动物体。例如,交通工具可以包括汽车,自行车,摩托车,火车,地铁,飞机,船,飞行器,机器人或其它类型的运输工具或可移动物体等。以下以交通工具是车辆为例,简要介绍交通工具可以具有的功能。以图1所示车载通信网100为例,骨干网可以为Eth网络,Eth骨干网上的节点可以包括网关140、域控制器110a~110c以及直接使用Eth网协议通信的传感器120、执行器130,骨干网节点上的车载应用使用SOME/IP协议作为服务化通信协议。例如,传感器120接收到数据后,经过CAN总线发送到网关140,网关140将数据包封装为SOME/IP报文并经由Eth骨干网发送给域控制器110处理;域控制器110处理完成后将运算结果封装为SOME/IP报文并经由网关140转发给执行器130进行执行。需要说明的是,图1所示车载通信网仅为一种示例,其中通信节点的类型、数目可以更多或更少,并不以此为限制。例如,通信节点也可以包括一个或多个电子控制单元(electric control unit,ECU),T-box等等。FIG. 1 is a schematic diagram of a vehicle communication network 100 . The vehicular communication network 100 in this application may be applicable to communication between nodes in various vehicles. It can be understood that, in this application, vehicles may include one or more different types of vehicles operating on land (for example, roads, roads, railways, etc.), water (for example: waterways, rivers, oceans, etc.) or space Or moving means of transport or movable objects. For example, vehicles may include automobiles, bicycles, motorcycles, trains, subways, airplanes, boats, aircraft, robots or other types of vehicles or movable objects, and the like. The following takes the vehicle as an example to briefly introduce the functions that the vehicle can have. Taking the vehicular communication network 100 shown in FIG. 1 as an example, the backbone network may be an Eth network, and the nodes on the Eth backbone network may include a gateway 140, domain controllers 110a-110c, and sensors 120 and actuators 130 that communicate directly using the Eth network protocol. Vehicle-mounted applications on backbone network nodes use the SOME/IP protocol as a service-based communication protocol. For example, after the sensor 120 receives the data, it is sent to the gateway 140 through the CAN bus, and the gateway 140 encapsulates the data packet into a SOME/IP message and sends it to the domain controller 110 for processing through the Eth backbone network; The calculation result is encapsulated into a SOME/IP message and forwarded to the executor 130 via the gateway 140 for execution. It should be noted that the vehicular communication network shown in FIG. 1 is only an example, and the types and numbers of communication nodes may be more or less, which is not a limitation. For example, the communication node may also include one or more electronic control units (electric control unit, ECU), T-box and so on.
SOME/IP是车载以太网通信引入的一个概念,位于OSI 7层模型的层4(传输控制协议TCP/用户报文协议UDP)层之上,如图2所示,其中省略了应用层和SOME/IP层之间的协议层。应用报文经过SOME/IP层实体封装为SOME/IP报文,包括SOME/IP报文头和载荷payload。SOME/IP报文封装在TCP/UDP报文的载荷中,基于TCP/IP协议传输。SOME/IP is a concept introduced by in-vehicle Ethernet communication. It is located above the layer 4 (Transmission Control Protocol TCP/User Message Protocol UDP) layer of the OSI 7-layer model, as shown in Figure 2, where the application layer and SOME are omitted. The protocol layer between the /IP layer. The application message is encapsulated into a SOME/IP message through the SOME/IP layer entity, including the SOME/IP message header and payload. The SOME/IP message is encapsulated in the payload of the TCP/UDP message and transmitted based on the TCP/IP protocol.
如图3所示,为SOME/IP报文格式示意图,SOME/IP报文包括:消息头部(Header)和消息体(Payload)组成,Header主要包括以下字段:As shown in Figure 3, it is a schematic diagram of the SOME/IP message format. The SOME/IP message includes: a message header (Header) and a message body (Payload), and the Header mainly includes the following fields:
消息ID:用于唯一标识消息,包括16比特服务ID(servieid)。当消息为Method类型时,由服务ID和方法ID组成,当消息为Event类型时,由服务ID和事件ID组成Message ID: used to uniquely identify a message, including a 16-bit service ID (servieid). When the message is of Method type, it consists of service ID and method ID; when the message is of Event type, it consists of service ID and event ID
长度:消息长度(从请求ID开始到Payload结束);Length: message length (from the request ID to the end of Payload);
请求ID,服务提供者和调用者可用于区分相同消息的不同调用,由客户端ID和Session ID组成,其中客户端标识为16比特。The request ID, which can be used by the service provider and the caller to distinguish different calls of the same message, consists of the client ID and the Session ID, where the client ID is 16 bits.
协议版本:目前该值必须为1;Protocol version: currently the value must be 1;
接口版本:接口版本,一般由服务提供者定义;Interface version: interface version, generally defined by the service provider;
消息类型:用于标识消息的类型。Message Type: Used to identify the type of message.
其中Payload中可以包括客户端应用对服务端应用请求序列,服务端应用的事件通知内容等。The Payload may include a sequence of requests from the client application to the server application, event notification content of the server application, and the like.
SOME/IP提供了一个可以控制消息通信收发的中间件,适用于多种平台,并且支持多种中间件特征,如序列化(serialization),远程调用(remote procedure call),服务发现(service discovery),订阅,并且能够应用到AUTOSAR系统中。SOME/IP provides a middleware that can control the sending and receiving of message communication, which is applicable to various platforms and supports various middleware features, such as serialization, remote procedure call, and service discovery , subscribe, and can be applied to the AUTOSAR system.
服务(service)是SOME/IP的最核心概念,与CAN相比,面向服务的通讯方式能够大大降低总线的负载率。在一个服务中,定义了服务端(server)和客户端(client)两个角色,其中,提供服务的应用所在的一方为服务端,请求服务的应用所在的一方为客户端。对于同一个服务,只能存在一个server,但可以同时存在多个client调用服务。SOME/IP为应用层提供API接口,建立CS(client-server)的连接,使之通过TCP/IP协议进行通信。而SOME/IP的访问方式分为三种,分别是事件通知,远程过程调用和访问进程数据。与CAN相比,面向服务的通信方式能够大大降低总线的负载率。以图1所示车载通信网100为例,例如,域控制器110a作为智能驾驶域控制器,其上部署了辅助驾驶应用需要获取限速标志信息,域控制器110b作为座舱域控制器,其上部署了限速提醒应用需要获取限速标志信息,传感器120为前置摄像头,其上部署的限速标志检测应用提供限速标志信息,域控制器110a上的辅助驾驶应用和域控制器110b上的限速提醒应用作为客户端,传感器120上的限速标志检测应用则作为服务端,分别以服务实例1和服务实例2为两个客户端提供服务,也就是提供限速标志信息。Service (service) is the core concept of SOME/IP. Compared with CAN, the service-oriented communication method can greatly reduce the load rate of the bus. In a service, two roles of a server (server) and a client (client) are defined, wherein the side where the application providing the service is located is the server, and the side where the application requesting the service is located is the client. For the same service, there can only be one server, but multiple clients can call the service at the same time. SOME/IP provides an API interface for the application layer, establishes a CS (client-server) connection, and enables it to communicate through the TCP/IP protocol. The SOME/IP access methods are divided into three types, namely event notification, remote procedure call and access process data. Compared with CAN, the service-oriented communication method can greatly reduce the load rate of the bus. Taking the in-vehicle communication network 100 shown in FIG. 1 as an example, for example, the domain controller 110a is used as an intelligent driving domain controller, on which the auxiliary driving application is deployed and needs to obtain speed limit sign information, and the domain controller 110b is used as a cockpit domain controller. The speed limit reminder application deployed on the network needs to obtain the speed limit sign information. The sensor 120 is a front camera, and the speed limit sign detection application deployed on it provides the speed limit sign information. The driving assistance application on the domain controller 110a and the domain controller 110b The speed limit reminder application on the sensor 120 is used as a client, and the speed limit sign detection application on the sensor 120 is used as a server. Service instance 1 and service instance 2 provide services for the two clients, that is, provide speed limit sign information.
仍以上述为例,域控制器110c为车辆域控制器,其上部署的车速控制相关应用可以请求获取域控制器110a上辅助驾驶应用提供的车速控制指令,则此时域控制器110a上的辅助驾驶应用为server,域控制器130上的车速控制相关应用为client。可见,在车载网络中,一个应用可以提供和/或请求一种或多种服务,当server应用为多个client提供服务时,分别使用不同的服务实例进行区分。对服务的请求和提供可以通过SOME/IP协议层实体提供的接口来实现。Still taking the above as an example, the domain controller 110c is a vehicle domain controller, and the vehicle speed control-related applications deployed on it can request to obtain the vehicle speed control instructions provided by the assisted driving application on the domain controller 110a, then the domain controller 110a at this time The driving assistance application is a server, and the vehicle speed control-related application on the domain controller 130 is a client. It can be seen that in the vehicular network, an application can provide and/or request one or more services, and when the server application provides services for multiple clients, different service instances are used to distinguish them. The request and provision of service can be realized through the interface provided by SOME/IP protocol layer entity.
由于SOME/IP协议提供面向服务的通信,对于每个应用,都有一个服务列表,其中说明了该应用提供的服务以及该应用需要访问的服务。由于服务需要由server和client共同完成,因此在进行正常的数据传输之前,需要一系列的准备工作确认server和client之间是否已有网络连接。之后,client还要询问server能否提供所需的服务,并对服务的event进行订阅。这些工作都是通过SOME/IP服务发现(service discovery)实现的。SOME/IP服务发现用于定位服务实例、检查服务是否可用以及部署发布和订阅句柄。Since the SOME/IP protocol provides service-oriented communication, for each application, there is a list of services, which describes the services provided by the application and the services that the application needs to access. Since the service needs to be completed by both the server and the client, a series of preparatory work is required to confirm whether there is a network connection between the server and the client before normal data transmission. After that, the client also asks the server whether it can provide the required service, and subscribes to the event of the service. These tasks are realized through SOME/IP service discovery (service discovery). SOME/IP service discovery is used to locate service instances, check if services are available, and deploy publish and subscribe handles.
由于车载网络对安全性要求较高,对QoS有较多要求,例如:对数据备份和重传等可靠性的要求,可以在应用层提供优先级保障,当服务时延不能满足要求时的错误上报以及通信节点或服务之间进行域隔离等。可以考虑扩展SOME/IP协议,例如,在车内通信节点的SOME/IP协议层实体中部署QoS管理模块,为车载通信节点之间的服务提供和请求的通信过程提供QoS保证。如图4所示,为本申请实施例提供的一种可能的部署方式,其中,SOME/IP协议层实体部署在通信节点的操作系统层,为应用 提供通信接口,执行序列化域报文封装,报文调度,报文传输,以及服务发现等。可以将QoS管理模块部署在节点的SOME/IP协议层实体中,提供QoS保证,例如,优先级管理、事务管理、超时管理以及分区域管理等。可以理解的是,QoS管理模块也可以部署在SOME/IP协议层和TCP/IP传输层之间,本申请实施例并不以此为限制。Due to the high security requirements of the vehicle network, there are many requirements for QoS, such as: for the reliability requirements of data backup and retransmission, priority guarantee can be provided at the application layer, and when the service delay cannot meet the requirements, the error Reporting and domain isolation between communication nodes or services. It can be considered to extend the SOME/IP protocol, for example, to deploy a QoS management module in the SOME/IP protocol layer entity of the in-vehicle communication node to provide QoS guarantee for the service provision and request communication process between the in-vehicle communication nodes. As shown in Figure 4, it is a possible deployment mode provided by the embodiment of the present application, wherein the SOME/IP protocol layer entity is deployed at the operating system layer of the communication node, provides a communication interface for the application, and performs serialization domain message encapsulation , packet scheduling, packet transmission, and service discovery, etc. The QoS management module can be deployed in the SOME/IP protocol layer entity of the node to provide QoS guarantee, for example, priority management, transaction management, timeout management, and regional management. It can be understood that the QoS management module can also be deployed between the SOME/IP protocol layer and the TCP/IP transport layer, which is not limited in this embodiment of the present application.
下面以图5所示的流程示意图为例对本申请实施例提供的一种通信方法进行说明。其中,客户端应用位于第一通信节点上,请求第二通信节点上的服务端应用提供的服务;服务端应用位于第二通信节点上,为客户端应用提供服务。第一通信节点和第二通信节点可以是同一节点,也可以是不同节点。可以理解的是,同一个节点上可以部署多个应用,有些应用可以请求其他节点上的应用提供的服务,有些应用也可以向其他节点上的应用提供服务,也就是说对于一些应用可以是客户端,对于另一些应用可以是服务端。因而在同一个节点上可以同时部署客户端实体和服务端实体,这两个实体可以合并部署,也可以独立部署。其中客户端实体和服务端实体可以为SOME/IP协议层实体,分别为客户端应用和服务端应用提供接口发送和接收报文,可以包括QoS管理模块,进行增强性SOME/IP协议处理。The communication method provided by the embodiment of the present application will be described below by taking the schematic flowchart shown in FIG. 5 as an example. Wherein, the client application is located on the first communication node and requests services provided by the server application on the second communication node; the server application is located on the second communication node and provides services for the client application. The first communication node and the second communication node may be the same node or different nodes. It is understandable that multiple applications can be deployed on the same node. Some applications can request services provided by applications on other nodes, and some applications can also provide services to applications on other nodes. That is to say, some applications can be clients. end, for other applications it can be the server end. Therefore, the client entity and the server entity can be deployed on the same node at the same time, and the two entities can be deployed together or independently. The client entity and the server entity can be SOME/IP protocol layer entities, respectively provide interfaces for the client application and the server application to send and receive messages, and can include a QoS management module to perform enhanced SOME/IP protocol processing.
如图5所示,为客户端实体和服务端实体在服务发现阶段进行QoS协商的方法,。该方法包括以下步骤:As shown in FIG. 5 , it is a method for performing QoS negotiation between a client entity and a server entity in a service discovery phase. The method includes the following steps:
步骤510:客户端实体发送服务发现报文。相应地,服务端实体接收到服务发现报文。Step 510: the client entity sends a service discovery message. Correspondingly, the server entity receives the service discovery message.
客户端应用可以通过SOME/IP协议层实体提供的接口发送服务发现报文以查找所需的服务和服务实例。The client application can send a service discovery message through the interface provided by the SOME/IP protocol layer entity to find the required service and service instance.
客户端实体可以采用广播方式发送服务发现报文,也可以在管理域中以组播方式发送服务发现报文。其中,管理域可以包括多个通信节点。The client entity may send the service discovery message in broadcast mode, or send the service discovery message in multicast mode in the management domain. Wherein, the management domain may include multiple communication nodes.
其中,服务发现报文可以包括服务标识、客户端标识以及QoS协商请求信息。其中,QoS协商请求信息包括客户端实例标识(ParticipantID)以及以下至少一项待确认QoS信息:优先级信息、可靠性信息以及服务发布的域(domain)信息。Wherein, the service discovery message may include service identification, client identification and QoS negotiation request information. Wherein, the QoS negotiation request information includes the client instance identifier (ParticipantID) and at least one of the following QoS information to be confirmed: priority information, reliability information, and domain information issued by the service.
其中,in,
优先级信息(priority info):用于表示在该连接上报文传输以及对服务端的优先级诉求。可以根据需要定义优先级信息的取值范围以及取值,例如:系统中定义优先级为5级,优先级取值范围为1~5,其中,定义数值大的优先级高,数值小的优先级低,则5代表最高优先级,1代表最低优先级。当然也可以反之,数值小的优先级低,数值大的优先级高,还可以定义一组不连续的数值表示不同的优先级,本申请实施例并不以此为限制。通常时延敏感应用的优先级比非时延敏感应用的优先级Priority information (priority info): It is used to indicate the message transmission on the connection and the priority request to the server. The value range and value of the priority information can be defined according to the needs. For example, the system defines the priority as level 5, and the value range of the priority is 1 to 5. Among them, the priority of the defined value is higher, and the priority of the value is smaller. If the level is low, 5 represents the highest priority and 1 represents the lowest priority. Of course, it can also be reversed, where the priority of a small value is low, and the priority of a large value is high, and a group of discontinuous values can also be defined to represent different priorities, which is not limited in this embodiment of the present application. Usually delay-sensitive applications are prioritized over non-delay-sensitive applications
可靠性信息(reliability):用于表示报文发送失败或者超时后是否需要重发,例如,可以用0表示不需要重发,1表示需要重发,或者反之,以0表示需要重发,1表示不需要重发。可以理解的是,还可以用其他值表示是否需要重发,并不以此为限制。Reliability information (reliability): It is used to indicate whether retransmission is required after message transmission failure or timeout. For example, 0 can be used to indicate that retransmission is not required, 1 can be used to indicate retransmission is required, or vice versa, 0 can be used to indicate retransmission is required, 1 can be used Indicates that no retransmission is required. It can be understood that other values may also be used to indicate whether retransmission is required, and this is not a limitation.
域信息(domian):用于表示提供对应服务及数据的域,可以用于数据的隔离,如果没有限定域信息,则表示不限定提供对应服务及数据的域,相应的服务及数据可以进行广播。Domain information (domian): It is used to indicate the domain that provides the corresponding service and data, which can be used for data isolation. If the domain information is not limited, it means that the domain that provides the corresponding service and data is not limited, and the corresponding service and data can be broadcast .
一种可能的实现方式中,可以基于已有的SOME/IP服务发现报文进行扩展,使其携带QoS协商请求信息。In a possible implementation manner, the existing SOME/IP service discovery message may be extended to carry QoS negotiation request information.
SOME/IP服务发现报文可以包括图3所示的SOME/IP Header,以及服务发现配置信息部分,其中服务发现配置信息部分可以包括服务标识、服务实例标识和选项(Option)指示信息,其中服务实例标识可以通过特定的取值指示是否查找该服务的所有服务实例,例如,可以设置为0XFFFF,选项指示信息用于指示服务发现报文中包括一个或多个选项。QoS协商请求信息可以作为一个选项包括在服务发现报文中。QoS协商请求信息可以复用已有的配置选项类型(type=0x01),如图6(a)所示,则其中各QoS协商项分别按照(key,value)的方式编码,如图6(b)所示,表示DomainID=0x0001,ParticipantID=0x0012。采用该方式携带QoS协商请求信息可以实现QoS增强的服务发现报文与原服务发现报文的兼容(无法识别此配置项的端点可以选择丢弃此配置项)。The SOME/IP service discovery message can include the SOME/IP Header shown in Figure 3, and the service discovery configuration information part, wherein the service discovery configuration information part can include service identification, service instance identification and option (Option) indication information, wherein the service The instance identifier can indicate whether to find all service instances of the service through a specific value, for example, it can be set to 0XFFFF, and the option indication information is used to indicate that the service discovery message includes one or more options. The QoS negotiation request information can be included in the service discovery message as an option. The QoS negotiation request information can reuse the existing configuration option type (type=0x01), as shown in Figure 6(a), and each QoS negotiation item is encoded according to the (key, value) method, as shown in Figure 6(b ), it means DomainID=0x0001, ParticipantID=0x0012. Carrying the QoS negotiation request information in this way can realize the compatibility between the QoS-enhanced service discovery message and the original service discovery message (endpoints that cannot recognize this configuration item can choose to discard this configuration item).
QoS协商请求信息也可以为定义新的选项类型,例如,type=0x99,如图6(c)所示。采用该方式携带QoS协商请求信息更加简洁,但对该字段需要进行特殊处理。The QoS negotiation request information can also define a new option type, for example, type=0x99, as shown in FIG. 6(c). It is more concise to carry the QoS negotiation request information in this way, but special processing is required for this field.
步骤520:服务端实体发送步骤510的响应报文。相应地,客户端实体接收响应报文Step 520: the server entity sends the response message of step 510. Accordingly, the client entity receives the response message
服务端应用可以提供客户端所述的服务时,将通过SOME/IP协议层实体提供的接口发送服务提供报文。When the server application can provide the service described by the client, it will send a service provision message through the interface provided by the SOME/IP protocol layer entity.
其中,服务提供报文中可以包括所提供的服务标识和服务实例标识。Wherein, the service providing message may include the provided service identifier and service instance identifier.
若服务端实体不支持QoS协商或QoS管理,则可以丢弃QoS协商请求信息所在的字段,响应报文可以包括服务提供报文。If the server entity does not support QoS negotiation or QoS management, the field where the QoS negotiation request information is located may be discarded, and the response message may include a service provision message.
若服务端实体支持QoS协商或QoS管理,则不仅可以对服务发现进行确认,还可以对QoS协商请求信息进行确认。If the server entity supports QoS negotiation or QoS management, it can not only confirm the service discovery, but also confirm the QoS negotiation request information.
在一种可能的方式中,响应报文为服务提供报文,服务端实体可以对服务提供报文进行扩展,增加QoS协商确认信息,其中,QoS协商确认信息可以包括对QoS协商请求信息中每一项QoS确认结果,例如,可以用位图的方式表示每一项QoS确认结果,例如,服务标识为0x4711为例,QoS协商请求信息中携带优先级信息和可靠性信息,若服务端实体提供服务0x4711,认为提供服务0x4711的优先级信息和QoS协商请求信息中优先级信息一致,可靠性信息不一致,则将优先级信息在确认结果中对应的比特设置为“1”,将可靠性信息在确认结果中对应的比特设置为“0”。QoS协商确认信息还可以包括服务端实体提供服务的QoS信息:优先级信息、可靠性信息以及域信息中的一项或多项。In a possible manner, the response message is a service provision message, and the server entity may extend the service provision message to add QoS negotiation confirmation information, wherein the QoS negotiation confirmation information may include the QoS negotiation confirmation information for each A QoS confirmation result, for example, each QoS confirmation result can be represented by a bitmap, for example, the service identifier is 0x4711 as an example, the QoS negotiation request information carries priority information and reliability information, if the server entity provides Service 0x4711, if the priority information of the service 0x4711 is considered to be consistent with the priority information in the QoS negotiation request information, but the reliability information is inconsistent, then the corresponding bit of the priority information in the confirmation result is set to "1", and the reliability information is set in the The corresponding bit in the confirmation result is set to "0". The QoS negotiation confirmation information may also include QoS information of services provided by the server entity: one or more of priority information, reliability information, and domain information.
这一实现方式中,服务提供报文可以使用和服务发现报文一样的报文格式,区别在于消息类型不同,也就是消息类型字段分别指示为服务提供报文和服务发现报文。In this implementation, the service provision message can use the same message format as the service discovery message, the difference is that the message type is different, that is, the message type field indicates the service provision message and the service discovery message respectively.
其中,服务端实体可以采用广播方式发送服务提供报文,也可以在管理域中以组播方式发送服务提供报文(offerservice)。Wherein, the server entity may send the service offering message in broadcast mode, or send the service offering message (offerservice) in multicast mode in the management domain.
在又一种可能的方式中,响应报文包括服务提供报文和QoS应答报文,这种方式下,服务提供报文用于对服务发现进行确认,QoS应答报文用于对QoS协商请求信息进行确认。QoS应答报文包括QoS协商确认信息,其中,QoS协商确认信息可以包括对QoS协商请求信息中每一项QoS确认结果。QoS协商确认信息还可以包括服务端实体提供服务的QoS信息:优先级信息、可靠性信息以及域信息中的一项或多项。In yet another possible manner, the response packet includes a service provision packet and a QoS response packet. In this manner, the service provision packet is used to confirm the service discovery, and the QoS response packet is used to respond to the QoS negotiation request. information to confirm. The QoS response message includes QoS negotiation confirmation information, wherein the QoS negotiation confirmation information may include a QoS confirmation result for each item in the QoS negotiation request information. The QoS negotiation confirmation information may also include QoS information of services provided by the server entity: one or more of priority information, reliability information, and domain information.
其中,服务端实体可以采用广播方式发送服务提供报文,也可以在管理域中以组播方式发送服务提供报文(offerservice)。Wherein, the server entity may send the service offering message in broadcast mode, or send the service offering message (offerservice) in multicast mode in the management domain.
服务端实体可以采用单播的方式将QoS应答报文发送给客户端实体。The server entity may send the QoS response message to the client entity in a unicast manner.
服务端实体对QoS进行确认后,可以记录为客户端应用提供服务的CS连接及其对应的QoS信息。例如可以通过QoS信息配置表记录,表1为一种示例性的QoS信息配置表,包括CS连接和对应的QoS信息。其中,各字段取值以十六进制为例进行说明,可以理解的是,也可以采用进制,例如二进制,十进制等,并且还可以根据需要定义各字段取值类型,例如,文本,字符串等。并不以此为限制。并且表1中各字段的取值也只是举例说明,并不构成对取值的限定。After the server entity confirms the QoS, it can record the CS connection providing service for the client application and its corresponding QoS information. For example, it may be recorded through a QoS information configuration table. Table 1 is an exemplary QoS information configuration table, including CS connections and corresponding QoS information. Among them, the value of each field is explained with hexadecimal as an example. It is understandable that hexadecimal system can also be used, such as binary, decimal, etc., and the value type of each field can also be defined as required, such as text, character string etc. It is not intended to be limited. In addition, the values of the fields in Table 1 are just examples, and do not constitute a limitation on the values.
表1 QoS信息配置表Table 1 QoS information configuration table
Figure PCTCN2022070131-appb-000001
Figure PCTCN2022070131-appb-000001
其中,QoS信息映射表前3个字段用于标识一个客户端和服务端进行通信的连接信息,包括客户端实例标识(participant id)、服务标识(service id)以及服务实例标识(service instance id)。以表1为例,客户端应用通过实例(participantid)0x2请求服务0x4711,为该应用提供服务0x4711的服务实例为0x1;服务0x4711的服务实例0x1和0x2分别为客户端实例0x2和0x3提供服务0x4711。Among them, the first three fields of the QoS information mapping table are used to identify the connection information between a client and the server for communication, including client instance identifier (participant id), service identifier (service id) and service instance identifier (service instance id) . Taking Table 1 as an example, the client application requests service 0x4711 through instance (participantid) 0x2, and the service instance 0x1 that provides service 0x4711 for this application; service instances 0x1 and 0x2 that serve 0x4711 provide service 0x4711 for client instance 0x2 and 0x3 respectively .
如果连接有对应的QoS信息,则包括以下一项或多项:域信息、优先级信息以及可靠性信息。If the connection has corresponding QoS information, it includes one or more of the following: domain information, priority information, and reliability information.
需要说明的是表1是一种示例的QoS配置表的记录方式,也可以将连接信息单独记录,并为每个连接分别设置连接标识,建立连接标识和QoS信息的配置表,并不以此为限制。It should be noted that Table 1 is an example of the recording method of the QoS configuration table. It is also possible to record the connection information separately, and set the connection identifier for each connection separately, and establish the configuration table of the connection identifier and QoS information. for the limit.
步骤530:客户端实体根据所述QoS协商确认信息确定为客户端应用提供服务的连接对应的QoS信息。Step 530: The client entity determines the QoS information corresponding to the connection providing services for the client application according to the QoS negotiation confirmation information.
客户端实体从响应报文中获取到QoS协商确认信息后,可以根据其中每一项的QoS确认结果和/或QoS信息确定为客户端应用提供服务的CS连接对应的QoS信息。After the client entity obtains the QoS negotiation confirmation information from the response message, it can determine the QoS information corresponding to the CS connection that provides services for the client application according to the QoS confirmation result and/or QoS information of each item.
客户端实体可以为节点上部署的各个需要请求服务的应用维护其连接和QoS信息的映射表,表2为一种示例性的QoS信息映射表,包括连接和对应的QoS信息。The client entity can maintain a connection and QoS information mapping table for each application deployed on the node that needs to request services. Table 2 is an exemplary QoS information mapping table, including connections and corresponding QoS information.
可以发现,相对于服务端实体,客户端实体还需要记录每个客户端实例对应的应用标识。其中,各字段取值以十六进制为例进行说明,可以理解的是,也可以采用进制,例如二进制,十进制等,并且还可以根据需要定义各字段取值类型,例如,文本,字符串等。并不以此为限制。并且表2中各字段的取值也只是举例说明,并不构成对取值的限定。It can be found that, compared with the server entity, the client entity also needs to record the application identifier corresponding to each client instance. Among them, the value of each field is explained with hexadecimal as an example. It is understandable that hexadecimal system can also be used, such as binary, decimal, etc., and the value type of each field can also be defined as required, such as text, character string etc. It is not intended to be limited. In addition, the values of the fields in Table 2 are just examples, and do not constitute a limitation on the values.
表2 QoS信息映射表Table 2 QoS information mapping table
Figure PCTCN2022070131-appb-000002
Figure PCTCN2022070131-appb-000002
其中,QoS信息映射表前4个字段用于标识一个客户端和服务端进行通信的连接信息,包括应用标识(task id)、客户端实例标识(participant id)、服务标识(service id)以及服务实例标识(service instance id)。以表2为例,应用程序(taskid)0x1,其通过实例(participantid)0x2请求服务0x4711,为该应用0x1提供服务0x4711的服务实例为0x1;服务0x4711的服务实例0x1和0x2分别为应用程序0x1和0x2提供服务0x4711。Among them, the first 4 fields of the QoS information mapping table are used to identify the connection information for a client to communicate with the server, including the application identifier (task id), client instance identifier (participant id), service identifier (service id) and service Instance ID (service instance id). Taking Table 2 as an example, the application (taskid) 0x1 requests the service 0x4711 through the instance (participantid) 0x2, and the service instance 0x4711 that provides the service 0x4711 for the application 0x1 is 0x1; the service instances 0x1 and 0x2 of the service 0x4711 are respectively the application 0x1 and 0x2 serve 0x4711.
如果连接有对应的QoS信息,则包括以下一项或多项:域信息、优先级信息以及可靠性信息。If the connection has corresponding QoS information, it includes one or more of the following: domain information, priority information, and reliability information.
需要说明的是表2是一种示例的QoS映射表的记录方式,也可以将连接信息单独记录,并为每个连接分别设置连接标识,建立连接标识和QoS信息的映射表,并不以此为限制。It should be noted that Table 2 is an example of the recording method of the QoS mapping table. It is also possible to record the connection information separately, and set the connection identifier for each connection separately, and establish a mapping table between the connection identifier and the QoS information. for the limit.
通过上述QoS协商过程,客户端和服务端可以分别获取到每个CS(client-server)连接对应的QoS信息。客户端实体在处理应用请求服务的报文时可以根据其对应的QoS信息进行调度和发送,例如,优先发送高优先级的服务请求,分域发送等。服务端实体在提供服务时则可以根据其对应的QoS信息对服务请求进行处理,例如:优先处理高优先级的服务请求,检查是否处理超时等。Through the above QoS negotiation process, the client and the server can respectively obtain the QoS information corresponding to each CS (client-server) connection. When the client entity processes the application request service message, it can schedule and send it according to its corresponding QoS information, for example, send high-priority service requests first, send them by domain, and so on. When the server entity provides services, it can process service requests according to its corresponding QoS information, for example: prioritize high priority service requests, check whether processing times out, and so on.
上述方法可以对不同应用提供不同的QoS信息,从而可以区分应用的优先级,可靠性,服务发布的域等,为QoS管控提供了依据。例如,对于时延敏感型应用,其优先级可以高于非时延敏感型应用,又例如可以对不同域的应用进行隔离。The above method can provide different QoS information for different applications, so as to distinguish the application priority, reliability, service release domain, etc., and provide a basis for QoS control. For example, a delay-sensitive application may have a higher priority than a non-delay-sensitive application, and for example, applications in different domains may be isolated.
当然,对于启用服务发现的场景,客户端和服务端可以通过上述步骤510~530进行QoS协商后,分别记录有每个CS(client-server)连接对应的QoS信息。对于不启用服务发现的场景,也可以通过上位机在近端配置或更新,或者通过云端远程配置或更新。车厂或供应商需要对QoS策略进行升级时,则可以通过上位机或云端配置或更新第一管理模块中的QoS映射表中的QoS信息。客户端和服务端可以分别根据QoS信息对应用的报文进行处理。Certainly, for the scenario where service discovery is enabled, the client and the server may respectively record QoS information corresponding to each CS (client-server) connection after performing QoS negotiation through the above steps 510-530. For scenarios where service discovery is not enabled, it can also be configured or updated locally through the host computer, or remotely configured or updated through the cloud. When the car factory or supplier needs to upgrade the QoS policy, it can configure or update the QoS information in the QoS mapping table in the first management module through the host computer or the cloud. The client and the server can respectively process application packets according to the QoS information.
图7为本申请实施例提供又一种的通信方法,根据客户端实体和服务端实体记录的CS连接对应的QoS信息进行处理。如图7所示,该方法包括:Fig. 7 is another communication method provided by the embodiment of the present application, which is processed according to the QoS information corresponding to the CS connection recorded by the client entity and the server entity. As shown in Figure 7, the method includes:
步骤710:响应于客户端应用对服务端应用的服务请求,所述客户端实体获取与 所述客户端应用和所述服务端应用连接相关的业务质量QoS信息。Step 710: In response to the client application's service request to the server application, the client entity acquires quality of service (QoS) information related to the connection between the client application and the server application.
由于每个应用都具有其需要访问的服务列表,建立了客户端和服务端的连接信息,每个连接可以包括:应用程序标识(task id)、客户端实例标识(participant id)、服务标识(service id)以及服务实例标识(service instance id)等。当客户端应用请求服务端应用提供相应的服务时客户端实体可以获取这一连接对应的QoS信息。其中,QoS信息参见前述实施例中描述,可以包括以下一项或多项:Since each application has a list of services that it needs to access, and the connection information between the client and the server is established, each connection can include: application identification (task id), client instance identification (participant id), service identification (service id) and service instance ID (service instance id), etc. When the client application requests the server application to provide corresponding services, the client entity can obtain the QoS information corresponding to this connection. Wherein, the QoS information refers to the description in the foregoing embodiments, and may include one or more of the following:
优先级信息(priority info):用于表示在该连接上报文传输以及对服务端的优先级诉求。可以根据需要定义优先级信息的取值范围以及取值,例如:系统中定义优先级为5级,优先级取值范围为1~5,其中,定义数值大的优先级高,数值小的优先级低,则5代表最高优先级,1代表最低优先级。当然也可以反之,数值小的优先级低,数值大的优先级高,还可以定义一组不连续的数值表示不同的优先级,本申请实施例并不以此为限制。通常时延敏感应用的优先级比非时延敏感应用的优先级Priority information (priority info): It is used to indicate the message transmission on the connection and the priority request to the server. The value range and value of the priority information can be defined according to the needs. For example, the system defines the priority as level 5, and the value range of the priority is 1 to 5. Among them, the priority of the defined value is higher, and the priority of the value is smaller. If the level is low, 5 represents the highest priority and 1 represents the lowest priority. Of course, it can also be reversed, where the priority of a small value is low, and the priority of a large value is high, and a group of discontinuous values can also be defined to represent different priorities, which is not limited in this embodiment of the present application. Usually delay-sensitive applications are prioritized over non-delay-sensitive applications
可靠性信息(reliability):用于表示报文发送失败或者超时后是否需要重发,例如,可以用0表示不需要重发,1表示需要重发,或者反之,以0表示需要重发,1表示不需要重发。可以理解的是,还可以用其他值表示是否需要重发,并不以此为限制。Reliability information (reliability): It is used to indicate whether retransmission is required after message transmission failure or timeout. For example, 0 can be used to indicate that retransmission is not required, 1 can be used to indicate retransmission is required, or vice versa, 0 can be used to indicate retransmission is required, 1 can be used Indicates that no retransmission is required. It can be understood that other values may also be used to indicate whether retransmission is required, and this is not a limitation.
域信息(domian):用于表示提供对应服务及数据的域,可以用于数据的隔离,如果没有限定域信息,则表示不限定提供对应服务及数据的域,相应的服务及数据可以进行广播。Domain information (domian): It is used to indicate the domain that provides the corresponding service and data, which can be used for data isolation. If the domain information is not limited, it means that the domain that provides the corresponding service and data is not limited, and the corresponding service and data can be broadcast .
步骤720:客户端实体根据步骤710中获取的QoS信息调度所述客户端应用对服务端应用发起的服务请求报文用于发送。Step 720: The client entity schedules the service request message initiated by the client application to the server application according to the QoS information obtained in step 710 for sending.
一种可能的方式,客户端实体可以设置系统的调度队列,使得调度队列至少包括第一调度队列和第二调度队列,其中,第一调度队列的发送优先级高于所述第二调度队列。当然客户端实体也可以设置更多优先级的调度队列,并不以此为限制。In a possible manner, the client entity may set a scheduling queue of the system, so that the scheduling queue includes at least a first scheduling queue and a second scheduling queue, where the sending priority of the first scheduling queue is higher than that of the second scheduling queue. Of course, the client entity can also set more priority scheduling queues, which is not a limitation.
客户端实体根据所述优先级信息从系统的调度队列中确定所述优先级信息对应的调度队列,所述客户端实体调度所述请求报文进入所述优先级信息对应的调度队列。The client entity determines the scheduling queue corresponding to the priority information from the scheduling queues of the system according to the priority information, and the client entity schedules the request message into the scheduling queue corresponding to the priority information.
若所述优先级信息对应的调度队列中包括多个待发送报文,所述客户端实体对所述多个待发送报文和所述请求报文按照优先级信息排序以使得优先级高的报文优先发送。If the scheduling queue corresponding to the priority information includes a plurality of packets to be sent, the client entity sorts the plurality of packets to be sent and the request packets according to the priority information so that those with higher priority Packets are sent with priority.
又一种可能的方式中,如果所述客户端实体所在节点具备时延敏感网络TSN接口设备,所述客户端实体可以向所述TSN接口设备提供所述QoS信息,以使得所述TSN接口设备将所述请求报文调度至所述QoS信息对应的发送队列中。例如,客户端实体可以向TSN网卡传递包括应用对网络带宽的需求、应用对网络传输时延的需求、应用对网络传输可靠性的需求。TSN网卡将根据这些信息做报文调度、流量整形、选择通信路径、路径预留和容错等处理。对于高优先级报文,TSN网卡可以将该报文调度到高优先级队列中,并控制TSN网卡的帧抢占策略。In yet another possible manner, if the node where the client entity is located has a delay-sensitive network TSN interface device, the client entity may provide the QoS information to the TSN interface device, so that the TSN interface device Scheduling the request packet into the sending queue corresponding to the QoS information. For example, the client entity may transmit to the TSN network card including the application's requirements for network bandwidth, the application's requirements for network transmission delay, and the application's requirements for network transmission reliability. The TSN network card will perform packet scheduling, traffic shaping, communication path selection, path reservation, and fault tolerance based on the information. For high-priority packets, the TSN NIC can schedule the packets into the high-priority queue and control the frame preemption policy of the TSN NIC.
步骤730:客户端实体发送所述客户端应用对服务端应用发起的服务请求报文,其中,服务请求报文包括QoS管控信息。相应地,服务端实体接收该请求报文。Step 730: The client entity sends a service request packet initiated by the client application to the server application, wherein the service request packet includes QoS control information. Correspondingly, the server entity receives the request message.
客户端应用可以通过SOME/IP协议层实体提供的接口发送服务发现报文以查找所需的服务和服务实例。The client application can send a service discovery message through the interface provided by the SOME/IP protocol layer entity to find the required service and service instance.
客户端实体可以采用广播方式发送服务请求报文。The client entity can send the service request message by broadcasting.
若QoS信息还包括所述服务相关的域信息,客户端实体可以在服务相关的域中以组播方式发送服务请求报文。If the QoS information further includes the domain information related to the service, the client entity may send the service request message in multicast mode in the domain related to the service.
其中,服务请求报文包括:客户端连接信息以及QoS控制信息,其中,客户端连接信息包括服务标识,客户端标识,客户端实例信息;QoS控制信息包括一个或多个QoS信息启用指示,每个QoS信息指示用于指示是否启用对应的QoS信息控制,例如,可以包括域启用指示,优先级启用指示,可靠性启用指示等。一种可能的方式为采用位图的方式指示,每一位指示一项QoS信息控制是否启用,使用“1”表示对该QoS信息进行控制,使用“0”表示不对该QoS信息进行控制。以图8中QoS控制信息(QoS control)为例,分别为可靠性启用指示,优先级启用指示,域启用指示等。需要说明的是,这里仅为举例,并不以此为限制。Wherein, the service request message includes: client connection information and QoS control information, wherein, the client connection information includes service identification, client identification, client instance information; QoS control information includes one or more QoS information enabling instructions, each Each QoS information indication is used to indicate whether to enable the corresponding QoS information control, for example, may include a domain activation indication, a priority activation indication, a reliability activation indication, and the like. One possible way is to use a bitmap to indicate, each bit indicates whether to enable a piece of QoS information control, use "1" to indicate that the QoS information is controlled, and use "0" to indicate that the QoS information is not controlled. Taking the QoS control information (QoS control) in FIG. 8 as an example, they are reliability activation indication, priority activation indication, domain activation indication, etc. respectively. It should be noted that this is only an example and not a limitation.
若域启用指示指示启用域控制,则服务请求报文中还可以包括域信息;若可靠性启用指示指示启用可靠性控制,则服务请求报文中还可以包括超时时长信息。If the domain enabling indication indicates enabling domain control, the service request message may further include domain information; if the reliability enabling indication indicates enabling reliability control, the service request message may further include timeout duration information.
一种可能的实现方式中,可以基于已有的SOME/IP服务请求报文进行扩展得到QoS增强型的服务请求报文,使其携带新增的QoS控制信息、域信息、超时时长信息等。In a possible implementation, the QoS-enhanced service request message can be obtained by extending the existing SOME/IP service request message, so that it can carry newly added QoS control information, domain information, timeout period information, etc.
QoS增强服务请求报文可以包括图3所示的SOME/IP Header和Payload,扩展部分可以在Payload之前,如图8所示。需要说明的是图8仅为一种示例,实际使用的时候,字段的顺序,长度可以不同。The QoS enhanced service request message can include the SOME/IP Header and Payload shown in Figure 3, and the extension part can be before the Payload, as shown in Figure 8. It should be noted that FIG. 8 is only an example, and in actual use, the order and length of the fields may be different.
服务端实体接收到服务请求报文,如果不支持QoS增强型服务请求报文,则可以丢弃相应的字段。如果支持,则可以执行步骤740进行解析。When the server entity receives the service request message, if it does not support the QoS enhanced service request message, it can discard the corresponding fields. If yes, step 740 may be executed for parsing.
步骤740:服务端实体根据所述客户端应用对服务端应用发起的服务请求报文获取连接对应的QoS信息。Step 740: The server entity acquires QoS information corresponding to the connection according to the service request message sent by the client application to the server application.
服务端实体解析接收到的服务请求报文得到连接信息和QoS控制信息,根据QoS控制信息在QoS配置表中获取连接对应的QoS信息。The server entity parses the received service request message to obtain connection information and QoS control information, and obtains the QoS information corresponding to the connection in the QoS configuration table according to the QoS control information.
步骤750:服务端实体根据QoS控制信息及QoS信息处理所述客户端应用对服务端应用的服务请求报文。Step 750: The server entity processes the service request message from the client application to the server application according to the QoS control information and the QoS information.
若域启用指示指示启用域控制,服务端实体根据QoS信息中服务相关的域确定服务请求报文中域信息是否正确,若所述域信息错误,则处理信息包括所述域信息错误对应的错误码,执行步骤760。If the domain activation indication indicates that domain control is enabled, the server entity determines whether the domain information in the service request message is correct according to the service-related domain in the QoS information, and if the domain information is wrong, the processing information includes the error corresponding to the domain information error code, go to step 760.
若优先级启用指示指示启用优先级控制,服务端实体根据优先级信息处理所述客户端应用对服务端应用的服务请求序列,优先处理高优先级的服务请求序列。If the priority enable indication indicates that priority control is enabled, the server entity processes the service request sequence of the client application to the server application according to the priority information, and preferentially processes the service request sequence with high priority.
若可靠性启用指示指示启用可靠性控制,服务端实体还确定对所述服务请求的处理是否满足所述可靠性要求,例如,确定是否超过超时时长,如果超过,则处理信息包括处理超时对应的错误码,执行步骤760。If the reliability enable indication indicates that reliability control is enabled, the server entity also determines whether the processing of the service request meets the reliability requirements, for example, determines whether the timeout period is exceeded, and if so, the processing information includes the processing timeout corresponding error code, go to step 760.
步骤760:服务端实体向客户端实体发送回复报文,所述回复报文携带处理信息。相应地,客户端实体接收该回复报文。Step 760: The server entity sends a reply packet to the client entity, and the reply packet carries processing information. Correspondingly, the client entity receives the reply message.
上述方法可以为车载应用之间的通信提供差异化的QoS管理方法,提供优先级、可靠性等多个维度的保证。对于不同类型的车载应用可以满足高可靠、高安全、低时延等QoS要求,从而为智能汽车提供更优异的服务化通信能力。The above method can provide a differentiated QoS management method for communication between vehicle applications, and provide guarantees in multiple dimensions such as priority and reliability. For different types of vehicle applications, it can meet QoS requirements such as high reliability, high security, and low latency, thereby providing smart cars with better service-oriented communication capabilities.
如图9所示,为又一种客户端应用和服务端应用之间的通信方法,该方法包括:As shown in Figure 9, it is another communication method between the client application and the server application, the method includes:
步骤910:响应于客户端应用对服务端应用的服务请求,客户端实体确定所述服务请求对应的会话(transaction)及会话状态指示信息。Step 910: In response to the service request from the client application to the server application, the client entity determines a session (transaction) corresponding to the service request and session state indication information.
其中,一个会话可以包括多个客户端应用对服务端应用的服务请求,这些服务请求具有一致性要求,也即服务端应用要么全部执行会话中的多个服务请求,要么全都不执行。A session may include service requests from multiple client applications to the server application, and these service requests have consistency requirements, that is, the server application either executes all of the multiple service requests in the session, or does not execute all of them.
客户端实体可以获取服务请求对应的会话,并确定会话状态指示信息。The client entity can obtain the session corresponding to the service request, and determine the session status indication information.
若所述服务请求对应的会话未开启,则确定会话状态指示信息指示开启会话(transactionstart);若所述服务请求对应的会话已开启,则会话状态指示信息指示会话进行中(intransaction)。If the session corresponding to the service request is not opened, then determine that the session status indication information indicates that the session is started (transactionstart); if the session corresponding to the service request has been opened, then the session status indication information indicates that the session is in progress (intransaction).
步骤920:所述客户端实体发送服务请求报文,所述服务请求报文包括会话信息,所述会话信息包括会话标识及所述会话状态信息。相应地服务端实体接收服务请求报文。Step 920: The client entity sends a service request message, the service request message includes session information, and the session information includes a session identifier and the session state information. Correspondingly, the server entity receives the service request message.
客户端应用可以通过SOME/IP协议层实体提供的接口发送服务发现报文以查找所需的服务和服务实例。The client application can send a service discovery message through the interface provided by the SOME/IP protocol layer entity to find the required service and service instance.
客户端实体可以采用广播方式发送服务请求报文,客户端实体也可以在服务相关的域中以组播方式发送服务请求报文。The client entity can send the service request message in broadcast mode, and the client entity can also send the service request message in multicast mode in the service-related domain.
服务请求报文包括客户端侧的连接信息和会话信息,所述客户端侧连接信息包括:服务标识,客户端标识,客户端实例标识,其中会话信息包括会话标识及会话状态指示信息。The service request message includes client-side connection information and session information, and the client-side connection information includes: service ID, client ID, and client instance ID, wherein the session information includes session ID and session state indication information.
进一步,如果客户端应用对服务端应用提供的服务有资源锁定的需求,则会话信息还可以包括资源标识。Further, if the client application requires resource locking for the service provided by the server application, the session information may also include a resource identifier.
一种可能的实现方式中,可以基于已有的SOME/IP服务请求报文进行扩展得到包括会话信息的服务请求报文,使其携带新增的会话标识、会话状态指示信息,以及,可选地,资源标识等。包括会话信息的服务请求报文可以包括图3所示的SOME/IP Header和Payload,扩展部分可以在SOME/IP Header之后,Payload之前。In a possible implementation, the existing SOME/IP service request message can be extended to obtain a service request message including session information, so that it can carry a newly added session identifier, session status indication information, and, optionally land, resource ID, etc. The service request message including session information may include the SOME/IP Header and Payload shown in Figure 3, and the extension part may be after the SOME/IP Header and before the Payload.
又一种可能的实现方式中,还可以结合图7所示实施例,也即扩展的SOME/IP服务请求报文同时包括QoS控制信息和会话信息。如图10所示,其中,QoS控制信息部分用虚线框表示携带会话信息时,QoS控制信息可选。其中会话状态在服务请求报文中可以用于会话状态指示,例如用于指示开启会话、会话进行中,会话提交等,在服务响应报文中则可以用于会话状态确认,例如用于指示开启会话成功、开启会话失败、会话提交成功以及会话提交失败等。需要说明的是图10仅为一种示例,实际使用的时候,字段的顺序,长度可以不同,会话信息也可以放在QoS控制信息之前。In yet another possible implementation manner, the embodiment shown in FIG. 7 may also be combined, that is, the extended SOME/IP service request message includes both QoS control information and session information. As shown in FIG. 10 , where the QoS control information part is indicated by a dashed box when carrying session information, the QoS control information is optional. The session state can be used for session state indication in the service request message, for example, for indicating opening of the session, session in progress, session submission, etc., and for session state confirmation in the service response message, for example, for indicating opening Session success, session opening failure, session submission success, session submission failure, etc. It should be noted that FIG. 10 is only an example. In actual use, the order and length of the fields may be different, and the session information may also be placed before the QoS control information.
若会话状态指示信息指示会话进行中(intransaction),则服务请求报文还可以包括客户端的服务请求序列。If the session state indication information indicates that the session is in-transaction, the service request message may also include the service request sequence of the client.
若会话状态指示信息指示开启会话,服务请求包括可以不包括客户端的服务请求序列。以确保会话开启后才将客户端的多个服务请求序列提交至服务端。If the session state indication information indicates opening a session, the service request may not include a service request sequence of the client. To ensure that the multiple service request sequences of the client are submitted to the server after the session is opened.
步骤930:所述服务端实体根据会话信息处理所述服务请求报文。Step 930: The server entity processes the service request packet according to the session information.
服务端实体获取到连接信息和会话信息后,根据会话状态指示信息进行处理。After the server entity obtains the connection information and session information, it processes it according to the session state indication information.
1)若会话状态指示信息指示开启会话,服务端实体确认是否可以开启会话:1) If the session status indication information indicates opening a session, the server entity confirms whether the session can be opened:
若服务端实体确认可以开启会话,则确定会话状态确认信息指示开启成功;If the server entity confirms that the session can be opened, it is determined that the session state confirmation information indicates that the opening is successful;
若会话信息中还包括资源标识,服务端实体确定该资源是否被其他客户端实例占用,若空闲未被占用,则服务端实体为本次会话的客户端实例锁定该资源,则确定会话状态确认信息指示开启成功;若资源被其他客户端实例占用,则服务端实体确定会话状态确认信息指示开始失败。If the session information also includes a resource identifier, the server entity determines whether the resource is occupied by another client instance. If it is not occupied, the server entity locks the resource for the client instance of this session, and then confirms the session state The information indicates that the opening is successful; if the resource is occupied by other client instances, the server entity determines the session state confirmation information indicates that the opening fails.
服务端实体发送回复报文,并在回复报文中携带会话状态确认信息。The server entity sends a reply message, and the session state confirmation information is carried in the reply message.
其中回复报文的格式和接收到的服务请求报文相同,区别在于消息类型不同,并且会话状态确认信息和会话状态指示信息可以为同一字段,取值不同。The format of the reply message is the same as that of the received service request message, the difference is that the message type is different, and the session state confirmation information and the session state indication information may be the same field with different values.
2)若会话状态指示信息指示会话进行中,服务端实体获取其中的服务请求序列,继续步骤930接收并处理来自客户端实体的服务请求报文,直至接收到会话状态指示信息为会话提交的服务请求报文。2) If the session state indication information indicates that the session is in progress, the server entity obtains the service request sequence therein, and continues to step 930 to receive and process the service request message from the client entity until the session state indication information is received as a service submitted by the session request message.
步骤940:客户端实体接收到服务端实体的回复报文,回复报文包括会话状态确认信息。Step 940: the client entity receives a reply packet from the server entity, and the reply packet includes session state confirmation information.
客户端实体根据会话状态确认信息确定会话是否开启成功,若开启成功,则执行步骤910~920向服务端实体发送携带服务请求序列的服务请求报文。The client entity determines whether the session is opened successfully according to the session state confirmation information, and if the session is opened successfully, execute steps 910-920 to send a service request message carrying a service request sequence to the server entity.
步骤950:客户端实体确定会话包括的多个服务请求序列均已发送,所述客户端实体发送指示会话提交的报文。相应地,服务端实体接收到指示会话提交的报文。Step 950: The client entity determines that the multiple service request sequences included in the session have been sent, and the client entity sends a packet indicating session submission. Correspondingly, the server entity receives a packet indicating session submission.
其中指示会话提交的报文仍可以采用步骤920中所述的服务请求报文,其中会话状态指示信息指示会话提交,可以不包括客户端的服务请求序列。The message indicating session submission may still use the service request message described in step 920, wherein the session state indication information indicates session submission, and may not include the service request sequence of the client.
在又一种可能的实现方式中,也客户端实体也可以在会话的最后一个服务请求序列发送时,同时指示会话提交,也即将其中会话状态指示信息设置为会话提交指示。In yet another possible implementation, the client entity may also indicate session submission at the same time when the last service request sequence of the session is sent, that is, set the session state indication information as the session submission indication.
步骤960:服务端实体向客户端实体发送指示会话提交结果的报文,相应地,客户端实体接收到该报文。Step 960: The server entity sends a packet indicating the session submission result to the client entity, and the client entity receives the packet accordingly.
其中,指示会话提交成功的报文格式可以和步骤920所述服务请求报文格式相同,区别在于消息类型以及相应的会话状态指示信息不同。Wherein, the format of the message indicating that the session submission is successful may be the same as that of the service request message in step 920, except that the message type and the corresponding session state indication information are different.
步骤970:服务端实体处理所述会话的多个服务请求序列,并在处理完多个服务请求序列后,发送回复报文。Step 970: The server entity processes multiple service request sequences of the session, and sends a reply message after processing the multiple service request sequences.
服务端实体确认会话提交后,处理已经接收到的该会话的多个服务请求序列,并在处理完各服务请求序列后,分别发送回复报文指示处理结果。After the server entity confirms that the session is submitted, it processes the received multiple service request sequences of the session, and after processing each service request sequence, sends a reply message to indicate the processing result respectively.
如果服务端实体为客户端实例锁定资源,则在执行完所述会话的多个服务请求序列后,解除对资源的锁定。If the server entity locks the resource for the client instance, it unlocks the resource after executing multiple service request sequences of the session.
本申请实施例的方法可以保证客户端应用的请求的服务数据的一致性和隔离性需求,提高了应用间通信的可靠性和安全性。The method in the embodiment of the present application can ensure the consistency and isolation requirements of the service data requested by the client application, and improve the reliability and security of communication between applications.
可以理解的是,图7和图9的实施例可以分别实施,也可以结合实施,也就是在 服务请求中可以分别包括QoS相关信息或者会话相关信息,也可以同时包括QoS相关信息和会话相关信息,同时包括QoS相关信息会会话相关信息时,客户端实体和服务端实体可以参照图7实施例以及图9实施例中对相关字段的处理逻辑处理。It can be understood that the embodiments in FIG. 7 and FIG. 9 can be implemented separately or in combination, that is, the service request can include QoS-related information or session-related information, or both QoS-related information and session-related information. , when including QoS-related information and session-related information at the same time, the client entity and the server entity can refer to the processing logic for related fields in the embodiment of FIG. 7 and the embodiment of FIG. 9 .
应理解,本申请中描述的各个实施例可以为独立的方案,也可以根据内在逻辑进行组合,这些方案都落入本申请实施例的保护范围中。It should be understood that the various embodiments described in this application may be independent solutions, or may be combined according to internal logic, and these solutions all fall within the protection scope of the embodiments of this application.
上述主要从方法的角度对本申请实施例提供的方案进行了介绍。可以理解的是,上述的客户端实体,服务端实体为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的功能,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。The foregoing mainly introduces the solutions provided by the embodiments of the present application from the perspective of methods. It can be understood that, in order to realize the above-mentioned functions, the above-mentioned client entity and server entity include corresponding hardware structures and/or software modules for performing various functions. Those skilled in the art should easily realize that, in combination with the functions described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
从功能单元的角度,本申请可以根据上述方法实施例对客户端实体或服务端实体进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个功能单元中。上述集成的功能单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。From the perspective of functional units, this application can divide the functional units of the client entity or server entity according to the above method embodiments, for example, each functional unit can be divided corresponding to each function, or two or more functions can be divided into integrated in one functional unit. The above-mentioned integrated functional units can be implemented in the form of hardware or in the form of software functional units.
以下,结合图11说明本申请实施例提供的通信装置。应理解,装置实施例的描述与方法实施例的描述相互对应,相应地技术效果和方法实施例中对应。因此,未详细描述的内容可以参见上文方法实施例,为了简洁,这里不再赘述。Hereinafter, the communication device provided by the embodiment of the present application will be described with reference to FIG. 11 . It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, and correspondingly the technical effect corresponds to that of the method embodiment. Therefore, for content that is not described in detail, reference may be made to the above method embodiments, and for the sake of brevity, details are not repeated here.
图11是本申请实施例提供的数据传输装置的示意性框图。该装置1100包括收发单元1110和处理单元1120。收发单元1110可以实现相应的通信功能,处理单元1120用于进行数据处理。收发单元1110还可以称为通信接口或通信单元。Fig. 11 is a schematic block diagram of a data transmission device provided by an embodiment of the present application. The device 1100 includes a transceiver unit 1110 and a processing unit 1120 . The transceiver unit 1110 can implement a corresponding communication function, and the processing unit 1120 is used for data processing. The transceiver unit 1110 may also be called a communication interface or a communication unit.
可选地,该装置1100还可以包括存储单元,该存储单元可以用于存储指令和/或数据,处理单元1120可以读取存储单元中的指令和/或数据,以使得装置实现前述方法实施例。Optionally, the device 1100 may further include a storage unit, which may be used to store instructions and/or data, and the processing unit 1120 may read the instructions and/or data in the storage unit, so that the device implements the aforementioned method embodiments .
该装置1100可以用于执行上文方法实施例中客户端实体或服务端实体所执行的动作,具体的,收发单元1110用于执行上文方法实施例中客户端实体或服务端实体的收发相关的操作,处理单元1120用于执行上文方法实施例中客户端实体或服务端实体的处理相关的操作。The apparatus 1100 can be used to execute the actions performed by the client entity or the server entity in the above method embodiments, specifically, the transceiver unit 1110 is used to perform the sending and receiving related actions of the client entity or the server entity in the above method embodiments The processing unit 1120 is configured to perform operations related to the processing of the client entity or the server entity in the above method embodiments.
该装置1100可实现对应于根据本申请实施例的方法实施例中的客户端实体或服务端实体执行的步骤或者流程,该装置1100可以包括用于执行图5、图7以及图9中的客户端实体或服务端实体执行的方法的单元。并且,该装置1000中的各单元和上述其他操作和/或功能分别为了实现图5、图7以及图9中的客户端实体或服务端实体中的方法实施例的相应流程。The apparatus 1100 can implement the steps or processes corresponding to the execution of the client entity or the server entity in the method embodiment according to the embodiment of the present application. A unit of method executed by an end entity or server entity. Moreover, each unit in the apparatus 1000 and other operations and/or functions mentioned above are respectively for realizing the corresponding flow of the method embodiment in the client entity or the server entity in FIG. 5 , FIG. 7 and FIG. 9 .
其中,当该装置1100用于执行图5中客户端实体执行的方法时,收发单元1110可用于执行步骤510客户端实体发送服务发现报文和步骤520接收响应报文;处理单元1120可用于执行步骤530。Wherein, when the apparatus 1100 is used to execute the method performed by the client entity in FIG. 5 , the transceiver unit 1110 can be used to execute step 510, the client entity sends a service discovery message and step 520 receives a response message; the processing unit 1120 can be used to execute Step 530.
当该装置1100用于执行图5中服务端实体执行的方法时,收发单元1110可用于 执行步骤510接收客户端实体发送的服务发现报文和步骤520发送响应报文;处理单元1120可用于执行步骤530。When the device 1100 is used to execute the method performed by the server entity in FIG. 5, the transceiver unit 1110 can be used to perform step 510 to receive the service discovery message sent by the client entity and step 520 to send a response message; the processing unit 1120 can be used to perform Step 530.
当该装置1100用于执行图7中客户端实体执行的方法时,收发单元1110可用于执行步骤730发送所述客户端应用对服务端应用发起的服务请求报文以及步骤760接收服务端实体的回复报文;处理单元1120可用于执行步骤710至720。When the apparatus 1100 is used to execute the method performed by the client entity in FIG. 7 , the transceiver unit 1110 can be used to perform step 730 to send the service request message initiated by the client application to the server application and step 760 to receive the service request message from the server entity. Reply message; the processing unit 1120 can be used to execute steps 710 to 720 .
当该装置1100用于执行图7中服务端实体执行的方法时,收发单元1110可用于执行步骤730接收所述客户端应用对服务端应用发起的服务请求报文以及步骤760发送回复报文;处理单元1120可用于执行步骤740至750。When the device 1100 is used to execute the method performed by the server entity in FIG. 7 , the transceiver unit 1110 can be used to perform step 730 to receive the service request message initiated by the client application to the server application and step 760 to send a reply message; The processing unit 1120 can be used to perform steps 740 to 750 .
当该装置1100用于执行图9中客户端实体执行的方法时,收发单元1110可用于执行步骤920发送所述客户端应用对服务端应用发起的服务请求报文,步骤940接收服务端实体的回复报文,步骤950发送指示会话提交的报文,步骤960接收指示会话提交结果的报文以及步骤970接收回复报文;处理单元1120可用于执行步骤910。When the device 1100 is used to execute the method performed by the client entity in FIG. 9 , the transceiver unit 1110 can be used to perform step 920 to send the service request message initiated by the client application to the server application, and step 940 to receive the service request message from the server entity. Reply message, step 950 sends a message indicating session submission, step 960 receives a message indicating a session submission result, and step 970 receives a reply message; the processing unit 1120 can be used to execute step 910 .
当该装置1100用于执行图9中服务端实体执行的方法时,收发单元1110可用于执行步骤920接收所述客户端应用对服务端应用发起的服务请求报文,步骤940发送回复报文,步骤950接收指示会话提交的报文,步骤960发送指示会话提交结果的报文以及步骤970发送回复报文;处理单元1120可用于执行步骤930。When the device 1100 is used to execute the method performed by the server entity in FIG. 9 , the transceiver unit 1110 can be used to perform step 920 to receive the service request message initiated by the client application to the server application, and step 940 to send a reply message, Step 950 receives a message indicating session submission, step 960 sends a message indicating a session submission result, and step 970 sends a reply message; the processing unit 1120 can be used to execute step 930 .
应理解,各单元执行上述相应步骤的具体过程在上述方法实施例中已经详细说明,为了简洁,在此不再赘述。It should be understood that the specific process for each unit to perform the above corresponding steps has been described in detail in the above method embodiments, and for the sake of brevity, details are not repeated here.
应理解,上述收发单元可以集成设计,即同时包括接收和发送功能,也可以分离设计,即由具有接收功能的接收单元和具有发送功能的发送单元代替。It should be understood that the above-mentioned transceiver unit may be designed in an integrated manner, that is, include both receiving and sending functions, or may be designed separately, that is, be replaced by a receiving unit with a receiving function and a sending unit with a sending function.
图11中的处理单元可以由至少一个处理器或处理器相关电路实现。收发单元可以由收发器或收发器相关电路实现。存储单元可以通过至少一个存储器实现。The processing unit in FIG. 11 may be implemented by at least one processor or processor-related circuits. The transceiver unit may be implemented by a transceiver or transceiver-related circuits. The storage unit can be realized by at least one memory.
如图12所示,本申请实施例还提供一种通信装置1200。该装置1200包括收发器1210,还可以包括处理器1220与存储器1230耦合。收发器1230用于信号的接收和/或发送。例如,处理器1220用于控制收发器1210进行信号的接收和/或发送。存储器1230用于存储计算机程序或指令和/或数据,处理器1220用于执行存储器1230存储的计算机程序或指令和/或数据,使得上文方法实施例中的方法被执行。具体地,所述处理器1220可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。所述处理器1220还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。As shown in FIG. 12 , the embodiment of the present application further provides a communication device 1200 . The apparatus 1200 includes a transceiver 1210 , and may further include a processor 1220 coupled with a memory 1230 . The transceiver 1230 is used for signal reception and/or transmission. For example, the processor 1220 is configured to control the transceiver 1210 to receive and/or send signals. The memory 1230 is used to store computer programs or instructions and/or data, and the processor 1220 is used to execute the computer programs or instructions and/or data stored in the memory 1230, so that the methods in the above method embodiments are executed. Specifically, the processor 1220 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP) or a combination of CPU and NP. The processor 1220 may further include a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (application-specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD) or a combination thereof. The aforementioned PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), a general array logic (generic array logic, GAL) or any combination thereof.
可选地,该装置1200包括的处理器1220为一个或多个。Optionally, the apparatus 1200 includes one or more processors 1220 .
可选地,如图12所示,该装置1200还可以包括存储器1230。Optionally, as shown in FIG. 12 , the apparatus 1200 may further include a memory 1230 .
可选地,该装置1200包括的存储器1230可以为一个或多个。Optionally, the apparatus 1200 may include one or more memories 1230 .
可选地,该存储器1230可以与该处理器1220集成在一起,或者分离设置。Optionally, the memory 1230 may be integrated with the processor 1220, or set separately.
作为一种方案,该装置1200用于实现上文方法实施例中由客户端实体或服务端实 体执行的操作。As a solution, the apparatus 1200 is used to implement the operations performed by the client entity or the server entity in the above method embodiments.
本申请实施例还提供一种通信装置,该装置包括:存储器,用于存储程序;处理器,用于执行存储器存储的程序,当存储器存储的程序被执行时,处理器用于执行上述方法实施例中由客户端实体或服务端实体执行的方法。The embodiment of the present application also provides a communication device, which includes: a memory for storing a program; a processor for executing the program stored in the memory, and when the program stored in the memory is executed, the processor is used for executing the above method embodiment A method executed by a client entity or a server entity in .
本申请实施例还提供一种计算机可读存储介质,包括:计算机可读介质存储有计算机程序;计算机程序由一个或多个处理器执行时,使得包括处理器的装置执行上述方法实施例中由客户端实体或服务端实体执行的方法。The embodiment of the present application also provides a computer-readable storage medium, including: the computer-readable medium stores a computer program; when the computer program is executed by one or more processors, the device including the processor executes the method described in the above-mentioned embodiment A method executed by a client entity or a server entity.
本申请实施例还提供一种芯片,该芯片包括处理器与数据接口,处理器通过数据接口读取存储器上存储的指令,以执行上述方法实施例中由客户端实体或服务端实体执行的方法。The embodiment of the present application also provides a chip, the chip includes a processor and a data interface, and the processor reads the instructions stored on the memory through the data interface, so as to execute the method performed by the client entity or the server entity in the above method embodiment .
本申请实施例还提供一种通信节点,该通信节点包括上述图11至图12中的任一种装置,该通信节点可以是域控制器,网关、电子控制单元、T-box,传感器、执行器等。The embodiment of the present application also provides a communication node, which includes any one of the above-mentioned devices in Figure 11 to Figure 12, and the communication node can be a domain controller, a gateway, an electronic control unit, a T-box, a sensor, an execution device etc.
本申请实施例还提供一种终端,该终端包括上述图11至图12中的任一种装置,该终端可以为车辆,包括具有智能驾驶和辅助驾驶技术的车辆。The embodiment of the present application also provides a terminal, the terminal includes any one of the above-mentioned devices in Fig. 11 to Fig. 12, and the terminal may be a vehicle, including a vehicle with intelligent driving and assisted driving technology.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system" and the like are used in this specification to refer to a computer-related entity, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer. By way of illustration, both an application running on a computing device and the computing device can be components. One or more components can reside within a process and/or thread of execution and a component can be localized on one computer and/or distributed between two or more computers. In addition, these components can execute from various computer readable media having various data structures stored thereon. A component may, for example, be based on a signal having one or more packets of data (e.g., data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet via a signal interacting with other systems). Communicate through local and/or remote processes.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product in essence or the part that contributes to it or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for So that a computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above is only a specific implementation of the application, but the scope of protection of the application is not limited thereto. Anyone familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the application. Should be covered within the protection scope of this application. Therefore, the protection scope of the present application should be determined by the protection scope of the claims.

Claims (42)

  1. 一种通信方法,其特征在于,A communication method, characterized in that,
    响应于客户端应用对服务端应用的服务请求,客户端实体获取与所述客户端应用和所述服务端应用连接相关的业务质量QoS信息,所述QoS信息包括以下至少一项:服务相关的域信息,优先级信息以及可靠性信息;In response to a service request from a client application to a server application, the client entity acquires quality of service (QoS) information related to the connection between the client application and the server application, where the QoS information includes at least one of the following: service-related domain information, priority information and reliability information;
    所述客户端实体发送所述客户端应用对服务端应用的服务请求报文,所述服务请求报文包括客户端连接信息,QoS管控信息以及所述客户端应用对所述服务端应用的服务请求序列,所述QoS管控信息包括所述QoS信息中一项或多项的启用指示。The client entity sends a service request message from the client application to the server application, and the service request message includes client connection information, QoS control information, and a service request from the client application to the server application. A request sequence, the QoS control information includes an activation indication of one or more items in the QoS information.
  2. 根据权利要求1所述的方法,所述客户端实体发送所述客户端应用对服务端应用的服务请求报文包括:According to the method according to claim 1, the sending by the client entity of the service request message from the client application to the server application includes:
    所述客户端实体以广播方式发送所述客户端应用对服务端应用的服务请求报文。The client entity broadcasts the service request message of the client application to the server application.
  3. 根据权利要求1所述的方法,所述QoS管控信息包括域启用指示,并且域启用指示指示启用域控制,所述客户端实体发送所述客户端应用对服务端应用的服务请求报文包括:According to the method according to claim 1, the QoS control information includes a domain activation indication, and the domain activation indication indicates enabling domain control, and the service request message sent by the client entity to the server application by the client application includes:
    所述客户端实体在所述服务相关的域内以组播方式发送所述客户端应用对服务端应用的服务请求报文。The client entity sends the service request message of the client application to the server application in a multicast manner in the domain related to the service.
  4. 根据权利要求1至3任一项所述的方法,所述发送所述客户端应用对服务端应用的服务请求报文之前,还包括:According to the method according to any one of claims 1 to 3, before sending the service request message of the client application to the server application, further comprising:
    所述QoS信息包括优先级信息,所述客户端实体根据所述优先级信息调度所述请求报文用于发送。The QoS information includes priority information, and the client entity schedules the request message for sending according to the priority information.
  5. 根据权利要求4所述的方法,所述客户端实体根据所述优先级信息调度所述请求报文用于发送,包括:According to the method according to claim 4, the client entity schedules the request message for sending according to the priority information, comprising:
    所述客户端实体根据所述优先级信息从系统的调度队列中确定所述优先级信息对应的调度队列;所述系统的调度队列至少包括第一调度队列和第二调度队列,所述第一调度队列的发送优先级高于所述第二调度队列;The client entity determines the dispatch queue corresponding to the priority information from the dispatch queues of the system according to the priority information; the dispatch queue of the system includes at least a first dispatch queue and a second dispatch queue, and the first The sending priority of the scheduling queue is higher than that of the second scheduling queue;
    所述客户端实体调度所述请求报文进入所述优先级信息对应的调度队列。The client entity schedules the request packet to enter the scheduling queue corresponding to the priority information.
  6. 根据权利要求5所述的方法,所述客户端实体调度所述请求报文进入所述优先级信息对应的调度队列,包括:According to the method according to claim 5, the client entity schedules the request message to enter the scheduling queue corresponding to the priority information, comprising:
    若所述优先级信息对应的调度队列中包括多个待发送报文,所述客户端实体对所述多个待发送报文和所述请求报文按照优先级信息排序以使得优先级高的报文优先发送。If the scheduling queue corresponding to the priority information includes a plurality of packets to be sent, the client entity sorts the plurality of packets to be sent and the request packets according to the priority information so that those with higher priority Packets are sent with priority.
  7. 根据权利要求1至4任一项所述的方法,还包括:The method according to any one of claims 1 to 4, further comprising:
    所述客户端实体所在节点具备时延敏感网络TSN接口设备,所述客户端实体向所 述TSN接口设备提供所述服务请求报文的所述QoS信息,以使得所述TSN接口设备将所述服务请求报文调度至所述QoS信息对应的发送队列中。The node where the client entity is located has a delay-sensitive network TSN interface device, and the client entity provides the QoS information of the service request message to the TSN interface device, so that the TSN interface device transmits the The service request message is scheduled to the sending queue corresponding to the QoS information.
  8. 根据权利要求1至7任一项所述的方法,所述QoS管控信息包括可靠性启用指示,所述可靠性启用指示指示启用可靠性控制,所述服务请求报文中还包括超时时长信息。According to the method according to any one of claims 1 to 7, the QoS control information includes a reliability activation indication, the reliability activation indication indicates activation of reliability control, and the service request message further includes timeout duration information.
  9. 根据权利要求1至8任一项所述的方法,所述QoS信息是通过配置工具配置的,或者,According to the method according to any one of claims 1 to 8, the QoS information is configured through a configuration tool, or,
    所述QoS信息是经过所述客户端实体与所述服务端实体协商得到的。The QoS information is obtained through negotiation between the client entity and the server entity.
  10. 一种通信方法,其特征在于,A communication method, characterized in that,
    服务端实体接收客户端实体发送所述客户端应用对服务端应用发起的服务请求报文,所述服务请求报文包括客户端连接信息,QoS管控信息,以及服务请求序列,所述QoS管控信息包括QoS信息中一项或多项的启用指示;The server entity receives the service request message sent by the client entity to the server application by the client application, the service request message includes client connection information, QoS control information, and service request sequence, and the QoS control information Include an indication of enabling one or more items in the QoS information;
    所述服务端实体解析所述服务请求报文获取所述客户端连接对应的QoS信息;The server entity parses the service request message to obtain QoS information corresponding to the client connection;
    所述服务端实体根据QoS管控信息及所述QoS信息处理所述客户端应用对服务端应用的服务请求报文。The server entity processes the service request message from the client application to the server application according to the QoS control information and the QoS information.
  11. 根据权利要求10所述的方法,所述QoS管控信息包括域启用指示,所述域启用指示指示启用域控制,所述根据QoS管控信息及所述QoS信息处理所述客户端应用对服务端应用的服务请求报文,包括:The method according to claim 10, wherein the QoS control information includes a domain activation indication, the domain activation indication indicates that domain control is enabled, and the processing of the client application to the server application according to the QoS control information and the QoS information service request message, including:
    根据QoS信息中服务相关的域确定服务请求报文中域信息是否正确,若所述域信息错误,所述服务端实体向所述客户端实体发送回复报文,所述回复报文携带所述域信息错误对应的错误码。Determine whether the domain information in the service request message is correct according to the service-related domain in the QoS information. If the domain information is incorrect, the server entity sends a reply message to the client entity, and the reply message carries the The error code corresponding to domain information error.
  12. 根据权利要求10所述的方法,所述QoS管控信息包括优先级启用指示,所述优先级启用指示指示启用优先级控制,所述根据QoS管控信息及所述QoS信息处理所述客户端应用对服务端应用的服务请求报文,包括:The method according to claim 10, wherein the QoS control information includes a priority activation indication, the priority activation indication indicates that priority control is enabled, and the processing of the client application pair according to the QoS control information and the QoS information The service request message of the server application, including:
    所述服务端实体根据优先级信息处理所述客户端应用对服务端应用的服务请求序列;The server entity processes the service request sequence of the client application to the server application according to the priority information;
    所述服务端实体向所述客户端实体发送回复报文,所述回复报文携带处理信息。The server entity sends a reply message to the client entity, and the reply message carries processing information.
  13. 根据权利要求12所述的方法,所述QoS管控信息包括可靠性启用指示,所述可靠性启用指示指示启用可靠性控制,所述服务端实体向所述客户端实体发送回复报文,还包括:The method according to claim 12, wherein the QoS control information includes a reliability activation indication, the reliability activation indication indicates activation of reliability control, and the server entity sends a reply message to the client entity, further comprising: :
    确定对所述服务请求序列的处理是否满足所述可靠性要求,若对所述服务请求序列的处理不满足所述可靠性要求,则所述处理信息指示不满足所述可靠性要求对应的错误码。determining whether the processing of the service request sequence meets the reliability requirement, and if the processing of the service request sequence does not meet the reliability requirement, the processing information indicates an error corresponding to the failure of the reliability requirement code.
  14. 根据权利要求10至13任一项所述的方法,所述服务端实体解析所述服务请求报文获取所述客户端连接对应的QoS信息,包括:According to the method according to any one of claims 10 to 13, the server entity parses the service request message to obtain the QoS information corresponding to the client connection, including:
    所述服务端实体解析接所述服务请求报文得到所述客户端连接信息和所述QoS控制信息,The server entity parses and receives the service request message to obtain the client connection information and the QoS control information,
    所述服务端实体根据所述QoS控制信息在QoS配置表获取所述客户端连接的QoS信息。The server entity obtains the QoS information of the client connection from the QoS configuration table according to the QoS control information.
  15. 根据权利要求14所述的方法,所述QoS配置表是通过配置工具配置的,或者,The method according to claim 14, the QoS configuration table is configured by a configuration tool, or,
    所述QoS配置表是经过所述服务端实体与所述客户端实体协商得到的。The QoS configuration table is obtained through negotiation between the server entity and the client entity.
  16. 一种通信方法,其特征在于,A communication method, characterized in that,
    客户端实体发送服务发现报文,所述服务发现报文包括服务标识、客户端标识以及QoS协商请求信息,所述QoS协商请求信息包括客户端实例标识(ParticipantID)以及以下至少一项待确认QoS信息:优先级信息、可靠性信息以及服务发布的域(domain)信息;The client entity sends a service discovery message, the service discovery message includes a service identifier, a client identifier, and QoS negotiation request information, and the QoS negotiation request information includes a client instance identifier (ParticipantID) and at least one of the following QoS to be confirmed Information: priority information, reliability information, and domain information published by the service;
    所述客户端实体接收服务端实体的服务提供报文及QoS协商确认信息,所述服务提供报文包括服务实例标识,所述QoS协商确认信息包括对所述QoS协商请求信息中每一项QoS信息的确认结果;The client entity receives the service providing message and QoS negotiation confirmation information of the server entity, the service providing message includes the service instance identifier, and the QoS negotiation confirmation information includes the QoS negotiation information for each item in the QoS negotiation request information. Confirmation of information;
    所述客户端实体根据所述服务提供报文及所述QoS协商确认信息确定连接及所述连接对应的QoS信息。The client entity determines the connection and the QoS information corresponding to the connection according to the service provision message and the QoS negotiation confirmation information.
  17. 根据权利要求16所述的方法,所述客户端实体发送服务发现报文,包括:The method according to claim 16, wherein the client entity sends a service discovery message, comprising:
    所述客户端实体以广播方式发送所述服务发现报文;The client entity broadcasts the service discovery message;
    所述客户端实体接收服务端实体的服务提供报文及QoS协商确认信息,包括:The client entity receives the service provision message and QoS negotiation confirmation information of the server entity, including:
    所述客户端实体接收所述服务端实体以广播方式发送的服务提供报文;The client entity receives the service provision message sent by the server entity in broadcast mode;
    所述客户端实体接收所述服务端实体以单播方式向所述客户端实体发送的QoS应答报文,所述QoS应答报文包括所述QoS协商确认信息。The client entity receives the QoS response message sent by the server entity to the client entity in a unicast manner, where the QoS response message includes the QoS negotiation confirmation information.
  18. 根据权利要求16所述的方法,所述客户端实体发送服务发现报文,包括:The method according to claim 16, wherein the client entity sends a service discovery message, comprising:
    所述客户端实体在服务相关的域内以组播方式发送所述服务发现报文,所述QoS协商信息还包括所述服务相关的域信息;The client entity sends the service discovery message in a multicast manner in the service-related domain, and the QoS negotiation information also includes the service-related domain information;
    所述客户端实体接收服务端实体的服务提供报文及QoS协商确认信息,包括:The client entity receives the service provision message and QoS negotiation confirmation information of the server entity, including:
    所述客户端实体接收所述服务端实体在所述服务相关的域内以组播方式发送的服务提供报文;The client entity receives the service provision message sent by the server entity in a multicast manner in the service-related domain;
    所述客户端实体接收所述服务端实体以单播方式向所述客户端实体发送的QoS应答报文,所述QoS应答报文包括所述QoS协商确认信息。The client entity receives the QoS response message sent by the server entity to the client entity in a unicast manner, where the QoS response message includes the QoS negotiation confirmation information.
  19. 一种通信方法,其特征在于,A communication method, characterized in that,
    服务端实体接收客户端实体的服务发现报文,所述服务发现报文包括服务标识、客户端标识以及QoS协商请求信息,所述QoS协商请求信息包括客户端实例标识(ParticipantID)以及以下至少一项待确认QoS信息:优先级信息、可靠性信息以及服务发布的域(domain)信息;The server entity receives the service discovery message of the client entity, the service discovery message includes a service identifier, a client identifier, and QoS negotiation request information, and the QoS negotiation request information includes a client instance identifier (ParticipantID) and at least one of the following QoS information to be confirmed: priority information, reliability information, and domain information published by the service;
    所述服务端实体向所述客户端实体发送响应于所述服务发现报文的服务提供报文及QoS协商确认信息,所述服务提供报文包括服务实例标识,所述QoS协商确认信息包括对所述QoS协商请求信息中每一项QoS信息的确认结果。The server entity sends a service provision message and QoS negotiation confirmation information in response to the service discovery message to the client entity, the service provision message includes a service instance identifier, and the QoS negotiation confirmation information includes A confirmation result of each item of QoS information in the QoS negotiation request information.
  20. 根据权利要求19所述的方法,还包括:The method of claim 19, further comprising:
    所述服务端实体根据所述QoS协商请求信息生成QoS配置信息。The server entity generates QoS configuration information according to the QoS negotiation request information.
  21. 一种通信方法,其特征在于,A communication method, characterized in that,
    响应于客户端应用对服务端应用的服务请求,客户端实体确定所述服务请求对应的会话及会话状态指示信息,所述会话包括多个客户端应用对服务端应用的服务请求;In response to a service request from a client application to a server application, the client entity determines a session corresponding to the service request and session state indication information, where the session includes multiple service requests from the client application to the server application;
    所述客户端实体发送服务请求报文,所述服务请求报文包括服务的连接信息和会话信息,所述会话信息包括会话标识及所述会话状态信息。The client entity sends a service request message, the service request message includes service connection information and session information, and the session information includes a session identifier and the session state information.
  22. 根据权利要求21所述的方法,若所述客户端应用对所述服务端应用的服务有待锁定资源,所述会话信息还包括资源标识。According to the method of claim 21, if the client application needs to lock resources for the service of the server application, the session information further includes a resource identifier.
  23. 根据权利要求21或22所述的方法,A method according to claim 21 or 22,
    若所述服务请求对应的会话未开启,所述会话状态指示信息指示开启会话,所述服务请求报文不携带所述客户端应用对服务端应用的服务请求序列。If the session corresponding to the service request is not opened, the session state indication information indicates to open the session, and the service request message does not carry the service request sequence of the client application to the server application.
  24. 根据权利要求23所述的方法,还包括:The method of claim 23, further comprising:
    所述客户端实体接收所述服务端实体发送的回复报文,所述回复报文包括所述会话开启成功的确认信息。The client entity receives a reply packet sent by the server entity, where the reply packet includes confirmation information that the session is opened successfully.
  25. 根据要求21至24任一项所述的方法,还包括:The method according to any one of claims 21 to 24, further comprising:
    若所述服务请求对应的会话已开启,则会话状态指示信息指示会话进行中,所述服务请求报文还包括所述客户端应用对服务端应用的服务请求序列。If the session corresponding to the service request has been opened, the session state indication information indicates that the session is in progress, and the service request message also includes a service request sequence of the client application to the server application.
  26. 根据权利要求21至25任一项所述的方法,还包括:The method according to any one of claims 21 to 25, further comprising:
    所述客户端实体确定所述会话中所有服务请求的服务请求序列均已发送至所述服务端实体,the client entity determines that a service request sequence for all service requests in the session has been sent to the server entity,
    所述客户端实体发送指示所述会话提交的报文。The client entity sends a packet indicating the session submission.
  27. 根据权利要求26所述的方法,还包括:The method of claim 26, further comprising:
    所述客户端实体接收所述服务端实体发送的指示会话提交结果的报文。The client entity receives the message indicating the session submission result sent by the server entity.
  28. 一种通信方法,其特征在于,A communication method, characterized in that,
    服务端实体接收客户端实体发送的客户端应用对服务端应用的服务请求报文,所述服务请求报文包括服务端应用对客户端应用提供服务的连接信息和会话信息,所述会话信息包括会话标识及所述会话状态信息,所述会话包括多个所述客户端应用对所述服务端应用的服务请求;The server entity receives a service request message from the client application to the server application sent by the client entity, the service request message includes connection information and session information for the server application to provide services to the client application, and the session information includes A session identifier and the session state information, the session includes multiple service requests from the client application to the server application;
    所述服务端实体根据会话信息处理所述服务请求报文。The server entity processes the service request message according to the session information.
  29. 根据权利要求28所述的方法,所述会话状态信息指示开启会话,所述服务端实体根据会话信息处理所述服务请求报文,包括:According to the method according to claim 28, the session state information indicates opening a session, and the server entity processes the service request message according to the session information, including:
    所述服务端实体确定会话状态确认信息指示开启成功;The server entity determines that the session state confirmation information indicates that the opening is successful;
    所述服务端实体向所述客户端实体发送回复报文,所述回复报文包括所述会话状态确认信息。The server entity sends a reply message to the client entity, where the reply message includes the session state confirmation information.
  30. 根据权利要求28所述的方法,所述会话状态信息指示开启会话,所述会话信息还包括资源标识,所述服务端实体根据会话信息处理所述服务请求报文,包括:According to the method according to claim 28, the session state information indicates opening a session, the session information also includes a resource identifier, and the server entity processes the service request message according to the session information, including:
    所述服务端实体确定会话状态确认信息指示开启成功;The server entity determines that the session state confirmation information indicates that the opening is successful;
    所述服务端实体确定所述资源标识对应的资源是否被其他客户端占用,若所述所述资源标识对应的资源被其他客户端占用,所述会话状态确认信息指示开启失败;或者,若所述所述资源标识对应的资源空闲,所述会话状态确认信息指示开启成功,所述服务号端实体锁定所述资源标识对应的资源;The server entity determines whether the resource corresponding to the resource identifier is occupied by other clients, and if the resource corresponding to the resource identifier is occupied by other clients, the session state confirmation information indicates that opening fails; or, if the The resource corresponding to the resource identifier is idle, the session state confirmation information indicates that the opening is successful, and the service terminal entity locks the resource corresponding to the resource identifier;
    所述服务端实体向所述客户端实体发送回复报文,所述回复报文包括所述会话状态确认信息。The server entity sends a reply message to the client entity, where the reply message includes the session state confirmation information.
  31. 根据权利要求28至30所述的方法,所述会话状态指示信息指示会话进行中,所述服务请求报文中还包括所述客户端应用对所述服务端应用的服务请求序列,According to the method according to claims 28 to 30, the session state indication information indicates that the session is in progress, and the service request message further includes the service request sequence of the client application to the server application,
    所述服务端实体获取所述服务请求序列。The server entity acquires the service request sequence.
  32. 根据权利要求28至31所述的方法,还包括:The method of claims 28 to 31, further comprising:
    所述服务端实体接收所述客户端实体的指示会话提交的报文;The server entity receives the message from the client entity indicating session submission;
    所述服务端实体向所述客户端实体发送指示会话提交结果的报文。The server entity sends a packet indicating a session submission result to the client entity.
  33. 根据权利要求32所述的方法,还包括:The method of claim 32, further comprising:
    所述服务端实体处理所述会话的多个服务请求序列;the server entity processes a plurality of service request sequences for the session;
    所述服务端实体向所述客户端实体发送回复报文指示所述多个服务请求序列的处理结果。The server entity sends a reply message to the client entity to indicate processing results of the plurality of service request sequences.
  34. 根据权利要求33所述的方法,还包括:The method of claim 33, further comprising:
    所述服务端实体解除对所述资源标识对应的资源的锁定。The server entity unlocks the resource corresponding to the resource identifier.
  35. 一种通信装置,用于执行如权利要求1至9,16至18,21至27任一项所述的方法。A communication device, configured to execute the method according to any one of claims 1-9, 16-18, 21-27.
  36. 一种通信装置,用于执行如权利要求10至15,19至20,28至34任一项所述的方法。A communication device, configured to execute the method according to any one of claims 10-15, 19-20, 28-34.
  37. 一种计算机可读存储介质,包括:计算机可读介质存储有计算机程序;计算机程序由一个或多个处理器执行时,使得包括处理器的装置执行如权利要求1至34任一项所述的方法。A computer-readable storage medium, comprising: the computer-readable medium stores a computer program; when the computer program is executed by one or more processors, the device including the processor executes the method described in any one of claims 1 to 34 method.
  38. 一种芯片,包括处理器与数据接口,所述处理器通过所述数据接口读取存储器上存储的指令,以执行如权利要求1至34任一项所述的方法。A chip, comprising a processor and a data interface, the processor reads instructions stored on the memory through the data interface, so as to execute the method as claimed in any one of claims 1 to 34.
  39. 一种通信节点,包括如权利要求35或36所述的通信装置。A communication node, comprising the communication device according to claim 35 or 36.
  40. 根据权利要求39所述的通信节点,所述通信节点包括:域控制器、网关、电子控制单元、T-box、传感器、执行器。The communication node according to claim 39, said communication node comprising: a domain controller, a gateway, an electronic control unit, a T-box, a sensor, and an actuator.
  41. 一种通信系统,包括如权利要求35所述的通信装置和权利要求36所述的通信装置。A communication system comprising the communication device according to claim 35 and the communication device according to claim 36.
  42. 一种车辆:包括如权利要求41所述的通信系统。A vehicle comprising the communication system as claimed in claim 41.
PCT/CN2022/070131 2022-01-04 2022-01-04 Communication method, apparatus and system WO2023130216A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280003214.7A CN116711448A (en) 2022-01-04 2022-01-04 Communication method, device and system
PCT/CN2022/070131 WO2023130216A1 (en) 2022-01-04 2022-01-04 Communication method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/070131 WO2023130216A1 (en) 2022-01-04 2022-01-04 Communication method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2023130216A1 true WO2023130216A1 (en) 2023-07-13

Family

ID=87072722

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/070131 WO2023130216A1 (en) 2022-01-04 2022-01-04 Communication method, apparatus and system

Country Status (2)

Country Link
CN (1) CN116711448A (en)
WO (1) WO2023130216A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111277972A (en) * 2019-01-25 2020-06-12 维沃移动通信有限公司 Method for determining QoS parameter of direct communication interface and related equipment
CN111656754A (en) * 2018-07-13 2020-09-11 三星电子株式会社 Method for edge computing service and electronic device thereof
CN112565441A (en) * 2020-12-11 2021-03-26 北京天融信网络安全技术有限公司 Data communication method and electronic equipment
CN112995315A (en) * 2021-02-24 2021-06-18 清华大学深圳国际研究生院 Service-oriented intelligent vehicle-mounted network QoS guarantee method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111656754A (en) * 2018-07-13 2020-09-11 三星电子株式会社 Method for edge computing service and electronic device thereof
CN111277972A (en) * 2019-01-25 2020-06-12 维沃移动通信有限公司 Method for determining QoS parameter of direct communication interface and related equipment
CN112565441A (en) * 2020-12-11 2021-03-26 北京天融信网络安全技术有限公司 Data communication method and electronic equipment
CN112995315A (en) * 2021-02-24 2021-06-18 清华大学深圳国际研究生院 Service-oriented intelligent vehicle-mounted network QoS guarantee method

Also Published As

Publication number Publication date
CN116711448A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN106209758B (en) Method and device for processing SOME/IP flow by interworking with AVB technology
CN108370343B (en) Network hub, transfer method, and vehicle-mounted network system
Sommer et al. Vehicular networking
CN114553873B (en) SOA-based vehicle-cloud cooperative control system, method and readable storage medium
WO2020150872A1 (en) Ethernet and controller area network protocol interconversion for in-vehicle networks
US10750339B2 (en) System for dynamically allocating services between controllers in an automobile
CN107026889B (en) Method of operating a communication node in a network
WO2021051882A1 (en) Packet forwarding method, apparatus, system, and device, and storage medium
WO2023016241A1 (en) Method, apparatus, and system for remotely diagnosising vehicle
Neumann et al. Approaches for in-vehicle communication–an analysis and outlook
US20180343326A1 (en) Can to ip internetworking
US20240045657A1 (en) System architecture for implementing dds communication based on autosar, communication method, and device
WO2023130216A1 (en) Communication method, apparatus and system
US20180352040A1 (en) Method for data transmission in a transportation vehicle communication network, transportation vehicle communication network, subscribers and transportation vehicle
Bonomi et al. The role of fog computing in the future of the automobile
CN113438218A (en) Communication method and device based on SOME/IP protocol, storage medium and terminal
JP7399175B2 (en) Connection management methods, devices, terminals and systems
CN114785474B (en) In-vehicle SOME/IP transmission method and device based on TSN time-sensitive network
WO2023205916A1 (en) On-board diagnostic method, device and system
KR102362611B1 (en) Method for transmitting and receiving data in automotive network and apparatus for the same
WO2024016251A1 (en) Log reporting method and apparatus
JP7464054B2 (en) Relay device, communication method, and communication program
US11985217B2 (en) Network interface apparatus
WO2022206327A1 (en) Vehicle and resource scheduling method thereof
US20230275981A1 (en) Network interface apparatus

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280003214.7

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22917694

Country of ref document: EP

Kind code of ref document: A1