WO2022073196A1 - 信息处理方法、装置及存储介质 - Google Patents
信息处理方法、装置及存储介质 Download PDFInfo
- Publication number
- WO2022073196A1 WO2022073196A1 PCT/CN2020/119995 CN2020119995W WO2022073196A1 WO 2022073196 A1 WO2022073196 A1 WO 2022073196A1 CN 2020119995 W CN2020119995 W CN 2020119995W WO 2022073196 A1 WO2022073196 A1 WO 2022073196A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- server device
- resource
- client device
- resource discovery
- security domain
- Prior art date
Links
- 230000010365 information processing Effects 0.000 title claims abstract description 52
- 238000003672 processing method Methods 0.000 title claims abstract description 34
- 230000004044 response Effects 0.000 claims abstract description 224
- 238000000034 method Methods 0.000 claims abstract description 69
- 238000012360 testing method Methods 0.000 claims abstract description 68
- 238000012545 processing Methods 0.000 claims description 43
- 238000004590 computer program Methods 0.000 claims description 27
- 238000004891 communication Methods 0.000 claims description 10
- 230000004043 responsiveness Effects 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 24
- 230000002452 interceptive effect Effects 0.000 description 16
- 230000008569 process Effects 0.000 description 16
- 230000007246 mechanism Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000011056 performance test Methods 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/12—Applying verification of the received information
- H04L63/126—Applying verification of the received information the source of the received data
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/20—Network architectures or network communication protocols for network security for managing network security; network security policies in general
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/24—Negotiation of communication capabilities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/40—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W24/00—Supervisory, monitoring or testing arrangements
- H04W24/08—Testing, supervising or monitoring using real traffic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
Definitions
- the embodiments of the present application relate to the technical field of the Internet of Things, and in particular, to an information processing method, an apparatus, and a storage medium.
- the Internet of Things Internet of Thinks, IoT
- IoT Internet of Everything
- Perception to achieve tracking, control and positioning of single-granularity items.
- the Open Connectivity Foundation (OCF) as a technical standard organization for the application layer of the Internet of Things, has formulated a service framework for the interconnection between devices in the Internet of Things.
- OCF Open Connectivity Foundation
- the entity that provides resources is a server device, and the entity that accesses resources can be a client device.
- the client device needs to perform resource discovery before performing operations such as creating, updating, and deleting the resources of the server device.
- the client device may not be able to discover the resources of the server device, thereby affecting subsequent business services.
- Embodiments of the present application provide an information processing method, apparatus, and storage medium, which are used to perform performance testing on server-side equipment to ensure that the server-side equipment that passes the test can provide subsequent business services.
- an embodiment of the present application provides an information processing method, including:
- the client device sends a first resource discovery request to the server device, where the first resource discovery request is used to request resource information and security domain information of the server device;
- the client device determines whether to receive a first resource discovery response message from the server device.
- an information processing apparatus including:
- a sending module configured to send a first resource discovery request to the server device, where the first resource discovery request is used to request resource information and security domain information of the server device;
- a processing module configured to determine whether a first resource discovery response message of the server device is received.
- an embodiment of the present application provides an information processing apparatus, including: a memory and a processor, where the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that The processor runs the computer program to perform the method of any one of the first aspects.
- an embodiment of the present application provides a computer storage medium for storing a computer program, and when the computer program runs on a computer, the computer causes the computer to execute the method according to any one of the first aspects.
- an embodiment of the present application provides a computer program, which, when executed by a processor, is used to execute the method according to any one of the first aspects.
- an embodiment of the present application provides a computer program product, which, when the computer program product runs on a computer, causes the computer to execute the method according to any one of the first aspects.
- an embodiment of the present application provides a chip, including: a processing module and a communication interface, the processing module is configured to call from a memory and run a computer program stored in the memory, and execute any one of the first aspects. method described in item.
- Embodiments of the present application provide an information processing method, device, and storage medium, which are used for testing resource discovery performance of a server device.
- the method includes: a client device sends a first resource discovery request to a server device, and the first resource The discovery request is used to request resource information and security domain information of the server device.
- the client device can determine the response capability of the server device to resource discovery according to whether the first resource response message of the server device is correctly received, so as to complete the service
- the test of the resource discovery performance of the terminal device ensures that the server device that passes the test can correctly respond to the resource discovery request, so as to avoid the subsequent business services being affected by the performance problem of the server device.
- FIG. 1 is a schematic structural diagram of an Internet of Things system applied in an embodiment of the present application
- FIG. 2 is an interactive schematic diagram of a resource discovery process provided by an embodiment of the present application
- FIG. 3 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application.
- FIG. 4 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application.
- FIG. 5 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application.
- FIG. 6 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application.
- FIG. 7 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application.
- FIG. 8 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application.
- FIG. 9 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application.
- FIG. 10 is a schematic structural diagram of an information processing apparatus provided by an embodiment of the present application.
- FIG. 11 is a schematic structural diagram of an information processing apparatus provided by an embodiment of the application.
- FIG. 12 is a schematic diagram of a hardware structure of an information processing apparatus according to an embodiment of the present application.
- FIG. 1 is a schematic structural diagram of an Internet of Things system to which an embodiment of the present application is applied.
- the IoT system includes a server device 11 and a plurality of client devices, such as client devices 12 to 14 in FIG. 1 .
- the server device 11 is connected to each client device, and each client device can be connected to each other (not shown in FIG. 1 ). It can be understood that there may be one or more server devices 11 , and FIG. 1 is only an example.
- the server device is the entity that the client device accesses resources. It can be data acquisition devices such as sensors or data acquisition cards, electrical components such as switches, sockets, or lamps, or smart air conditioners, washing machines, refrigerators, and speakers. or electronic equipment such as televisions. Of course, the above are only some possible examples of the server device, the server device may also be other resources that can be provided, and the embodiment of the present application does not impose any restrictions on the intelligent hardware device that implements the corresponding function service.
- the server device may be referred to as an OCF service device or entity, a resource entity, a resource provider or a resource device, and the like.
- the client device may be a terminal device installed with an OCF client, and the terminal device may be a desktop computer, a notebook computer, a personal digital assistant (Personal Digital Assistant, PDA for short), a smart phone, a tablet computer, and other devices.
- a client device may also be referred to as an OCF client device, user device, or client device, or the like.
- the client device can operate the resources of the server device by sending an operation request to the server device, such as creating, updating, deleting, etc., so as to realize the corresponding business. It should be noted that, before the client device operates the resources of the server device, the client device needs to send a retrieval request to the server device, so as to discover the resources of the server device.
- the resource discovery process will be described in detail below with reference to FIG. 2 .
- FIG. 2 is an interactive schematic diagram of a resource discovery process provided by an embodiment of the present application. As shown in FIG. 2 , the resource discovery process in this embodiment includes the following steps:
- Step 201 The client device sends a retrieval (RETRIEVE) request to the server device.
- RETRIEVE retrieval
- the client device may send a retrieval request to the server device through broadcast or multicast (not shown in FIG. 2 ).
- the client device only wants to discover the resources of a specific single server device, and the client device can send a retrieval request to the target server device through unicast, as shown in FIG. 2 .
- the retrieval request includes at least a resource identifier.
- the resource identifier may be a resource identifier used for resource directory discovery, which may be a uniform resource identifier (Uniform Resource Identifier, URI for short), and the URI may be, for example, /oic/res.
- URI Uniform Resource Identifier
- the client device can also use query conditions in the retrieval request to limit the discovered objects. For example, if the client device wants to discover the resources of a certain target server device, it can add the identifier of the target security domain to the retrieval request. The query condition of ID (sduuid) to limit the found objects.
- the query conditions may be limited based on resource types, resource interfaces or other resource attributes.
- Resource type which can be used to indicate the resource type (resource type, rt for short) provided by the server device, including oic resources, res resources, etc.
- the rt parameter may be "oic.wk.rd", “oic.wk.res", “oic.r.switch.binary”, “oic.r.light.brightness”, “oic.wk.p” “, “oic.wk.d”, etc., where “oic.wk.rd” corresponds to the rd resource, and “oic.wk.res” corresponds to the res resource.
- a resource interface (interface, if for short), or a resource access interface, can be used to represent an access interface of a resource provided by a server device.
- the if parameter can be "oic.if.ll”, “oic.if.b”, “oic.if.baseline”, etc.
- Resource properties including inherent resource properties (or public resource properties) and other resource properties. Among them, inherent resource properties are specified in all resources, including the following properties: resource type, resource interface, name, and resource identifier.
- Other resource attributes include the URI of the resource.
- the URI of the resource includes two attribute parameters, the href parameter and the anchor parameter (the format of the parameter value is ocf:// ⁇ deviceID>).
- Step 202 The server device determines whether to return resource information according to the retrieval request.
- step 203 is performed. If the server device determines not to return the resource information, the server device does not send the resource information to the client device.
- Step 203 The server device sends resource information to the client device.
- the server device receives the retrieval request, obtains the target resource and query conditions in the retrieval request, and determines whether its own /oic/res resources meet the query conditions. If the query conditions are satisfied, the server device returns its resource list (ie, resource information). ), the resource list includes href parameters, anchor parameters, rt parameters, and if parameters. Among them, the if parameter can include multiple, that is, the server device can return multiple interfaces. When accessing the resources of the server device, one of the interfaces can be specified in the request. If no interface is specified, the default interface is used.
- the client device obtains the security domain ID of a server device, for example, 12345678-1234-1234-1234-123412341234.
- the client device constructs a search request (or a resource discovery request) based on the security domain ID, for example:
- the client device sends the above-mentioned search request through multicast in the local area network.
- Server device 1, server device 2, and server device 3 receive the search request, parse the target resource and query conditions, and then determine whether the /oic/res resource has the sduuid attribute, and whether its sduuid value is the same as the one in the search request. The sduuid value is the same.
- the server device 1 determines that its own /oic/res resource has the sduuid attribute, and its sduuid value is "12345678-1234-1234-1234-123412341234", which is consistent with the sduuid value in the search request.
- the server device 1 returns a response of the /oic/res resource to the client device through unicast.
- the server device 2 determines that its own /oic/res resource has the sduuid attribute, and its sduuid value is "dc70373c-1e8d-4fb3-962e-017eaa863989", which is inconsistent with the sduuid value in the search request.
- the server device 2 does not return a response to the client device.
- the server device 3 determines that its own /oic/res resource has no sduuid attribute, and the server device 3 does not return a response to the client device.
- the server device may cause the client device to fail to receive the response returned by the server device and discover the resources of the server device. Affect subsequent business services.
- the embodiment of the present application proposes an information processing method, the main idea of which is as follows: before the actual resource discovery application, obtain the security domain information of the server device, construct a resource discovery request based on the security domain information, and download Send it to the server device to check the response of the server device.
- resource discovery requests are used to request resources from other server devices.
- resource discovery requests are sent to the server devices.
- each server device Determine the response capability of the server device to the resource discovery mechanism, so as to ensure that each server device can respond correctly to different scenarios and avoid subsequent business services due to server device performance issues.
- FIG. 3 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application. As shown in FIG. 3 , the information processing method provided by this embodiment includes the following steps:
- Step 301 The client device sends a first resource discovery request to the server device, where the first resource discovery request is used to request resource information and security domain information of the server device.
- the client device in this embodiment may be a client device installed with an OCF client, and the client device may be regarded as a test device (Conformance Test Tool, CTT for short).
- the server device in this embodiment may be regarded as a device under test (Implementation Under Test, IUT for short).
- the client device communicates with the server device through a network, for example, the two can communicate through a local area network.
- the first resource discovery request includes at least one item of a first identifier of a security domain configured by the client device for the server device and a first interface.
- the first identifier of the security domain configured by the client device for the server device may be understood as the identifier of the security domain preconfigured by the client device for the server device.
- the first interface is used to instruct the server device to return the security domain information of the server device.
- the resource information of the server device includes href parameter (resource URI), anchor parameter (device identification deviceID), rt parameter (resource type) and if parameter (resource interface). If the resource of the server device supports multiple resource types, multiple resource types can be returned. If the resource of the server device has multiple interfaces, multiple interfaces can be returned.
- the security domain information of the server device includes the identification ID of the security domain, the security domain discoverability indicator, and may also include the security domain name.
- the identity of the security domain is represented by uuid;
- the discoverability flag of security domain is represented by priv, the value of priv is false to indicate that the security domain can be discovered, and the value of priv is true to indicate that the security domain cannot be discovered;
- the name of the security domain is represented by name.
- the first resource discovery request includes a first identifier and a first interface of the security domain configured by the client device for the server device.
- the first interface is specifically used to instruct the server device to return the security domain identifier uuid and the security domain name of the server device.
- the first resource discovery request may be expressed as:
- the server device may determine whether to return the security domain information of the server device to the client device according to the first interface in the first resource discovery request. For example, if the first interface is "oic.if.ll”, then The security domain information of the server device is not returned. The first interface is "oic.if.baseline”, and the security domain information of the server device is returned.
- the client device may send the first resource discovery request to the server device in a broadcast, multicast or unicast manner, which is not limited in this embodiment of the present application.
- Step 302 The server device determines whether to return a first resource discovery response message according to the first resource discovery request.
- step 303 is performed.
- the server device determines not to return the first resource discovery response message, the server device does not send the first resource discovery response message.
- Step 303 The server device sends a first resource discovery response message to the client device.
- the server device may determine whether to return the first resource discovery response message according to the first identifier in the first resource discovery request. It can be understood that the server device pre-stores the identifier of the security domain of the server device. The server device can compare the identifier of the security domain of the server device stored in it with the first identifier in the first resource discovery request. If the two are the same, the server device sends a first resource discovery response message to the client device. ; If the two are different, the server device does not send the first resource discovery response message.
- the first resource discovery response message includes at least one item of a second identifier of the security domain of the server device and a second resource link of the server device.
- the second identifier of the security domain of the server device refers to the identifier of the security domain of the server device pre-stored by the server device, and the second resource link link of the server device is the resource information of the server device, including href parameters, anchor parameter, rt parameter and if parameter.
- the first resource discovery response message includes the second identifier of the security domain of the server device and the second resource link link of the server device.
- the first resource discovery response message includes the second resource link link of the server device.
- Step 304 The client device determines whether the first resource discovery response message of the server device is received.
- the client device may determine the response capability of the server device to resource discovery according to whether the first resource discovery response message of the server device is received.
- the client device determines the response capability of the server device to resource discovery according to the first resource discovery response message.
- the client device can determine the response capability of the server device to resource discovery through at least the following two implementation manners:
- the client device determines the server according to the first identifier of the security domain preconfigured by the client device for the server device and the second identifier of the security domain of the server device in the first resource response message The device's responsiveness to resource discovery. Specifically, if the first identifier is the same as the second identifier, the client device determines that the response capability of the server device to resource discovery meets the test requirements. If the first identifier is different from the second identifier, the client device determines that the response capability of the server device to resource discovery does not meet the test requirements.
- the client device determines, according to the first resource link of the client device saved in advance by the client device and the second resource link of the server device in the first resource response message, that the server device discovers the resource responsiveness. Specifically, if the first resource link is the same as the second resource link, the client device determines that the response capability of the server device to resource discovery meets the test requirements. If the first resource link is different from the second resource link, the client device determines that the response capability of the server device to resource discovery does not meet the test requirement.
- the server device may fail even if the server device side has already judged whether to return the first resource discovery response message, considering the difference in the response capability of the server device to the resource discovery mechanism, or the server device may fail.
- the client device is designed in this embodiment to make further judgments, that is, to compare whether the first identifier configured by the client device for the server device is the same as the second identifier returned by the server device, or, compare Check whether the first resource link of the server device saved by the client device is the same as the second resource link returned by the server device, so as to detect whether the server device correctly implements the discovery mechanism based on the security domain.
- the client device may directly save the first resource response message, for example, save the second resource link of the server device in the first resource response message.
- the client device receives the first resource discovery response message from the server device, and saves the first resource discovery response message after determining that the server device's response capability for resource discovery meets the test requirements. That is to say, the first resource discovery response message is saved only if the first identifier is the same as the second identifier, and/or the first resource link is the same as the second resource link, for example, the server in the first resource discovery response message is saved The second resource link of the device.
- the client device determines that it has not received the first resource discovery response message from the server device, the client device determines that the server device's response capability to resource discovery does not meet the test requirements.
- the information processing method provided in this embodiment can be used for device performance testing.
- the client device sends a first resource discovery request to the server device, and the first resource discovery request is used to request resource information and security domain information of the server device.
- the client device According to whether the first resource response message of the server device is correctly received, the response capability of the server device to resource discovery can be determined, so as to complete the performance test of the server device and ensure that the server device that passes the test can correctly respond to the resource discovery. request to avoid affecting subsequent business services due to server device performance issues.
- FIG. 4 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application. As shown in FIG. 4 , before step 301 in the embodiment shown in FIG. 3 , the information processing method further includes the following steps:
- Step 401 The client device sends first resource configuration information to the server device, where the first resource configuration information includes first security domain information configured by the client device for the server device.
- the first security domain information includes a first identity and a first discoverability identity of the security domain of the server device, and the first discoverability identity is used to indicate the security domain of the server device during multicast discovery (during multicast discoveries). Can be discovered (or the security domain of the server device can be exposed).
- the first security domain information may further include the security domain name of the server device.
- the first resource configuration information may be represented as:
- uuid is the first identifier of the security domain
- name is the name of the security domain
- priv is the discoverability indicator of the security domain
- Step 402 The server device sends a first resource configuration response message to the client device according to the first resource configuration information. (optional)
- the first resource configuration response message may include the first identifier and the first discoverability identifier of the security domain of the server device, and may also include the security domain name of the server device.
- Step 403 The client device determines whether a first resource configuration response message from the server device is received.
- the client device receives the first resource configuration response message from the server device, and determines whether to save the first resource configuration response message according to the first resource configuration response message.
- the client device receives the first resource configuration response message, and the security domain information in the first resource configuration response message is the same as the one configured by the client device for the server device in the first resource configuration information
- the first security domain information is the same, and the client device saves the first resource configuration information, for example, the security domain identifier uuid of the server device. Otherwise, the first resource configuration information is not saved.
- the client device saves the first resource configuration information only after the client device determines that the first resource configuration response message of the server device has been successfully received.
- the client device receives the first resource configuration response message of the server device, regardless of the security domain information in the first resource configuration response message and the first security configuration configured by the client device for the server device. Whether the domain information is the same, the client device saves the first resource configuration response message.
- the client device does not receive the first resource configuration response message from the server device, and the client device may or may not save the first resource configuration information.
- the client device before the client device sends a resource discovery request to the server device, it needs to send resource configuration information to the server device to inform the server device of the security domain information that the client device configures for it, and then execute the follow-up to the server device. Equipment testing process.
- the client device may reconfigure the security domain information for the server device, and the reconfigured security domain information may be different from the security domain information preconfigured by the client device for the server device, such as modifying the security domain information.
- the security domain discoverability identifier priv in the domain information After the client device reconfigures the security domain information for the server device, and after the client device resends the resource discovery request, the client device determines the result based on whether the server device returns a resource discovery response message. The results could be quite the opposite.
- FIG. 5 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application. As shown in FIG. 5 , the information processing method of this embodiment includes the following steps:
- Step 501 The client device sends second resource configuration information to the server device, where the second resource configuration information includes second security domain information configured by the client device for the server device.
- the second security domain information is different from the first security domain information in the foregoing embodiment.
- the second security domain information includes a first identifier of the security domain of the server device and a second discoverability identifier, and the second discoverability identifier is used to indicate the server during the multicast discovery process.
- the security domain of the device cannot be discovered (or the security domain of the server device cannot be exposed).
- the second security domain information may also include the name of the security domain.
- the second resource configuration information may be expressed as:
- the second resource configuration information can also be regarded as resource configuration information pre-configured by the client device for the server device, but the resource configuration information defines the discoverability identifier of the security domain to indicate whether the security is safe or not. be found.
- Step 502 The server device sends a second resource configuration response message to the client device according to the second resource configuration information. (optional)
- the server device updates the local configuration information according to the received second resource configuration information, including updating the local security domain information.
- the second resource configuration response message returned by the server device may include the first identifier and the second discoverability identifier of the security domain of the server device, and may also include the security domain name of the server device.
- Step 503 The client device determines whether a second resource configuration response message from the server device is received.
- Step 503 is similar to step 403 in the embodiment of FIG. 4 , and reference may be made to the foregoing embodiment for details.
- the client device may perform step 504 after determining that the second resource configuration response message of the server device is received.
- step 504 is performed regardless of whether the client device receives the second resource configuration response message from the server device.
- Step 504 The client device sends a first resource discovery request to the server device, where the first resource discovery request is used to request resource information and security domain information of the server device.
- Step 504 is similar to step 301 in the embodiment of FIG. 3 , and reference may be made to the foregoing embodiment for details.
- the first resource discovery request may be expressed as:
- Step 505 The server device determines not to return the first resource discovery response message according to the first resource discovery request.
- the server device can determine that the security domain information is not mapped to the res resource because priv is true in the updated resource configuration information, so the server device determines not to return The first resource discovery response message.
- the locally updated resource configuration information includes the above-mentioned second security domain information.
- the server device since the second discoverability identifier configured by the client device for the server device indicates that the security domain cannot be discovered, the server device directly ignores the first resource discovery request after receiving the first resource discovery request. , the first resource discovery response message is not returned.
- Step 506 The client device determines whether the first resource discovery response message of the server device is received.
- the client device may determine the response capability of the server device to resource discovery according to whether the first resource discovery response message of the server device is received.
- the client device determines that it has not received the first resource discovery response message from the server device, the client device determines that the server device's response capability to resource discovery meets the test requirements.
- the client device determines that the server device's response capability to resource discovery does not meet the test requirements.
- the client device when the client device does not receive the resource discovery response message from the server device, it is determined that the response capability of the server device to resource discovery meets the test requirements.
- the client device after the client device receives the resource discovery response message from the server device, it further determines the security domain information configured by the client device for the server device and the security domain information in the resource discovery response message returned by the server device. When the domain information is consistent, it is determined that the response capability of the server device to resource discovery meets the test requirements. It can be seen that this embodiment and the embodiment of FIG. 3 have diametrically opposite judgment logics when determining whether the response capability of the server device to resource discovery meets the test requirements.
- the information processing method provided in this embodiment can be used for device performance testing.
- the client device sends second resource configuration information to the server device, and the second resource configuration information includes the second security domain information reconfigured by the client device for the server device.
- the second security domain information is different from the first security domain information in the foregoing embodiment.
- the server device updates the local configuration according to the received second resource configuration information.
- the client device sends a first resource discovery request to the server device, where the first resource discovery request is used to request resource information and security domain information of the server device, and the server device according to the first resource discovery request and the locally updated configuration information , determine not to return the first resource discovery response message.
- the client device may determine the response capability of the server device to resource discovery after the security domain configuration is changed according to whether it receives the first resource discovery response message of the server device.
- the resource discovery request is initiated again, and the performance test of the server device is completed according to whether the server device responds, and the server device that passes the test is guaranteed to pass the test. All can correctly respond to resource discovery requests to avoid subsequent business services being affected by server device performance issues.
- the client device may further judge whether the response capability of the server device meets the test requirements by changing the security domain identifier in the resource discovery request.
- the information processing method provided by this embodiment will be described in detail below with reference to FIG. 6 . It should be noted that the following embodiments may be developed based on any of the foregoing embodiments, or may be implemented as a separate embodiment.
- FIG. 6 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application. As shown in FIG. 6 , the information processing method of this embodiment includes the following steps:
- Step 601 The client device sends a second resource discovery request to the server device.
- the second resource discovery request includes a third identifier of the security domain generated by the client device, and the third identifier is the same as the security domain configured by the client device for the server device.
- the first logo is different.
- the third identifier is an identifier of a security domain regenerated by the client device, and the third identifier is different from the first identifier of the security domain preconfigured by the client device for the server device.
- the client device may send the second resource discovery request to the server device in a broadcast, multicast or unicast manner.
- the second resource discovery request may be expressed as:
- Step 602 The server device determines whether to return a second resource discovery response message according to the second resource discovery request.
- the server device determines not to return the second resource discovery response message, the server device does not send the second resource discovery response message. If the server device determines to return the second resource discovery response message, the server device sends the second resource discovery response message to the client device.
- the client device sends the second resource discovery request to the server device through broadcast or multicast, and different server devices will make different responses according to the second resource discovery request.
- the client device sends a second resource discovery request to the server device in a unicast manner, the third identifier of the security domain carried in the second resource discovery request and the It is not the first identifier pre-configured by the client device for the server device.
- the server device may send a second resource discovery response message to the client device. According to step 603, a correct judgment can be made as to whether the response capability of the server device meets the test requirements.
- Step 603 The client device determines whether to receive a second resource discovery response message from the server device.
- the client device may determine the response capability of the server device to resource discovery according to whether the second resource discovery response message of the server device is received.
- the client device determines that the server device's response capability to resource discovery meets the test requirements. If the client device determines to receive the second resource discovery response message from the server device, the client device determines that the server device's response capability for resource discovery does not meet the test requirements.
- the information processing method provided in this embodiment can be used for device performance testing.
- the client device sends a second resource discovery request to the server device.
- the second resource discovery request includes a third identifier of the security domain generated by the client device.
- the third identifier It is different from the first identifier of the security domain configured by the client device for the server device.
- the server device determines that the identifiers do not match, and does not send the second resource discovery response message.
- the server device sends a second resource discovery response message to the client device.
- the client device determines whether the response capability of the server device to resource discovery meets the test requirements according to whether it receives the second resource discovery response message of the server device.
- the resource discovery request is initiated again, and the performance test of the server device is completed according to whether the server device responds. The problem affects subsequent business services.
- FIG. 7 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application. As shown in FIG. 7 , the information processing method provided by this embodiment includes the following steps:
- Step 701 The client device activates and configures the server device.
- Step 702 The client device sends a security domain configuration instruction 1 to the server device.
- the security domain configuration instruction 1 includes a security domain ID, a security domain name, and a security domain discoverability identifier.
- Step 703 The server device returns a unicast response 1 to the client device according to the received security domain configuration instruction 1, and the response 1 carries the security domain information in the security domain configuration instruction 1.
- Step 704 The client device checks whether a correct response is received.
- receiving a correct response means that the client device receives the response 1 returned by the server device, and the response 1 carries the correct security domain information.
- Step 705 The client device saves the security domain ID configured for the server device.
- Step 706 The client device sends a resource discovery request 1 to the server device, where the resource discovery request 1 includes a security domain ID and a resource interface.
- Step 707 The server device returns a unicast response 2 to the client device according to the received resource discovery request 1 .
- Step 708 The client device checks whether a correct response is received.
- the client device receives the response 2 returned by the server device, and the attribute value of sduuid in the response 2 is the same as the uuid value saved by the client device, it is considered that the client device has received a correct response.
- Step 709 The client device saves the links in response 2 or the key data in the links.
- Step 710 The client device sends a resource discovery request 2 to the server device, where the resource discovery request 2 includes the security domain ID.
- Step 711 The server device returns a unicast response 3 to the client device according to the received resource discovery request 2 .
- Step 712 The client device checks whether a correct response is received.
- the client device receives the response 3 returned by the server device, and the attribute value (or key field) of the links in response 3 is the same as the link value (or key field) saved by the client device, then it is considered that the client The end device receives the correct response.
- Step 713 the client device sends a resource discovery request 3 to the server device, where the resource discovery request 3 includes a different security domain ID from step 706 and step 710 .
- Step 714 According to the received resource discovery request 3, the server device determines that the sduuid in the resource discovery request 3 is inconsistent with the uuid stored locally by the server device, and the server device does not return a response.
- Step 715 The client device checks whether it has not received a response from the server device.
- Step 716 The client device sends the security domain configuration instruction 2 to the server device.
- the security domain configuration instruction 2 includes the security domain ID, the security domain name and the security domain discoverability identifier.
- Step 717 The server device returns a unicast response 4 to the client device according to the received security domain configuration instruction 2 , and the response 4 carries the security domain information in the security domain configuration instruction 2 .
- Step 718 The client device checks whether a correct response is received.
- receiving the correct response means that the client device receives the response 4 returned by the server device, and the response 4 carries the correct security domain information.
- Step 719 The client device sends a resource discovery request 4 to the server device, where the resource discovery request 4 includes the security domain ID.
- Step 720 The server device determines, according to the received resource discovery request 4, that the security domain requested by the resource discovery request 4 cannot be discovered, and the server device does not return a response.
- Step 721 The client device checks whether it has not received a response from the server device.
- Step 722 The client device passes the above check items to determine whether the server device passes the performance test.
- FIG. 8 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application. As shown in FIG. 7 , the information processing method provided by this embodiment includes the following steps:
- Step 801 The client device sends a resource discovery request 1 to the server device.
- Step 802 the server device returns a unicast response 1 to the client device according to the received resource discovery request 1 .
- the server device returns a unicast response 1 to the client device according to the received resource discovery request 1 .
- Step 803 The client device checks whether a correct response is received.
- the client device receives the response 1 returned by the server device, and the response 1 includes links, sduuid and sdname, it is considered that the client device has received a correct response.
- Step 804 the client device saves the links and sduuid. That is, save the links and sduuid in response 1.
- Step 805 The client device sends a resource discovery request 2 to the server device.
- Step 806 the server device returns a unicast response 2 to the client device according to the received resource discovery request 2 .
- the server device returns a unicast response 2 to the client device according to the received resource discovery request 2 .
- Step 807 The client device checks whether a correct response is received.
- test result R1 false.
- Step 808 the client device sends a resource discovery request 3 to the server device, and the resource discovery request 3 includes a security domain ID different from that in step 805 .
- Step 809 The server device determines, according to the received resource discovery request 3, that the sduuid in the resource discovery request 3 is inconsistent with the uuid stored locally by the server device, and the server device does not return a response.
- Step 810 The client device checks whether it has not received a response from the server device.
- Step 811 According to R1 and R2, determine whether the server device passes the test.
- the client device determines that the server device passes the test. Otherwise it fails the test.
- FIG. 9 is an interactive schematic diagram of an information processing method provided by an embodiment of the present application. As shown in FIG. 9 , the information processing method provided by this embodiment includes the following steps:
- Step 901 The client device sends a resource discovery request 1 to the server device.
- Step 902 the server device returns a unicast response 1 to the client device according to the received resource discovery request 1 .
- the server device returns a unicast response 1 to the client device according to the received resource discovery request 1 .
- Step 903 The client device checks whether a correct response is received, records the test result R1, and determines whether to continue the test according to R1.
- Step 904 the client device saves the sduuid.
- Step 905 The client device sends a resource discovery request 2 to the server device.
- the resource discovery request 2 includes the security domain ID and the resource interface.
- Step 906 the server device returns a unicast response 2 to the client device according to the received resource discovery request 2 .
- the server device returns a unicast response 2 to the client device according to the received resource discovery request 2 .
- Step 907 The client device checks whether a correct response is received, records the test result R2, and determines whether to continue the test according to R2.
- step 908 is executed. Otherwise end the test.
- Step 908 the client device sends a resource discovery request 3 to the server device, and the resource discovery request 3 includes a different security domain ID and a resource interface from step 905 .
- Step 909 The server device determines, according to the received resource discovery request 3, that the sduuid in the resource discovery request 3 is inconsistent with the uuid stored locally by the server device, and the server device does not return a response.
- Step 910 The client device checks whether it has not received a response from the server device, records the test result R3, and determines whether the server device passes the test according to R3.
- FIG. 10 is a schematic structural diagram of an information processing apparatus provided by an embodiment of the present application. As shown in FIG. 10 , the information processing apparatus 1000 provided by this embodiment includes:
- a sending module 1001 configured to send a first resource discovery request to a server device, where the first resource discovery request is used to request resource information and security domain information of the server device;
- the processing module 1002 is configured to determine whether a first resource discovery response message of the server device is received.
- the first resource discovery request includes at least one item of a first identifier of a security domain configured by the client device for the server device and a first interface, and the first interface It is used to instruct the server device to return the security domain information of the server device.
- the first resource discovery response message includes at least one item of a second identifier of the security domain of the server device and a second resource link of the server device.
- FIG. 11 is a schematic structural diagram of an information processing apparatus provided by an embodiment of the present application. As shown in FIG. 11 , based on the information processing apparatus shown in FIG. 10 , the information processing apparatus 1000 of this embodiment further includes: a storage module 1003 and receiving module 1004.
- the storage module 1003 is configured to save the first resource discovery response message.
- the processing module 1002 is further configured to determine the first resource discovery response message according to the first resource discovery response message. Describes the response capability of the server device to resource discovery.
- processing module 1002 is specifically configured to:
- the resource Discovery responsiveness According to the first identifier of the security domain configured by the client device for the server device and the second identifier of the security domain of the server device in the first resource response message, it is determined that the resource Discovery responsiveness.
- the processing module 1002 determines that the response capability of the server device to resource discovery meets the test requirements.
- the processing module 1002 is further configured to determine whether the server device has a resource discovery response message. Responsiveness does not meet test requirements.
- processing module 1002 is specifically configured to:
- the processing module 1002 determines that the response capability of the server device to resource discovery meets the test requirements.
- the sending module 1001 is further configured to send a second resource discovery request to the server device, where the second resource discovery request includes the first resource of the security domain generated by the client device. Three identifiers, where the third identifier is different from the first identifier of the security domain configured by the client device for the server device;
- the processing module 1002 is further configured to determine whether a second resource discovery response message from the server device is received.
- the processing module 1002 is further configured to determine the response capability of the server device to resource discovery meet the test requirements.
- the sending module 1001 before sending the first resource discovery request to the server device, is further configured to send first resource configuration information to the server device, where the first resource configuration information includes the first security domain information configured by the client device for the server device;
- the storage module 1003 is configured to save the first resource configuration information.
- the first security domain information includes a first identifier of a security domain of the server device and a first discoverability identifier, where the first discoverability identifier is used to indicate a security domain can be found.
- the sending module 1001 before sending the first resource discovery request to the server device, is further configured to send second resource configuration information to the server device, where the second resource configuration information includes the The second security domain information configured by the client device for the server device.
- the second security domain information includes a first identifier of the security domain of the server device and a second discoverability identifier, where the second discoverability identifier is used to indicate the security domain cannot be found.
- the processing device is further configured to determine that the response capability of the server device to resource discovery satisfies Testing requirements.
- the information processing apparatus provided by the embodiments of the present application is configured to execute the technical solutions executed by the client device in the method embodiments shown in FIG. 3 to FIG. 9 .
- each module of the information processing apparatus is only a logical function division, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated.
- these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of calling software through processing elements, and some modules can be implemented in hardware.
- the processing module may be a separately established processing element, or it may be integrated into a certain chip of the above-mentioned apparatus to realize, in addition, it may also be stored in the memory of the above-mentioned apparatus in the form of program code, and a certain processing element of the above-mentioned apparatus may be used.
- each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
- the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more application specific integrated circuits (ASIC), or one or more microprocessors (digital) signal processor, DSP), or, one or more field programmable gate arrays (field programmable gate array, FPGA), etc.
- ASIC application specific integrated circuits
- DSP digital signal processor
- FPGA field programmable gate array
- the processing element may be a general-purpose processor, such as a central processing unit (central processing unit, CPU) or other processors that can call program codes.
- these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC).
- SOC system-on-a-chip
- the above-mentioned embodiments it may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
- software it can be implemented in whole or in part in the form of a computer program product.
- the computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated.
- the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
- the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
- the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media.
- the usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.
- FIG. 12 is a schematic diagram of a hardware structure of an information processing apparatus according to an embodiment of the present application.
- the information processing apparatus 1100 in this embodiment may include: a processor 1101 , a memory 1102 and a communication interface 1103 .
- the memory 1102 is used to store computer programs; the processor 1101 is used to execute the computer programs stored in the memory 1102 to implement the method executed by the client device in any of the above method embodiments.
- the communication interface 1103 is used for data communication or signal communication with other devices.
- the memory 1102 may be independent or integrated with the processor 1101 .
- the information processing apparatus 1100 may further include: a bus 1104 for connecting the memory 1102 and the processor 1101 .
- the processing module 1002 in FIG. 10 may be integrated in the processor 1101 and implemented, and the sending module 1001 may be integrated in the communication interface 1103 and implemented.
- the processing module 1002 in FIG. 11 may be integrated in the processor 1101 for implementation, the sending module 1001 and the receiving module 1004 may be integrated in the communication interface 1103 for implementation, and the storage module 1003 may be integrated in the memory 1102 for implementation.
- the processor 1101 may be used to implement the signal processing operation of the client device in the above method embodiment, and the communication interface 1103 may be used to implement the signal transceiving operation of the client device in the above method embodiment.
- the information processing apparatus provided in this embodiment can be used to execute the method executed by the client device in any of the above method embodiments, and its implementation principle and technical effect are similar, and details are not described herein again.
- Embodiments of the present application further provide a computer-readable storage medium, where computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are executed by a processor, are used to implement the client in any of the foregoing method embodiments technical solutions for end devices.
- Embodiments of the present application further provide a computer program, which, when the computer program is executed by a processor, is used to execute the technical solution of the client device in any of the foregoing method embodiments.
- Embodiments of the present application further provide a computer program product, including program instructions, where the program instructions are used to implement the technical solution of the client device in any of the foregoing method embodiments.
- Embodiments of the present application further provide a chip, including: a processing module and a communication interface, where the processing module can execute the technical solutions of the client device in the foregoing method embodiments.
- the chip also includes a storage module (eg, memory), the storage module is used for storing instructions, the processing module is used for executing the instructions stored in the storage module, and the execution of the instructions stored in the storage module causes the processing module to execute any of the foregoing.
- a storage module eg, memory
- the storage module is used for storing instructions
- the processing module is used for executing the instructions stored in the storage module
- the execution of the instructions stored in the storage module causes the processing module to execute any of the foregoing.
- At least two means two or more, and "a plurality” means two or more.
- “And/or”, which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural.
- the character “/” generally indicates that the related objects before and after are an “or” relationship; in the formula, the character “/” indicates that the related objects are a “division” relationship.
- “At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
- At least one item (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c can be single or multiple indivual.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Computer And Data Communications (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本申请提供一种信息处理方法、装置及存储介质,用于对服务端设备的资源发现性能的测试,该方法包括:客户端设备向服务端设备发送第一资源发现请求,第一资源发现请求用于请求服务端设备的资源信息以及安全域信息,客户端设备可以根据是否正确接收到服务端设备的第一资源响应消息,确定服务端设备对资源发现的响应能力,从而完成对服务端设备的资源发现性能的测试,确保通过测试的服务端设备都能够正确响应资源发现请求,避免由于服务端设备性能问题影响后续业务服务。
Description
本申请实施例涉及物联网技术领域,尤其涉及一种信息处理方法、装置及存储介质。
物联网(Internet of Thinks,IoT),即“万物相连的互联网”,是互联网基础上的延伸和扩展的网络,其运用各种传感技术,建立起“物”与“物”之间的相互感知,实现对单粒度物品的跟踪、控制及定位。
开放连接基金会(Open Connectivity Foundation,OCF)作为物联网应用层的技术标准组织,其为物联网中设备之间实现互联互通制定了服务框架。在该服务框架中,提供资源的实体为服务端设备,访问资源的实体可以为客户端设备。客户端设备在对服务端设备的资源进行例如创建、更新、删除等操作之前,需要进行资源发现。
在一些场景中,由于服务端设备自身性能的问题,可能导致客户端设备无法发现服务端设备的资源,从而影响后续业务服务。
发明内容
本申请实施例提供一种信息处理方法、装置及存储介质,用于对服务端设备进行性能测试,确保通过测试的服务端设备能够提供后续业务服务。
第一方面,本申请实施例提供一种信息处理方法,包括:
客户端设备向服务端设备发送第一资源发现请求,所述第一资源发现请求用于请求所述服务端设备的资源信息以及安全域信息;
所述客户端设备确定是否收到所述服务端设备的第一资源发现响应消息。
第二方面,本申请实施例提供一种信息处理装置,包括:
发送模块,用于向服务端设备发送第一资源发现请求,所述第一资源发现请求用于请求所述服务端设备的资源信息以及安全域信息;
处理模块,用于确定是否收到所述服务端设备的第一资源发现响应消息。
第三方面,本申请实施例提供一种信息处理装置,包括:存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于从所述存储器中调用并运行所述计算机程序,使得所述处理器运行所述计算机程序执行如第一方面中任一项所述的方法。
第四方面,本申请实施例提供一种计算机存储介质,用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如第一方面中任一项所述的方法。
第五方面,本申请实施例提供一种计算机程序,所述计算机程序被处理器执行时,用于执行如第一方面中任一项所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面中任一项所述的方法。
第七方面,本申请实施例提供一种芯片,包括:处理模块与通信接口,所述处理模块用于从存储器中调用并运行所述存储器中存储的计算机程序,执行如第一方面中任一项所述的方法。
本申请实施例提供一种信息处理方法、装置及存储介质,用于对服务端设备的资源发现性能的测试,该方法包括:客户端设备向服务端设备发送第一资源发现请求,第一资源发现请求用于请求服务端设备的资源信息以及安全域信息,客户端设备可以根据是否正确接收到服务端设备的第一资源响应消息,确定服务端设备对资源发现的 响应能力,从而完成对服务端设备的资源发现性能的测试,确保通过测试的服务端设备都能够正确响应资源发现请求,避免由于服务端设备性能问题影响后续业务服务。
图1为本申请实施例应用的物联网系统的结构示意图;
图2为本申请实施例提供的资源发现过程的交互示意图;
图3为本申请实施例提供的一种信息处理方法的交互示意图;
图4为本申请实施例提供的一种信息处理方法的交互示意图;
图5为本申请实施例提供的一种信息处理方法的交互示意图;
图6为本申请实施例提供的一种信息处理方法的交互示意图;
图7为本申请实施例提供的一种信息处理方法的交互示意图;
图8为本申请实施例提供的一种信息处理方法的交互示意图;
图9为本申请实施例提供的一种信息处理方法的交互示意图;
图10为本申请实施例提供的一种信息处理装置的结构示意图;
图11为本申请实施例提供的一种信息处理装置的结构示意图;
图12为本申请实施例提供的一种信息处理装置的硬件结构示意图。
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请实施例的说明书、权利要求书及上述附图中的术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
在介绍本申请实施例提供的技术方案之前,首先对本申请实施例应用的物联网系统进行说明。图1为本申请实施例应用的物联网系统的结构示意图。如图1所示,该物联网系统包括服务端设备11和多个客户端设备,如图1中的客户端设备12至14。其中,服务端设备11与每个客户端设备连接,各个客户端设备之间可以相互连接(图1未示出)。可以理解,服务端设备11可以为一个或多个,图1仅作为一种示例。
服务端设备作为客户端设备访问资源的实体,其可以是传感器或数据采集卡等数据采集设备,还可以是开关、插座或灯具等电器元件设备,也可以是智能的空调、洗衣机、冰箱、音箱或电视机等电子设备。当然,上述仅作为服务端设备的一些可能的示例,服务端设备还可以是其他可提供资源,对实现对应的功能服务的智能硬件设备,对此本申请实施例不作任何限制。服务端设备可称为OCF服务设备或实体,资源实体、资源提供者或资源设备等。
客户端设备可以是安装有OCF客户端的终端设备,该终端设备可以是台式电脑、笔记本电脑、个人数字助理(Personal Digital Assistant,简称PDA)、智能手机、平板电脑等设备。客户端设备还可称为OCF客户端设备、用户设备或用户端设备等。
基于上述物联网系统,客户端设备可通过向服务端设备发送操作请求,实现对该服务端设备的资源进行操作,例如创建、更新、删除等操作,从而实现对应的业务。需要说明的是,客户端设备在对服务端设备的资源进行操作之前,客户端设备需要向服务端设备发送检索请求,进而发现服务端设备的资源。下面结合附图2对资源发现过程进行详细说明。
图2为本申请实施例提供的资源发现过程的交互示意图。如图2所示,本实施例的资源发现过程包括如下几个步骤:
步骤201、客户端设备向服务端设备发送检索(RETRIEVE)请求。
在本申请的一个实施例中,客户端设备为了发现多个服务端设备上的资源,客户端设备可通过广播或多播方式向服务端设备发送检索请求(图2未示出)。
在本申请的一个实施例中,客户端设备只想发现特定的单个服务端设备的资源,客户端设备可通过单播方式向目标服务端设备发送检索请求,如图2所示。
其中,检索请求至少包括资源标识。资源标识可以为用于进行资源目录发现的资源标识,其可以为统一资源标识符(Uniform Resource Identifier,简称URI),URI例如可以为/oic/res。
可选的,客户端设备还可以在检索请求中使用查询条件来限定发现的对象,例如客户端设备想要发现某一目标服务端设备的资源,可以在检索请求中增加包括目标安全域的标识ID(sduuid)的查询条件,从而限定发现的对象。
其中,查询条件可以基于资源类型、资源接口或其他资源属性进行限定。
资源类型,可用于表示服务端设备所提供的资源类型(resource type,简称rt),包括oic资源、res资源等。示例性的,rt参数可以是“oic.wk.rd”、“oic.wk.res”、“oic.r.switch.binary”、“oic.r.light.brightness”、“oic.wk.p”、“oic.wk.d”等,其中,“oic.wk.rd”对应rd资源,“oic.wk.res”对应res资源。
资源接口(interface,简称if),或称为资源访问接口,可用于表示服务端设备所提供的资源的访问接口。if参数可以是“oic.if.ll”、“oic.if.b”、“oic.if.baseline”等。
资源属性,包括固有资源属性(或称为公共资源属性)和其他资源属性。其中,固有资源属性在所有资源中都有指定,包括以下属性:资源类型、资源接口、名称以及资源标识。其他资源属性包括资源的URI,资源的URI包括两种属性参数,href参数以及anchor参数(参数值的格式为ocf://<deviceID>)。
步骤202、服务端设备根据检索请求确定是否返回资源信息。
如果服务端设备确定返回资源信息,执行步骤203。如果服务端设备确定不返回资源信息,服务端设备不向客户端设备发送资源信息。
步骤203、服务端设备向客户端设备发送资源信息。
本步骤中,服务端设备接收检索请求,获取检索请求中的目标资源和查询条件,判断自身/oic/res资源是否满足查询条件,如果满足查询条件,服务端设备返回其资源列表(即资源信息),资源列表中包括href参数、anchor参数、rt参数以及if参数。其中,if参数可以包括多个,即服务端设备可返回多个接口,后续访问该服务端设备的资源时,可在请求中制定其中一个接口,如果未指定接口,则使用默认接口。
现有标准规定使用well known资源oic/res作为默认的发现机制,要求所有的设备都支持该设备发现机制。每个设备将可发现的资源更新到设备本地的/oic/res,每次在设备上实例化新的可发现资源时,都需要把实例化资源更新到设备本地的/oic/res。
下面结合一个具体的实例对上述资源发现过程进行说明。
1、客户端设备获取某服务端设备的安全域ID,例如12345678-1234-1234-1234-123412341234。
2、客户端设备基于该安全域ID构建搜索请求(或称为资源发现请求),例如:
RETRIEVE
coap://[ff02::158]:5683/oic/res?sduuid="12345678-1234-1234-1234-123412341234"
客户端设备在局域网中通过多播方式发送上述搜索请求。
3、服务端设备1、服务端设备2、服务端设备3收到搜索请求,解析目标资源和查询条件,进而确定自身/oic/res资源是否有sduuid属性,其sduuid值是否与搜索请求中的sduuid值一致。
4a、服务端设备1确定自身/oic/res资源有sduuid属性,且其sduuid值为“12345678-1234-1234-1234-123412341234”,与搜索请求中的sduuid值一致。服务端设备1通过单播向客户端设备返回/oic/res资源的响应。
4b、服务端设备2确定自身/oic/res资源有sduuid属性,且其sduuid值为“dc70373c-1e8d-4fb3-962e-017eaa863989”,与搜索请求中的sduuid值不一致。服务端设备2不向客户端设备返回响应。
4c、服务端设备3确定自身/oic/res资源没有sduuid属性,服务端设备3不向客户端设备返回响应。
基于上述应用场景,如果服务端设备自身性能问题,例如网络连接稳定性差、设备其他故障等,都有可能导致客户端设备无法接收到服务端设备返回的响应,发现该服务端设备的资源,从而影响后续业务服务。
针对上述技术问题,本申请实施例提出一种信息处理方法,其主要思路如下:在实际的资源发现应用之前,通过获取服务端设备的安全域信息,基于安全域信息构建资源发现请求,并下发给服务端设备,检查服务端设备的响应情况。另外,考虑其他可能的应用场景,例如资源发现请求用于请求其他服务端设备的资源,通过构建多种正、返用例的资源发现请求,并下发给服务端设备,根据每一次服务端设备的响应情况,确定该服务端设备对资源发现机制的响应能力,从而确保每一个服务端设备能够针对不同场景作出正确响应,避免由于服务端设备性能问题影响后续业务服务。
下面通过具体实施例对本申请实施例提供的技术方案进行详细说明。需要说明的是,本申请实施例提供的技术方案可以包括以下内容中的部分或全部,下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。
图3为本申请实施例提供的一种信息处理方法的交互示意图。如图3所示,本实施例提供的信息处理方法,包括如下几个步骤:
步骤301、客户端设备向服务端设备发送第一资源发现请求,第一资源发现请求用于请求服务端设备的资源信息以及安全域信息。
本实施例的客户端设备可以是安装有OCF客户端的客户端设备,该客户端设备可以看作是测试设备(Conformance Test Tool,简称CTT)。本实施例的服务端设备可以看作是被测设备(Implementation Under Test,简称IUT)。客户端设备通过网络与服务端设备通信连接,例如二者可通过局域网进行通信。
第一资源发现请求包括客户端设备为服务端设备配置的安全域的第一标识以及第一接口的至少一项。其中,客户端设备为服务端设备配置的安全域的第一标识可以理解为:客户端设备为服务端设备预配置的安全域的标识。第一接口用于指示服务端设备返回服务端设备的安全域信息。
服务端设备的资源信息包括href参数(资源URI)、anchor参数(设备标识deviceID)、rt参数(资源类型)以及if参数(资源接口)。如果服务端设备的资源支持多个资源类型,可以返回多个资源类型。如果服务端设备的资源有多个接口,可以返回多个接口。
服务端设备的安全域信息包括安全域的标识ID以及安全域可发现性标识,还可以包括安全域名称。其中,安全域的标识用uuid表示;安全域可发现性标识用于priv表示,priv的值为false表示安全域可发现,priv的值为true表示安全域不可发现;安全域名称用name表示。
在本申请的一个实施例中,第一资源发现请求包括客户端设备为服务端设备配置的安全域的第一标识以及第一接口。第一接口具体用于指示服务端设备返回服务端设备的安全域标识uuid以及安全域名称。示例性的,第一资源发现请求可以表示为:
RETRIEVE /oic/res?if=oic.if.baseline&sduuid=12345678-1234-1234-1234-123412341234,该请求中包括第一标识“sduuid=12345678-1234-1234-1234-123412341234”以及第一接口“if=oic.if.baseline”,第一标识和第一接口可以看作是查询条件。
需要说明的是,服务端设备可根据第一资源发现请求中的第一接口,确定是否向客户端设备返回服务端设备的安全域信息,例如第一接口为“oic.if.ll”,则不返回服务端设备的安全域信息,第一接口为“oic.if.baseline”,则返回服务端设备的安全域信息。
可选的,客户端设备可以通过广播、多播或单播方式向服务端设备发送第一资源发现请求,对此本申请实施例不作任何限制。
步骤302、服务端设备根据第一资源发现请求确定是否返回第一资源发现响应消息。
如果服务端设备确定返回第一资源发现响应消息,执行步骤303。
如果服务端设备确定不返回第一资源发现响应消息,服务端设备不发送第一资源发现响应消息。
步骤303、服务端设备向客户端设备发送第一资源发现响应消息。
在本申请的一个实施例中,服务端设备可根据第一资源发现请求中的第一标识确定是否返回第一资源发现响应消息。可以理解,服务端设备预先保存有该服务端设备的安全域的标识。服务端设备可通过比对其保存的该服务端设备的安全域的标识与第一资源发现请求中的第一标识,如果两者相同,服务端设备向客户端设备发送第一资源发现响应消息;如果两者不同,服务端设备不发送第一资源发现响应消息。
第一资源发现响应消息包括服务端设备的安全域的第二标识以及服务端设备的第二资源链接link的至少一项。其中,服务端设备的安全域的第二标识是指服务端设备预先保存的服务端设备的安全域的标识,服务端设备的第二资源链接link即服务端设备的资源信息,包括href参数、anchor参数、rt参数以及if参数。
当第一资源发现请求中的第一接口为“oic.if.baseline”时,第一资源发现响应消息包括服务端设备的安全域的第二标识以及服务端设备的第二资源链接link。
当第一资源发现请求中的第一接口为“oic.if.ll”时,第一资源发现响应消息包括服务端设备的第二资源链接link。
步骤304、客户端设备确定是否接收到服务端设备的第一资源发现响应消息。
具体的,客户端设备可根据是否接收到服务端设备的第一资源发现响应消息,确定服务端设备对资源发现的响应能力。
在本申请的一个实施例中,若客户端设备确定收到服务端设备的第一资源发现响应消息,客户端设备根据第一资源发现响应消息确定服务端设备对资源发现的响应能力。
客户端设备至少可通过如下两种实施方式,确定服务端设备对资源发现的响应能力:
在一种可能的实施方式中,客户端设备根据客户端设备为服务端设备预先配置的安全域的第一标识以及第一资源响应消息中服务端设备的安全域的第二标识,确定服务端设备对资源发现的响应能力。具体的,若第一标识与第二标识相同,则客户端设备确定服务端设备对资源发现的响应能力满足测试要求。若第一标识与第二标识不同,则客户端设备确定服务端设备对资源发现的响应能力不满足测试要求。
在一种可能的实施方式中,客户端设备根据客户端设备预先保存的客户端设备的第一资源link以及第一资源响应消息中服务端设备的第二资源link,确定服务端设备对资源发现的响应能力。具体的,若第一资源link与第二资源link相同,则客户端设备确定服务端设备对资源发现的响应能力满足测试要求。若第一资源link与第二资源 link不同,则客户端设备确定服务端设备对资源发现的响应能力不满足测试要求。
由上述两种实施方式可知,即使服务端设备侧已经判断过是否返回第一资源发现响应消息,考虑到服务端设备对资源发现机制响应能力的差异,或者服务端设备可能发生故障、服务端设备执行相关代码出错等原因,本实施例方案设计客户端设备进行进一步判断,即比对客户端设备为服务端设备配置的第一标识与服务端设备返回的第二标识是否相同,或者,比对客户端设备保存的服务端设备的第一资源link与服务端设备返回的第二资源link是否相同,从而检测服务端设备是否正确实现了基于安全域的发现机制。
可选的,客户端设备接收到服务端设备的第一资源发现响应消息之后,可以直接保存第一资源响应消息,例如保存第一资源响应消息中服务端设备的第二资源link。
可选的,客户端设备接收到服务端设备的第一资源发现响应消息,在确定服务端设备对资源发现的响应能力满足测试要求后,才保存第一资源发现响应消息。也就是说,只有满足第一标识与第二标识相同,和/或,第一资源link与第二资源link相同,才保存第一资源发现响应消息,例如保存第一资源发现响应消息中服务端设备的第二资源link。
在本申请的一个实施例中,若客户端设备确定未收到服务端设备的第一资源发现响应消息,客户端设备确定服务端设备对资源发现的响应能力不满足测试要求。
本实施例提供的信息处理方法可用于设备性能测试,客户端设备向服务端设备发送第一资源发现请求,第一资源发现请求用于请求服务端设备的资源信息以及安全域信息,客户端设备可以根据是否正确接收到服务端设备的第一资源响应消息,确定服务端设备对资源发现的响应能力,从而完成对服务端设备的性能测试,确保通过测试的服务端设备都能够正确响应资源发现请求,避免由于服务端设备性能问题影响后续业务服务。
由上述实施例可知,客户端设备为服务端设备预先配置了安全域信息,客户端设备上保存有该服务端设备的安全域信息,下面结合附图4对安全域信息的配置过程进行详细说明。图4为本申请实施例提供的一种信息处理方法的交互示意图,如图4所示,在图3所示实施例的步骤301之前,信息处理方法还包括如下几个步骤:
步骤401、客户端设备向服务端设备发送第一资源配置信息,第一资源配置信息包括客户端设备为服务端设备配置的第一安全域信息。
第一安全域信息包括服务端设备的安全域的第一标识以及第一可发现性标识,第一可发现性标识用于指示在多播发现过程中(during multicast discoveries)服务端设备的安全域能够被发现(或者说服务端设备的安全域可以被暴露)。可选的,第一安全域信息还可以包括服务端设备的安全域名称。
示例性的,第一资源配置信息可以表示为:
其中,uuid是安全域的第一标识,name是安全域名称,priv是安全域可发现性标识。
步骤402、服务端设备根据第一资源配置信息,向客户端设备发送第一资源配置 响应消息。(可选)
其中,第一资源配置响应消息可以包括服务端设备的安全域的第一标识以及第一可发现性标识,还可以包括服务端设备的安全域名称。
步骤403、客户端设备确定是否接收到服务端设备的第一资源配置响应消息。
客户端设备接收到服务端设备的第一资源配置响应消息,根据第一资源配置响应消息,确定是否保存第一资源配置响应消息。
在本申请的一个实施例中,如果客户端设备接收到第一资源配置响应消息,且第一资源配置响应消息中的安全域信息与第一资源配置信息中客户端设备为服务端设备配置的第一安全域信息相同,客户端设备保存第一资源配置信息,例如保存服务端设备的安全域标识uuid。否则不保存第一资源配置信息。该实施例中,客户端设备确定成功接收到服务端设备的第一资源配置响应消息,客户端设备才保存第一资源配置信息。
在本申请的一个实施例中,客户端设备接收到服务端设备的第一资源配置响应消息,无论第一资源配置响应消息中的安全域信息与客户端设备为服务端设备配置的第一安全域信息是否相同,客户端设备均保存第一资源配置响应消息。
在本申请的一个实施例中,客户端设备未接收到服务端设备的第一资源配置响应消息,客户端设备可以保存第一资源配置信息,也可以不保存第一资源配置信息。
从上述描述可知,客户端设备向服务端设备发送资源发现请求之前,需要向服务端设备发送资源配置信息,以告知服务端设备客户端设备为其配置的安全域信息,继而执行后续对服务端设备的测试过程。
在上述任一实施例的基础上,客户端设备可以为服务端设备重新配置安全域信息,重新配置的安全域信息可以不同于客户端设备为服务端设备预配置的安全域信息,例如修改安全域信息中的安全域可发现性标识priv。在客户端设备为服务端设备重新配置安全域信息之后,客户端设备重新发送资源发现请求后,客户端设备基于服务端设备是否返回资源发现响应消息而作出的判断结果,由于判断逻辑不同,判断结果可能是截然相反的。
下面结合附图5对安全域信息的重配置过程以及后续的信息处理方法进行详细说明。需要说明的是,下述实施例可以基于上述任一实施例展开,也可以作为一个单独的实施例执行。
图5为本申请实施例提供的一种信息处理方法的交互示意图,如图5所示,本实施例的信息处理方法,包括如下几个步骤:
步骤501、客户端设备向服务端设备发送第二资源配置信息,第二资源配置信息包括客户端设备为服务端设备配置的第二安全域信息。
第二安全域信息与上述实施例的第一安全域信息不同。
在本申请的一个实施例中,第二安全域信息包括服务端设备的安全域的第一标识以及第二可发现性标识,第二可发现性标识用于指示在多播发现过程中服务端设备的安全域不能被发现(或者说服务端设备的安全域不能被暴露)。第二安全域信息还可以包括安全域的名称。
示例性的,第二资源配置信息可以表示为:
在一些实施例中,第二资源配置信息可以看作是客户端设备为服务端设备重新配置的资源配置信息。那么,与图4实施例中第一资源配置信息的示例相比,客户端设备重新配置了安全域的可发现性标识,将“priv=false”修改为“priv=true”,“priv=true”表示安全域不能被发现。基于新的资源配置信息,客户端设备在执行步骤506时,与图3实施例的步骤304具有截然相反的判断结果,具体可参见后文。
在一些实施例中,第二资源配置信息也可以被看作是客户端设备为服务端设备预配置的资源配置信息,只是该资源配置信息中限定了安全域的可发现性标识指示安全与不能被发现。
步骤502、服务端设备根据第二资源配置信息,向客户端设备发送第二资源配置响应消息。(可选)
服务端设备根据接收到的第二资源配置信息,更新本地的配置信息,包括更新本地的安全域信息。服务端设备返回的第二资源配置响应消息可以包括服务端设备的安全域的第一标识以及第二可发现性标识,还可以包括服务端设备的安全域名称。
步骤503、客户端设备确定是否接收到服务端设备的第二资源配置响应消息。
步骤503与图4实施例的步骤403类似,具体可参见上述实施例。
在本申请的一个实施例中,客户端设备可以在确定接收到服务端设备的第二资源配置响应消息之后,执行步骤504。
在本申请的一个实施例中,无论客户端设备是否接收到服务端设备的第二资源配置响应消息,均执行步骤504。
步骤504、客户端设备向服务端设备发送第一资源发现请求,第一资源发现请求用于请求服务端设备的资源信息以及安全域信息。
步骤504与图3实施例的步骤301类似,具体可参见上述实施例。
示例性的,第一资源发现请求可以表示为:
RETRIEVE/oic/res?sduuid=12345678-1234-1234-1234-123412341234,该请求中包括第一标识“sduuid=12345678-1234-1234-1234-123412341234”,仅第一标识作为查询条件。
步骤505、服务端设备根据第一资源发现请求确定不返回第一资源发现响应消息。
具体的,服务端设备根据第一资源发现请求以及本地更新的资源配置信息,由于更新后的资源配置信息中priv为true,可以确定安全域信息不映射到res资源,因此服务端设备确定不返回第一资源发现响应消息。其中,本地更新的资源配置信息包括上述第二安全域信息。
需要说明的是,由于客户端设备为服务端设备配置的第二可发现性标识指示安全域不能被发现,因此服务端设备在接收到第一资源发现请求之后,直接忽略该第一资源发现请求,不返回第一资源发现响应消息。
步骤506、客户端设备确定是否接收到服务端设备的第一资源发现响应消息。
具体的,客户端设备可根据是否接收到服务端设备的第一资源发现响应消息,确定服务端设备对资源发现的响应能力。
在本申请的一个实施例中,若客户端设备确定未收到服务端设备的第一资源发现响应消息,客户端设备确定服务端设备对资源发现的响应能力满足测试要求。
在本申请的一个实施例中,若客户端设备确定收到服务端设备的第一资源发现响应消息,客户端设备确定服务端设备对资源发现的响应能力不满足测试要求。
从上述描述可知,本实施例是在客户端设备没有收到服务端设备的资源发现响应消息时,确定服务端设备对资源发现的响应能力满足测试要求。然而,图3实施例是在客户端设备接收到服务端设备的资源发现响应消息后,进一步确定客户端设备为服务端设备配置的安全域信息与服务端设备返回的资源发现响应消息中的安全域信息一 致时,确定服务端设备对资源发现的响应能力满足测试要求。可见,本实施例与图3实施例在确定服务端设备对资源发现的响应能力是否满足测试要求时,具有截然相反的判断逻辑。
本实施例提供的信息处理方法可用于设备性能测试,客户端设备向服务端设备发送第二资源配置信息,第二资源配置信息包括客户端设备为服务端设备重新配置的第二安全域信息,第二安全域信息与上述实施例的第一安全域信息不同。服务端设备根据接收到的第二资源配置信息更新本地配置。随后,客户端设备向服务端设备发送第一资源发现请求,第一资源发现请求用于请求服务端设备的资源信息以及安全域信息,服务端设备根据第一资源发现请求以及本地更新的配置信息,确定不返回第一资源发现响应消息。客户端设备可以根据是否接收到服务端设备的第一资源发现响应消息,确定服务端设备在安全域配置变更后,对资源发现的响应能力。本实施例通过变更服务端设备的安全域的可发现性(或者说隐私设置),再次发起资源发现请求,根据服务端设备是否响应,完成对服务端设备性能测试,确保通过测试的服务端设备都能够正确响应资源发现请求,避免由于服务端设备性能问题影响后续业务服务。
在上述任一实施例的基础上,客户端设备还可以通过更改资源发现请求中的安全域标识,对服务端设备响应能力是否满足测试要求作进一步判断。下面结合附图6对本实施例提供的信息处理方法进行详细说明。需要说明的是,下述实施例可以基于上述任一实施例展开,也可以作为一个单独的实施例执行。
图6为本申请实施例提供的一种信息处理方法的交互示意图,如图6所示,本实施例的信息处理方法,包括如下几个步骤:
步骤601、客户端设备向服务端设备发送第二资源发现请求,第二资源发现请求包括客户端设备生成的安全域的第三标识,第三标识与客户端设备为服务端设备配置的安全域的第一标识不同。
本实施例中,第三标识是客户端设备重新生成的一个安全域的标识,该第三标识与客户端设备为服务端设备预先配置的安全域的第一标识不同。可选的,客户端设备可以通过广播、多播或单播方式向服务端设备发送第二资源发现请求。
示例性的,第二资源发现请求可以表示为:
RETRIEVE/oic/res?sduuid=12345678-5678-5678-5678-567856785678。对比可知,与图3实施例步骤301中第一资源发现请求相比,第二资源发现请求包括与第一标识完全不同的第三标识“sduuid=12345678-5678-5678-5678-567856785678”,且可以没有接口信息,即仅第三标识作为查询条件。
步骤602、服务端设备根据第二资源发现请求确定是否返回第二资源发现响应消息。
如果服务端设备确定不返回第二资源发现响应消息,服务端设备不发送第二资源发现响应消息。如果服务端设备确定返回第二资源发现响应消息,服务端设备向客户端设备发送第二资源发现响应消息。
可以理解,在一些实施例中,客户端设备通过广播或多播方式向服务端设备发送第二资源发现请求,不同的服务端设备根据第二资源发现请求会作出不同的响应。在另一些实施例中,如果针对某一特定服务端设备,客户端设备通过单播方式向该服务端设备发送第二资源发现请求,第二资源发现请求中携带的安全域的第三标识并不是客户端设备为服务端设备预先配置的第一标识,如果该服务端设备对资源发现机制的响应有问题,服务端设备有可能向客户端设备发送第二资源发现响应消息,那么客户端设备可以根据步骤603,对该服务端设备的响应能力是否满足测试要求作出正确判断。
步骤603、客户端设备确定是否接收到服务端设备的第二资源发现响应消息。
具体的,客户端设备可根据是否接收到服务端设备的第二资源发现响应消息,确定服务端设备对资源发现的响应能力。
在本申请的一个实施例中,若客户端设备确定未收到服务端设备的第二资源发现响应消息,客户端设备确定服务端设备对资源发现的响应能力满足测试要求。若客户端设备确定收到服务端设备的第二资源发现响应消息,客户端设备确定服务端设备对资源发现的响应能力不满足测试要求。
本实施例提供的信息处理方法可用于设备性能测试,客户端设备向服务端设备发送第二资源发现请求,第二资源发现请求包括客户端设备生成的安全域的第三标识,该第三标识与客户端设备为服务端设备配置的安全域的第一标识不同。正常情况下,服务端设备接收到第二资源发现请求后,确定标识不匹配,不发送第二资源发现响应消息。异常情况下,服务端设备向客户端设备发送第二资源发现响应消息。客户端设备根据是否接收到服务端设备的第二资源发现响应消息,确定服务端设备对资源发现的响应能力是否满足测试要求。本实施例通过变更安全域标识,再次发起资源发现请求,根据服务端设备是否响应,完成对服务端设备性能测试,确保通过测试的服务端设备能够正确响应资源发现请求,避免由于服务端设备性能问题影响后续业务服务。
下面通过几个具体实例,对本申请提供的技术方案进行介绍。
图7为本申请实施例提供的一种信息处理方法的交互示意图,如图7所示,本实施例提供的信息处理方法,包括如下几个步骤:
步骤701、客户端设备激活并配置服务端设备。
步骤702、客户端设备向服务端设备发送安全域配置指令1。其中,安全域配置指令1中包括安全域ID、安全域名称以及安全域可发现性标识。
步骤703、服务端设备根据接收到的安全域配置指令1,向客户端设备返回单播响应1,响应1中携带安全域配置指令1中的安全域信息。
步骤704、客户端设备检查是否收到正确响应。
本步骤中,收到正确响应是指客户端设备收到服务端设备返回的响应1,且响应1中携带正确的安全域信息。
步骤705、客户端设备保存为服务端设备配置的安全域ID。
步骤706、客户端设备向服务端设备发送资源发现请求1,资源发现请求1包括安全域ID以及资源接口。
例如:RETRIEVE/oic/res?if=oic.if.baseline&sduuid=12345678-1234-1234-1234-123412341234
步骤707、服务端设备根据接收到的资源发现请求1,向客户端设备返回单播响应2。例如:
步骤708、客户端设备检查是否收到正确响应。
本步骤中,客户端设备收到服务端设备返回的响应2,且响应2中sduuid的属性值与客户端设备保存的uuid值相同,则认为客户端设备收到正确响应。
步骤709、客户端设备保存响应2中的links或links中的关键数据。
例如,保存links中的设备标识ID“11ace64c-2412-4e9f-aa8b-e6128473bb65”。
步骤710、客户端设备向服务端设备发送资源发现请求2,资源发现请求2包括安全域ID。
例如:RETRIEVE/oic/res?sduuid=12345678-1234-1234-1234-123412341234
步骤711、服务端设备根据接收到的资源发现请求2,向客户端设备返回单播响应3。例如:
步骤712、客户端设备检查是否收到正确响应。
本步骤中,客户端设备收到服务端设备返回的响应3,且响应3中links的属性值(或关键字段)与客户端设备保存的links值(或关键字段)相同,则认为客户端设备收到正确响应。
步骤713、客户端设备向服务端设备发送资源发现请求3,资源发现请求3包括与步骤706和步骤710不同的安全域ID。
例如:RETRIEVE/oic/res?sduuid=12345678-5678-5678-5678-567856785678
步骤714、服务端设备根据接收到的资源发现请求3,确定资源发现请求3中的sduuid与服务端设备本地保存的uuid不一致,服务端设备不返回响应。
步骤715、客户端设备检查是否未收到服务端设备的响应。
步骤716、客户端设备向服务端设备发送安全域配置指令2。其中,安全域配置指 令2中包括安全域ID、安全域名称以及安全域可发现性标识。
步骤717、服务端设备根据接收到的安全域配置指令2,向客户端设备返回单播响应4,响应4中携带安全域配置指令2中的安全域信息。
步骤718、客户端设备检查是否收到正确响应。
本步骤中,收到正确响应是指客户端设备收到服务端设备返回的响应4,且响应4中携带正确的安全域信息。
步骤719、客户端设备向服务端设备发送资源发现请求4,资源发现请求4中包括安全域ID。
例如:RETRIEVE/oic/res?sduuid=12345678-1234-1234-1234-123412341234
步骤720、服务端设备根据接收到的资源发现请求4,确定资源发现请求4请求的安全域不能被发现,服务端设备不返回响应。
步骤721、客户端设备检查是否未收到服务端设备的响应。
步骤722、客户端设备通过上述检查项,确定服务端设备是否通过性能测试。
图8为本申请实施例提供的一种信息处理方法的交互示意图,如图7所示,本实施例提供的信息处理方法,包括如下几个步骤:
步骤801、客户端设备向服务端设备发送资源发现请求1。
例如:RETRIEVE/oic/res?if=baseline
步骤802、服务端设备根据接收到的资源发现请求1,向客户端设备返回单播响应1。例如:
步骤803、客户端设备检查是否收到正确响应。
本步骤中,客户端设备接收到服务端设备返回的响应1,且响应1中包含links、 sduuid以及sdname,则认为客户端设备收到正确响应。
步骤804、客户端设备保存links和sduuid。即保存响应1中links和sduuid。
步骤805、客户端设备向服务端设备发送资源发现请求2。
例如:RETRIEVE/oic/res?sduuid=12345678-1234-1234-1234-123412341234
步骤806、服务端设备根据接收到的资源发现请求2,向客户端设备返回单播响应2。例如:
步骤807、客户端设备检查是否收到正确响应。
若客户端设备收到正确响应,即客户端设备接收到服务端设备返回的响应2,且响应2中links属性值(或关键字段)与客户端设备保存的links值(或关键字段)一致,记录测试结果R1=true。
若客户端设备未收到正确响应,即客户端设备接收到服务端设备返回的响应2,但响应2中links属性值与客户端设备保存的links值不一致,记录测试结果R1=false。
若客户端设备未收到响应,直接记录测试结果R1=false。
步骤808、客户端设备向服务端设备发送资源发现请求3,资源发现请求3包括与步骤805不同的安全域ID。
例如:RETRIEVE/oic/res?sduuid=12345678-5678-5678-5678-567856785678
步骤809、服务端设备根据接收到的资源发现请求3,确定资源发现请求3中的sduuid与服务端设备本地保存的uuid不一致,服务端设备不返回响应。
步骤810、客户端设备检查是否未收到服务端设备的响应。
若客户端设备收到服务端设备的响应,记录测试结果R2=true。否则记录测试结果R2=false。
步骤811、根据R1和R2,确定服务端设备是否通过测试。
当R1=true,R2=false时,客户端设备确定服务端设备通过测试。否则不通过测试。
图9为本申请实施例提供的一种信息处理方法的交互示意图,如图9所示,本实施例提供的信息处理方法,包括如下几个步骤:
步骤901、客户端设备向服务端设备发送资源发现请求1。
例如:RETRIEVE/oic/res?if=baseline。
步骤902、服务端设备根据接收到的资源发现请求1,向客户端设备返回单播响应1。例如:
步骤903、客户端设备检查是否收到正确响应,记录测试结果R1,根据R1确定是否继续执行测试。
若客户端设备收到正确响应,记录R1=true,执行步骤904。否则结束测试。
步骤904、客户端设备保存sduuid。
步骤905、客户端设备向服务端设备发送资源发现请求2。资源发现请求2包括安全域ID以及资源接口。
例如:RETRIEVE/oic/res?if=oic.if.baseline&sduuid=12345678-1234-1234-1234-123412341234
步骤906、服务端设备根据接收到的资源发现请求2,向客户端设备返回单播响应2。例如:
步骤907、客户端设备检查是否收到正确响应,记录测试结果R2,根据R2确定是否继续执行测试。
若客户端设备收到正确响应,即响应2中sduuid属性值与客户端设备保存的uuid值一致,记录R2=true,执行步骤908。否则结束测试。
步骤908、客户端设备向服务端设备发送资源发现请求3,资源发现请求3包括与步骤905不同的安全域ID以及资源接口。
例如:RETRIEVE/oic/res?if=oic.if.baseline&sduuid=12345678-5678-5678-5678-567856785678
步骤909、服务端设备根据接收到的资源发现请求3,确定资源发现请求3中的sduuid与服务端设备本地保存的uuid不一致,服务端设备不返回响应。
步骤910、客户端设备检查是否未收到服务端设备的响应,记录测试结果R3,根据R3确定服务端设备是否通过测试。
若客户端设备未收到服务端设备的响应,记录R3=false,客户端设备确定服务端设备通过测试。否则不通过测试。
图10为本申请实施例提供的一种信息处理装置的结构示意图,如图10所示,本实施例提供的信息处理装置1000,包括:
发送模块1001,用于向服务端设备发送第一资源发现请求,所述第一资源发现请求用于请求所述服务端设备的资源信息以及安全域信息;
处理模块1002,用于确定是否收到所述服务端设备的第一资源发现响应消息。
在本申请的一个实施例中,所述第一资源发现请求包括所述客户端设备为所述服务端设备配置的安全域的第一标识以及第一接口的至少一项,所述第一接口用于指示所述服务端设备返回所述服务端设备的安全域信息。
在本申请的一个实施例中,所述第一资源发现响应消息包括所述服务端设备的安全域的第二标识以及所述服务端设备的第二资源链接link的至少一项。
图11为本申请实施例提供的一种信息处理装置的结构示意图,如图11所示,在图10所示信息处理装置的基础上,本实施例的信息处理装置1000还包括:存储模块1003和接收模块1004。
所述存储模块1003,用于保存所述第一资源发现响应消息。
在本申请的一个实施例中,若所述接收模块1004收到所述服务端设备的第一资源发现响应消息,所述处理模块1002,还用于根据所述第一资源发现响应消息确定所述服务端设备对资源发现的响应能力。
在本申请的一个实施例中,所述处理模块1002,具体用于:
根据所述客户端设备为所述服务端设备配置的安全域的第一标识以及所述第一资源响应消息中所述服务端设备的安全域的第二标识,确定所述服务端设备对资源发现的响应能力。
在本申请的一个实施例中,若所述第一标识与所述第二标识相同,则所述处理模块1002确定所述服务端设备对资源发现的响应能力满足测试要求。
在本申请的一个实施例中,若所述接收模块1004未收到所述服务端设备的第一资源发现响应消息,所述处理模块1002,还用于确定所述服务端设备对资源发现的响应能力不满足测试要求。
在本申请的一个实施例中,所述处理模块1002,具体用于:
根据所述客户端设备预先保存的所述客户端设备的第一资源link以及所述第一资源响应消息中所述服务端设备的第二资源link,确定所述服务端设备对资源发现的响应能力。
在本申请的一个实施例中,若所述第一资源link与所述第二资源link相同,则所述处理模块1002确定所述服务端设备对资源发现的响应能力满足测试要求。
在本申请的一个实施例中,所述发送模块1001,还用于向所述服务端设备发送第二资源发现请求,所述第二资源发现请求包括所述客户端设备生成的安全域的第三标识,所述第三标识与所述客户端设备为所述服务端设备配置的安全域的第一标识不同;
所述处理模块1002,还用于确定是否收到所述服务端设备的第二资源发现响应消息。
在本申请的一个实施例中,若接收模块1004未收到所述服务端设备的第二资源发现响应消息,所述处理模块1002,还用于确定所述服务端设备对资源发现的响应能力满足测试要求。
在本申请的一个实施例中,所述发送模块1001向服务端设备发送第一资源发现请求之前,还用于向所述服务端设备发送第一资源配置信息,所述第一资源配置信息包括所述客户端设备为所述服务端设备配置的第一安全域信息;
存储模块1003,用于保存所述第一资源配置信息。
在本申请的一个实施例中,所述第一安全域信息包括所述服务端设备的安全域的 第一标识以及第一可发现性标识,所述第一可发现性标识用于指示安全域能够被发现。
在本申请的一个实施例中,所述发送模块1001向服务端设备发送第一资源发现请求之前,还用于向服务端设备发送第二资源配置信息,所述第二资源配置信息包括所述客户端设备为所述服务端设备配置的第二安全域信息。
在本申请的一个实施例中,所述第二安全域信息包括所述服务端设备的安全域的第一标识以及第二可发现性标识,所述第二可发现性标识用于指示安全域不能被发现。
在本申请的一个实施例中,若接收模块1004未收到所述服务端设备的第一资源发现响应消息,所述处理装置,还用于确定所述服务端设备对资源发现的响应能力满足测试要求。
本申请实施例提供的信息处理装置,用于执行前述图3至图9所示方法实施例中的客户端设备执行的技术方案,其实现原理和技术效果类似,在此不再赘述。
需要说明的是,应理解以上信息处理装置的各个模块的划分仅仅是一种逻辑功能的划分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块通过处理元件调用软件的形式实现,部分模块通过硬件的形式实现。例如,处理模块可以为单独设立的处理元件,也可以集成在上述装置的某一个芯片中实现,此外,也可以以程序代码的形式存储于上述装置的存储器中,由上述装置的某一个处理元件调用并执行以上确定模块的功能。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。这里所述的处理元件可以是一种集成电路,具有信号的处理能力。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(application specific integrated circuit,ASIC),或,一个或多个微处理器(digital signal processor,DSP),或,一个或者多个现场可编程门阵列(field programmable gate array,FPGA)等。再如,当以上某个模块通过处理元件调度程序代码的形式实现时,该处理元件可以是通用处理器,例如中央处理器(central processing unit,CPU)或其它可以调用程序代码的处理器。再如,这些模块可以集成在一起,以片上系统(system-on-a-chip,SOC)的形式实现。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘solid state disk(SSD))等。
图12为本申请实施例提供的一种信息处理装置的硬件结构示意图。如图12所示,本实施例的信息处理装置1100,可以包括:处理器1101、存储器1102和通信接口1103。其中,存储器1102,用于存储计算机程序;处理器1101,用于执行存储器1102存储的计算机程序,以实现上述任一方法实施例中客户端设备所执行的方法。通信接口 1103,用于与其他设备进行数据通信或者信号通信。
可选的,存储器1102既可以是独立的,也可以跟处理器1101集成在一起。当所述存储器1102是独立于处理器1101之外的器件时,所述信息处理装置1100还可以包括:总线1104,用于连接所述存储器1102和处理器1101。
在一种可能的实施方式中,图10中的处理模块1002可以集成在处理器1101中实现,发送模块1001可以集成在通信接口1103中实现。图11中的处理模块1002可以集成在处理器1101中实现,发送模块1001和接收模块1004可以集成在通信接口1103中实现,存储模块1003可以集成在存储器1102中实现。在一种可能的实施方式中,处理器1101可用于实现上述方法实施例中客户端设备的信号处理操作,通信接口1103可用于实现上述方法实施例中客户端设备的信号收发操作。
本实施例提供的信息处理装置,可用于执行上述任一方法实施例中客户端设备所执行的方法,其实现原理和技术效果类似,此处不再赘述。
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当所述计算机执行指令被处理器执行时用于实现前述任一方法实施例中客户端设备的技术方案。
本申请实施例还提供一种计算机程序,当该计算机程序被处理器执行时,用于执行前述任一方法实施例中客户端设备的技术方案。
本申请实施例还提供一种计算机程序产品,包括程序指令,程序指令用于实现前述任一方法实施例中客户端设备的技术方案。
本申请实施例还提供了一种芯片,包括:处理模块与通信接口,该处理模块能执行前述方法实施例中客户端设备的技术方案。
进一步地,该芯片还包括存储模块(如,存储器),存储模块用于存储指令,处理模块用于执行存储模块存储的指令,并且对存储模块中存储的指令的执行使得处理模块执行前述任一方法实施例中客户端设备的技术方案。
本申请中,“至少两个”是指两个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系;在公式中,字符“/”,表示前后关联对象是一种“相除”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中,a,b,c可以是单个,也可以是多个。
可以理解的是,在本申请的实施例中涉及的各种数字编号仅为描述方便进行的区分,并不用来限制本申请的实施例的范围。
可以理解的是,在本申请的实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请的实施例的实施过程构成任何限定。
Claims (37)
- 一种信息处理方法,其特征在于,包括:客户端设备向服务端设备发送第一资源发现请求,所述第一资源发现请求用于请求所述服务端设备的资源信息以及安全域信息;所述客户端设备确定是否收到所述服务端设备的第一资源发现响应消息。
- 根据权利要求1所述的方法,其特征在于,所述第一资源发现请求包括所述客户端设备为所述服务端设备配置的安全域的第一标识以及第一接口的至少一项,所述第一接口用于指示所述服务端设备返回所述服务端设备的安全域信息。
- 根据权利要求1或2所述的方法,其特征在于,所述第一资源发现响应消息包括所述服务端设备的安全域的第二标识以及所述服务端设备的第二资源链接link的至少一项;所述方法还包括:所述客户端设备保存所述第一资源发现响应消息。
- 根据权利要求1-3中任一项所述的方法,其特征在于,若所述客户端设备确定收到所述服务端设备的第一资源发现响应消息,所述方法还包括:所述客户端设备根据所述第一资源发现响应消息确定所述服务端设备对资源发现的响应能力。
- 根据权利要求4所述的方法,其特征在于,所述客户端设备根据所述第一资源发现响应消息确定所述服务端设备对资源发现的响应能力,包括:所述客户端设备根据所述客户端设备为所述服务端设备配置的安全域的第一标识以及所述第一资源响应消息中所述服务端设备的安全域的第二标识,确定所述服务端设备对资源发现的响应能力。
- 根据权利要求5所述的方法,其特征在于,所述客户端设备根据所述客户端设备为所述服务端设备配置的安全域的第一标识以及所述第一资源响应消息中所述服务端设备的安全域的第二标识,确定所述服务端设备对资源发现的响应能力,包括:若所述第一标识与所述第二标识相同,则所述客户端设备确定所述服务端设备对资源发现的响应能力满足测试要求。
- 根据权利要求1-3中任一项所述的方法,其特征在于,若所述客户端设备确定未收到所述服务端设备的第一资源发现响应消息,所述方法还包括:所述客户端设备确定所述服务端设备对资源发现的响应能力不满足测试要求。
- 根据权利要求4所述的方法,其特征在于,所述客户端设备根据所述第一资源发现响应消息确定所述服务端设备对资源发现的响应能力,包括:所述客户端设备根据所述客户端设备预先保存的所述客户端设备的第一资源link以及所述第一资源响应消息中所述服务端设备的第二资源link,确定所述服务端设备对资源发现的响应能力。
- 根据权利要求8所述的方法,其特征在于,所述客户端设备根据所述客户端设备预先保存的所述客户端设备的第一资源link以及所述第一资源响应消息中所述服务端设备的第二资源link,确定所述服务端设备对资源发现的响应能力,包括:若所述第一资源link与所述第二资源link相同,则所述客户端设备确定所述服务端设备对资源发现的响应能力满足测试要求。
- 根据权利要求1-9中任一项所述的方法,其特征在于,所述方法还包括:所述客户端设备向所述服务端设备发送第二资源发现请求,所述第二资源发现请求包括所述客户端设备生成的安全域的第三标识,所述第三标识与所述客户端设备为所述服务端设备配置的安全域的第一标识不同;所述客户端设备确定是否收到所述服务端设备的第二资源发现响应消息。
- 根据权利要求10所述的方法,其特征在于,若所述客户端设备确定未收到所 述服务端设备的第二资源发现响应消息,所述方法还包括:所述客户端设备确定所述服务端设备对资源发现的响应能力满足测试要求。
- 根据权利要求1-11中任一项所述的方法,其特征在于,所述客户端设备向服务端设备发送第一资源发现请求之前,所述方法还包括:所述客户端设备向所述服务端设备发送第一资源配置信息,所述第一资源配置信息包括所述客户端设备为所述服务端设备配置的第一安全域信息;所述客户端设备保存所述第一资源配置信息。
- 根据权利要求12所述的方法,其特征在于,所述第一安全域信息包括所述服务端设备的安全域的第一标识以及第一可发现性标识,所述第一可发现性标识用于指示安全域能够被发现。
- 根据权利要求1或2所述的方法,其特征在于,所述客户端设备向服务端设备发送第一资源发现请求之前,所述方法还包括:客户端设备向服务端设备发送第二资源配置信息,所述第二资源配置信息包括所述客户端设备为所述服务端设备配置的第二安全域信息。
- 根据权利要求14所述的方法,其特征在于,所述第二安全域信息包括所述服务端设备的安全域的第一标识以及第二可发现性标识,所述第二可发现性标识用于指示安全域不能被发现。
- 根据权利要求14或15所述的方法,其特征在于,若所述客户端设备确定未收到所述服务端设备的第一资源发现响应消息,所述方法还包括:所述客户端设备确定所述服务端设备对资源发现的响应能力满足测试要求。
- 一种信息处理装置,其特征在于,发送模块,用于向服务端设备发送第一资源发现请求,所述第一资源发现请求用于请求所述服务端设备的资源信息以及安全域信息;处理模块,用于确定是否收到所述服务端设备的第一资源发现响应消息。
- 根据权利要求17所述的装置,其特征在于,所述第一资源发现请求包括所述客户端设备为所述服务端设备配置的安全域的第一标识以及第一接口的至少一项,所述第一接口用于指示所述服务端设备返回所述服务端设备的安全域信息。
- 根据权利要求17或18所述的装置,其特征在于,所述第一资源发现响应消息包括所述服务端设备的安全域的第二标识以及所述服务端设备的第二资源链接link的至少一项;所述装置还包括:存储模块;所述存储模块,用于保存所述第一资源发现响应消息。
- 根据权利要求17-19中任一项所述的装置,其特征在于,所述装置还包括:接收模块;若所述接收模块收到所述服务端设备的第一资源发现响应消息,所述处理模块,还用于根据所述第一资源发现响应消息确定所述服务端设备对资源发现的响应能力。
- 根据权利要求20所述的装置,其特征在于,所述处理模块,具体用于:根据所述客户端设备为所述服务端设备配置的安全域的第一标识以及所述第一资源响应消息中所述服务端设备的安全域的第二标识,确定所述服务端设备对资源发现的响应能力。
- 根据权利要求21所述的装置,其特征在于,若所述第一标识与所述第二标识相同,则所述处理模块确定所述服务端设备对资源发现的响应能力满足测试要求。
- 根据权利要求17-19中任一项所述的装置,其特征在于,所述装置还包括:接收模块,若所述接收模块未收到所述服务端设备的第一资源发现响应消息,所述处理模块,还用于确定所述服务端设备对资源发现的响应能力不满足测试要求。
- 根据权利要求20所述的装置,其特征在于,所述处理模块,具体用于:根据所述客户端设备预先保存的所述客户端设备的第一资源link以及所述第一资源响应消息中所述服务端设备的第二资源link,确定所述服务端设备对资源发现的响应能力。
- 根据权利要求24所述的装置,其特征在于,若所述第一资源link与所述第二资源link相同,则所述处理模块确定所述服务端设备对资源发现的响应能力满足测试要求。
- 根据权利要求17-25中任一项所述的装置,其特征在于,所述发送模块,还用于向所述服务端设备发送第二资源发现请求,所述第二资源发现请求包括所述客户端设备生成的安全域的第三标识,所述第三标识与所述客户端设备为所述服务端设备配置的安全域的第一标识不同;所述处理模块,还用于确定是否收到所述服务端设备的第二资源发现响应消息。
- 根据权利要求26所述的装置,其特征在于,若接收模块未收到所述服务端设备的第二资源发现响应消息,所述处理模块,还用于确定所述服务端设备对资源发现的响应能力满足测试要求。
- 根据权利要求17-27中任一项所述的装置,其特征在于,所述发送模块向服务端设备发送第一资源发现请求之前,还用于:向所述服务端设备发送第一资源配置信息,所述第一资源配置信息包括所述客户端设备为所述服务端设备配置的第一安全域信息;存储模块,用于保存所述第一资源配置信息。
- 根据权利要求28所述的装置,其特征在于,所述第一安全域信息包括所述服务端设备的安全域的第一标识以及第一可发现性标识,所述第一可发现性标识用于指示安全域能够被发现。
- 根据权利要求17或18所述的装置,其特征在于,所述发送模块向服务端设备发送第一资源发现请求之前,还用于:向服务端设备发送第二资源配置信息,所述第二资源配置信息包括所述客户端设备为所述服务端设备配置的第二安全域信息。
- 根据权利要求30所述的装置,其特征在于,所述第二安全域信息包括所述服务端设备的安全域的第一标识以及第二可发现性标识,所述第二可发现性标识用于指示安全域不能被发现。
- 根据权利要求30或31所述的装置,其特征在于,若接收模块未收到所述服务端设备的第一资源发现响应消息,所述处理装置,还用于确定所述服务端设备对资源发现的响应能力满足测试要求。
- 一种信息处理装置,其特征在于,包括:存储器和处理器,所述存储器用于存储计算机程序,所述处理器用于从所述存储器中调用并运行所述计算机程序,使得所述处理器运行所述计算机程序执行如权利要求1-16中任一项所述的方法。
- 一种计算机存储介质,其特征在于,用于存储计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如权利要求1-16中任一项所述的方法。
- 一种计算机程序,其特征在于,所述计算机程序被处理器执行时,用于执行如权利要求1-16中任一项所述的方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-16中任一项所述的方法。
- 一种芯片,其特征在于,包括:处理模块与通信接口,所述处理模块用于从存储器中调用并运行所述存储器中存储的计算机程序,执行如权利要求1-16中任一项所述的方法。
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/119995 WO2022073196A1 (zh) | 2020-10-09 | 2020-10-09 | 信息处理方法、装置及存储介质 |
EP20956511.8A EP4228299A4 (en) | 2020-10-09 | 2020-10-09 | INFORMATION PROCESSING METHOD AND DEVICE AND STORAGE MEDIUM |
CN202080102516.0A CN115918116A (zh) | 2020-10-09 | 2020-10-09 | 信息处理方法、装置及存储介质 |
US18/089,289 US11991093B2 (en) | 2020-10-09 | 2022-12-27 | Information processing method and apparatus, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2020/119995 WO2022073196A1 (zh) | 2020-10-09 | 2020-10-09 | 信息处理方法、装置及存储介质 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US18/089,289 Continuation US11991093B2 (en) | 2020-10-09 | 2022-12-27 | Information processing method and apparatus, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022073196A1 true WO2022073196A1 (zh) | 2022-04-14 |
Family
ID=81125698
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/119995 WO2022073196A1 (zh) | 2020-10-09 | 2020-10-09 | 信息处理方法、装置及存储介质 |
Country Status (4)
Country | Link |
---|---|
US (1) | US11991093B2 (zh) |
EP (1) | EP4228299A4 (zh) |
CN (1) | CN115918116A (zh) |
WO (1) | WO2022073196A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230216810A1 (en) * | 2020-10-09 | 2023-07-06 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Information processing method and apparatus, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107580790A (zh) * | 2015-05-07 | 2018-01-12 | 三星电子株式会社 | 用于提供简档的方法和装置 |
WO2019089164A1 (en) * | 2017-11-06 | 2019-05-09 | Intel Corporation | Secure device onboarding techniques |
US20200169549A1 (en) * | 2017-07-05 | 2020-05-28 | Intel Corporation | Establishing connections between iot devices using authentication tokens |
Family Cites Families (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7219304B1 (en) * | 2000-06-19 | 2007-05-15 | International Business Machines Corporation | System and method for developing and administering web applications and services from a workflow, enterprise, and mail-enabled web application server and platform |
US6785721B1 (en) * | 2000-06-19 | 2004-08-31 | International Business Machines Corporation | System and method for providing a distributable runtime that deploys web applications and services from a workflow, enterprise, and mail-enabled web application server and platform |
US8041761B1 (en) * | 2002-12-23 | 2011-10-18 | Netapp, Inc. | Virtual filer and IP space based IT configuration transitioning framework |
US8528063B2 (en) * | 2004-03-31 | 2013-09-03 | International Business Machines Corporation | Cross domain security information conversion |
US20050246529A1 (en) * | 2004-04-30 | 2005-11-03 | Microsoft Corporation | Isolated persistent identity storage for authentication of computing devies |
KR100562255B1 (ko) * | 2004-09-21 | 2006-03-22 | 에스케이 텔레콤주식회사 | 시큐리티 도메인의 키 초기화 방법 |
WO2009143750A1 (zh) * | 2008-05-26 | 2009-12-03 | 华为技术有限公司 | 基于tnc的终端数据管理、终端安全评估方法、装置和系统 |
EP2681933B1 (en) * | 2011-03-03 | 2017-05-10 | Interdigital Patent Holdings, Inc. | Method and apparatus for accessing services affiliated with a discovered service provider |
WO2013142139A2 (en) * | 2012-03-22 | 2013-09-26 | Interdigital Patent Holdings, Inc. | Method and apparatus for supporting machine-to-machine caching at a service capability layer |
US9253811B2 (en) * | 2012-10-19 | 2016-02-02 | Verizon Patent And Licensing Inc. | Network-assisted device-to-device communication |
US10506501B2 (en) * | 2014-04-29 | 2019-12-10 | Lg Electronics Inc. | Service discovery method and device in wireless communication system |
CN112911556B (zh) * | 2016-06-27 | 2023-07-14 | 华为技术有限公司 | 用于双模蓝牙设备之间建立经典蓝牙连接的方法和双模蓝牙设备 |
US10701531B2 (en) * | 2017-08-09 | 2020-06-30 | Qualcomm Incorporated | Environmental sensing with wireless communication devices |
WO2019075317A1 (en) * | 2017-10-12 | 2019-04-18 | Convida Wireless, Llc | INTERWORKING SERVICE FOR THE INTERNET OF RESTOUS OBJECTS |
US10880392B2 (en) * | 2018-04-12 | 2020-12-29 | Pearson Management Services Limited | System and method for automated hybrid network creation |
CN115334146A (zh) | 2018-12-11 | 2022-11-11 | Oppo广东移动通信有限公司 | 物联网的资源发布方法、装置、设备及存储介质 |
KR102624642B1 (ko) * | 2019-03-18 | 2024-01-12 | 주식회사 케이티 | M2m 시스템에서 라이프타임 갱신 방법 및 그 장치 |
KR20220126736A (ko) * | 2020-01-17 | 2022-09-16 | 광동 오포 모바일 텔레커뮤니케이션즈 코포레이션 리미티드 | 보안 정보 발견 방법, 보안 정보 구성 방법 및 기기 |
WO2021142849A1 (zh) * | 2020-01-19 | 2021-07-22 | Oppo广东移动通信有限公司 | 安全域的配置、发现和加入方法及装置、电子设备 |
US20230199534A1 (en) * | 2020-05-21 | 2023-06-22 | Telefonaktiebolaget Lm Ericsson (Publ) | Service producer health-check |
CN114982203A (zh) * | 2020-05-27 | 2022-08-30 | Oppo广东移动通信有限公司 | 信息处理方法及装置、设备、计算机存储介质 |
US11636231B2 (en) * | 2020-07-24 | 2023-04-25 | Qualcomm Incorporated | Methods and apparatus for in-memory device access control |
EP4228299A4 (en) * | 2020-10-09 | 2023-12-27 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | INFORMATION PROCESSING METHOD AND DEVICE AND STORAGE MEDIUM |
US11968182B2 (en) * | 2021-07-29 | 2024-04-23 | Automation Anywhere, Inc. | Authentication of software robots with gateway proxy for access to cloud-based services |
-
2020
- 2020-10-09 EP EP20956511.8A patent/EP4228299A4/en active Pending
- 2020-10-09 CN CN202080102516.0A patent/CN115918116A/zh active Pending
- 2020-10-09 WO PCT/CN2020/119995 patent/WO2022073196A1/zh unknown
-
2022
- 2022-12-27 US US18/089,289 patent/US11991093B2/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107580790A (zh) * | 2015-05-07 | 2018-01-12 | 三星电子株式会社 | 用于提供简档的方法和装置 |
US20200169549A1 (en) * | 2017-07-05 | 2020-05-28 | Intel Corporation | Establishing connections between iot devices using authentication tokens |
WO2019089164A1 (en) * | 2017-11-06 | 2019-05-09 | Intel Corporation | Secure device onboarding techniques |
Non-Patent Citations (1)
Title |
---|
See also references of EP4228299A4 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20230216810A1 (en) * | 2020-10-09 | 2023-07-06 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Information processing method and apparatus, and storage medium |
US11991093B2 (en) * | 2020-10-09 | 2024-05-21 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Information processing method and apparatus, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN115918116A (zh) | 2023-04-04 |
EP4228299A4 (en) | 2023-12-27 |
US20230216810A1 (en) | 2023-07-06 |
US11991093B2 (en) | 2024-05-21 |
EP4228299A1 (en) | 2023-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11711682B2 (en) | Cross-resource subscription for M2M service layer | |
JP5391075B2 (ja) | ソフトウェア無線のためのシステム能力の検出 | |
US9158526B1 (en) | Application update using multiple network connections | |
US20070260721A1 (en) | Physical server discovery and correlation | |
JP5753629B2 (ja) | モバイルブロードバンドデバイスを管理する方法、デバイス及びシステム | |
US8213333B2 (en) | Identifying and resolving problems in wireless device configurations | |
US11317276B2 (en) | Methods and/or systems for activation and/or configuration of an electronic subscriber identity module (eSIM) | |
JP6359652B2 (ja) | 情報の伝送方法、装置および機器 | |
CN112261635B (zh) | 蓝牙测试方法、装置、电子设备和计算机可读存储介质 | |
EP2151095B1 (en) | Method and apparatus for discovering universal plug and play device using resource information | |
WO2019242162A1 (zh) | 中间件安装方法、装置、计算机设备及存储介质 | |
CN105376107A (zh) | 终端测试方法和代理服务器 | |
CN107274222B (zh) | 广告投放方法及装置 | |
JP2019525604A (ja) | ネットワーク機能nf管理方法及びnf管理装置 | |
CN113141405B (zh) | 服务访问方法、中间件系统、电子设备和存储介质 | |
US20230045914A1 (en) | Method and apparatus for controlling device in internet of things, and gateway device and storage medium | |
US10931630B2 (en) | System and method for connecting using aliases | |
US11991093B2 (en) | Information processing method and apparatus, and storage medium | |
US11595837B2 (en) | Endpoint computing device multi-network slice remediation/productivity system | |
CN114448857B (zh) | Mock服务处理方法、装置、存储介质和系统 | |
WO2022148050A1 (zh) | 流量管理、配置流量管理策略的方法、装置、设备及介质 | |
WO2020177020A1 (zh) | 物联网设备的发现方法、装置及终端设备 | |
US9992664B2 (en) | Determining network connection structure of target area | |
CN109274715B (zh) | 车载多通道通信系统的平台资源管理系统 | |
CN115426258B (zh) | 信息配置方法、装置、交换机及可读存储介质 |
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: 20956511 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2020956511 Country of ref document: EP Effective date: 20230509 |