WO2024007137A1 - Message processing methods and apparatuses, and device, storage medium and program product - Google Patents

Message processing methods and apparatuses, and device, storage medium and program product Download PDF

Info

Publication number
WO2024007137A1
WO2024007137A1 PCT/CN2022/103763 CN2022103763W WO2024007137A1 WO 2024007137 A1 WO2024007137 A1 WO 2024007137A1 CN 2022103763 W CN2022103763 W CN 2022103763W WO 2024007137 A1 WO2024007137 A1 WO 2024007137A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
field
parameter
value
session
Prior art date
Application number
PCT/CN2022/103763
Other languages
French (fr)
Chinese (zh)
Inventor
吕小强
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Priority to PCT/CN2022/103763 priority Critical patent/WO2024007137A1/en
Publication of WO2024007137A1 publication Critical patent/WO2024007137A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information

Definitions

  • This application relates to the technical field of the Internet of Things, and in particular to a message processing method, device, equipment, storage medium and program product.
  • an Internet of Things device can send a message to a specific device through unicast, or the Internet of Things device can also send a message to a certain group of devices through multicast.
  • Embodiments of the present application provide a message processing method, device, equipment, storage medium and program product.
  • the technical solutions are as follows:
  • embodiments of the present application provide a message processing method, which is executed by a message sending device.
  • the method includes:
  • the message type indicated by the message type indication information includes unicast session message, multicast session message or message count synchronization protocol MCSP session message;
  • the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists
  • the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first Identification information of the receiving node of the message.
  • embodiments of the present application provide a message processing method, which is executed by a message receiving device.
  • the method includes:
  • the parameter value of the first parameter perform the step of obtaining the field value of the first field in the first message
  • the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is The parameter value is used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification of the field value of the first field.
  • Type the identification type includes identification information of the receiving node group of the first message, or identification information of the receiving node of the first message.
  • an embodiment of the present application provides a message processing device, which includes:
  • An acquisition module configured to acquire message type indication information; the message types indicated by the message type indication information include unicast session messages, multicast session messages or message count synchronization protocol MCSP session messages;
  • a generating module configured to set the parameter value of the first parameter in the first message according to the message type indication information, so as to generate the first message corresponding to the message type indication information;
  • the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists
  • the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first Identification information of the receiving node of the message.
  • an embodiment of the present application provides a message processing device, which includes:
  • a receiving module used to receive the first message
  • a parsing module used to parse the first parameter in the first message
  • An obtaining module configured to perform the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter
  • the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is The parameter value is used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification of the field value of the first field.
  • Type the identification type includes identification information of the receiving node group of the first message, or identification information of the receiving node of the first message.
  • embodiments of the present application provide a computer device, the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;
  • a computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the above message processing method.
  • embodiments of the present application provide a computer device, which includes a processor, a memory, and a transceiver.
  • the memory stores a computer program, and the computer program is configured to be executed by the processor, so as to Implement the above message processing method.
  • embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above message processing method.
  • the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above message processing method.
  • the present application provides a computer program product including computer instructions stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above message processing method.
  • the present application provides a computer program, which is executed by a processor of a computer device to implement the above message processing method.
  • the message sending device sets different first parameter values for the unicast session message, multicast session message and MCSP session message.
  • the parameter value of the first parameter can be used to indicate the first message. Whether the first field exists in , and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message , or the identification information of the receiving node of the first message; the above solution allows the device that receives the first message to quickly determine the destination device of the first message based on the first parameter and the first field in the first message, thereby improving Transmission efficiency of MCSP session messages.
  • Figure 1 is a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of the message structure in the Internet of Things provided by an embodiment of the present application.
  • Figure 3 is a schematic structural diagram of a message load involved in the embodiment shown in Figure 2;
  • Figure 4 is a flow chart of a message processing method provided by an embodiment of the present application.
  • Figure 5 is a flow chart of a message processing method provided by an embodiment of the present application.
  • Figure 6 is a flow chart of a message processing method provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of message generation involved in the embodiment shown in Figure 6;
  • FIG 8 is a schematic diagram of another message generation involved in the embodiment shown in Figure 6;
  • FIG. 9 is a schematic diagram of yet another message generation involved in the embodiment shown in Figure 6;
  • Figure 10 is a block diagram of a message processing device provided by an embodiment of the present application.
  • Figure 11 is a block diagram of a message processing device provided by an embodiment of the present application.
  • Figure 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the network architecture of the Internet of Things may include: an Internet of Things device 110 (shown as an Internet of Things device 110a, an Internet of Things device 110b, an Internet of Things device 110c, and an Internet of Things device 110d in Figure 1) and a configuration device 120; optionally, the The network architecture may also include bridging devices 130;
  • the Internet of Things device 110 may refer to a device used to provide client functions or server functions corresponding to the Internet of Things protocol in the Internet of Things.
  • the IoT device 110 may be a smart home device, such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, etc.
  • a smart home device such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, etc.
  • the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, etc.
  • the Internet of Things device 110 may be a commercial service device, such as an unmanned vending machine or the like.
  • the IoT device 110 may be a sensing device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
  • the configuration device 120 is a user-side terminal device.
  • the configuration device 120 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a smart speaker, a smart switch, a gateway, etc.; or the configuration device 120 can also be a personal computer, such as a desktop. Computers, laptops, personal workstations and more.
  • the configuration device 120 refers to a client entity (which may be a virtual entity) running on a terminal device.
  • the configuration device 120 may run in a terminal device and is used to configure the Internet of Things device.
  • Application Application, APP
  • the bridge device 130 is used to implement interaction between two devices supporting different Internet of Things protocols.
  • the bridge device 130 provides information conversion and transfer services between IoT devices 110 that support different IoT protocols, or between IoT devices 110 that support different IoT protocols and the configuration device 120 .
  • the bridging device 130 may be a device dedicated for bridging, or the bridging device 130 may also be an intelligent device with a bridging function, such as a gateway or a router.
  • the above-mentioned Internet of Things device 110, configuration device 120, and bridge device 130 may be electronic devices that meet the same or different Internet of Things protocols.
  • they may be electronic devices that meet the requirements of the Connectivity Standards Alliance (CSA). Matter protocol for electronic devices.
  • CSA Connectivity Standards Alliance
  • a secure connection can be established between the IoT device 110a and the IoT device 110c, for example, a secure connection is established based on the Matter specification.
  • the IoT device 110b and the IoT device 110d support different protocol specifications, for example, the IoT device 110b is a Zigbee device and the IoT device 110d is a Matter device, the IoT device 110b and the IoT device 110d can connected via a bridge device 130.
  • a Matter protocol message in the Internet of Things can include a message header (Message Header), a message payload (Message Payload), and a message footer (Message Footer).
  • the message header includes the message length (Message Length) field, the message label (Message Flags) field, the session ID (session ID) field, the security label (Security Flags) field, and the message counter (Message Counter) field; the message header can also contain Source Node ID field, Destination Node ID field and Message extensions field.
  • the message payload may contain encrypted message payload content.
  • the message tail can contain a Message Integrity Check field.
  • FIG. 3 shows a schematic structural diagram of a message payload related to an embodiment of the present application.
  • the message payload in the Matter protocol message can include the protocol header (Protocol Header) and the application payload (Application Payload).
  • the protocol header can include the Exchange Flags field, the Protocol Opcode field, the Exchange ID field, the Protocol ID field, the Protocol Vendor ID field, Acknowledged Message Counter field, Secured Extensions field.
  • Protocol ID is used to specify the protocol to which the current message belongs.
  • the current protocol is shown in Table 1 below.
  • Ranges type 0x0000 PROTOCOL_ID_SECURE_CHANNEL 0x0001 PROTOCOL_ID_INTERACTION_MODEL 0x0002 PROTOCOL_ID_BDX 0x0003 PROTOCOL_ID_DIRECTED_COMMISSIONING 0x0004-0xFFFF reserved
  • 0X0000 represents the secure channel protocol
  • 0X0001 represents the interactive model protocol
  • 0X0002 represents the BDX (Bulk Data Exchange, block data exchange) protocol
  • 0X0003 represents the protocol based on user configuration.
  • MCSP Message Counter Synchronization Protocol
  • device A receives a broadcast message and cannot confirm whether the broadcast message is a new message, it can initiate a confirmation to device B that sent the broadcast message (that is, to device B).
  • B sends an MCSP session message) to confirm the latest Message Counter of device B.
  • device B returns a confirmation message to device A.
  • the confirmation message contains device B's latest Message Counter.
  • each broadcast/multicast session message will carry a Message Counter.
  • a message sending device for broadcast/multicast session messages needs to ensure that the Message Counter of each broadcast/multicast session message sent is incremented (+1).
  • the message receiving device of the broadcast/multicast session message can confirm whether the broadcast/multicast session message is a "replay" message based on the obtained Message Counter.
  • the message sending device sets the value of the Destination Node ID to the node of the receiving node. ID. This causes the message receiving device to receive a message with Session Type 1 and parse the value of the Destination Node ID field from the message. It cannot directly determine whether the value in the field is the group ID corresponding to the multicast session message or the group ID corresponding to the multicast session message.
  • the ID of the receiving node corresponding to the MCSP session message requires additional determination of whether the message is a multicast session message or an MCSP session message, and then the meaning of the value in the Destination Node ID field can be determined, making it difficult for the message receiving device to quickly determine the destination device of the message. , thus affecting the transmission efficiency of MCSP session messages.
  • Figure 4 shows a flow chart of a message processing method provided by an embodiment of the present application.
  • the method can be executed by a message sending device.
  • the message sending device can be an object in the network architecture shown in Figure 1.
  • One of the networking devices 110; the method may include the following steps:
  • Step 401 Obtain the message type indication information; the message type indicated by the message type indication information includes a unicast session message, a multicast session message, or a Message Count Synchronization Protocol MCSP session message.
  • the message sending device may obtain the message type indication information of the first message to be generated; the message type indication information may directly or indirectly indicate the message to which the current message belongs. type of information.
  • the above message types may include unicast session messages, multicast session messages or MCSP session messages. That is to say, the message type indication information can indicate which of the currently generated message is a unicast session message, a multicast session message, or an MCSP session message.
  • Step 402 Set the parameter value of the first parameter in the first message according to the message type indication information to generate the first message corresponding to the message type indication information; wherein the parameter value of the first parameter corresponding to different message types is different;
  • the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; identification type It includes the identification information of the receiving node group of the first message, or the identification information of the receiving node of the first message.
  • the above-mentioned first parameter may be DSIZ Flag; the above-mentioned first field may be a Destination Node ID field.
  • the field value of the above-mentioned Destination Node ID field may be the identification information of the receiving node of the first message.
  • the identification information of the receiving node of the first message may be received by the message sending device. Identification information of the sending node of the preceding broadcast message corresponding to the first message (that is, the receiving node of the current first message).
  • the field value of the above-mentioned Destination Node ID field may be the identification information of the node group to which the receiving node of the first message belongs.
  • the Destination Node ID field may not exist in the first message.
  • the message sending device when generating the first message in the Internet of Things, if the type of message to be generated is an MCSP session message, the message sending device can be configured for a unicast session message, a multicast session message, and an MCSP session message. According to different parameter values of the first parameter, the device that receives the first message can directly determine whether the first field exists according to the parameter value of the first parameter, and determine the meaning of subsequent field values in the first field. Whether to receive the identification information of the node or the identification information of the node group, so that it can be quickly determined that the destination device of the first message is a single device corresponding to the identification information of the receiving node without performing additional message type confirmation steps. Or a device group.
  • the message sending device sets different first parameter values for the unicast session message, the multicast session message and the MCSP session message.
  • the parameter value of a parameter can be used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type The type includes the identification information of the receiving node group of the first message, or the identification information of the receiving node of the first message; the above solution allows the device that receives the first message to based on the first parameter and the first field in the first message, The destination device of the first message is quickly determined, thereby improving the transmission efficiency of MCSP session messages.
  • Figure 5 shows a flow chart of a message processing method provided by an embodiment of the present application.
  • the method can be executed by a message receiving device.
  • the message receiving device can be an object in the network architecture shown in Figure 1.
  • One of the networking devices 110; the method may include the following steps:
  • Step 501 Receive the first message.
  • Step 502 Parse the first parameter in the first message.
  • Step 503 Execute the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter; the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message;
  • the message types indicated by the message type indication information include unicast session messages, multicast session messages or message count synchronization protocol MCSP session messages; different message types correspond to different parameter values of the first parameter;
  • the parameter value of the first parameter is used to indicate Whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field;
  • the identification type includes the identification type of the receiving node group of the first message Identification information, or identification information of the receiving node of the first message.
  • the message sending device sets different first parameter values for the unicast session message, the multicast session message and the MCSP session message.
  • the parameter value of a parameter can be used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type
  • the type includes the identification information of the receiving node group of the first message, or the identification information of the receiving node of the first message, so that the device that receives the first message can quickly determine based on the first parameter and the first field in the first message.
  • the destination device of the first message thereby improving the transmission efficiency of MCSP session messages.
  • Figure 6 shows a flow chart of a message processing method provided by an embodiment of the present application.
  • the method can be interactively executed by a message sending device and a message receiving device.
  • the message sending device and the message receiving device can be the ones shown in Figure 1.
  • Two devices in the Internet of Things device 110 in the network architecture shown; the method may include the following steps:
  • Step 601 In the process of generating the first message, the message sending device obtains the message type indication information.
  • the message type indicated by the message type indication information includes a unicast session message, a multicast session message or a Message Count Synchronization Protocol MCSP session message.
  • the above message type indication information may be session type identification information of the first message, such as Session Type ID.
  • the session type identification information of messages in the Internet of Things may include but is not limited to three types: unicast session (Unicast Session) identification (which can be represented by a value of 0), multicast session (Group) Session) identifier (can be represented by a value of 1) and MCSP session identifier (can be represented by a value of 2).
  • Unicast Session Unicast Session
  • Group multicast session
  • MCSP session identifier can be represented by a value of 2
  • the value of the above session type identifier is only exemplified by the above 0, 1 or 2.
  • the value of the above various session type identifiers can also be set to other types of values, as long as it can distinguish between unicast session, multicast session and MCSP sessions are sufficient, or as long as unicast sessions and multicast sessions can be distinguished.
  • the message type indication information of the first message may also be session context information (such as Session Context) of the first message.
  • the session context information in the Internet of Things may include the following: secure unicast session context (secured unicast session context, corresponding to unicast session), multicast session context (groupcast session context, corresponding to group broadcast session), MCSP session context (MCSP session context, corresponding to MCSP session), and unsecured session context (unsecured session context).
  • secure unicast session context secure unicast session context, corresponding to unicast session
  • multicast session context groupcast session context, corresponding to group broadcast session
  • MCSP session context MCSP session context, corresponding to MCSP session
  • unsecured session context unsecured session context
  • session type identification information and session context information in addition to the session type identification information and session context information, in the embodiment of the present application, other information can also be used to directly or indirectly indicate the message type of the current message, such as setting an additional parameter to indicate that the current message belongs to Which one among unicast session message, multicast session message and MCSP session message.
  • the embodiment of the present application does not limit the form of the message type indication information.
  • the message sending device can also obtain the encryption key, Session ID, destination device ID and other information, and obtain the Message Counter.
  • Step 602 The message sending device sets the parameter value of the first parameter in the first message according to the message type indication information to generate a first message corresponding to the message type indication information.
  • the message sending device sets the first parameter in the first message to the first parameter value, and sets the first parameter in the first message.
  • the first field of is the first field value to generate the first message.
  • the first parameter value is used to indicate that the first field exists in the first message, and the field value of the first field is the identification information of the receiving node of the first message.
  • the message sending device after the message sending device receives a message (such as message A), if the message A sending device cannot determine whether the message A is a new message, the message sending device needs to send a message to the sender of the message A.
  • An MCSP session message to confirm the latest Message Counter of the sender of message A.
  • the message sending device can generate message type indication information of the message to be sent, and the message type indicated by the message type is an MCSP session message.
  • the message sending device when the message sending device needs to send a unicast session message to a specified device, the message sending device can generate message type indication information of the message to be sent, and the message type indicated by the message type is a unicast session message.
  • the message sending device when the message sending device needs to send a multicast session message to a specified device group, the message sending device can generate message type indication information of the message to be sent, and the message type indicated by the message type is a multicast session message.
  • the message sending device can generate a message based on the information obtained in the above step 602, set the Session ID in the format of the message, and continue to set other parameters in the message (including the first parameter, the first field, etc.), Then set the Message Counter and encrypt the Application Payload until the complete first message is generated.
  • the message sending device can determine whether the current first message is an MCSP session message according to the message type indication information, and if it is determined to be an MCSP session message, set the first parameter in the first message to the first message. A parameter value, and setting the first field in the first message as the first field value to generate the first message.
  • the message sending device may directly determine the message type of the first message through the session type identification information.
  • the message sending device sets the first parameter in the first message to the first parameter when the session type identification information is the MCSP session identification information. parameter value, and set the first field in the first message as the first field value to generate the first message.
  • the message sending device in the case where the session type identification information includes a unicast session identification, a multicast session identification and an MCSP session identification, if the message sending device obtains that the session type identification information of the first message is an MCSP session identification (such as The value of Session Type ID is 2), then the message sending device can determine that the current message is an MCSP session message. At this time, the message sending device can set the first parameter in the first message to the first parameter value, and set the first message The first field in is the first field value.
  • an MCSP session identification such as The value of Session Type ID is 2
  • the session type identification information includes a unicast session identification, a multicast session identification and an MCSP session identification
  • the message sending device can determine that the current message is a unicast session message.
  • the message sending device can set the first parameter in the first message to the third parameter value, and there is no Set the first field.
  • the third parameter value is used to indicate that the first message does not contain the first field.
  • the message sending device obtains that the session type identification information of the first message is a multicast session identification (such as Session Type The value of the ID is 1), then the message sending device can determine that the current message is a multicast session message. At this time, the message sending device can set the first parameter in the first message to the fourth parameter value, and set the value in the first message.
  • the first field of is the third field value, wherein the above-mentioned fourth parameter value is used to indicate that the first message contains the first field, and the field value of the first field is the group ID (Group ID).
  • the message sending device may determine the message type of the first message in combination with the session type identification information and other information.
  • the message sending device obtains the message type identification information of the first message when the session type identification information is a multicast session identification; message The type identification information is used to assist in identifying the message type of the first message; when the message type identification information satisfies the first condition, the first parameter in the first message is set to the first parameter value, and the first parameter in the first message is set.
  • One field is a first field value to generate a first message.
  • the session type identification information includes a unicast session identification and a multicast session identification
  • the message sending device obtains that the session type identification information of the first message is a multicast session identification (such as Session Type ID The value is 1)
  • the first message can be a multicast session message or an MCSP session message.
  • the message sending device can further obtain the message type identification information of the first message to determine that the first message is a multicast Which of the session messages and MCSP session messages.
  • the message sending device may determine whether the message type identification information satisfies the first condition. If so, determine that the first message is an MCSP session message.
  • the first parameter in the first message may be set to the first parameter value, and the first parameter may be set to the first parameter value.
  • the first field in the message is the first field value; if the message sending device determines that the message type identification information does not meet the first condition, it determines that the first message is a multicast session message. At this time, the message sending device can set the first message
  • the first parameter in is a fourth parameter value, and the first field in the first message is set to a third field value, where the above fourth parameter value is used to indicate that the first message contains the first field, and the first field The field value is the group ID.
  • the session type identification information includes a unicast session identification and a multicast session identification
  • the message sending device obtains the session type identification information of the first message as a unicast session identification (for example, the value of Session Type ID is 0)
  • the first message may be a unicast session message.
  • the message sending device may set the first parameter in the first message to the third parameter value, and the first field shall not be set in the first message.
  • the third parameter value is used to indicate that the first message does not contain the first field.
  • the message type indication information includes at least one of the following information:
  • Protocol identification information such as Protocol ID
  • operation code such as Opcode
  • the above Opcode can be the message type information of the current message, which can be used to indicate the corresponding operation of the current message in the protocol corresponding to the Protocol ID (that is, the role of the message).
  • the first condition includes: the protocol identification information indicates that the protocol corresponding to the first message is the secure channel protocol.
  • the first condition includes: the operation code indicates that the first message is an MCSP session message.
  • the message type indication information includes Opcode, and Opcode indicates an MCSP session message, it can be considered that the message type indication information satisfies the first condition.
  • the message sending device may directly determine the message type of the first message in combination with the session context information.
  • the message type indication information includes session context information
  • the session context information is MCSP session context
  • set The first field in the first message is a first field value to generate the first message.
  • the session context information at least includes a secure unicast session context, a multicast session context, and an MCSP session context
  • the message sending device obtains that the session context information of the first message is the MCSP session context
  • the message sending device can determine that the current message is an MCSP session message.
  • the message sending device can set the first parameter in the first message as the first parameter value, and set the first field in the first message as the first field. value.
  • the session context information at least includes a secure unicast session context, a multicast session context, and an MCSP session context
  • the message sending device can determine that the current message is a unicast session message.
  • the message sending device can set the first parameter in the first message to the third parameter value, and the first field is not set in the first message.
  • the third parameter value is used to indicate that the first message does not contain the first field.
  • the message sending device may determine that the current message is a multicast session message. At this time, the message sending device may set the first parameter in the first message to the fourth parameter value, and set the first field in the first message to the third field value. , wherein the above-mentioned fourth parameter value is used to indicate that the first message contains the first field, and the field value of the first field is the group identifier.
  • the message sending device may also set the session type identification information of the first message to a multicast session identification.
  • the message sending device when the message sending device determines that the current message is an MCSP session message based on the session context information (MCSP session context), it can also set the session type identification information of the current message as a multicast session identification, For example, set the Session Type ID value of the first message to 1.
  • the message sending device can also set the session type identification information of the first message to a unicast session identification, for example, change the value of the Session Type ID of the first message to is 0.
  • the message sending device may also set the session type identification information of the first message to the multicast session identification, for example, set the Session Type ID value of the first message to 1.
  • the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message; for example, the first parameter and the first field can be set in the first in the message header.
  • the message sending device when the parameter value of the first parameter is the third parameter value, the message sending device also obtains the third field value of the first field in the first message as the first message. Identification information of the node group to which the message recipient belongs; wherein the third parameter value and the third field value are set by the message sending device when the message type of the first message is a multicast session message.
  • the first parameter is the DSIZ label in the first message;
  • the first field is the destination node identification field in the first message;
  • the value of the DSIZ label when the value of the DSIZ label is 0, it means that there is no destination node identification field in the message; when the value of the DSIZ label is 1, it means that there is a destination node identification field in the message, and the destination The field value of the node identification field is the node identification of the recipient of the first message; when the value of the DSIZ tag is 2, it means that there is a destination node identification field in the message, and the field value of the destination node identification field is the group identification (Group ID) .
  • setting the first parameter and the first field mentioned above may refer to setting the DSIZ tag and the Destination Node ID field in the first message.
  • the message sending device can set the DSIZ tag to 0, indicating that the subsequent content of the first message does not contain the Destination Node ID field.
  • the message sending device can set the DSIZ tag to 1, indicating that the subsequent content of the first message contains the Destination Node ID field, and the content contained in the Destination Node ID field is the group identifier (i.e., the receiving The group ID of the device group for this multicast session message).
  • the message sending device can set the DSIZ tag to 2, indicating that the subsequent content of the first message contains the Destination Node ID field, and the content contained in the Destination Node ID field is the recipient of the first message.
  • the identifier is the identifier of the sender of the broadcast/multicast session message that the message receiving device has previously received and is not sure whether it is a new message.
  • the message sending device when the message type indicated by the message type indication information is an MCSP session message, the message sending device also sets the second parameter in the first message to the second parameter value, and sets the first message The second field in is the second field value;
  • the second parameter value is used to indicate that the second field exists in the first message, and the field value of the second field is the identification information of the sending node of the first message.
  • the message sending device when the message type indicated by the message type indication information is a multicast session message, the message sending device can also set the second parameter in the first message to the second parameter value, and set the first message The second field in is the second field value.
  • the message sending device may set the second parameter in the first message to the fifth parameter value, and in the first message The second field is not set.
  • the fifth parameter value indicates that the first message does not contain the second field.
  • the second parameter is the S tag in the first message; the second field is the source node identification field in the first message.
  • the value of the S tag when the value of the S tag is 0, it means that there is no source node identification field in the message; when the value of the S label is 1, it means that there is a source node identification field in the message, and the source The field value of the node identification field is the node identification of the sender of the first message.
  • setting the second parameter and the second field mentioned above may refer to setting the S tag and the Source Node ID field in the message header of the first message.
  • the message sending device can set the S tag to 0, indicating that the subsequent content of the first message does not contain the Source Node ID field.
  • the message sending device can set the S tag to 1, indicating that the subsequent content of the first message contains the Source Node ID field, and the content contained in the Source Node ID field is the current
  • the identifier of the sender of the message such as the node identifier of the message sending device.
  • Step 603 The message sending device sends the first message; correspondingly, the message receiving device receives the first message.
  • the first message can be sent in the Internet of Things.
  • the message receiving device may receive and parse the first message to determine whether the first message is a message sent to the message receiving device.
  • Step 604 The message receiving device parses the first parameter in the first message.
  • the message receiving device may first parse the first parameter in the first message, for example, parse the DSIZ tag in the message header of the first message.
  • Step 605 According to the parameter value of the first parameter, perform the step of obtaining the field value of the first field in the first message.
  • the message receiving device parses out that the value of the DSIZ tag is 1, it is determined that the first message contains the identification information of the receiving node of the first message. At this time, the first field in the first message can be read to obtain the The identification information of the receiving node of the first message (such as the Node ID of the receiving node).
  • the message receiving device can compare the identification information of the receiving node of the first message with its own node identification information (such as Node ID). If the two are consistent, it is determined that the first message is sent to the message receiving device. Receive the message from the device. At this time, you can continue to parse the first message.
  • node identification information such as Node ID
  • the message receiving device can determine that the identification information of the receiving node of the first message is inconsistent with its own node identification information, the first message can be discarded.
  • the parameter value of the first parameter is the third parameter value
  • the message receiving device parses out that the value of the DSIZ tag is 2, it determines that the first message contains the identification information of the node group to which the receiving node of the first message belongs. At this time, the first message in the first message can be read. field to obtain the identification information (such as Group ID) of the node group to which the receiving node of the first message belongs.
  • the identification information such as Group ID
  • the message receiving device processes the first message according to the identification information of the node group to which the receiving node of the first message belongs.
  • the message receiving device may compare the identification information of the node group to which the receiving node of the first message belongs with the identification information (such as Group ID) of the node group to which it belongs. If the two are consistent, determine that the node group belongs to the message receiving device.
  • the first message is a message sent to the message receiving device. At this time, the first message can continue to be parsed.
  • the message receiving device can determine that the identification information of the node group to which the receiving node of the first message belongs is inconsistent with the node identification information of the device group to which it belongs, the first message can be discarded.
  • the message receiving device parses out that the value of the DSIZ tag is 0, it determines that the first message does not contain the first field, and in this case, the step of obtaining the first field can be skipped.
  • Figure 7 shows a schematic diagram of message generation involved in the embodiment of the present application.
  • the message initiator ie, the above-mentioned message sending device
  • the process of generating the message can be as follows:
  • Session Type 0 (Unicast Session)
  • S Flag and DSIZ Flag are set to 0, which means that the Source Node ID and Destination Node ID fields will not appear later in the message.
  • the Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Group ID.
  • Session Type is 2 (MCSP)
  • the Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Node ID of the message receiver.
  • FIG. 8 shows a schematic diagram of another message generation involved in the embodiment of the present application.
  • the relevant parameters in the message can be set according to the session context of the message.
  • the value of session context can include secured unicast session context, groupcast session context, MCSP session context and unsecured session context.
  • the process of generating the message can be as follows:
  • S81 obtain the encryption key, Session ID, destination device ID, and Session Type identification.
  • session type 0, S Flag and DSIZ Flag are set to 0, indicating that the Source Node ID and Destination Node ID fields will not appear later in the message.
  • FIG. 9 shows another schematic diagram of message generation related to the embodiment of the present application.
  • the message initiator ie, the above-mentioned message sending device
  • the process of generating the message can be as follows:
  • Session Type is 0 (indicating Unicast Session)
  • S Flag and DSIZ Flag are set to 0, indicating that the Source Node ID and Destination Node ID fields will not appear later in the message.
  • Session Type is 1 (indicating Group Session)
  • determine whether the value of protocol ID is 0x0000 (indicating Secure Channel Protocol), and whether the Opcode is an MCSP session message. If not, enter S96. If so, Enter S97.
  • the Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Group ID.
  • the Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Node ID of the device that sends the broadcast message in the preamble.
  • the solution shown in the embodiment of this application uses a universal solution that is unified with unicast session messages and multicast session messages to process MCSP session messages.
  • the first parameter of the first message can be set to the first parameter value
  • the identification information of the receiving node of the first message is set to the first field value in the first field, so that the device that receives the first message can quickly determine the first parameter and the first field in the first message.
  • the destination device of a message thereby improving the transmission efficiency of MCSP session messages.
  • FIG. 10 shows a block diagram of a message processing device provided by an embodiment of the present application.
  • the message processing device 1000 has the function of being executed by the message sending device in implementing the method shown in FIG. 4 or FIG. 6 .
  • the device may include:
  • the acquisition module 1001 is used to obtain the message type indication information of the first message;
  • the message type indicated by the message type indication information includes a unicast session message, a multicast session message or a message count synchronization protocol MCSP session message;
  • Generating module 1002 configured to set the parameter value of the first parameter in the first message according to the message type indication information, so as to generate the first message corresponding to the message type indication information;
  • the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists
  • the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first Identification information of the receiving node of the message.
  • the generating module is configured to set the first parameter in the first message when the message type indicated by the message type indication information is a Message Count Synchronization Protocol MCSP session message. is the first parameter value, and sets the first field in the first message to the first field value to generate the first message;
  • the first parameter value is used to indicate the presence of the first field in the first message
  • the field value of the first field is the identification information of the receiving node of the first message.
  • the message type indication information includes session type identification information.
  • the generating module 1002 is configured to set the first parameter in the first message to a first parameter value when the session type identification information is an MCSP session identification, and Set the first field in the first message to a first field value to generate the first message.
  • the generation module 1002 is used to:
  • the session type identification information is a multicast session identification
  • obtain the message type identification information of the first message the message type identification information is used to assist in identifying the message type of the first message;
  • the message type indication information includes at least one of the following information:
  • Protocol identification information and, opcodes.
  • the first condition when the message type indication information includes the protocol identification information, the first condition includes:
  • the protocol identification information indicates that the protocol corresponding to the first message is a secure channel protocol.
  • the first condition when the message type indication information includes the operation code, the first condition includes:
  • the operation code indicates that the first message is an MCSP session message.
  • the message type indication information includes session context information.
  • the generating module 1002 is configured to set the first parameter in the first message to a first parameter value when the session context information is an MCSP session context, and set The first field in the first message is a first field value to generate the first message.
  • the device further includes:
  • a setting module configured to set the session type identification information of the first message to a multicast session identification when the session context information is an MCSP session context.
  • the first parameter is the DSIZ label in the first message;
  • the first field is the destination node identification field in the first message;
  • the first parameter value is 1, and the first field value is the node ID of the message recipient of the first message.
  • the generating module 1002 is further configured to set the second parameter in the first message to the first message when the message type indicated by the message type indication information is an MCSP session message. two parameter values, and set the second field in the first message to the second field value;
  • the second parameter value is used to indicate the presence of the second field in the first message
  • the field value of the second field is the identification information of the sending node of the first message
  • the second parameter is the S tag in the first message;
  • the second field is the source node identification field in the first message;
  • the second parameter value is 1, and the second field value is the node identifier of the message sending device.
  • the generating module 1002 is further configured to set the first parameter in the first message to be when the message type indicated by the message type indication information is a multicast session message.
  • the third parameter value is used to indicate the presence of the first field in the first message
  • the field value of the first field is the identification information of the node group to which the message recipient of the first message belongs.
  • the first parameter is the DSIZ label in the first message;
  • the first field is the destination node identification field in the first message;
  • the third parameter value is 2, and the third field value is the group identifier of the message recipient of the first message.
  • FIG. 11 shows a block diagram of a message processing device provided by an embodiment of the present application.
  • the message processing device 1100 has the function of being executed by the message receiving device in implementing the method shown in FIG. 5 or FIG. 6 .
  • the device may include:
  • Parsing module 1102 used to parse the first parameter in the first message
  • the obtaining module 1103 is configured to perform the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter;
  • the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message;
  • the message type indicated by the message type indication information includes unicast session message, multicast session message or MCSP Conversation message; different message types correspond to different parameter values of the first parameter;
  • the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and, when the first field exists, field, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field;
  • the identification type includes the identification information of the receiving node group of the first message, or the third Identification information of the receiving node of a message.
  • the obtaining module 1103 is configured to obtain the first field of the first field in the first message when the parameter value of the first parameter is the first parameter value.
  • the value is obtained as the identification information of the receiving node of the first message;
  • the first parameter value and the first field value are set by the message sending device when the message type of the first message is an MCSP session message.
  • the first parameter is the DSIZ label in the first message;
  • the first field is the destination node identification field in the first message;
  • the first parameter value is 1, and the first field value is the node ID of the message recipient of the first message.
  • the obtaining module 1003 is further configured to obtain the third parameter of the first field in the first message when the parameter value of the first parameter is a third parameter value.
  • the field value is obtained as the identification information of the node group to which the message recipient of the first message belongs;
  • the third parameter value and the third field value are set by the message sending device when the message type of the first message is a multicast session message.
  • the first parameter is the DSIZ label in the first message;
  • the first field is the destination node identification field in the first message;
  • the third parameter value is 2, and the third field value is the group identifier of the message recipient of the first message.
  • the device provided in the above embodiment implements its functions, only the division of the above functional modules is used as an example. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the computer device 1200 may include a processor 1201, a receiver 1202, a transmitter 1203, a memory 1204, and a bus 1205.
  • the processor 1201 includes one or more processing cores.
  • the processor 1201 executes various functional applications and information processing by running software programs and modules.
  • the receiver 1202 and the transmitter 1203 can be implemented as a communication component, and the communication component can be a communication chip.
  • This communication chip can also be called a transceiver.
  • Memory 1204 is connected to processor 1201 through bus 1205.
  • the memory 1204 can be used to store a computer program, and the processor 1201 is used to execute the computer program to implement various steps in the above method embodiments.
  • memory 1204 may be implemented by any type of volatile or non-volatile storage device, or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable Read-only memory, erasable programmable read-only memory, static ready-access memory, read-only memory, magnetic memory, flash memory, programmable read-only memory.
  • the receiving processor is configured to obtain the message type indication information of the first message; the message type indicated by the message type indication information includes unicast session message, multicast session message or message count synchronization protocol MCSP session message; set the parameter value of the first parameter in the first message according to the message type indication information to generate the third parameter corresponding to the message type indication information.
  • the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists, When it is the first field, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the Identification information of the receiving node of the first message.
  • the process executed by the processor 1201 in the computer device 1200 may refer to the various steps executed by the message sending device in the method shown in any one of the above-mentioned FIG. 4 or FIG. 6 .
  • the transceiver when the computer device 1200 is implemented as a message receiving device, the transceiver is used to receive the first message.
  • the processor is configured to parse the first parameter in the first message; and perform the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter; wherein,
  • the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the message type indicated by the message type indication information includes unicast session message, multicast session message or MCSP session message.
  • Different message types correspond to different parameter values of the first parameter; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists , the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first message The identification information of the receiving node.
  • the process performed by the processor 1201 and/or the transceiver in the computer device 1200 may refer to the various steps performed by the message receiving device in the method shown in either FIG. 5 or FIG. 6 .
  • Embodiments of the present application also provide a computer-readable storage medium.
  • a computer program is stored in the storage medium.
  • the computer program is loaded and executed by a processor to implement the method shown in Figure 4, Figure 5 or Figure 6. , all or part of the steps performed by the message sending device or the message receiving device.
  • This application also provides a chip, which is used to run in a computer device, so that the computer device performs all the steps performed by the message sending device or the message receiving device in the method shown in Figure 4, Figure 5 or Figure 6. Or some steps.
  • the application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method shown in FIG. 4, FIG. 5 or FIG. 6, by the message sending device or the message receiving device. All or part of the steps performed by the device.
  • This application also provides a computer program, which is executed by the processor of the computer device to implement all or all of the steps executed by the message sending device or the message receiving device in the method shown in FIG. 4, FIG. 5 or FIG. 6. Some steps.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • Storage media can be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

Message processing methods and apparatuses, and a device, a storage medium and a program product, which belong to the technical field of Internet of Things. A message processing method comprises: acquiring message type indication information of a first message (401), wherein a message type indicated by the message type indication information comprises a unicast session message, a multicast session message or a message counter synchronization protocol (MCSP) session message; and setting a parameter value of a first parameter in the first message according to the message type indication information, so as to generate the first message corresponding to the message type indication information (402), wherein parameter values of the first parameter that correspond to different message types are different. The solution improves the transmission efficiency of MCSP session messages.

Description

消息处理方法、装置、设备、存储介质及程序产品Message processing methods, devices, equipment, storage media and program products 技术领域Technical field
本申请涉及物联网技术领域,特别涉及一种消息处理方法、装置、设备、存储介质及程序产品。This application relates to the technical field of the Internet of Things, and in particular to a message processing method, device, equipment, storage medium and program product.
背景技术Background technique
随着物联网(Internet of Things,IoT)技术的不断发展,越来越多的物联网设备在智能家居、工业生产等诸多领域给用户的生产生活带来了极大的便利性。With the continuous development of Internet of Things (IoT) technology, more and more IoT devices have brought great convenience to users' production and life in many fields such as smart homes and industrial production.
在相关技术中,一个物联网设备可以通过单播方式向某个特定的设备发送消息,或者,该物联网设备也可以通过组播方式向某一组设备发送消息。In related technologies, an Internet of Things device can send a message to a specific device through unicast, or the Internet of Things device can also send a message to a certain group of devices through multicast.
发明内容Contents of the invention
本申请实施例提供了一种消息处理方法、装置、设备、存储介质及程序产品。所述技术方案如下:Embodiments of the present application provide a message processing method, device, equipment, storage medium and program product. The technical solutions are as follows:
一方面,本申请实施例提供了一种消息处理方法,所述方法由消息发送设备执行,所述方法包括:On the one hand, embodiments of the present application provide a message processing method, which is executed by a message sending device. The method includes:
获取消息类型指示信息;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息;Obtain message type indication information; the message type indicated by the message type indication information includes unicast session message, multicast session message or message count synchronization protocol MCSP session message;
根据所述消息类型指示信息设置第一消息中的第一参数的参数值,以生成与所述消息类型指示信息对应的所述第一消息;Set the parameter value of the first parameter in the first message according to the message type indication information to generate the first message corresponding to the message type indication information;
其中,不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists When, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first Identification information of the receiving node of the message.
一方面,本申请实施例提供了一种消息处理方法,所述方法由消息接收设备执行,所述方法包括:On the one hand, embodiments of the present application provide a message processing method, which is executed by a message receiving device. The method includes:
接收第一消息;receive the first message;
解析所述第一消息中的第一参数;Parse the first parameter in the first message;
根据所述第一参数的参数值,执行对所述第一消息中的第一字段的字段值的获取步骤;According to the parameter value of the first parameter, perform the step of obtaining the field value of the first field in the first message;
其中,第一参数的参数值是所述消息发送设备根据所述第一消息的消息类型指示信息设置的;不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is The parameter value is used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification of the field value of the first field. Type; the identification type includes identification information of the receiving node group of the first message, or identification information of the receiving node of the first message.
另一方面,本申请实施例提供了一种消息处理装置,所述装置包括:On the other hand, an embodiment of the present application provides a message processing device, which includes:
获取模块,用于获取消息类型指示信息;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息;An acquisition module, configured to acquire message type indication information; the message types indicated by the message type indication information include unicast session messages, multicast session messages or message count synchronization protocol MCSP session messages;
生成模块,用于根据所述消息类型指示信息设置第一消息中的第一参数的参数值,以生成与所述消息类型指示信息对应的所述第一消息;A generating module configured to set the parameter value of the first parameter in the first message according to the message type indication information, so as to generate the first message corresponding to the message type indication information;
其中,不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists When, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first Identification information of the receiving node of the message.
另一方面,本申请实施例提供了一种消息处理装置,所述装置包括:On the other hand, an embodiment of the present application provides a message processing device, which includes:
接收模块,用于接收第一消息;A receiving module, used to receive the first message;
解析模块,用于解析所述第一消息中的第一参数;A parsing module, used to parse the first parameter in the first message;
获取模块,用于根据所述第一参数的参数值,执行对所述第一消息中的第一字段的字段值的获取步骤;An obtaining module, configured to perform the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter;
其中,第一参数的参数值是所述消息发送设备根据所述第一消息的消息类型指示信息设置的;不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is The parameter value is used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification of the field value of the first field. Type; the identification type includes identification information of the receiving node group of the first message, or identification information of the receiving node of the first message.
另一方面,本申请实施例提供了一种计算机设备,所述计算机设备实现为信息上报设备,所述计算机设备包括处理器、存储器和收发器;On the other hand, embodiments of the present application provide a computer device, the computer device is implemented as an information reporting device, and the computer device includes a processor, a memory, and a transceiver;
存储器中存储有计算机程序,处理器执行所述计算机程序,以使得计算机设备实现上述消息处理方法。A computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the above message processing method.
再一方面,本申请实施例提供了一种计算机设备,所述计算机设备包括处理器、存储器和收发器,所述存储器存储有计算机程序,所述计算机程序用于被所述处理器执行,以实现上述消息处理方法。In yet another aspect, embodiments of the present application provide a computer device, which includes a processor, a memory, and a transceiver. The memory stores a computer program, and the computer program is configured to be executed by the processor, so as to Implement the above message processing method.
又一方面,本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述消息处理方法。On another aspect, embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, and the computer program is loaded and executed by a processor to implement the above message processing method.
又一方面,本申请还提供了一种芯片,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行上述消息处理方法。In another aspect, the present application also provides a chip, which is used to run in a computer device, so that the computer device executes the above message processing method.
又一方面,本申请提供了一种计算机程序产品,该计算机程序产品包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述消息处理方法。In yet another aspect, the present application provides a computer program product including computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above message processing method.
又一方面,本申请提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述消息处理方法。In another aspect, the present application provides a computer program, which is executed by a processor of a computer device to implement the above message processing method.
本申请实施例提供的技术方案可以带来如下有益效果:The technical solutions provided by the embodiments of this application can bring the following beneficial effects:
消息发送设备在生成第一消息的过程中,为单播会话消息、组播会话消息以及MCSP会话消息设置不同的第一参数的参数值,该第一参数的参数值可以用于指示第一消息中是否存在第一字段,并且,当存在第一字段时,第一参数的参数值还用于指示第一字段的字段值的标识类型;该标识类型包括第一消息的接收节点组的标识信息,或者,第一消息的接收节点的标识信息;上述方案使得接收到第一消息的设备可以根据第一消息中的第一参数和第一字段,快速确定该第一消息的目的设备,从而提高MCSP会话消息的传输效率。In the process of generating the first message, the message sending device sets different first parameter values for the unicast session message, multicast session message and MCSP session message. The parameter value of the first parameter can be used to indicate the first message. Whether the first field exists in , and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message , or the identification information of the receiving node of the first message; the above solution allows the device that receives the first message to quickly determine the destination device of the first message based on the first parameter and the first field in the first message, thereby improving Transmission efficiency of MCSP session messages.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without exerting creative efforts.
图1是本申请一个实施例提供的物联网的网络架构的示意图;Figure 1 is a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application;
图2是本申请一个实施例提供的物联网中的消息结构示意图;Figure 2 is a schematic diagram of the message structure in the Internet of Things provided by an embodiment of the present application;
图3是图2所示实施例涉及的一种消息载荷的结构示意图;Figure 3 is a schematic structural diagram of a message load involved in the embodiment shown in Figure 2;
图4是本申请一个实施例提供的消息处理方法的流程图;Figure 4 is a flow chart of a message processing method provided by an embodiment of the present application;
图5是本申请一个实施例提供的消息处理方法的流程图;Figure 5 is a flow chart of a message processing method provided by an embodiment of the present application;
图6是本申请一个实施例提供的消息处理方法的流程图;Figure 6 is a flow chart of a message processing method provided by an embodiment of the present application;
图7是图6所示实施例涉及的消息生成的示意图;Figure 7 is a schematic diagram of message generation involved in the embodiment shown in Figure 6;
图8是图6所示实施例涉及的另一种消息生成的示意图;Figure 8 is a schematic diagram of another message generation involved in the embodiment shown in Figure 6;
图9是图6所示实施例涉及的又一种消息生成的示意图;Figure 9 is a schematic diagram of yet another message generation involved in the embodiment shown in Figure 6;
图10是本申请一个实施例提供的消息处理装置的框图;Figure 10 is a block diagram of a message processing device provided by an embodiment of the present application;
图11是本申请一个实施例提供的消息处理装置的框图;Figure 11 is a block diagram of a message processing device provided by an embodiment of the present application;
图12是本申请一个实施例提供的计算机设备的结构示意图。Figure 12 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例描述的网络架构以及业务场景是为了更加清楚地说明本申请实施例的技术方案,并不构成对本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and business scenarios described in the embodiments of this application are to more clearly explain the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. Those of ordinary skill in the art will know that with the network architecture evolution and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
请参考图1,其示出了本申请一个实施例提供的物联网的网络架构的示意图。该物联网的网络架构可以包括:物联网设备110(图1中示出为物联网设备110a、物联网设备110b、物联网设备110c、物联网设备110d)和配置设备120;可选的,该网络架构还可以包括桥接设备130;Please refer to Figure 1, which shows a schematic diagram of the network architecture of the Internet of Things provided by an embodiment of the present application. The network architecture of the Internet of Things may include: an Internet of Things device 110 (shown as an Internet of Things device 110a, an Internet of Things device 110b, an Internet of Things device 110c, and an Internet of Things device 110d in Figure 1) and a configuration device 120; optionally, the The network architecture may also include bridging devices 130;
物联网设备110可以是指在物联网中,用于提供物联网协议对应的客户端功能或者服务端功能的设备。The Internet of Things device 110 may refer to a device used to provide client functions or server functions corresponding to the Internet of Things protocol in the Internet of Things.
比如,物联网设备110可以是智能家居设备,例如,智能开关、智能灯具、智能电视、智能空调、智能冰箱、智能微波炉、智能电饭煲、扫地机器人等等。For example, the IoT device 110 may be a smart home device, such as a smart switch, a smart lamp, a smart TV, a smart air conditioner, a smart refrigerator, a smart microwave oven, a smart rice cooker, a sweeping robot, etc.
或者,物联网设备110可以是工业生产设备,如车床、工业机器人、太阳能面板、风力发电机等等。Alternatively, the IoT device 110 may be an industrial production equipment, such as a lathe, an industrial robot, a solar panel, a wind turbine, etc.
或者,物联网设备110可以是商业服务设备,例如,无人售货机等等。Alternatively, the Internet of Things device 110 may be a commercial service device, such as an unmanned vending machine or the like.
或者,物联网设备110可以是传感设备,例如,监控摄像头、红外传感器、声音传感器、温度传感器等等。Alternatively, the IoT device 110 may be a sensing device, such as a surveillance camera, an infrared sensor, a sound sensor, a temperature sensor, etc.
在一种可能的实现方式中,配置设备120是用户侧的终端设备。比如,配置设备120可以是智能控制器、智能遥控器、智能手机、平板电脑、智能手表、智能电视、智能音箱、智能开关、网关等等;或者,配置设备120也可以是个人电脑,比如台式电脑、便携式计算机、个人工作站等等。In a possible implementation, the configuration device 120 is a user-side terminal device. For example, the configuration device 120 can be a smart controller, a smart remote control, a smart phone, a tablet, a smart watch, a smart TV, a smart speaker, a smart switch, a gateway, etc.; or the configuration device 120 can also be a personal computer, such as a desktop. Computers, laptops, personal workstations and more.
在另一种可能的实现方式中,配置设备120是指基于终端设备运行的客户端实体(可以是虚拟实体),例如,配置设备120可以是运行在终端设备中,用于对物联网设备进行访问、控制、以及管理等操作的应用程序(Application,APP)。In another possible implementation, the configuration device 120 refers to a client entity (which may be a virtual entity) running on a terminal device. For example, the configuration device 120 may run in a terminal device and is used to configure the Internet of Things device. Application (Application, APP) for access, control, and management operations.
桥接设备130用于实现支持不同物联网协议的两个设备之间的交互。桥接设备130在支持不同物联网协议的物联网设备110之间,或者,在支持不同物联网协议的物联网设备110和配置设备120之间,提供信息转换和传递的服务。The bridge device 130 is used to implement interaction between two devices supporting different Internet of Things protocols. The bridge device 130 provides information conversion and transfer services between IoT devices 110 that support different IoT protocols, or between IoT devices 110 that support different IoT protocols and the configuration device 120 .
桥接设备130可以是专用于进行桥接的设备,或者,桥接设备130也可以是具有桥接功能的智能设备,比如网关或者路由器等等。The bridging device 130 may be a device dedicated for bridging, or the bridging device 130 may also be an intelligent device with a bridging function, such as a gateway or a router.
在本申请实施例中,上述物联网设备110、配置设备120、桥接设备130可以是满足相同或者不同的物联网协议的电子设备,比如,可以是满足连接标准联盟(Connectivity Standards Alliance,CSA)下的Matter协议的电子设备。In the embodiment of the present application, the above-mentioned Internet of Things device 110, configuration device 120, and bridge device 130 may be electronic devices that meet the same or different Internet of Things protocols. For example, they may be electronic devices that meet the requirements of the Connectivity Standards Alliance (CSA). Matter protocol for electronic devices.
在图1中,当物联网设备110a和物联网设备110c之间支持相同的协议规范时,物联网设备110a和物联网设备110c之间可以建立安全连接,比如,基于Matter规范建立安全连接。In Figure 1, when the IoT device 110a and the IoT device 110c support the same protocol specification, a secure connection can be established between the IoT device 110a and the IoT device 110c, for example, a secure connection is established based on the Matter specification.
当物联网设备110b和物联网设备110d之间支持不同的协议规范,比如,物联网设备110b是Zigbee设备,而物联网设备110d是Matter设备时,物联网设备110b和物联网设备110d之间可以通过桥接设备130相连。When the IoT device 110b and the IoT device 110d support different protocol specifications, for example, the IoT device 110b is a Zigbee device and the IoT device 110d is a Matter device, the IoT device 110b and the IoT device 110d can connected via a bridge device 130.
请参考图2,其示出了本申请一示例性实施例提供的物联网中的Matter协议消息结构示意图。如图2所示,物联网中的一条Matter协议消息可以包括消息头(Message Header)、消息载荷(Message Payload)以及消息尾(Message Footer)。Please refer to Figure 2, which shows a schematic structural diagram of the Matter protocol message in the Internet of Things provided by an exemplary embodiment of the present application. As shown in Figure 2, a Matter protocol message in the Internet of Things can include a message header (Message Header), a message payload (Message Payload), and a message footer (Message Footer).
消息头中包含消息长度(Message Length)字段、消息标签(Message Flags)字段、会话标识(session ID)字段、安全标签(Security Flags)字段、消息计数器(Message Counter)字段;消息头中还可以包含源节点标识(Source Node ID)字段、目的节点标识(Destination Node ID)字段以及消息扩展(Message extensions)字段。The message header includes the message length (Message Length) field, the message label (Message Flags) field, the session ID (session ID) field, the security label (Security Flags) field, and the message counter (Message Counter) field; the message header can also contain Source Node ID field, Destination Node ID field and Message extensions field.
消息载荷中可以包含加密的消息载荷内容。The message payload may contain encrypted message payload content.
消息尾中可以包含消息完整性检查(Message Integrity Check)字段。The message tail can contain a Message Integrity Check field.
在上述图2所示的消息结构中,Message Flags中可以包含S标签(S Flag)和DSIZ标签(DSIZ Flag),如果S Flag=1,则Source Node ID会被包含在该消息中,如果DSIZ Flag=1,则Destination Node ID会被包含在该消息中。此外,如果S Flag=0,则表示该消息不包含Source Node ID;如果DSIZ Flag=0,则表示该消息不包含Destination Node ID。In the message structure shown in Figure 2 above, Message Flags can contain S tag (S Flag) and DSIZ tag (DSIZ Flag). If S Flag = 1, the Source Node ID will be included in the message. If DSIZ Flag=1, then the Destination Node ID will be included in the message. In addition, if S Flag = 0, it means that the message does not contain the Source Node ID; if DSIZ Flag = 0, it means that the message does not contain the Destination Node ID.
在上述图2所示的消息结构中,Security Flag中可以包含会话类型(Session Type)。In the message structure shown in Figure 2 above, the Security Flag can contain the session type (Session Type).
其中,当Session Type=1时,表示当前消息为组播会话消息。当Session Type=0时,表示当前消息为单播会话消息。Among them, when Session Type=1, it means that the current message is a multicast session message. When Session Type=0, it indicates that the current message is a unicast session message.
请参考图3,其示出了本申请实施例涉及的一种消息载荷的结构示意图。如图3所示,Matter协议消息中的消息载荷中可以包含协议头(Protocol Header)以及应用载荷(Application Payload)。Please refer to FIG. 3 , which shows a schematic structural diagram of a message payload related to an embodiment of the present application. As shown in Figure 3, the message payload in the Matter protocol message can include the protocol header (Protocol Header) and the application payload (Application Payload).
其中,协议头中可以包含交换标签(Exchange Flags)字段、协议操作码(Protocol Opcode)字段、交换标识(Exchange ID)字段、协议标识(Protocol ID)字段、协议厂商标识(Protocol Vendor ID)字段、确认的消息计数器(Acknowledged Message Counter)字段、安全扩展(Secured Extensions)字段。Among them, the protocol header can include the Exchange Flags field, the Protocol Opcode field, the Exchange ID field, the Protocol ID field, the Protocol Vendor ID field, Acknowledged Message Counter field, Secured Extensions field.
上述图3中,Protocol ID用于指定当前消息所属的协议,当前的协议如下述表1所示。In Figure 3 above, Protocol ID is used to specify the protocol to which the current message belongs. The current protocol is shown in Table 1 below.
表1Table 1
取值范围Ranges 类型type
0x00000x0000 PROTOCOL_ID_SECURE_CHANNELPROTOCOL_ID_SECURE_CHANNEL
0x00010x0001 PROTOCOL_ID_INTERACTION_MODELPROTOCOL_ID_INTERACTION_MODEL
0x00020x0002 PROTOCOL_ID_BDXPROTOCOL_ID_BDX
0x00030x0003 PROTOCOL_ID_DIRECTED_COMMISSIONINGPROTOCOL_ID_DIRECTED_COMMISSIONING
0x0004-0xFFFF0x0004-0xFFFF 保留(reserved)reserved
在上述表1中,0X0000表示安全通道协议,0X0001表示交互模型协议,0X0002表示BDX(Bulk Data Exchange,大块数据交换)协议,0X0003表示基于用户配置的协议。In the above Table 1, 0X0000 represents the secure channel protocol, 0X0001 represents the interactive model protocol, 0X0002 represents the BDX (Bulk Data Exchange, block data exchange) protocol, and 0X0003 represents the protocol based on user configuration.
消息计数同步协议(Message Counter Synchronization Protocol,MCSP)是物联网中用于确认接收到的消息是否为新消息的协议。通过MCSP协议,在一个广播/组播组内,如果设备A接收到一条广播消息之后,无法确认该广播消息是否是一个新消息,则可以向发送该广播消息的设备B发起确认(即向设备B发送一个MCSP会话消息),以确认该设备B的最新的Message Counter。相应的,设备B向该设备A返回一个确认消息,该确认消息中包含设备B最新的Message Counter。Message Counter Synchronization Protocol (MCSP) is a protocol used in the Internet of Things to confirm whether the received message is a new message. Through the MCSP protocol, in a broadcast/multicast group, if device A receives a broadcast message and cannot confirm whether the broadcast message is a new message, it can initiate a confirmation to device B that sent the broadcast message (that is, to device B). B sends an MCSP session message) to confirm the latest Message Counter of device B. Correspondingly, device B returns a confirmation message to device A. The confirmation message contains device B's latest Message Counter.
其中,每个广播/组播会话消息都会携带一个Message Counter,一个广播/组播会话消息的消息发送设备需要保证每次发送的广播/组播会话消息的Message Counter是递增的(+1),广播/组播会话消息的消息接收设备可以根据获取的Message Counter确认广播/组播会话消息是否是一个“重放”消息。Among them, each broadcast/multicast session message will carry a Message Counter. A message sending device for broadcast/multicast session messages needs to ensure that the Message Counter of each broadcast/multicast session message sent is incremented (+1). The message receiving device of the broadcast/multicast session message can confirm whether the broadcast/multicast session message is a "replay" message based on the obtained Message Counter.
在相关技术中,MCSP会话消息中Session Type也设置为1,即MCSP会话消息在Matter协议中被视为组播会话消息,而MCSP会话消息的接收节点的标识信息设置在Destination Node ID字段中。也就是说,在相关技术中,消息发送设备在生成一条消息的过程中,当对应的Session Type=1时,消息发送设备设置DSIZ Flag=1,表示消息中存在Destination Node ID字段。此外,如果当前消息是组播会话消息,则消息发送设备将Destination Node ID的值设置为Group ID,如果当前消息是MCSP会话消息,则消息发送设备将Destination Node ID的值设置为接收节点的节点ID。这就导致消息接收设备接收到一条Session Type为1的消息,并从该消息中解析出Destination Node ID字段的值之后,无法直接确定该字段中的值是组播会话消息对应的组ID,还是MCSP会话消息对应的接收节点的ID,需要额外确定该消息是组播会话消息还是MCSP会话消息,然后才能确定Destination Node ID字段中的值的含义,从而导致消息接收设备难以快速确定消息的目的设备,从而影响MCSP会话消息的传输效率。In related technologies, the Session Type in the MCSP session message is also set to 1, that is, the MCSP session message is regarded as a multicast session message in the Matter protocol, and the identification information of the receiving node of the MCSP session message is set in the Destination Node ID field. That is to say, in the related technology, when the message sending device generates a message, when the corresponding Session Type=1, the message sending device sets DSIZ Flag=1, indicating that the Destination Node ID field exists in the message. In addition, if the current message is a multicast session message, the message sending device sets the value of the Destination Node ID to the Group ID. If the current message is an MCSP session message, the message sending device sets the value of the Destination Node ID to the node of the receiving node. ID. This causes the message receiving device to receive a message with Session Type 1 and parse the value of the Destination Node ID field from the message. It cannot directly determine whether the value in the field is the group ID corresponding to the multicast session message or the group ID corresponding to the multicast session message. The ID of the receiving node corresponding to the MCSP session message requires additional determination of whether the message is a multicast session message or an MCSP session message, and then the meaning of the value in the Destination Node ID field can be determined, making it difficult for the message receiving device to quickly determine the destination device of the message. , thus affecting the transmission efficiency of MCSP session messages.
请参考图4,其示出了本申请一个实施例提供的消息处理方法的流程图,该方法可以由消息发送设备执行,比如,该消息发送设备可以是图1所示的网络架构中的物联网设备110中的一个;该方法可以包括如下几个步骤:Please refer to Figure 4, which shows a flow chart of a message processing method provided by an embodiment of the present application. The method can be executed by a message sending device. For example, the message sending device can be an object in the network architecture shown in Figure 1. One of the networking devices 110; the method may include the following steps:
步骤401,获取消息类型指示信息;消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息。Step 401: Obtain the message type indication information; the message type indicated by the message type indication information includes a unicast session message, a multicast session message, or a Message Count Synchronization Protocol MCSP session message.
在本申请实施例中,在生成第一消息的过程中,消息发送设备可以获取要生成的第一消息的消息类型指示信息;该消息类型指示信息,可以是直接或者间接指示当前消息所属的消息类型的信息。In this embodiment of the present application, during the process of generating the first message, the message sending device may obtain the message type indication information of the first message to be generated; the message type indication information may directly or indirectly indicate the message to which the current message belongs. type of information.
其中,上述消息类型可以包括单播会话消息、组播会话消息或者MCSP会话消息。也就是说,该消息类型指示信息,可以指示当前生成的消息是单播会话消息、组播会话消息以及MCSP会话消息中的哪一种。The above message types may include unicast session messages, multicast session messages or MCSP session messages. That is to say, the message type indication information can indicate which of the currently generated message is a unicast session message, a multicast session message, or an MCSP session message.
步骤402,根据消息类型指示信息设置第一消息中的第一参数的参数值,以生成与消息类型指示信息对应的第一消息;其中,不同的消息类型对应的第一参数的参数值不同;第一参数的参数值用于指示第一消息中是否存在第一字段,并且,当存在第一字段时,第一参数的参数值还用于指示第一字段的字段值的标识类型;标识类型包括第一消息的接收节点组的标识信息,或者,第一消息的接收节点的标识信息。Step 402: Set the parameter value of the first parameter in the first message according to the message type indication information to generate the first message corresponding to the message type indication information; wherein the parameter value of the first parameter corresponding to different message types is different; The parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; identification type It includes the identification information of the receiving node group of the first message, or the identification information of the receiving node of the first message.
其中,上述第一参数可以是DSIZ Flag;上述第一字段可以是Destination Node ID字段。Wherein, the above-mentioned first parameter may be DSIZ Flag; the above-mentioned first field may be a Destination Node ID field.
当第一消息是MCSP会话消息时,上述Destination Node ID字段的字段值可以是第一消息的接收节点的标识信息,该第一消息的接收节点的标识信息,可以是消息发送设备接收到的,与该第一消息对应的前置的广播消息的发送节点(也就是当前第一消息的接收节点)的标识信息。When the first message is an MCSP session message, the field value of the above-mentioned Destination Node ID field may be the identification information of the receiving node of the first message. The identification information of the receiving node of the first message may be received by the message sending device. Identification information of the sending node of the preceding broadcast message corresponding to the first message (that is, the receiving node of the current first message).
当第一消息是组播会话消息时,上述Destination Node ID字段的字段值可以是第一消息的接收节点所属的节点组的标识信息。When the first message is a multicast session message, the field value of the above-mentioned Destination Node ID field may be the identification information of the node group to which the receiving node of the first message belongs.
当第一消息是单播会话消息时,上述第一消息中可以不存在Destination Node ID字段。When the first message is a unicast session message, the Destination Node ID field may not exist in the first message.
在本申请实施例中,在生成物联网中的第一消息时,若待生成的消息的类型是MCSP会话消息,则消息发送设备可以为单播会话消息、组播会话消息以及MCSP会话消息设置不同的第一参数的参数值,相应的,接收到第一消息的设备可以根据该第一参数的参数值,可以直接确定是否存在第一字段,以及确定后续第一字段中的字段值的含义为接收节点的标识信息还是接收节点组的标识信息,从而在不需要执行额外的消息类型确认步骤的情况下,即可以快速确定第一消息的目的设备是接收节点的标识信息对应的单个设备,还是一个设备组。In the embodiment of this application, when generating the first message in the Internet of Things, if the type of message to be generated is an MCSP session message, the message sending device can be configured for a unicast session message, a multicast session message, and an MCSP session message. According to different parameter values of the first parameter, the device that receives the first message can directly determine whether the first field exists according to the parameter value of the first parameter, and determine the meaning of subsequent field values in the first field. Whether to receive the identification information of the node or the identification information of the node group, so that it can be quickly determined that the destination device of the first message is a single device corresponding to the identification information of the receiving node without performing additional message type confirmation steps. Or a device group.
综上所述,在本申请实施例中,消息发送设备在生成第一消息的过程中,为单播会话消息、组播会话消息以及MCSP会话消息设置不同的第一参数的参数值,该第一参数的参数值可以用于指示第一消息中是否存在第一字段,并且,当存在第一字段时,第一参数的参数值还用于指示第一字段的字段值的标识类型;该标识类型包括第一消息的接收节点组的标识信息,或者,第一消息的接收节点的标识信息;上述方案使得接收到第一消息的设备可以根据第一消息中的第一参数和第一字段,快速确定该第一消息的目的设备,从而提高MCSP会话消息的传输效率。To sum up, in the embodiment of the present application, in the process of generating the first message, the message sending device sets different first parameter values for the unicast session message, the multicast session message and the MCSP session message. The parameter value of a parameter can be used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type The type includes the identification information of the receiving node group of the first message, or the identification information of the receiving node of the first message; the above solution allows the device that receives the first message to based on the first parameter and the first field in the first message, The destination device of the first message is quickly determined, thereby improving the transmission efficiency of MCSP session messages.
请参考图5,其示出了本申请一个实施例提供的消息处理方法的流程图,该方法可以由消息接收设备执行,比如,该消息接收设备可以是图1所示的网络架构中的物联网设备110中的一个;该方法可以包括如下几个步骤:Please refer to Figure 5, which shows a flow chart of a message processing method provided by an embodiment of the present application. The method can be executed by a message receiving device. For example, the message receiving device can be an object in the network architecture shown in Figure 1. One of the networking devices 110; the method may include the following steps:
步骤501,接收第一消息。Step 501: Receive the first message.
步骤502,解析第一消息中的第一参数。Step 502: Parse the first parameter in the first message.
步骤503,根据第一参数的参数值,执行对第一消息中的第一字段的字段值的获取步骤;第一参数的参数值是消息发送设备根据第一消息的消息类型指示信息设置的;消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息;不同的消息类型对应的第一参数的参数值不同;第一参数的参数值用于指示第一消息中是否存在第一字段,并且,当存在第一字段时,第一参数的参数值还用于指示第一字段的字段值的标识类型;标识类型包括第一消息的接收节点组的标识信息,或者,第一消息的接收节点的标识信息。Step 503: Execute the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter; the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; The message types indicated by the message type indication information include unicast session messages, multicast session messages or message count synchronization protocol MCSP session messages; different message types correspond to different parameter values of the first parameter; the parameter value of the first parameter is used to indicate Whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification type of the receiving node group of the first message Identification information, or identification information of the receiving node of the first message.
综上所述,在本申请实施例中,消息发送设备在生成第一消息的过程中,为单播会话消息、组播会话消息以及MCSP会话消息设置不同的第一参数的参数值,该第一参数的参数值可以用于指示第一消息中是否存在第一字段,并且,当存在第一字段时,第一参数的参数值还用于指示第一字段的字段值的标识类型;该标识类型包括第一消息的接收节点组的标识信息,或者,第一消息的接收节点的标识信息,使得接收到第一消息的设备可以根据第一消息中的第一参数和第一字段,快速确定该第一消息的目的设备,从而提高MCSP会话消息的传输效率。To sum up, in the embodiment of the present application, in the process of generating the first message, the message sending device sets different first parameter values for the unicast session message, the multicast session message and the MCSP session message. The parameter value of a parameter can be used to indicate whether the first field exists in the first message, and when the first field exists, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type The type includes the identification information of the receiving node group of the first message, or the identification information of the receiving node of the first message, so that the device that receives the first message can quickly determine based on the first parameter and the first field in the first message. The destination device of the first message, thereby improving the transmission efficiency of MCSP session messages.
请参考图6,其示出了本申请一个实施例提供的消息处理方法的流程图,该方法可以由消息发送设备和消息接收设备交互执行,该消息发送设备和消息接收设备可以是图1所示的网络架构中的物联网设备110中的两个设备;该方法可以包括如下几个步骤:Please refer to Figure 6, which shows a flow chart of a message processing method provided by an embodiment of the present application. The method can be interactively executed by a message sending device and a message receiving device. The message sending device and the message receiving device can be the ones shown in Figure 1. Two devices in the Internet of Things device 110 in the network architecture shown; the method may include the following steps:
步骤601,消息发送设备在生成第一消息的过程中,获取消息类型指示信息。Step 601: In the process of generating the first message, the message sending device obtains the message type indication information.
其中,该消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息。The message type indicated by the message type indication information includes a unicast session message, a multicast session message or a Message Count Synchronization Protocol MCSP session message.
在一种可能的实现方式中,上述消息类型指示信息可以是第一消息的会话类型标识信息,比如Session Type ID。In a possible implementation, the above message type indication information may be session type identification information of the first message, such as Session Type ID.
比如,在本申请实施例中,物联网中的消息的会话类型标识信息可以包括且不限于三种:单播会话(Unicast Session)标识(可以用值为0来表示)、组播会话(Group Session)标识(可以用值为1来表示)以及MCSP会话标识(可以用值为2来表示)。For example, in the embodiment of this application, the session type identification information of messages in the Internet of Things may include but is not limited to three types: unicast session (Unicast Session) identification (which can be represented by a value of 0), multicast session (Group) Session) identifier (can be represented by a value of 1) and MCSP session identifier (can be represented by a value of 2).
或者,在本申请实施例中,物联网中的消息的会话类型标识也可以分为两种,分别为单播会话标识(可以用值为0来表示)、组播会话标识(可以用值为1来表示)。Alternatively, in the embodiment of this application, the session type identifiers of messages in the Internet of Things can also be divided into two types, namely unicast session identifiers (which can be represented by a value of 0) and multicast session identifiers (which can be represented by a value of 0). 1 to represent).
上述会话类型标识的值仅以上述0、1或2来举例说明,可选的,上述各种会话类型标识的值也可以设置为其它类型的值,只要能够区分单播会话、组播会话以及MCSP会话即可,或者,只要能够区分单播会话和组播会话即可。The value of the above session type identifier is only exemplified by the above 0, 1 or 2. Optionally, the value of the above various session type identifiers can also be set to other types of values, as long as it can distinguish between unicast session, multicast session and MCSP sessions are sufficient, or as long as unicast sessions and multicast sessions can be distinguished.
在另一种可能的实现方式中,上述第一消息的消息类型指示信息也可以是第一消息的会话上下文信息(比如Session Context)。In another possible implementation, the message type indication information of the first message may also be session context information (such as Session Context) of the first message.
比如,在本申请实施例中,物联网中的会话上下文信息可以包括以下几种:安全单播会话上下文(secured unicast session context,对应单播会话)、组播会话上下文(groupcast session context,对应组播会话)、MCSP会话上下文(MCSP session context,对应MCSP会话)、以及非安全会话上下文(unsecured session context)。For example, in the embodiment of this application, the session context information in the Internet of Things may include the following: secure unicast session context (secured unicast session context, corresponding to unicast session), multicast session context (groupcast session context, corresponding to group broadcast session), MCSP session context (MCSP session context, corresponding to MCSP session), and unsecured session context (unsecured session context).
其中,除了会话类型标识信息以及会话上下文信息之外,在本申请实施例中,也可以通过其它信息来直接或者间接指示当前消息的消息类型,比如额外设置一个参数,用于指示当前消息是属于单播会话消息、组播会话消息和MCSP会话消息中的哪一个。本申请实施例对于消息类型指示信息的形式不做限定。Among them, in addition to the session type identification information and session context information, in the embodiment of the present application, other information can also be used to directly or indirectly indicate the message type of the current message, such as setting an additional parameter to indicate that the current message belongs to Which one among unicast session message, multicast session message and MCSP session message. The embodiment of the present application does not limit the form of the message type indication information.
在本申请实施例中,除了上述消息类型指示信息之外,消息发送设备还可以获取加密秘钥、Session ID、目的设备ID等信息,并获取Message Counter。In the embodiment of this application, in addition to the above message type indication information, the message sending device can also obtain the encryption key, Session ID, destination device ID and other information, and obtain the Message Counter.
步骤602,消息发送设备根据消息类型指示信息设置第一消息中的第一参数的参数值,以生成与消息类型指示信息对应的第一消息。Step 602: The message sending device sets the parameter value of the first parameter in the first message according to the message type indication information to generate a first message corresponding to the message type indication information.
在一种可能的实现方式中,消息发送设备在消息类型指示信息指示的消息类型是MCSP会话消息的情况下,设置第一消息中的第一参数为第一参数值,并设置第一消息中的第一字段为第一字段值,以生成第一消息。In a possible implementation, when the message type indicated by the message type indication information is an MCSP session message, the message sending device sets the first parameter in the first message to the first parameter value, and sets the first parameter in the first message. The first field of is the first field value to generate the first message.
其中,第一参数值用于指示第一消息中存在第一字段,且第一字段的字段值是第一消息的接收节点的标识信息。The first parameter value is used to indicate that the first field exists in the first message, and the field value of the first field is the identification information of the receiving node of the first message.
在本申请实施例中,当消息发送设备接收到一条(比如消息A)之后,若消息A发送设备无法确定该消息A是否为新传消息,则消息发送设备需要向该消息A的发送方发送一条MCSP会话消息,以确认该消息A的发送方最新的Message Counter。此时,消息发送设备可以生成待发送消息的消息类型指示信息,且该消息类型指示的消息类型是MCSP会话消息。In the embodiment of the present application, after the message sending device receives a message (such as message A), if the message A sending device cannot determine whether the message A is a new message, the message sending device needs to send a message to the sender of the message A. An MCSP session message to confirm the latest Message Counter of the sender of message A. At this time, the message sending device can generate message type indication information of the message to be sent, and the message type indicated by the message type is an MCSP session message.
或者,当消息发送设备需要向某一个指定的设备发送单播会话消息时,消息发送设备可以生成待发送消息的消息类型指示信息,且该消息类型指示的消息类型是单播会话消息。Or, when the message sending device needs to send a unicast session message to a specified device, the message sending device can generate message type indication information of the message to be sent, and the message type indicated by the message type is a unicast session message.
再或者,当消息发送设备需要向某一个指定的设备组发送组播会话消息时,消息发送设备可以生成待发送消息的消息类型指示信息,且该消息类型指示的消息类型是组播会话消息。Alternatively, when the message sending device needs to send a multicast session message to a specified device group, the message sending device can generate message type indication information of the message to be sent, and the message type indicated by the message type is a multicast session message.
其中,消息发送设备可以根据上述步骤602获取到的信息生成一个消息,并设定该消息的格式的中Session ID,并继续设置消息中的其他参数(包括第一参数、第一字段等),然后设定Message Counter,并加密Application Payload,直至生成完整的第一消息。Among them, the message sending device can generate a message based on the information obtained in the above step 602, set the Session ID in the format of the message, and continue to set other parameters in the message (including the first parameter, the first field, etc.), Then set the Message Counter and encrypt the Application Payload until the complete first message is generated.
在本申请实施例中,消息发送设备可以根据消息类型指示信息确定当前的第一消息是否为MCSP会话消息,并在确定是MCSP会话消息的情况下,设置第一消息中的第一参数为第一参数值,并设置第一消息中的第一字段为第一字段值,以生成第一消息。In this embodiment of the present application, the message sending device can determine whether the current first message is an MCSP session message according to the message type indication information, and if it is determined to be an MCSP session message, set the first parameter in the first message to the first message. A parameter value, and setting the first field in the first message as the first field value to generate the first message.
在本申请实施例的一种可能实现方案中,消息发送设备可以通过会话类型标识信息直接确定第一消息的消息类型。In a possible implementation solution of the embodiment of the present application, the message sending device may directly determine the message type of the first message through the session type identification information.
在一种可能的实现方式中,对于消息类型指示信息包括会话类型标识信息的情况,消息发送设备在会话类型标识信息为MCSP会话标识的情况下,设置第一消息中的第一参数为第一参数值,并设置第一消息中的第一字段为第一字段值,以生成第一消息。In a possible implementation, for the case where the message type indication information includes session type identification information, the message sending device sets the first parameter in the first message to the first parameter when the session type identification information is the MCSP session identification information. parameter value, and set the first field in the first message as the first field value to generate the first message.
在本申请实施例中,在会话类型标识信息包括单播会话标识、组播会话标识以及MCSP会话标识的情况下,若消息发送设备获取到第一消息的会话类型标识信息为MCSP会话标识(比如Session Type ID的值为2),则消息发送设备可以确定当前消息是一个MCSP会话消息,此时,消息发送设备可以设置第一消息中的第一参数为第一参数值,并设置第一消息中的第一字段为第一字段值。In the embodiment of the present application, in the case where the session type identification information includes a unicast session identification, a multicast session identification and an MCSP session identification, if the message sending device obtains that the session type identification information of the first message is an MCSP session identification (such as The value of Session Type ID is 2), then the message sending device can determine that the current message is an MCSP session message. At this time, the message sending device can set the first parameter in the first message to the first parameter value, and set the first message The first field in is the first field value.
可选的,在会话类型标识信息包括单播会话标识、组播会话标识以及MCSP会话标识的情况下,若消息发送设备获取到第一消息的会话类型标识信息为单播会话标识(比如Session Type ID的值为0),则消息发送设备可以确定当前消息是一个单播会话消息,此时,消息发送设备可以设置第一消息中的第一参数为第三参数值,且第一消息中不设置第一字段。其中,第三参数值用于指示第一消息中不包含第一字段。Optionally, in the case where the session type identification information includes a unicast session identification, a multicast session identification and an MCSP session identification, if the message sending device obtains that the session type identification information of the first message is a unicast session identification (such as Session Type ID value is 0), the message sending device can determine that the current message is a unicast session message. At this time, the message sending device can set the first parameter in the first message to the third parameter value, and there is no Set the first field. The third parameter value is used to indicate that the first message does not contain the first field.
可选的,在会话类型标识信息包括单播会话标识、组播会话标识以及MCSP会话标识的情况下,若消息发送设备获取到第一消息的会话类型标识信息为组播会话标识(比如Session Type ID的值为1),则消息发送设备可以确定当前消息是一个组播会话消息,此时,消息发送设备可以设置第一消息中的第一参数为第四参数值,并设置第一消息中的第一字段为第三字段值,其中,上述第四参数值用于指示第一消息中包含第一字段,且第一字段的字段值为组标识(Group ID)。Optionally, in the case where the session type identification information includes a unicast session identification, a multicast session identification and an MCSP session identification, if the message sending device obtains that the session type identification information of the first message is a multicast session identification (such as Session Type The value of the ID is 1), then the message sending device can determine that the current message is a multicast session message. At this time, the message sending device can set the first parameter in the first message to the fourth parameter value, and set the value in the first message. The first field of is the third field value, wherein the above-mentioned fourth parameter value is used to indicate that the first message contains the first field, and the field value of the first field is the group ID (Group ID).
在本申请实施例的另一种可能实现方案中,消息发送设备可以结合会话类型标识信息以及其它信息来确定第一消息的消息类型。In another possible implementation of the embodiment of the present application, the message sending device may determine the message type of the first message in combination with the session type identification information and other information.
在一种可能的实现方式中,对于消息类型指示信息包括会话类型标识信息的情况,消息发送设备在会话类型标识信息为组播会话标识的情况下,获取第一消息的消息类型识别信息;消息类型识别信息用于辅助识别第一消息的消息类型;在消息类型识别信息满足第一条件的情况下,设置第一消息中的第一参数为第一参数值,并设置第一消息中的第一字段为第一字段值,以生成第一消息。In a possible implementation, for the case where the message type indication information includes session type identification information, the message sending device obtains the message type identification information of the first message when the session type identification information is a multicast session identification; message The type identification information is used to assist in identifying the message type of the first message; when the message type identification information satisfies the first condition, the first parameter in the first message is set to the first parameter value, and the first parameter in the first message is set. One field is a first field value to generate a first message.
在本申请实施例中,在会话类型标识信息包括单播会话标识以及组播会话标识的情况下,若消息发送设备获取到第一消息的会话类型标识信息为组播会话标识(比如Session Type ID的值为1),则该第一消息可以是组播会话消息或者MCSP会话消息,此时,消息发送设备可以进一步的获取第一消息的消息类型识别信息,以确定该第一消息是组播会话消息和MCSP会话消息中的哪一个。消息发送设备可以判断消息类型识别信息是否满足第一条件,若是,则确定第一消息是MCSP会话消息,此时,可以设置第一消息中的第一参数为第一参数值,并设置第一消息中的第一字段为第一字段值;若消息发送设备判断出消息类型识别信息不满足第一条件,则确定第一消息是组播会话消息,此时,消息发送设备可以设置第一消息中的第一参数为第四参数值,并设置第一消息中的第一字段为第三字段值,其中,上述第四参数值用于指示第一消息中包含第一字段,且第一字段的字段值为组标识。In the embodiment of the present application, when the session type identification information includes a unicast session identification and a multicast session identification, if the message sending device obtains that the session type identification information of the first message is a multicast session identification (such as Session Type ID The value is 1), then the first message can be a multicast session message or an MCSP session message. At this time, the message sending device can further obtain the message type identification information of the first message to determine that the first message is a multicast Which of the session messages and MCSP session messages. The message sending device may determine whether the message type identification information satisfies the first condition. If so, determine that the first message is an MCSP session message. At this time, the first parameter in the first message may be set to the first parameter value, and the first parameter may be set to the first parameter value. The first field in the message is the first field value; if the message sending device determines that the message type identification information does not meet the first condition, it determines that the first message is a multicast session message. At this time, the message sending device can set the first message The first parameter in is a fourth parameter value, and the first field in the first message is set to a third field value, where the above fourth parameter value is used to indicate that the first message contains the first field, and the first field The field value is the group ID.
可选的,在会话类型标识信息包括单播会话标识以及组播会话标识的情况下,若消息发送设备获取到第一消息的会话类型标识信息为单播会话标识(比如Session Type ID的值为0),则该第一消息可以是单播会话消息,此时,消息发送设备可以设置第一消息中的第一参数为第三参数值,且第一消息中不设置第一字段。其中,第三参数值用于指示第一消息中不包含第一字段。Optionally, in the case where the session type identification information includes a unicast session identification and a multicast session identification, if the message sending device obtains the session type identification information of the first message as a unicast session identification (for example, the value of Session Type ID is 0), then the first message may be a unicast session message. In this case, the message sending device may set the first parameter in the first message to the third parameter value, and the first field shall not be set in the first message. The third parameter value is used to indicate that the first message does not contain the first field.
在一种可能的实现方式中,消息类型指示信息包括以下信息中的至少一种:In a possible implementation, the message type indication information includes at least one of the following information:
协议标识信息(比如Protocol ID),以及,操作码(比如Opcode)。Protocol identification information (such as Protocol ID), and operation code (such as Opcode).
其中,上述Opcode可以是当前消息的消息类型信息,可以用来指示当前消息在Protocol ID对应的协议中对应的操作(也就是消息的作用)。Among them, the above Opcode can be the message type information of the current message, which can be used to indicate the corresponding operation of the current message in the protocol corresponding to the Protocol ID (that is, the role of the message).
在一种可能的实现方式中,在消息类型指示信息包括协议标识信息的情况下,第一条件包括:协议标识信息指示第一消息对应的协议为安全通道协议。In a possible implementation manner, when the message type indication information includes protocol identification information, the first condition includes: the protocol identification information indicates that the protocol corresponding to the first message is the secure channel protocol.
在本申请实施例中,若消息类型指示信息包括协议标识信息,且协议标识信息指示的是安全通道协议(比如protocol ID=0x0000),则可以认为消息类型指示信息满足第一条件。In this embodiment of the present application, if the message type indication information includes protocol identification information, and the protocol identification information indicates the secure channel protocol (for example, protocol ID=0x0000), then the message type indication information can be considered to satisfy the first condition.
在一种可能的实现方式中,在消息类型指示信息包括操作码的情况下,第一条件包括:操作码指示第一消息为MCSP会话消息。In a possible implementation manner, when the message type indication information includes an operation code, the first condition includes: the operation code indicates that the first message is an MCSP session message.
在本申请实施例中,若消息类型指示信息包括Opcode,且Opcode示的是MCSP会话消息,则可以认为消息类型指示信息满足第一条件。In this embodiment of the present application, if the message type indication information includes Opcode, and Opcode indicates an MCSP session message, it can be considered that the message type indication information satisfies the first condition.
在本申请实施例的又一种可能实现方案中,消息发送设备可以结合会话上下文信息直接第一消息的消息类型。In another possible implementation of the embodiment of the present application, the message sending device may directly determine the message type of the first message in combination with the session context information.
在一种可能的实现方式中,对于消息类型指示信息包括会话上下文信息的情况,在会话上下文信息为MCSP会话上下文的情况下,设置第一消息中的第一参数为第一参数值,并设置第一消息中的第一字段为第一字段值,以生成第一消息。In a possible implementation, for the case where the message type indication information includes session context information, if the session context information is MCSP session context, set the first parameter in the first message to the first parameter value, and set The first field in the first message is a first field value to generate the first message.
在本申请实施例中,在会话上下文信息至少包括安全单播会话上下文、组播会话上下文、以及MCSP会话上下文的情况下,若消息发送设备获取到第一消息的会话上下文信息为MCSP会话上下文,则消息发送设备可以确定当前消息是一个MCSP会话消息,此时,消息发送设备可以设置第一消息中的第一参数为第一参数值,并设置第一消息中的第一字段为第一字段值。In the embodiment of the present application, in the case where the session context information at least includes a secure unicast session context, a multicast session context, and an MCSP session context, if the message sending device obtains that the session context information of the first message is the MCSP session context, Then the message sending device can determine that the current message is an MCSP session message. At this time, the message sending device can set the first parameter in the first message as the first parameter value, and set the first field in the first message as the first field. value.
可选的,在会话上下文信息至少包括安全单播会话上下文、组播会话上下文、以及MCSP会话上下文的情况下,若消息发送设备获取到第一消息的会话上下文信息为安全单播会话上下文,则消息发送设备可以确定当前消息是一个单播会话消息,此时,消息发送设备可以设置第一消息中的第一参数为第三参数值,且第一消息中不设置第一字段。其中,第三参数值用于指示第一消息中不包含第一字段。Optionally, in the case where the session context information at least includes a secure unicast session context, a multicast session context, and an MCSP session context, if the message sending device obtains that the session context information of the first message is a secure unicast session context, then The message sending device can determine that the current message is a unicast session message. At this time, the message sending device can set the first parameter in the first message to the third parameter value, and the first field is not set in the first message. The third parameter value is used to indicate that the first message does not contain the first field.
可选的,在会话上下文信息至少包括安全单播会话上下文、组播会话上下文、以及MCSP会话上下文的情况下,若消息发送设备获取到第一消息的会话上下文信息为组播会话上下文,则消息发送设备可以确定当前消息是一个组播会话消息,此时,消息发送设备可以设置第一消息中的第一参数为第四参数值,并设置第一消息中的第一字段为第三字段值,其中,上述第四参数值用于指示第一消息中包含第一字段,且第一字段的字段值为组标识。Optionally, in the case where the session context information at least includes a secure unicast session context, a multicast session context, and an MCSP session context, if the message sending device obtains that the session context information of the first message is a multicast session context, the message The sending device may determine that the current message is a multicast session message. At this time, the message sending device may set the first parameter in the first message to the fourth parameter value, and set the first field in the first message to the third field value. , wherein the above-mentioned fourth parameter value is used to indicate that the first message contains the first field, and the field value of the first field is the group identifier.
在一种可能的实现方式中,在会话上下文信息为MCSP会话上下文的情况下,消息发送设备还可以设置第一消息的会话类型标识信息为组播会话标识。In a possible implementation manner, when the session context information is an MCSP session context, the message sending device may also set the session type identification information of the first message to a multicast session identification.
在本申请实施例中,消息发送设备根据会话上下文信息(MCSP会话上下文)确定当前消息是MCSP会话消息的情况下,还可以设置当前消息的会话类型标识信息,将其设置为组播会话标识,比如,将第一消息的Session Type ID的值为1。In the embodiment of this application, when the message sending device determines that the current message is an MCSP session message based on the session context information (MCSP session context), it can also set the session type identification information of the current message as a multicast session identification, For example, set the Session Type ID value of the first message to 1.
可选的,在会话上下文信息为安全单播会话上下文的情况下,消息发送设备还可以设置第一消息的会话类型标识信息为单播会话标识,比如,将第一消息的Session Type ID的值为0。在会话上下文信息为组播会话上下文的情况下,消息发送设备还可以设置第一消息的会话类型标识信息为组播会话标识,比如,将第一消息的Session Type ID的值为1。Optionally, when the session context information is a secure unicast session context, the message sending device can also set the session type identification information of the first message to a unicast session identification, for example, change the value of the Session Type ID of the first message to is 0. When the session context information is a multicast session context, the message sending device may also set the session type identification information of the first message to the multicast session identification, for example, set the Session Type ID value of the first message to 1.
在一种可能的实现方式中,第一参数是第一消息中的DSIZ标签;第一字段是第一消息中的目的节点标识字段;比如,该第一参数和第一字段可以设置在第一消息的消息头中。In a possible implementation, the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message; for example, the first parameter and the first field can be set in the first in the message header.
在一种可能的实现方式中,上述第一参数值为1(即DSIZ Flag=1),且第一字段值为第一消息的消息接收方的节点标识(即Destination Node ID=消息接收方的Node ID)。In a possible implementation, the above-mentioned first parameter value is 1 (i.e., DSIZ Flag = 1), and the first field value is the node ID of the message recipient of the first message (i.e., Destination Node ID = message recipient’s Node ID).
在一种可能的实现方式中,在第一参数的参数值为第三参数值的情况下,消息发送设备还将第一消息中的第一字段的第三字段值,获取为第一消息的消息接收方所属的节点组的标识信息;其中,第三参数值和第三字段值是消息发送设备在第一消息的消息类型是组播会话消息的情况下设置的。In a possible implementation, when the parameter value of the first parameter is the third parameter value, the message sending device also obtains the third field value of the first field in the first message as the first message. Identification information of the node group to which the message recipient belongs; wherein the third parameter value and the third field value are set by the message sending device when the message type of the first message is a multicast session message.
在一种可能的实现方式中,第一参数是第一消息中的DSIZ标签;第一字段是第一消息中的目的节点标识字段;In a possible implementation, the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message;
第三参数值为2(即DSIZ Flag=2),且第三字段值为第一消息的消息接收方的组标识(即Destination Node ID=Group ID)。The third parameter value is 2 (that is, DSIZ Flag=2), and the third field value is the group ID of the message recipient of the first message (that is, Destination Node ID=Group ID).
可选的,在本申请实施例中,DSIZ标签的值为0的情况,表示消息中不存在目的节点标识字段;DSIZ标签的值为1的情况,表示消息中存在目的节点标识字段,且目的节点标识字段的字段值为第一消息的接收方的节点标识;DSIZ标签的值为2的情况,表示消息中存在目的节点标识字段,且目的节点标识字段 的字段值为组标识(Group ID)。Optionally, in the embodiment of this application, when the value of the DSIZ label is 0, it means that there is no destination node identification field in the message; when the value of the DSIZ label is 1, it means that there is a destination node identification field in the message, and the destination The field value of the node identification field is the node identification of the recipient of the first message; when the value of the DSIZ tag is 2, it means that there is a destination node identification field in the message, and the field value of the destination node identification field is the group identification (Group ID) .
在本申请实施例中,上述设置第一参数和第一字段,可以是指设置第一消息中的DSIZ标签和Destination Node ID字段。In this embodiment of the present application, setting the first parameter and the first field mentioned above may refer to setting the DSIZ tag and the Destination Node ID field in the first message.
其中,当第一消息是单播会话消息时,消息发送设备可以将DSIZ标签设置为0,表示第一消息的后续内容不包含Destination Node ID字段。When the first message is a unicast session message, the message sending device can set the DSIZ tag to 0, indicating that the subsequent content of the first message does not contain the Destination Node ID field.
当第一消息是组播会话消息时,消息发送设备可以将DSIZ标签设置为1,表示第一消息的后续内容包含Destination Node ID字段,且Destination Node ID字段中包含的内容是组标识(即接收该组播会话消息的设备组的组标识)。When the first message is a multicast session message, the message sending device can set the DSIZ tag to 1, indicating that the subsequent content of the first message contains the Destination Node ID field, and the content contained in the Destination Node ID field is the group identifier (i.e., the receiving The group ID of the device group for this multicast session message).
当第一消息是MCSP会话消息时,消息发送设备可以将DSIZ标签设置为2,表示第一消息的后续内容包含Destination Node ID字段,且Destination Node ID字段中包含的内容是第一消息的接收方的标识,也就是消息接收设备之前接收到,且不确定是否为新消息的广播/组播会话消息的发送方的标识。When the first message is an MCSP session message, the message sending device can set the DSIZ tag to 2, indicating that the subsequent content of the first message contains the Destination Node ID field, and the content contained in the Destination Node ID field is the recipient of the first message. The identifier is the identifier of the sender of the broadcast/multicast session message that the message receiving device has previously received and is not sure whether it is a new message.
在一种可能的实现方式中,在消息类型指示信息指示的消息类型是MCSP会话消息的情况下,消息发送设备还设置第一消息中的第二参数为第二参数值,并设置第一消息中的第二字段为第二字段值;In a possible implementation, when the message type indicated by the message type indication information is an MCSP session message, the message sending device also sets the second parameter in the first message to the second parameter value, and sets the first message The second field in is the second field value;
其中,第二参数值用于指示第一消息中存在第二字段,且第二字段的字段值是第一消息的发送节点的标识信息。The second parameter value is used to indicate that the second field exists in the first message, and the field value of the second field is the identification information of the sending node of the first message.
在本申请实施例中,在消息类型指示信息指示的消息类型是组播会话消息的情况下,消息发送设备也可以设置第一消息中的第二参数为第二参数值,并设置第一消息中的第二字段为第二字段值。In the embodiment of the present application, when the message type indicated by the message type indication information is a multicast session message, the message sending device can also set the second parameter in the first message to the second parameter value, and set the first message The second field in is the second field value.
在本申请实施例中,在消息类型指示信息指示的消息类型是单播会话消息的情况下,消息发送设备可以设置第一消息中的第二参数为第五参数值,且在第一消息中不设置第二字段。其中,第五参数值标识第一消息中不包含第二字段。In this embodiment of the present application, when the message type indicated by the message type indication information is a unicast session message, the message sending device may set the second parameter in the first message to the fifth parameter value, and in the first message The second field is not set. The fifth parameter value indicates that the first message does not contain the second field.
在一种可能的实现方式中,第二参数是第一消息中的S标签;第二字段是第一消息中的源节点标识字段。In a possible implementation, the second parameter is the S tag in the first message; the second field is the source node identification field in the first message.
在一种可能的实现方式中,上述第二参数值为1(即S Flag=1),且第二字段值为消息发送设备的节点标识(即Source Node ID=MCSP会话消息发送方的Node ID)。In a possible implementation, the above-mentioned second parameter value is 1 (i.e. S Flag = 1), and the second field value is the node ID of the message sending device (i.e. Source Node ID = Node ID of the MCSP session message sender ).
可选的,在本申请实施例中,S标签的值为0的情况,表示消息中不存在源节点标识字段;S标签的值为1的情况,表示消息中存在源节点标识字段,且源节点标识字段的字段值为第一消息的发送方的节点标识。Optionally, in the embodiment of this application, when the value of the S tag is 0, it means that there is no source node identification field in the message; when the value of the S label is 1, it means that there is a source node identification field in the message, and the source The field value of the node identification field is the node identification of the sender of the first message.
在本申请实施例中,上述设置第二参数和第二字段,可以是指设置第一消息的消息头中的S标签和Source Node ID字段。In this embodiment of the present application, setting the second parameter and the second field mentioned above may refer to setting the S tag and the Source Node ID field in the message header of the first message.
其中,当第一消息是单播会话消息时,消息发送设备可以将S标签设置为0,表示第一消息的后续内容不包含Source Node ID字段。When the first message is a unicast session message, the message sending device can set the S tag to 0, indicating that the subsequent content of the first message does not contain the Source Node ID field.
当第一消息是组播会话消息或者MCSP会话消息时,消息发送设备可以将S标签设置为1,表示第一消息的后续内容包含Source Node ID字段,且Source Node ID字段中包含的内容是当前消息的发送方的标识,比如消息发送设备的节点标识。When the first message is a multicast session message or MCSP session message, the message sending device can set the S tag to 1, indicating that the subsequent content of the first message contains the Source Node ID field, and the content contained in the Source Node ID field is the current The identifier of the sender of the message, such as the node identifier of the message sending device.
步骤603,消息发送设备发送该第一消息;相应的,消息接收设备接收该第一消息。Step 603: The message sending device sends the first message; correspondingly, the message receiving device receives the first message.
在本申请实施例中,消息发送设备生成完整的第一消息之后,即可以在物联网中发送该第一消息。相应的,消息接收设备可以接收并解析该第一消息,以确定该第一消息是否是发送给该消息接收设备的消息。In this embodiment of the present application, after the message sending device generates a complete first message, the first message can be sent in the Internet of Things. Correspondingly, the message receiving device may receive and parse the first message to determine whether the first message is a message sent to the message receiving device.
步骤604,消息接收设备解析第一消息中的第一参数。Step 604: The message receiving device parses the first parameter in the first message.
在本申请实施例中,消息接收设备可以先解析第一消息中的第一参数,比如,解析第一消息的消息头中的DSIZ标签。In this embodiment of the present application, the message receiving device may first parse the first parameter in the first message, for example, parse the DSIZ tag in the message header of the first message.
步骤605,根据第一参数的参数值,执行对第一消息中的第一字段的字段值的获取步骤。Step 605: According to the parameter value of the first parameter, perform the step of obtaining the field value of the first field in the first message.
在一种可能的实现方式中,消息接收设备在第一参数的参数值为第一参数值的情况下,将第一消息中的第一字段的第一字段值,获取为第一消息的接收节点的标识信息。In a possible implementation manner, when the parameter value of the first parameter is the first parameter value, the message receiving device obtains the first field value of the first field in the first message as the reception of the first message. Identification information of the node.
比如,当消息接收设备解析出DSIZ标签的值为1时,确定该第一消息中包含第一消息的接收节点的标识信息,此时,可以读取第一消息中的第一字段,得到该第一消息的接收节点的标识信息(比如接收节点的Node ID)。For example, when the message receiving device parses out that the value of the DSIZ tag is 1, it is determined that the first message contains the identification information of the receiving node of the first message. At this time, the first field in the first message can be read to obtain the The identification information of the receiving node of the first message (such as the Node ID of the receiving node).
可选的,消息接收设备根据该第一消息的接收节点的标识信息,对第一消息进行处理。Optionally, the message receiving device processes the first message according to the identification information of the receiving node of the first message.
在本申请实施例中,消息接收设备可以将第一消息的接收节点的标识信息与自身的节点标识信息(比如Node ID)比对,若两者一致,则确定该第一消息是发送给消息接收设备的消息,此时可以继续对第一消息进行解析。In this embodiment of the present application, the message receiving device can compare the identification information of the receiving node of the first message with its own node identification information (such as Node ID). If the two are consistent, it is determined that the first message is sent to the message receiving device. Receive the message from the device. At this time, you can continue to parse the first message.
若消息接收设备可以将第一消息的接收节点的标识信息与自身的节点标识信息不一致,则可以丢弃该第一消息。If the message receiving device can determine that the identification information of the receiving node of the first message is inconsistent with its own node identification information, the first message can be discarded.
可选的,在第一参数的参数值为第三参数值的情况下,将第一消息中的第一字段的第三字段值,获取为第一消息的消息接收方所属的节点组的标识信息。Optionally, when the parameter value of the first parameter is the third parameter value, obtain the third field value of the first field in the first message as the identifier of the node group to which the message receiver of the first message belongs. information.
比如,当消息接收设备解析出DSIZ标签的值为2时,确定该第一消息中包含第一消息的接收节点所属的节点组的标识信息,此时,可以读取第一消息中的第一字段,得到该第一消息的接收节点所属的节点组的标识信息(比如Group ID)。For example, when the message receiving device parses out that the value of the DSIZ tag is 2, it determines that the first message contains the identification information of the node group to which the receiving node of the first message belongs. At this time, the first message in the first message can be read. field to obtain the identification information (such as Group ID) of the node group to which the receiving node of the first message belongs.
可选的,消息接收设备根据该第一消息的接收节点所属的节点组的标识信息,对第一消息进行处理。Optionally, the message receiving device processes the first message according to the identification information of the node group to which the receiving node of the first message belongs.
在本申请实施例中,消息接收设备可以将第一消息的接收节点所属的节点组的标识信息与自身所属的节点组的标识信息(比如Group ID)比对,若两者一致,则确定该第一消息是发送给消息接收设备的消息,此时可以继续对第一消息进行解析。In this embodiment of the present application, the message receiving device may compare the identification information of the node group to which the receiving node of the first message belongs with the identification information (such as Group ID) of the node group to which it belongs. If the two are consistent, determine that the node group belongs to the message receiving device. The first message is a message sent to the message receiving device. At this time, the first message can continue to be parsed.
若消息接收设备可以将第一消息的接收节点所属的节点组的标识信息与自身所属的设备组的节点标识信息不一致,则可以丢弃该第一消息。If the message receiving device can determine that the identification information of the node group to which the receiving node of the first message belongs is inconsistent with the node identification information of the device group to which it belongs, the first message can be discarded.
在一种可能的实现方式中,当消息接收设备解析出DSIZ标签的值为0时,确定该第一消息中不包含第一字段,此时可以跳过获取第一字段的步骤。In a possible implementation, when the message receiving device parses out that the value of the DSIZ tag is 0, it determines that the first message does not contain the first field, and in this case, the step of obtaining the first field can be skipped.
请参考图7,其示出了本申请实施例涉及的消息生成的示意图。如图7所示,消息发起方(即上述消息发送设备)发起一个消息时,生成该消息的过程可以如下:Please refer to Figure 7, which shows a schematic diagram of message generation involved in the embodiment of the present application. As shown in Figure 7, when the message initiator (ie, the above-mentioned message sending device) initiates a message, the process of generating the message can be as follows:
S71,获取加密秘钥、Session ID、目的地设备ID、Session Type标识。S71, obtain the encryption key, Session ID, destination device ID, and Session Type identifier.
S72,获取Message Counter。S72, obtain the Message Counter.
S73,生成消息,设定消息格式的中Session ID。S73, generate a message and set the Session ID in the message format.
S74,如果Session Type为0(Unicast Session),则S Flag和DSIZ Flag设定为0,表示在该消息中后面不会出现Source Node ID和Destination Node ID字段。S74, if the Session Type is 0 (Unicast Session), then the S Flag and DSIZ Flag are set to 0, which means that the Source Node ID and Destination Node ID fields will not appear later in the message.
S75,如果Session Type为1(Group Session),则S Flag=1,DSIZ Flag=2,表示在该消息中后面会出现Source Node ID和Destination Node ID字段。Source Node ID指定为消息发起方的Node ID,Destination Node ID设定为Group ID。S75, if the Session Type is 1 (Group Session), then S Flag = 1 and DSIZ Flag = 2, indicating that the Source Node ID and Destination Node ID fields will appear later in the message. The Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Group ID.
S76,如果Session Type为2(MCSP),则设定S Flag=1和DSIZ Flag=1,表示在该消息中后面会出现Source Node ID和Destination Node ID字段。Source Node ID指定为消息发起方的Node ID,Destination Node ID设定为消息的接收方的Node ID。S76, if Session Type is 2 (MCSP), set S Flag = 1 and DSIZ Flag = 1, indicating that the Source Node ID and Destination Node ID fields will appear later in the message. The Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Node ID of the message receiver.
S77,设定Message Counter,并加密Application Payload。S77, set the Message Counter and encrypt the Application Payload.
请参考图8,其示出了本申请实施例涉及的另一种消息生成的示意图。在图8所示的方案中,可以根据消息的session context来设置消息中的相关参数,其中,session context的取值可以包括secured unicast session context、groupcast session context、MCSP session context以及unsecured session context。如图8所示,消息发起方(即上述消息发送设备)发起一个消息时,生成该消息的过程可以如下:Please refer to FIG. 8 , which shows a schematic diagram of another message generation involved in the embodiment of the present application. In the solution shown in Figure 8, the relevant parameters in the message can be set according to the session context of the message. The value of session context can include secured unicast session context, groupcast session context, MCSP session context and unsecured session context. As shown in Figure 8, when the message initiator (ie, the above-mentioned message sending device) initiates a message, the process of generating the message can be as follows:
S81,获取加密秘钥、Session ID、目的地设备ID、Session Type标识。S81, obtain the encryption key, Session ID, destination device ID, and Session Type identification.
S82,获取Message Counter。S82, obtain the Message Counter.
S83,生成消息,设定消息格式的中Session ID。S83, generate a message and set the Session ID in the message format.
S84,当session context=secured unicast session context,设定session type=0,S Flag和DSIZ Flag设定为0,表示在该消息中后面不会出现Source Node ID和Destination Node ID字段。S84, when session context=secured unicast session context, set session type=0, S Flag and DSIZ Flag are set to 0, indicating that the Source Node ID and Destination Node ID fields will not appear later in the message.
S85,当session context=groupcast session context,设定session type=1,并设定S Flag=1,DSIZ Flag=2,表示在该消息中后面会出现Source Node ID和Destination Node ID字段。Source Node ID指定为消息发起方的Node ID,Destination Node ID设定为Group ID。S85, when session context = groupcast session context, set session type = 1, and set S Flag = 1, DSIZ Flag = 2, indicating that the Source Node ID and Destination Node ID fields will appear later in the message. The Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Group ID.
S86,当session context=MCSP session context,设定session type=1,并设定S Flag=1,DSIZ Flag=1,表示在该消息中后面会出现Source Node ID和Destination Node ID字段。Source Node ID指定为消息发起方的Node ID,Destination Node ID设定为消息的接收方的Node ID。S86, when session context = MCSP session context, set session type = 1, and set S Flag = 1, DSIZ Flag = 1, indicating that the Source Node ID and Destination Node ID fields will appear later in the message. The Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Node ID of the message receiver.
S87,设定Message Counter,并加密Application Payload。S87, set the Message Counter and encrypt the Application Payload.
请参考图9,其示出了本申请实施例涉及的又一种消息生成的示意图。如图9所示,消息发起方(即上述消息发送设备)发起一个消息时,生成该消息的过程可以如下:Please refer to FIG. 9 , which shows another schematic diagram of message generation related to the embodiment of the present application. As shown in Figure 9, when the message initiator (ie, the above-mentioned message sending device) initiates a message, the process of generating the message can be as follows:
S91,获取加密秘钥、Session ID、目的地设备ID、Session Type标识。S91, obtain the encryption key, Session ID, destination device ID, and Session Type identifier.
S92,获取Message Counter。S92, obtain the Message Counter.
S93,生成消息,设定消息格式的中Session ID。S93, generate a message and set the Session ID in the message format.
S94,如果Session Type为0(表示Unicast Session),则S Flag和DSIZ Flag设定为0,表示在该消息中后面不会出现Source Node ID和Destination Node ID字段。S94, if Session Type is 0 (indicating Unicast Session), then S Flag and DSIZ Flag are set to 0, indicating that the Source Node ID and Destination Node ID fields will not appear later in the message.
S95,如果Session Type为1(表示Group Session),则判定protocol ID的值是否为0x0000(表示安全通道协议Secure Channel Protocol),以及Opcode是否为MCSP会话消息,如果否,则进入S96,如果是, 进入S97。S95, if Session Type is 1 (indicating Group Session), determine whether the value of protocol ID is 0x0000 (indicating Secure Channel Protocol), and whether the Opcode is an MCSP session message. If not, enter S96. If so, Enter S97.
S96,设定S Flag=1,DSIZ Flag=2,表示在该消息中后面会出现Source Node ID和Destination Node ID字段。Source Node ID指定为消息发起方的Node ID,Destination Node ID设定为Group ID。S96, set S Flag = 1, DSIZ Flag = 2, indicating that the Source Node ID and Destination Node ID fields will appear later in the message. The Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Group ID.
S97,设定S Flag=1,DSIZ Flag=1,表示在该消息中后面会出现Source Node ID和Destination Node ID字段。Source Node ID指定为消息发起方的Node ID,Destination Node ID设定为前序发送广播消息的设备的Node ID。S97, set S Flag = 1, DSIZ Flag = 1, indicating that the Source Node ID and Destination Node ID fields will appear later in the message. The Source Node ID is specified as the Node ID of the message initiator, and the Destination Node ID is set as the Node ID of the device that sends the broadcast message in the preamble.
S98,设定Message Counter。并加密Application Payload。S98, set Message Counter. And encrypt the Application Payload.
本申请实施例所示的方案,使用通用的,与单播会话消息和组播会话消息统一的方案处理MCSP会话消息。The solution shown in the embodiment of this application uses a universal solution that is unified with unicast session messages and multicast session messages to process MCSP session messages.
综上所述,在本申请实施例中,消息发送设备在生成第一消息的过程中,当确认第一消息是MCSP会话消息时,可以设置第一消息的第一参数为第一参数值,同时将第一消息的接收节点的标识信息设置为第一字段中的第一字段值,使得接收到第一消息的设备可以根据第一消息中的第一参数和第一字段,快速确定该第一消息的目的设备,从而提高MCSP会话消息的传输效率。To sum up, in the embodiment of the present application, when the message sending device generates the first message and confirms that the first message is an MCSP session message, the first parameter of the first message can be set to the first parameter value, At the same time, the identification information of the receiving node of the first message is set to the first field value in the first field, so that the device that receives the first message can quickly determine the first parameter and the first field in the first message. The destination device of a message, thereby improving the transmission efficiency of MCSP session messages.
请参考图10,其示出了本申请一个实施例提供的消息处理装置的框图。该消息处理装置1000具有实现上述图4或图6所示的方法中,由消息发送设备执行的功能。如图10所示,该装置可以包括:Please refer to Figure 10, which shows a block diagram of a message processing device provided by an embodiment of the present application. The message processing device 1000 has the function of being executed by the message sending device in implementing the method shown in FIG. 4 or FIG. 6 . As shown in Figure 10, the device may include:
获取模块1001,用于获取第一消息的消息类型指示信息;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息;The acquisition module 1001 is used to obtain the message type indication information of the first message; the message type indicated by the message type indication information includes a unicast session message, a multicast session message or a message count synchronization protocol MCSP session message;
生成模块1002,用于根据所述消息类型指示信息设置第一消息中的第一参数的参数值,以生成与所述消息类型指示信息对应的所述第一消息; Generating module 1002, configured to set the parameter value of the first parameter in the first message according to the message type indication information, so as to generate the first message corresponding to the message type indication information;
其中,不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists When, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first Identification information of the receiving node of the message.
在一种可能的实现方式中,所述生成模块,用于在所述消息类型指示信息指示的消息类型是消息计数同步协议MCSP会话消息的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息;In a possible implementation, the generating module is configured to set the first parameter in the first message when the message type indicated by the message type indication information is a Message Count Synchronization Protocol MCSP session message. is the first parameter value, and sets the first field in the first message to the first field value to generate the first message;
其中,所述第一参数值用于指示所述第一消息中存在所述第一字段,且所述第一字段的字段值是所述第一消息的接收节点的标识信息。Wherein, the first parameter value is used to indicate the presence of the first field in the first message, and the field value of the first field is the identification information of the receiving node of the first message.
在一种可能的实现方式中,所述消息类型指示信息包括会话类型标识信息。In a possible implementation, the message type indication information includes session type identification information.
在一种可能的实现方式中,所述生成模块1002,用于在所述会话类型标识信息为MCSP会话标识的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息。In a possible implementation, the generating module 1002 is configured to set the first parameter in the first message to a first parameter value when the session type identification information is an MCSP session identification, and Set the first field in the first message to a first field value to generate the first message.
在一种可能的实现方式中,所述在生成模块1002,用于,In a possible implementation, the generation module 1002 is used to:
在所述会话类型标识信息为组播会话标识的情况下,获取所述第一消息的消息类型识别信息;所述消息类型识别信息用于辅助识别所述第一消息的消息类型;When the session type identification information is a multicast session identification, obtain the message type identification information of the first message; the message type identification information is used to assist in identifying the message type of the first message;
在所述消息类型识别信息满足第一条件的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息。When the message type identification information satisfies the first condition, setting the first parameter in the first message to a first parameter value, and setting the first field in the first message to a first field value, to generate the first message.
在一种可能的实现方式中,所述消息类型指示信息包括以下信息中的至少一种:In a possible implementation, the message type indication information includes at least one of the following information:
协议标识信息,以及,操作码。Protocol identification information, and, opcodes.
在一种可能的实现方式中,在所述消息类型指示信息包括所述协议标识信息的情况下,所述第一条件包括:In a possible implementation, when the message type indication information includes the protocol identification information, the first condition includes:
所述协议标识信息指示所述第一消息对应的协议为安全通道协议。The protocol identification information indicates that the protocol corresponding to the first message is a secure channel protocol.
在一种可能的实现方式中,在所述消息类型指示信息包括所述操作码的情况下,所述第一条件包括:In a possible implementation, when the message type indication information includes the operation code, the first condition includes:
所述操作码指示所述第一消息为MCSP会话消息。The operation code indicates that the first message is an MCSP session message.
在一种可能的实现方式中,所述消息类型指示信息包括会话上下文信息。In a possible implementation, the message type indication information includes session context information.
在一种可能的实现方式中,所述生成模块1002,用于在所述会话上下文信息为MCSP会话上下文的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息。In a possible implementation, the generating module 1002 is configured to set the first parameter in the first message to a first parameter value when the session context information is an MCSP session context, and set The first field in the first message is a first field value to generate the first message.
在一种可能的实现方式中,所述装置还包括:In a possible implementation, the device further includes:
设置模块,用于在所述会话上下文信息为MCSP会话上下文的情况下,设置所述第一消息的会话类型标识信息为组播会话标识。A setting module configured to set the session type identification information of the first message to a multicast session identification when the session context information is an MCSP session context.
在一种可能的实现方式中,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;In a possible implementation, the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message;
所述第一参数值为1,且所述第一字段值为所述第一消息的消息接收方的节点标识Node ID。The first parameter value is 1, and the first field value is the node ID of the message recipient of the first message.
在一种可能的实现方式中,所述生成模块1002,还用于在所述消息类型指示信息指示的消息类型是MCSP会话消息的情况下,设置所述第一消息中的第二参数为第二参数值,并设置所述第一消息中的第二字段为第二字段值;In a possible implementation, the generating module 1002 is further configured to set the second parameter in the first message to the first message when the message type indicated by the message type indication information is an MCSP session message. two parameter values, and set the second field in the first message to the second field value;
其中,所述第二参数值用于指示所述第一消息中存在所述第二字段,且所述第二字段的字段值是所述第一消息的发送节点的标识信息。Wherein, the second parameter value is used to indicate the presence of the second field in the first message, and the field value of the second field is the identification information of the sending node of the first message.
在一种可能的实现方式中,所述第二参数是所述第一消息中的S标签;所述第二字段是所述第一消息中的源节点标识字段;In a possible implementation, the second parameter is the S tag in the first message; the second field is the source node identification field in the first message;
所述第二参数值为1,且所述第二字段值为所述消息发送设备的节点标识。The second parameter value is 1, and the second field value is the node identifier of the message sending device.
在一种可能的实现方式中,所述生成模块1002,还用于在所述消息类型指示信息指示的消息类型是组播会话消息的情况下,设置所述第一消息中的第一参数为第三参数值,并设置所述第一消息中的第一字段为第三字段值;In a possible implementation, the generating module 1002 is further configured to set the first parameter in the first message to be when the message type indicated by the message type indication information is a multicast session message. A third parameter value, and setting the first field in the first message to a third field value;
其中,所述第三参数值用于指示所述第一消息中存在所述第一字段,且所述第一字段的字段值是所述第一消息的消息接收方所属的节点组的标识信息。Wherein, the third parameter value is used to indicate the presence of the first field in the first message, and the field value of the first field is the identification information of the node group to which the message recipient of the first message belongs. .
在一种可能的实现方式中,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;In a possible implementation, the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message;
所述第三参数值为2,且所述第三字段值为所述第一消息的消息接收方的组标识。The third parameter value is 2, and the third field value is the group identifier of the message recipient of the first message.
请参考图11,其示出了本申请一个实施例提供的消息处理装置的框图。该消息处理装置1100具有实现上述图5或图6所示的方法中,由消息接收设备执行的功能。如图11所示,该装置可以包括:Please refer to Figure 11, which shows a block diagram of a message processing device provided by an embodiment of the present application. The message processing device 1100 has the function of being executed by the message receiving device in implementing the method shown in FIG. 5 or FIG. 6 . As shown in Figure 11, the device may include:
接收模块1101,用于接收第一消息; Receiving module 1101, used to receive the first message;
解析模块1102,用于解析所述第一消息中的第一参数; Parsing module 1102, used to parse the first parameter in the first message;
获取模块1103,用于根据所述第一参数的参数值,执行对所述第一消息中的第一字段的字段值的获取步骤;The obtaining module 1103 is configured to perform the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter;
其中,第一参数的参数值是所述消息发送设备根据所述第一消息的消息类型指示信息设置的;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者MCSP会话消息;不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the message type indicated by the message type indication information includes unicast session message, multicast session message or MCSP Conversation message; different message types correspond to different parameter values of the first parameter; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and, when the first field exists, field, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the third Identification information of the receiving node of a message.
在一种可能的实现方式中,所述获取模块1103,用于在所述第一参数的参数值为第一参数值的情况下,将所述第一消息中的第一字段的第一字段值,获取为所述第一消息的接收节点的标识信息;In a possible implementation, the obtaining module 1103 is configured to obtain the first field of the first field in the first message when the parameter value of the first parameter is the first parameter value. The value is obtained as the identification information of the receiving node of the first message;
其中,所述第一参数值和所述第一字段值是消息发送设备在所述第一消息的消息类型是MCSP会话消息的情况下设置的。Wherein, the first parameter value and the first field value are set by the message sending device when the message type of the first message is an MCSP session message.
在一种可能的实现方式中,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;In a possible implementation, the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message;
所述第一参数值为1,且所述第一字段值为所述第一消息的消息接收方的节点标识Node ID。The first parameter value is 1, and the first field value is the node ID of the message recipient of the first message.
在一种可能的实现方式中,所述获取模块1003,还用于在所述第一参数的参数值为第三参数值的情况下,将所述第一消息中的第一字段的第三字段值,获取为所述第一消息的消息接收方所属的节点组的标识信息;In a possible implementation, the obtaining module 1003 is further configured to obtain the third parameter of the first field in the first message when the parameter value of the first parameter is a third parameter value. The field value is obtained as the identification information of the node group to which the message recipient of the first message belongs;
其中,所述第三参数值和所述第三字段值是所述消息发送设备在所述第一消息的消息类型是组播会话消息的情况下设置的。Wherein, the third parameter value and the third field value are set by the message sending device when the message type of the first message is a multicast session message.
在一种可能的实现方式中,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;In a possible implementation, the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message;
所述第三参数值为2,且所述第三字段值为所述第一消息的消息接收方的组标识。The third parameter value is 2, and the third field value is the group identifier of the message recipient of the first message.
需要说明的一点是,上述实施例提供的装置在实现其功能时,仅以上述各个功能模块的划分进行举例说明,实际应用中,可以根据实际需要而将上述功能分配由不同的功能模块完成,即将设备的内容结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。It should be noted that when the device provided in the above embodiment implements its functions, only the division of the above functional modules is used as an example. In practical applications, the above functions can be allocated to different functional modules according to actual needs. That is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above.
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the devices in the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments related to the method, and will not be described in detail here.
请参考图12,其示出了本申请一个实施例提供的计算机设备1200的结构示意图。该计算机设备1200可以包括:处理器1201、接收器1202、发射器1203、存储器1204和总线1205。Please refer to Figure 12, which shows a schematic structural diagram of a computer device 1200 provided by an embodiment of the present application. The computer device 1200 may include a processor 1201, a receiver 1202, a transmitter 1203, a memory 1204, and a bus 1205.
处理器1201包括一个或者一个以上处理核心,处理器1201通过运行软件程序以及模块,从而执行各种功能应用以及信息处理。The processor 1201 includes one or more processing cores. The processor 1201 executes various functional applications and information processing by running software programs and modules.
接收器1202和发射器1203可以实现为一个通信组件,该通信组件可以是一块通信芯片。该通信芯片也可以称为收发器。The receiver 1202 and the transmitter 1203 can be implemented as a communication component, and the communication component can be a communication chip. This communication chip can also be called a transceiver.
存储器1204通过总线1205与处理器1201相连。 Memory 1204 is connected to processor 1201 through bus 1205.
存储器1204可用于存储计算机程序,处理器1201用于执行该计算机程序,以实现上述方法实施例中的各个步骤。The memory 1204 can be used to store a computer program, and the processor 1201 is used to execute the computer program to implement various steps in the above method embodiments.
此外,存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,易失性或非易失性存储设备包括但不限于:磁盘或光盘,电可擦除可编程只读存储器,可擦除可编程只读存储器,静态随时存取存储器,只读存储器,磁存储器,快闪存储器,可编程只读存储器。Additionally, memory 1204 may be implemented by any type of volatile or non-volatile storage device, or combination thereof, including but not limited to: magnetic or optical disks, electrically erasable programmable Read-only memory, erasable programmable read-only memory, static ready-access memory, read-only memory, magnetic memory, flash memory, programmable read-only memory.
在一个示例性的方案中,当计算机设备1200实现为消息发送设备时,所述收处理器,用于获取第一消息的消息类型指示信息;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息;根据所述消息类型指示信息设置第一消息中的第一参数的参数值,以生成与所述消息类型指示信息对应的所述第一消息;其中,不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。In an exemplary solution, when the computer device 1200 is implemented as a message sending device, the receiving processor is configured to obtain the message type indication information of the first message; the message type indicated by the message type indication information includes unicast session message, multicast session message or message count synchronization protocol MCSP session message; set the parameter value of the first parameter in the first message according to the message type indication information to generate the third parameter corresponding to the message type indication information. A message; wherein the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists, When it is the first field, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the Identification information of the receiving node of the first message.
其中,上述计算机设备1200中的处理器1201执行的过程可以参考上述图4或图6任一所示的方法中,由消息发送设备执行的各个步骤。The process executed by the processor 1201 in the computer device 1200 may refer to the various steps executed by the message sending device in the method shown in any one of the above-mentioned FIG. 4 or FIG. 6 .
在一个示例性的方案中,当计算机设备1200实现为消息接收设备时,所述收发器,用于接收第一消息。所述处理器,用于解析所述第一消息中的第一参数;根据所述第一参数的参数值,执行对所述第一消息中的第一字段的字段值的获取步骤;其中,第一参数的参数值是所述消息发送设备根据所述第一消息的消息类型指示信息设置的;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者MCSP会话消息;不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。In an exemplary solution, when the computer device 1200 is implemented as a message receiving device, the transceiver is used to receive the first message. The processor is configured to parse the first parameter in the first message; and perform the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter; wherein, The parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the message type indicated by the message type indication information includes unicast session message, multicast session message or MCSP session message. ; Different message types correspond to different parameter values of the first parameter; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists , the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first message The identification information of the receiving node.
其中,上述计算机设备1200中的处理器1201和/或收发器执行的过程可以参考上述图5或图6任一所示的方法中,由消息接收设备执行的各个步骤。The process performed by the processor 1201 and/or the transceiver in the computer device 1200 may refer to the various steps performed by the message receiving device in the method shown in either FIG. 5 or FIG. 6 .
本申请实施例还提供了一种计算机可读存储介质,所述存储介质中存储有计算机程序,所述计算机程序由处理器加载并执行以实现上述图4、图5或图6所示的方法中,由消息发送设备或者消息接收设备执行的全部或者部分步骤。Embodiments of the present application also provide a computer-readable storage medium. A computer program is stored in the storage medium. The computer program is loaded and executed by a processor to implement the method shown in Figure 4, Figure 5 or Figure 6. , all or part of the steps performed by the message sending device or the message receiving device.
本申请还提供了一种芯片,该芯片用于在计算机设备中运行,以使得计算机设备执行上述图4、图5或图6所示的方法中,由消息发送设备或者消息接收设备执行的全部或者部分步骤。This application also provides a chip, which is used to run in a computer device, so that the computer device performs all the steps performed by the message sending device or the message receiving device in the method shown in Figure 4, Figure 5 or Figure 6. Or some steps.
本申请还提供了一种计算机程序产品,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得计算机设备执行上述图4、图5或图6所示的方法中,由消息发送设备或者消息接收设备执行的全部或者部分步骤。The application also provides a computer program product, which computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the method shown in FIG. 4, FIG. 5 or FIG. 6, by the message sending device or the message receiving device. All or part of the steps performed by the device.
本申请还提供了一种计算机程序,该计算机程序由计算机设备的处理器执行,以实现上述图4、图5或图6所示的方法中,由消息发送设备或者消息接收设备执行的全部或者部分步骤。This application also provides a computer program, which is executed by the processor of the computer device to implement all or all of the steps executed by the message sending device or the message receiving device in the method shown in FIG. 4, FIG. 5 or FIG. 6. Some steps.
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请实施例所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。Those skilled in the art should realize that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. Storage media can be any available media that can be accessed by a general purpose or special purpose computer.
以上所述仅为本申请的示例性实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包括在本申请的保护范围之内。The above are only exemplary embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (47)

  1. 一种消息处理方法,其特征在于,所述方法由消息发送设备执行,所述方法包括:A message processing method, characterized in that the method is executed by a message sending device, and the method includes:
    获取消息类型指示信息;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息;Obtain message type indication information; the message type indicated by the message type indication information includes unicast session message, multicast session message or message count synchronization protocol MCSP session message;
    根据所述消息类型指示信息设置第一消息中的第一参数的参数值,以生成与所述消息类型指示信息对应的所述第一消息;Set the parameter value of the first parameter in the first message according to the message type indication information to generate the first message corresponding to the message type indication information;
    其中,不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists When, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first Identification information of the receiving node of the message.
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述消息类型指示信息设置第一消息中的第一参数的参数值,以生成与所述消息类型指示信息对应的所述第一消息,包括:The method of claim 1, wherein the parameter value of the first parameter in the first message is set according to the message type indication information to generate the first parameter value corresponding to the message type indication information. Messages, including:
    在所述消息类型指示信息指示的消息类型是MCSP会话消息的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息;When the message type indicated by the message type indication information is an MCSP session message, the first parameter in the first message is set to the first parameter value, and the first field in the first message is set to the first parameter value. a field value to generate the first message;
    其中,所述第一参数值用于指示所述第一消息中存在所述第一字段,且所述第一字段的字段值是所述第一消息的接收节点的标识信息。Wherein, the first parameter value is used to indicate the presence of the first field in the first message, and the field value of the first field is the identification information of the receiving node of the first message.
  3. 根据权利要求2所述的方法,其特征在于,所述消息类型指示信息包括会话类型标识信息。The method according to claim 2, characterized in that the message type indication information includes session type identification information.
  4. 根据权利要求3所述的方法,其特征在于,所述在所述消息类型指示信息指示消息类型是MCSP会话消息的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息,包括:The method according to claim 3, characterized in that, when the message type indication information indicates that the message type is an MCSP session message, setting the first parameter in the first message to a first parameter value, and setting the first field in the first message to the first field value to generate the first message, including:
    在所述会话类型标识信息为MCSP会话标识的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息。When the session type identification information is an MCSP session identification, setting the first parameter in the first message to a first parameter value, and setting the first field in the first message to a first field value, to generate the first message.
  5. 根据权利要求3所述的方法,其特征在于,所述在所述消息类型指示信息指示消息类型是消息计数同步协议MCSP会话消息的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息,包括:The method according to claim 3, characterized in that, when the message type indication information indicates that the message type is a message count synchronization protocol MCSP session message, the first parameter in the first message is set to the first A parameter value, and setting the first field in the first message to the first field value to generate the first message, including:
    在所述会话类型标识信息为组播会话标识的情况下,获取所述第一消息的消息类型识别信息;所述消息类型识别信息用于识别所述第一消息的消息类型;When the session type identification information is a multicast session identification, obtain the message type identification information of the first message; the message type identification information is used to identify the message type of the first message;
    在所述消息类型识别信息满足第一条件的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息。When the message type identification information satisfies the first condition, setting the first parameter in the first message to a first parameter value, and setting the first field in the first message to a first field value, to generate the first message.
  6. 根据权利要求5所述的方法,其特征在于,所述消息类型指示信息包括以下信息中的至少一种:The method according to claim 5, characterized in that the message type indication information includes at least one of the following information:
    协议标识信息,以及,操作码。Protocol identification information, and, opcodes.
  7. 根据权利要求6所述的方法,其特征在于,在所述消息类型指示信息包括所述协议标识信息的情况下,所述第一条件包括:The method according to claim 6, characterized in that, in the case where the message type indication information includes the protocol identification information, the first condition includes:
    所述协议标识信息指示所述第一消息对应的协议为安全通道协议。The protocol identification information indicates that the protocol corresponding to the first message is a secure channel protocol.
  8. 根据权利要求6所述的方法,其特征在于,在所述消息类型指示信息包括所述操作码的情况下,所述第一条件包括:The method of claim 6, wherein when the message type indication information includes the operation code, the first condition includes:
    所述操作码指示所述第一消息为MCSP会话消息。The operation code indicates that the first message is an MCSP session message.
  9. 根据权利要求2所述的方法,其特征在于,所述消息类型指示信息包括会话上下文信息。The method of claim 2, wherein the message type indication information includes session context information.
  10. 根据权利要求9所述的方法,其特征在于,所述在所述消息类型指示信息指示的消息类型是MCSP会话消息的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息,包括:The method according to claim 9, characterized in that, when the message type indicated by the message type indication information is an MCSP session message, setting the first parameter in the first message to a first parameter value , and set the first field in the first message to the first field value to generate the first message, including:
    在所述会话上下文信息为MCSP会话上下文的情况下,设置所述第一消息中的第一参数为第一参数 值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息。When the session context information is an MCSP session context, the first parameter in the first message is set to a first parameter value, and the first field in the first message is set to a first field value, so as to Generate the first message.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, further comprising:
    在所述会话上下文信息为MCSP会话上下文的情况下,设置所述第一消息的会话类型标识信息为组播会话标识。When the session context information is an MCSP session context, the session type identification information of the first message is set to a multicast session identification.
  12. 根据权利要求2至11任一所述的方法,其特征在于,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;The method according to any one of claims 2 to 11, characterized in that the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message. ;
    所述第一参数值为1,且所述第一字段值为所述第一消息的消息接收方的节点标识。The first parameter value is 1, and the first field value is the node identifier of the message recipient of the first message.
  13. 根据权利要求1至12任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 12, characterized in that the method further includes:
    在所述消息类型指示信息指示的消息类型是MCSP会话消息的情况下,设置所述第一消息中的第二参数为第二参数值,并设置所述第一消息中的第二字段为第二字段值;When the message type indicated by the message type indication information is an MCSP session message, the second parameter in the first message is set to a second parameter value, and the second field in the first message is set to a second parameter value. Two field values;
    其中,所述第二参数值用于指示所述第一消息中存在所述第二字段,且所述第二字段的字段值是所述第一消息的发送节点的标识信息。Wherein, the second parameter value is used to indicate the presence of the second field in the first message, and the field value of the second field is the identification information of the sending node of the first message.
  14. 根据权利要求13所述的方法,其特征在于,所述第二参数是所述第一消息的S标签;所述第二字段是所述第一消息中的源节点标识字段;The method according to claim 13, characterized in that the second parameter is the S tag of the first message; the second field is the source node identification field in the first message;
    所述第二参数值为1,且所述第二字段值为所述消息发送设备的节点标识。The second parameter value is 1, and the second field value is the node identifier of the message sending device.
  15. 根据权利要求1至14任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 14, characterized in that the method further includes:
    在所述消息类型指示信息指示的消息类型是组播会话消息的情况下,设置所述第一消息中的第一参数为第三参数值,并设置所述第一消息中的第一字段为第三字段值;When the message type indicated by the message type indication information is a multicast session message, the first parameter in the first message is set to a third parameter value, and the first field in the first message is set to The third field value;
    其中,所述第三参数值用于指示所述第一消息中存在所述第一字段,且所述第一字段的字段值是所述第一消息的消息接收方所属的节点组的标识信息。Wherein, the third parameter value is used to indicate the presence of the first field in the first message, and the field value of the first field is the identification information of the node group to which the message recipient of the first message belongs. .
  16. 根据权利要求15所述的方法,其特征在于,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;The method according to claim 15, characterized in that the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message;
    所述第三参数值为2,且所述第三字段值为所述第一消息的消息接收方的组标识。The third parameter value is 2, and the third field value is the group identifier of the message recipient of the first message.
  17. 一种消息处理方法,其特征在于,所述方法由消息接收设备执行,所述方法包括:A message processing method, characterized in that the method is executed by a message receiving device, and the method includes:
    接收第一消息;receive the first message;
    解析所述第一消息中的第一参数;Parse the first parameter in the first message;
    根据所述第一参数的参数值,执行对所述第一消息中的第一字段的字段值的获取步骤;According to the parameter value of the first parameter, perform the step of obtaining the field value of the first field in the first message;
    其中,第一参数的参数值是所述消息发送设备根据所述第一消息的消息类型指示信息设置的;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者MCSP会话消息;不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the message type indicated by the message type indication information includes unicast session message, multicast session message or MCSP Conversation message; different message types correspond to different parameter values of the first parameter; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and, when the first field exists, field, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the third Identification information of the receiving node of a message.
  18. 根据权利要求17所述的方法,其特征在于,所述根据所述第一参数的参数值,执行对所述第一消息中的第一字段的字段值的获取步骤,包括:The method according to claim 17, wherein the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter includes:
    在所述第一参数的参数值为第一参数值的情况下,将所述第一消息中的第一字段的第一字段值,获取为所述第一消息的接收节点的标识信息;When the parameter value of the first parameter is the first parameter value, obtain the first field value of the first field in the first message as the identification information of the receiving node of the first message;
    其中,所述第一参数值和所述第一字段值是所述消息发送设备在所述第一消息的消息类型是MCSP会话消息的情况下设置的。Wherein, the first parameter value and the first field value are set by the message sending device when the message type of the first message is an MCSP session message.
  19. 根据权利要求18所述的方法,其特征在于,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;The method according to claim 18, characterized in that the first parameter is the DSIZ label in the first message; the first field is the destination node identification field in the first message;
    所述第一参数值为1,且所述第一字段值为所述第一消息的消息接收方的节点标识Node ID。The first parameter value is 1, and the first field value is the node ID of the message recipient of the first message.
  20. 根据权利要求17至19任一所述的方法,其特征在于,所述根据所述第一参数的参数值,执行对所述第一消息中的第一字段的字段值的获取步骤,包括:The method according to any one of claims 17 to 19, wherein the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter includes:
    在所述第一参数的参数值为第三参数值的情况下,将所述第一消息中的第一字段的第三字段值,获取为所述第一消息的消息接收方所属的节点组的标识信息;When the parameter value of the first parameter is a third parameter value, obtain the third field value of the first field in the first message as the node group to which the message recipient of the first message belongs. identification information;
    其中,所述第三参数值和所述第三字段值是所述消息发送设备在所述第一消息的消息类型是组播会话消息的情况下设置的。Wherein, the third parameter value and the third field value are set by the message sending device when the message type of the first message is a multicast session message.
  21. 根据权利要求20所述的方法,其特征在于,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;The method of claim 20, wherein the first parameter is a DSIZ label in the first message; the first field is a destination node identification field in the first message;
    所述第三参数值为2,且所述第三字段值为所述第一消息的消息接收方的组标识。The third parameter value is 2, and the third field value is the group identifier of the message recipient of the first message.
  22. 一种消息处理装置,其特征在于,所述装置包括:A message processing device, characterized in that the device includes:
    获取模块,用于获取消息类型指示信息;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者消息计数同步协议MCSP会话消息;An acquisition module, configured to acquire message type indication information; the message types indicated by the message type indication information include unicast session messages, multicast session messages or message count synchronization protocol MCSP session messages;
    生成模块,用于根据所述消息类型指示信息设置第一消息中的第一参数的参数值,以生成与所述消息类型指示信息对应的所述第一消息;A generating module configured to set the parameter value of the first parameter in the first message according to the message type indication information, so as to generate the first message corresponding to the message type indication information;
    其中,不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter corresponding to different message types is different; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and when the first field exists When, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the first Identification information of the receiving node of the message.
  23. 根据权利要求22所述的方法,其特征在于,The method according to claim 22, characterized in that:
    所述生成模块,用于在所述消息类型指示信息指示的消息类型是MCSP会话消息的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息;The generating module is configured to, when the message type indicated by the message type indication information is an MCSP session message, set the first parameter in the first message to a first parameter value, and set the first message The first field in is the first field value to generate the first message;
    其中,所述第一参数值用于指示所述第一消息中存在所述第一字段,且所述第一字段的字段值是所述第一消息的接收节点的标识信息。Wherein, the first parameter value is used to indicate the presence of the first field in the first message, and the field value of the first field is the identification information of the receiving node of the first message.
  24. 根据权利要求23所述的装置,其特征在于,所述消息类型指示信息包括会话类型标识信息。The device according to claim 23, wherein the message type indication information includes session type identification information.
  25. 根据权利要求24所述的装置,其特征在于,所述生成模块,用于在所述会话类型标识信息为MCSP会话标识的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息。The device according to claim 24, wherein the generating module is configured to set the first parameter in the first message to be the first parameter when the session type identification information is an MCSP session identification. value, and set the first field in the first message to the first field value to generate the first message.
  26. 根据权利要求24所述的装置,其特征在于,所述在生成模块,用于,The device according to claim 24, characterized in that the generating module is used to:
    在所述会话类型标识信息为组播会话标识的情况下,获取所述第一消息的消息类型识别信息;所述消息类型识别信息用于辅助识别所述第一消息的消息类型;When the session type identification information is a multicast session identification, obtain the message type identification information of the first message; the message type identification information is used to assist in identifying the message type of the first message;
    在所述消息类型识别信息满足第一条件的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段为第一字段值,以生成所述第一消息。When the message type identification information satisfies the first condition, setting the first parameter in the first message to a first parameter value, and setting the first field in the first message to a first field value, to generate the first message.
  27. 根据权利要求26所述的装置,其特征在于,所述消息类型指示信息包括以下信息中的至少一种:The device according to claim 26, wherein the message type indication information includes at least one of the following information:
    协议标识信息,以及,操作码。Protocol identification information, and, opcodes.
  28. 根据权利要求27所述的装置,其特征在于,在所述消息类型指示信息包括所述协议标识信息的情况下,所述第一条件包括:The device according to claim 27, wherein when the message type indication information includes the protocol identification information, the first condition includes:
    所述协议标识信息指示所述第一消息对应的协议为安全通道协议。The protocol identification information indicates that the protocol corresponding to the first message is a secure channel protocol.
  29. 根据权利要求27所述的装置,其特征在于,在所述消息类型指示信息包括所述操作码的情况下,所述第一条件包括:The device according to claim 27, wherein when the message type indication information includes the operation code, the first condition includes:
    所述操作码指示所述第一消息为MCSP会话消息。The operation code indicates that the first message is an MCSP session message.
  30. 根据权利要求23所述的装置,其特征在于,所述消息类型指示信息包括会话上下文信息。The apparatus according to claim 23, wherein the message type indication information includes session context information.
  31. 根据权利要求30所述的装置,其特征在于,所述生成模块,用于在所述会话上下文信息为MCSP会话上下文的情况下,设置所述第一消息中的第一参数为第一参数值,并设置所述第一消息中的第一字段 为第一字段值,以生成所述第一消息。The device according to claim 30, wherein the generating module is configured to set the first parameter in the first message to a first parameter value when the session context information is an MCSP session context. , and set the first field in the first message to the first field value to generate the first message.
  32. 根据权利要求31所述的装置,其特征在于,所述装置还包括:The device of claim 31, further comprising:
    设置模块,用于在所述会话上下文信息为MCSP会话上下文的情况下,设置所述第一消息的会话类型标识信息为组播会话标识。A setting module configured to set the session type identification information of the first message to a multicast session identification when the session context information is an MCSP session context.
  33. 根据权利要求23至32任一所述的装置,其特征在于,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;The device according to any one of claims 23 to 32, characterized in that the first parameter is a DSIZ label in the first message; the first field is a destination node identification field in the first message. ;
    所述第一参数值为1,且所述第一字段值为所述第一消息的消息接收方的节点标识Node ID。The first parameter value is 1, and the first field value is the node ID of the message recipient of the first message.
  34. 根据权利要求22至33任一所述的装置,其特征在于,所述生成模块,还用于在所述消息类型指示信息指示的消息类型是MCSP会话消息的情况下,设置所述第一消息中的第二参数为第二参数值,并设置所述第一消息中的第二字段为第二字段值;The device according to any one of claims 22 to 33, characterized in that the generating module is further configured to set the first message when the message type indicated by the message type indication information is an MCSP session message. The second parameter in is the second parameter value, and the second field in the first message is set to the second field value;
    其中,所述第二参数值用于指示所述第一消息中存在所述第二字段,且所述第二字段的字段值是所述第一消息的发送节点的标识信息。Wherein, the second parameter value is used to indicate the presence of the second field in the first message, and the field value of the second field is the identification information of the sending node of the first message.
  35. 根据权利要求34所述的装置,其特征在于,所述第二参数是所述第一消息中的S标签;所述第二字段是所述第一消息中的源节点标识字段;The device according to claim 34, wherein the second parameter is the S tag in the first message; the second field is the source node identification field in the first message;
    所述第二参数值为1,且所述第二字段值为所述消息发送设备的节点标识Node ID。The second parameter value is 1, and the second field value is the node ID of the message sending device.
  36. 根据权利要求22至35任一所述的装置,其特征在于,所述生成模块,还用于在所述消息类型指示信息指示的消息类型是组播会话消息的情况下,设置所述第一消息中的第一参数为第三参数值,并设置所述第一消息中的第一字段为第三字段值;The device according to any one of claims 22 to 35, characterized in that the generating module is further configured to set the first message type when the message type indicated by the message type indication information is a multicast session message. The first parameter in the message is the third parameter value, and the first field in the first message is set to the third field value;
    其中,所述第三参数值用于指示所述第一消息中存在所述第一字段,且所述第一字段的字段值是所述第一消息的消息接收方所属的节点组的标识信息。Wherein, the third parameter value is used to indicate the presence of the first field in the first message, and the field value of the first field is the identification information of the node group to which the message recipient of the first message belongs. .
  37. 根据权利要求36所述的装置,其特征在于,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;The device according to claim 36, wherein the first parameter is a DSIZ label in the first message; the first field is a destination node identification field in the first message;
    所述第三参数值为2,且所述第三字段值为所述第一消息的消息接收方的组标识。The third parameter value is 2, and the third field value is the group identifier of the message recipient of the first message.
  38. 一种消息处理装置,其特征在于,所述装置包括:A message processing device, characterized in that the device includes:
    接收模块,用于接收第一消息;A receiving module, used to receive the first message;
    解析模块,用于解析所述第一消息中的第一参数;A parsing module, used to parse the first parameter in the first message;
    获取模块,用于根据所述第一参数的参数值,执行对所述第一消息中的第一字段的字段值的获取步骤;An obtaining module, configured to perform the step of obtaining the field value of the first field in the first message according to the parameter value of the first parameter;
    其中,第一参数的参数值是所述消息发送设备根据所述第一消息的消息类型指示信息设置的;所述消息类型指示信息指示的消息类型包括单播会话消息、组播会话消息或者MCSP会话消息;不同的消息类型对应的所述第一参数的参数值不同;所述第一参数的参数值用于指示所述第一消息中是否存在第一字段,并且,当存在所述第一字段时,所述第一参数的参数值还用于指示所述第一字段的字段值的标识类型;所述标识类型包括所述第一消息的接收节点组的标识信息,或者,所述第一消息的接收节点的标识信息。Wherein, the parameter value of the first parameter is set by the message sending device according to the message type indication information of the first message; the message type indicated by the message type indication information includes unicast session message, multicast session message or MCSP Conversation message; different message types correspond to different parameter values of the first parameter; the parameter value of the first parameter is used to indicate whether the first field exists in the first message, and, when the first field exists, field, the parameter value of the first parameter is also used to indicate the identification type of the field value of the first field; the identification type includes the identification information of the receiving node group of the first message, or the third Identification information of the receiving node of a message.
  39. 根据权利要求38所述的方法,其特征在于,The method according to claim 38, characterized in that:
    所述获取模块,用于在所述第一参数的参数值为第一参数值的情况下,将所述第一消息中的第一字段的第一字段值,获取为所述第一消息的接收节点的标识信息;The obtaining module is configured to obtain the first field value of the first field in the first message as the first field value of the first message when the parameter value of the first parameter is the first parameter value. Receive the identification information of the node;
    其中,所述第一参数值和所述第一字段值是消息发送设备在所述第一消息的消息类型是MCSP会话消息的情况下设置的。Wherein, the first parameter value and the first field value are set by the message sending device when the message type of the first message is an MCSP session message.
  40. 根据权利要求39所述的装置,其特征在于,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;The device according to claim 39, wherein the first parameter is a DSIZ label in the first message; the first field is a destination node identification field in the first message;
    所述第一参数值为1,且所述第一字段值为所述第一消息的消息接收方的节点标识Node ID。The first parameter value is 1, and the first field value is the node ID of the message recipient of the first message.
  41. 根据权利要求38至40任一所述的装置,其特征在于,所述获取模块,还用于在所述第一参数的参数值为第三参数值的情况下,将所述第一消息中的第一字段的第三字段值,获取为所述第一消息的消息接收方所属的节点组的标识信息;The device according to any one of claims 38 to 40, characterized in that the acquisition module is further configured to obtain the first message in the case where the parameter value of the first parameter is a third parameter value. The third field value of the first field is obtained as the identification information of the node group to which the message recipient of the first message belongs;
    其中,所述第三参数值和所述第三字段值是所述消息发送设备在所述第一消息的消息类型是组播会话消息的情况下设置的。Wherein, the third parameter value and the third field value are set by the message sending device when the message type of the first message is a multicast session message.
  42. 根据权利要求41所述的装置,其特征在于,所述第一参数是所述第一消息中的DSIZ标签;所述第一字段是所述第一消息中的目的节点标识字段;The device according to claim 41, wherein the first parameter is a DSIZ label in the first message; the first field is a destination node identification field in the first message;
    所述第三参数值为2,且所述第三字段值为所述第一消息的消息接收方的组标识。The third parameter value is 2, and the third field value is the group identifier of the message recipient of the first message.
  43. 一种计算机设备,其特征在于,所述计算机设备包括处理器、存储器和收发器;A computer device, characterized in that the computer device includes a processor, a memory and a transceiver;
    所述存储器中存储有计算机程序,所述处理器执行所述计算机程序,以使得所述计算机设备实现如上述权利要求1至21任一所述的消息处理方法。A computer program is stored in the memory, and the processor executes the computer program, so that the computer device implements the message processing method as described in any one of claims 1 to 21.
  44. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有计算机程序,所述计算机程序用于被处理器执行,以实现如权利要求1至21任一所述的消息处理方法。A computer-readable storage medium, characterized in that a computer program is stored in the storage medium, and the computer program is used to be executed by a processor to implement the message processing method according to any one of claims 1 to 21.
  45. 一种芯片,其特征在于,所述芯片用于在计算机设备中运行,以使得所述计算机设备执行如权利要求1至21任一所述的消息处理方法。A chip, characterized in that the chip is used to run in a computer device, so that the computer device executes the message processing method according to any one of claims 1 to 21.
  46. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中;计算机设备的处理器从所述计算机可读存储介质读取所述计算机指令,并执行所述计算机指令,使得所述计算机设备执行如权利要求1至21任一所述的消息处理方法。A computer program product, characterized in that the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; and a processor of a computer device reads the computer instructions from the computer-readable storage medium. instructions, and execute the computer instructions, so that the computer device executes the message processing method according to any one of claims 1 to 21.
  47. 一种计算机程序,其特征在于,所述计算机程序由计算机设备的处理器执行,以实现如权利要求1至21任一所述的消息处理方法。A computer program, characterized in that the computer program is executed by a processor of a computer device to implement the message processing method according to any one of claims 1 to 21.
PCT/CN2022/103763 2022-07-04 2022-07-04 Message processing methods and apparatuses, and device, storage medium and program product WO2024007137A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/103763 WO2024007137A1 (en) 2022-07-04 2022-07-04 Message processing methods and apparatuses, and device, storage medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/103763 WO2024007137A1 (en) 2022-07-04 2022-07-04 Message processing methods and apparatuses, and device, storage medium and program product

Publications (1)

Publication Number Publication Date
WO2024007137A1 true WO2024007137A1 (en) 2024-01-11

Family

ID=89454740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/103763 WO2024007137A1 (en) 2022-07-04 2022-07-04 Message processing methods and apparatuses, and device, storage medium and program product

Country Status (1)

Country Link
WO (1) WO2024007137A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113163341A (en) * 2020-01-22 2021-07-23 北京三星通信技术研究有限公司 Method and apparatus for transmitting data in wireless communication system
WO2021206952A1 (en) * 2020-04-08 2021-10-14 Idac Holdings, Inc. Nr v2x sidelink power saving for unicast and/or groupcast
US20220086685A1 (en) * 2018-10-08 2022-03-17 Samsung Electronics Co., Ltd. Apparatus and method for supporting unicast transmission between user equipments in wireless communication system
WO2022062928A1 (en) * 2020-09-22 2022-03-31 华为技术有限公司 Broadcast-based unicast session method and apparatus

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220086685A1 (en) * 2018-10-08 2022-03-17 Samsung Electronics Co., Ltd. Apparatus and method for supporting unicast transmission between user equipments in wireless communication system
CN113163341A (en) * 2020-01-22 2021-07-23 北京三星通信技术研究有限公司 Method and apparatus for transmitting data in wireless communication system
WO2021206952A1 (en) * 2020-04-08 2021-10-14 Idac Holdings, Inc. Nr v2x sidelink power saving for unicast and/or groupcast
WO2022062928A1 (en) * 2020-09-22 2022-03-31 华为技术有限公司 Broadcast-based unicast session method and apparatus

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: "Key features of matter protocol_The difference between matter over thread and matter over wifi-CSDN Blog", 26 February 2022 (2022-02-26), XP093126292, Retrieved from the Internet <URL:https://blog.csdn.net/liwuxing/article/details/123156547> *

Similar Documents

Publication Publication Date Title
US10965473B2 (en) Smart object identification in the digital home
KR100605196B1 (en) Home network system
CN105471686B (en) Terminal control method, device and system
CN105577736B (en) A kind of electric line carrier communication terminal control mechanism, system and method
US7984117B2 (en) Networking method and apparatus
US20110314163A1 (en) Wireless communication network for smart appliances
CN113411215B (en) Time-sensitive network centralized user configuration method and system based on OPC UA
JP4818434B2 (en) Address allocation method for intelligent information appliance and its sub-equipment in home network
CN105049495B (en) Method for discovering equipment, apparatus and system
CN104426750A (en) Method, equipment and system for instant messaging
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
CN113965904A (en) Device registration method, device and storage medium
WO2024007137A1 (en) Message processing methods and apparatuses, and device, storage medium and program product
EP4135265A1 (en) Method and apparatus for controlling device in internet of things, and gateway device and storage medium
WO2021102694A1 (en) Ble mesh device access method and apparatus, device and storage medium
CN116567457A (en) Method for binding ONU equipment by mobile equipment in local area network
MX2008012996A (en) Method and apparatus of communication between embedded cable modem and embedded set-top box.
CN110891273B (en) Wireless transparent transmission module interconnection and intercommunication method based on ZigBee3.0
WO2022042254A1 (en) Method and apparatus for sending broadcast message, method and apparatus for receiving broadcast message, and device and storage medium
WO2005094192A2 (en) Home network system
WO2024011634A1 (en) Subscription message processing method and apparatus, device, storage medium, and program product
CN107395584B (en) Method and equipment for realizing communication between equipment based on natural language
WO2023108653A1 (en) Subscription access information processing method and apparatus, computer device and storage medium
WO2024031682A1 (en) Device control method and apparatus, and device, storage medium and program product
WO2023184560A1 (en) Device sharing method and apparatus, device, storage medium, and program product

Legal Events

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

Ref document number: 22949727

Country of ref document: EP

Kind code of ref document: A1