In application protocols such as Constrained Application Protocol (CoAP) and Hypertext Transfer Protocol (HTTP), resources may be accessed in a Representational State Transfer (REST)ful manner. SUCH RESTful methods may include CREATE, RETRIEVE, UPDATE, and DELETE. Each resource may have a unique universal resource identifier (URI) and may be addressed via this URI based on Request/Response or Client/Server model. A request message (e.g. a CoAP or HTTP request message) may contain one URI to operate on a single resource. In order to access multiple resources, multiple request messages may be issued.
In the context of Machine-to-Machine (M2M) scenarios where many M2M devices may be resource-constrained, an M2M device may have multiple resources such as different types of sensors and actuators. Moreover, an M2M application may operate (e.g. GET/POST/PUT/DELETE) on multiple different resources simultaneously. In these example scenarios, limiting one URI in a request message may generate multiple different CoAP/HTTP request messages and cause unnecessary communication burden and overhead. In another example, multiple M2M applications may operate on the same M2M device, but different resources, which may inevitably lead to multiple CoAP/HTTP request messages being sent.
A method and apparatus may use multiple unique universal resource identifiers (URIs) in a single request message for machine-to-machine (M2M) communications. An M2M device may receive a multiple URI (MU)-type request message including a multiple URIs associated with a multiple corresponding resources at the M2M device. The M2M device may decode each of the URIs, and may generate at least one multiple value (MV)-type response message including a multiple values in a payload corresponding to the resources at the M2M device. An M2M application may generate an MU-type request message to access resources at an M2M device, and include multiple URIs corresponding to resources at the M2M device. The M2M application may transmit the MU-type request message to the M2M device, possibly via an intermediary such as an M2M core or gateway. The M2M application may receive at least one MV-type response message, from the M2M device, including a multiple values in a payload corresponding to the plurality of resources.
An M2M intermediary may receive multiple single URI (SU)-type request messages from an M2M client. The M2M intermediary may aggregate the SU-type request messages to generate an MU-type request message including multiple URIs extracted from the SU-type request messages, and may transmit the MU-type request message to a M2M server. The M2M intermediary may receive a multiple MV-type response message from the M2M server, including multiple values in a payload corresponding to the plurality of resources. The M2M intermediary may deaggregate the MV-type response message and generate a plurality of SV-type response messages, each including a value from the plurality of values corresponding to a different resource. The M2M intermediary may transmit the SV-type response messages to the M2M client.
A method and apparatus may use multiple URIs (MU) in a single request message for M2M communication networks. Multiple single URI (SU)-type request messages may be received from an application client (e.g. a constrained application protocol (CoAP)/hypertext transfer protocol (HTTP) client) at a (CoAP/HTTP) intermediary node. The multiple SU-type request messages may be aggregated into a single MU-type request message at the intermediary node, and the single MU-type request message may be transmitted to a (CoAP/HTTP) server. A multiple value (MV)-type response message may be received from the (CoAP/HTTP) server. The MV-type response message may be deaggregated into multiple single value (SV)-type response messages. The multiple SV-type response messages may be transmitted to the (CoAP/HTTP) client.
A more detailed understanding may be had from the following description, given by way of example in conjunction with the accompanying drawings wherein:
As shown in
The communications systems 100 may also include a base station 114a and a base station 114b. Each of the base stations 114a, 114b may be any type of device configured to wirelessly interface with at least one of the WTRUs 102a, 102b, 102c, 102d to facilitate access to one or more communication networks, such as the core network 106, the Internet 110, and/or the networks 112. By way of example, the base stations 114a, 114b may be a base transceiver station (BTS), a Node-B, an eNode B, a Home Node B, a Home eNode B, a site controller, an access point (AP), a wireless router, and the like. While the base stations 114a, 114b are each depicted as a single element, it will be appreciated that the base stations 114a, 114b may include any number of interconnected base stations and/or network elements.
The base station 114a may be part of the RAN 104, which may also include other base stations and/or network elements (not shown), such as a base station controller (BSC), a radio network controller (RNC), relay nodes, etc. The base station 114a and/or the base station 114b may be configured to transmit and/or receive wireless signals within a particular geographic region, which may be referred to as a cell (not shown). The cell may further be divided into cell sectors. For example, the cell associated with the base station 114a may be divided into three sectors. Thus, in one embodiment, the base station 114a may include three transceivers, i.e., one for each sector of the cell. In another embodiment, the base station 114a may employ multiple-input multiple output (MIMO) technology and, therefore, may utilize multiple transceivers for each sector of the cell.
The base stations 114a, 114b may communicate with one or more of the WTRUs 102a, 102b, 102c, 102d over an air interface 116, which may be any suitable wireless communication link (e.g., radio frequency (RF), microwave, infrared (IR), ultraviolet (UV), visible light, etc.). The air interface 116 may be established using any suitable radio access technology (RAT).
More specifically, as noted above, the communications system 100 may be a multiple access system and may employ one or more channel access schemes, such as CDMA, TDMA, FDMA, OFDMA, SC-FDMA, and the like. For example, the base station 114a in the RAN 104 and the WTRUs 102a, 102b, 102c may implement a radio technology such as Universal Mobile Telecommunications System (UMTS) Terrestrial Radio Access (UTRA), which may establish the air interface 116 using wideband CDMA (WCDMA). WCDMA may include communication protocols such as High-Speed Packet Access (HSPA) and/or Evolved HSPA (HSPA+). HSPA may include High-Speed Downlink Packet Access (HSDPA) and/or High-Speed Uplink Packet Access (HSUPA).
In another embodiment, the base station 114a and the WTRUs 102a, 102b, 102c may implement a radio technology such as Evolved UMTS Terrestrial Radio Access (E-UTRA), which may establish the air interface 116 using Long Term Evolution (LTE) and/or LTE-Advanced (LTE-A).
In other embodiments, the base station 114a and the WTRUs 102a, 102b, 102c may implement radio technologies such as IEEE 802.16 (i.e., Worldwide Interoperability for Microwave Access (WiMAX)), CDMA2000, CDMA2000 1X, CDMA2000 EV-DO, Interim Standard 2000 (IS-2000), Interim Standard 95 (IS-95), Interim Standard 856 (IS-856), Global System for Mobile communications (GSM), Enhanced Data rates for GSM Evolution (EDGE), GSM EDGE (GERAN), and the like.
The base station 114b in
The RAN 104 may be in communication with the core network 106, which may be any type of network configured to provide voice, data, applications, and/or voice over internet protocol (VoIP) services to one or more of the WTRUs 102a, 102b, 102c, 102d. For example, the core network 106 may provide call control, billing services, mobile location-based services, pre-paid calling, Internet connectivity, video distribution, etc., and/or perform high-level security functions, such as user authentication. Although not shown in
The core network 106 may also serve as a gateway for the WTRUs 102a, 102b, 102c, 102d to access the PSTN 108, the Internet 110, and/or other networks 112. The PSTN 108 may include circuit-switched telephone networks that provide plain old telephone service (POTS). The Internet 110 may include a global system of interconnected computer networks and devices that use common communication protocols, such as the transmission control protocol (TCP), user datagram protocol (UDP) and the internet protocol (IP) in the TCP/IP internet protocol suite. The networks 112 may include wired or wireless communications networks owned and/or operated by other service providers. For example, the networks 112 may include another core network connected to one or more RANs, which may employ the same RAT as the RAN 104 or a different RAT.
Some or all of the WTRUs 102a, 102b, 102c, 102d in the communications system 100 may include multi-mode capabilities, i.e., the WTRUs 102a, 102b, 102c, 102d may include multiple transceivers for communicating with different wireless networks over different wireless links. For example, the WTRU 102c shown in
The processor 118 may be a general purpose processor, a special purpose processor, a conventional processor, a digital signal processor (DSP), a plurality of microprocessors, one or more microprocessors in association with a DSP core, a controller, a microcontroller, Application Specific Integrated Circuits (ASICs), Field Programmable Gate Array (FPGAs) circuits, any other type of integrated circuit (IC), a state machine, and the like. The processor 118 may perform signal coding, data processing, power control, input/output processing, and/or any other functionality that enables the WTRU 102 to operate in a wireless environment. The processor 118 may be coupled to the transceiver 120, which may be coupled to the transmit/receive element 122. While
The transmit/receive element 122 may be configured to transmit signals to, or receive signals from, a base station (e.g., the base station 114a) over the air interface 116. For example, in one embodiment, the transmit/receive element 122 may be an antenna configured to transmit and/or receive RF signals. In another embodiment, the transmit/receive element 122 may be an emitter/detector configured to transmit and/or receive IR, UV, or visible light signals, for example. In yet another embodiment, the transmit/receive element 122 may be configured to transmit and receive both RF and light signals. It will be appreciated that the transmit/receive element 122 may be configured to transmit and/or receive any combination of wireless signals.
In addition, although the transmit/receive element 122 is depicted in
The transceiver 120 may be configured to modulate the signals that are to be transmitted by the transmit/receive element 122 and to demodulate the signals that are received by the transmit/receive element 122. As noted above, the WTRU 102 may have multi-mode capabilities. Thus, the transceiver 120 may include multiple transceivers for enabling the WTRU 102 to communicate via multiple RATs, such as UTRA and IEEE 802.11, for example.
The processor 118 of the WTRU 102 may be coupled to, and may receive user input data from, the speaker/microphone 124, the keypad 126, and/or the display/touchpad 128 (e.g., a liquid crystal display (LCD) display unit or organic light-emitting diode (OLED) display unit). The processor 118 may also output user data to the speaker/microphone 124, the keypad 126, and/or the display/touchpad 128. In addition, the processor 118 may access information from, and store data in, any type of suitable memory, such as the non-removable memory 130 and/or the removable memory 132. The non-removable memory 130 may include random-access memory (RAM), read-only memory (ROM), a hard disk, or any other type of memory storage device. The removable memory 132 may include a subscriber identity module (SIM) card, a memory stick, a secure digital (SD) memory card, and the like. In other embodiments, the processor 118 may access information from, and store data in, memory that is not physically located on the WTRU 102, such as on a server or a home computer (not shown).
The processor 118 may receive power from the power source 134, and may be configured to distribute and/or control the power to the other components in the WTRU 102. The power source 134 may be any suitable device for powering the WTRU 102. For example, the power source 134 may include one or more dry cell batteries (e.g., nickel-cadmium (NiCd), nickel-zinc (NiZn), nickel metal hydride (NiMH), lithium-ion (Li-ion), etc.), solar cells, fuel cells, and the like.
The processor 118 may also be coupled to the GPS chipset 136, which may be configured to provide location information (e.g., longitude and latitude) regarding the current location of the WTRU 102. In addition to, or in lieu of, the information from the GPS chipset 136, the WTRU 102 may receive location information over the air interface 116 from a base station (e.g., base stations 114a, 114b) and/or determine its location based on the timing of the signals being received from two or more nearby base stations. It will be appreciated that the WTRU 102 may acquire location information by way of any suitable location-determination method while remaining consistent with an embodiment.
The processor 118 may further be coupled to other peripherals 138, which may include one or more software and/or hardware modules that provide additional features, functionality and/or wired or wireless connectivity. For example, the peripherals 138 may include an accelerometer, an e-compass, a satellite transceiver, a digital camera (for photographs or video), a universal serial bus (USB) port, a vibration device, a television transceiver, a hands free headset, a Bluetooth® module, a frequency modulated (FM) radio unit, a digital music player, a media player, a video game player module, an Internet browser, and the like.
The RAN 104 may include eNode-Bs 140a, 140b, 140c, though it will be appreciated that the RAN 104 may include any number of eNode-Bs while remaining consistent with an embodiment. The eNode-Bs 140a, 140b, 140c may each include one or more transceivers for communicating with the WTRUs 102a, 102b, 102c over the air interface 116. In one embodiment, the eNode-Bs 140a, 140b, 140c may implement MIMO technology. Thus, the eNode-B 140a, for example, may use multiple antennas to transmit wireless signals to, and receive wireless signals from, the WTRU 102a.
Each of the eNode-Bs 140a, 140b, 140c may be associated with a particular cell (not shown) and may be configured to handle radio resource management decisions, handover decisions, scheduling of users in the uplink and/or downlink, and the like. As shown in
The core network 106 shown in
The MME 142 may be connected to each of the eNode-Bs 140a, 140b, 140c in the RAN 104 via an S1 interface and may serve as a control node. For example, the MME 142 may be responsible for authenticating users of the WTRUs 102a, 102b, 102c, bearer activation/deactivation, selecting a particular serving gateway during an initial attach of the WTRUs 102a, 102b, 102c, and the like. The MME 142 may also provide a control plane function for switching between the RAN 104 and other RANs (not shown) that employ other radio technologies, such as GSM or WCDMA.
The serving gateway 144 may be connected to each of the eNode Bs 140a, 140b, 140c in the RAN 104 via the S1 interface. The serving gateway 144 may generally route and forward user data packets to/from the WTRUs 102a, 102b, 102c. The serving gateway 144 may also perform other functions, such as anchoring user planes during inter-eNode-B handovers, triggering paging when downlink data is available for the WTRUs 102a, 102b, 102c, managing and storing contexts of the WTRUs 102a, 102b, 102c, and the like.
The serving gateway 144 may also be connected to the PDN gateway 146, which may provide the WTRUs 102a, 102b, 102c with access to packet-switched networks, such as the Internet 110, to facilitate communications between the WTRUs 102a, 102b, 102c and IP-enabled devices.
The core network 106 may facilitate communications with other networks. For example, the core network 106 may provide the WTRUs 102a, 102b, 102c with access to circuit-switched networks, such as the PSTN 108, to facilitate communications between the WTRUs 102a, 102b, 102c and traditional land-line communications devices. For example, the core network 106 may include, or may communicate with, an IP gateway (e.g., an IP multimedia subsystem (IMS) server) that serves as an interface between the core network 106 and the PSTN 108. In addition, the core network 106 may provide the WTRUs 102a, 102b, 102c with access to the networks 112, which may include other wired or wireless networks that are owned and/or operated by other service providers.
In the following, architecture and procedures may embed multiple URIs in CoAP/HTTP messages. Architecture and procedures may aggregate and de-aggregate messages based on multiple URIs. Techniques may implement multiple URIs in CoAP and/or HTTP. Methods may interwork multiple URI CoAP/HTTP and single URI CoAP/HTTP.
The embodiments are described herein with respect to the Constrained Application Protocol (CoAP) and/or Hypertext Transfer Protocol (HTTP) for illustrative purposes. For example, techniques are described with respect to HTTP/CoAP request messages, and HTTP/CoAP clients, HTTP/CoAP servers and HTTP/CoAP intermediaries. However, the disclosed techniques may be used for any type of protocol used to access resources including other Representational State Transfer (REST)ful based protocols including, for example, Message Queue Telemetry Transport (MQTT).
In an example, HTTP may be designed as a Request/Response-based protocol for users to access the Internet. Each HTTP request message may contain a single URI to identify the requested resource, which may be sufficient for accessing Internet from computers and laptops. In the case of M2M communications, there may be many constrained devices connected by constrained networks such as IEEE 802.15.4-based sensor networks or M2M Area Networks. M2M communications may involve large amounts of data transmission from constrained devices to networks for purposes such as data collection. In another example, CoAP may be designed to cater to such constrained devices and networks in M2M communications. CoAP may adopt optimization techniques to make it lightweight and energy-efficient. However, CoAP may be designed to use one single URI in each request message, which may introduce significant overhead for M2M constrained devices and networks.
In another example, HTTP may be used to provide web services for business-to-business (B2B) transactions that may generate large amounts of data for transmission, similar to M2M scenarios. However, there may only be one URI in the request message, which may similarly cause significant overhead and inefficiencies.
By way of example, M2M device 204 may have three resources. For example, these resources may be identified temperature, pressure, and smoke, respectively. According to an SU approach, M2M application 212 may transmit three separate request messages 2151,2,3 to operate the three resources. For example, request 2151 may be for temperature, request message 2152 may be for pressure and request message 2153 may be for smoke. In total, the M2M application may transmit three request messages 2151,2,3 in order to manipulate the 3 resources although they are on the same M2M device 204 when the SU approach is used in CoAP/HTTP. It may be that the M2M device 204 did not create the locally generated resources on its local service capability layer (SCL) 218, which may be a gateway SCL (GSCL) 218 of the M2M Gateway 210.
The SU approach, as shown in
According to an embodiment, multiple URIs may be included in a single request message, for example for CoAP and HTTP protocols, referred to as a Multiple URIs (MU) approach. An MU approach may improve CoAP/HTTP performance in constrained M2M area networks and devices. According to the MU technique, each CoAP/HTTP request message may contain multiple URIs as needed and each URI may represent a particular resource.
An MU approach may lower protocol overhead, traffic load and congestion, have higher energy-efficiency, and produce faster response times and lower latency. For example, embedding multiple URIs in a single CoAP/HTTP request message may reduce protocol overhead caused by CoAP/HTTP, User Datagram Protocol (UDP) or Transmission Control protocol UDP/TCP, and Internet protocol (IP) or Medium Access Control (MAC) headers. It may also reduce the number of request messages and in turn lower energy consumption, particularly in multiple-hop M2M area networks, such as the example in
Instead of issuing multiple request messages separately to resources on the same M2M device, a single request message may contain multiple URIs to reduce the number of request messages. The following terminology is used herein, although other terminology may be used. An MU-type Request Message may be a (CoAP or HTTP) request message that contains multiple URIs. A single URI (SU)-type Request Message may be a (CoAP or HTTP) request message that contains a single URI. A multiple value (MV)-type Response Message may be a (CoAP or HTTP) response message containing multiple values in the payload. A single value (SV)-type Response Message may be a (CoAP or HTTP) response message containing a single value in the payload. Although CoAP/HTTP are used as example protocols, other the described techniques may be used in a similar manner with any protocol.
By way of example, M2M device 304 may have three resources identified as temperature, pressure, and smoke. The M2M application 312 may transmit a single MU-type request message 315, which may contain three URIs associated with the three resources temperature, pressure, and smoke. In contrast to SU illustrated in
For example,
Examples of high-level MU procedures are shown in
The CoAP/HTTP server 406 may process request messages 414 and generate response messages 416. In 414, the CoAP/HTTP Server 406, after receiving an MU-type request message from CoAP/HTTP Client 402, may process the received request message and decode each URI contained therein. In 416, the CoAP/HTTP Server 406 may generate on or more response messages and may transmit the response message to the requesting CoAP/HTTP Client 402. For example, the response message may be SV-type or MV-type.
CoAP/HTTP Intermediary 404 may process request messages 412 and process response messages 418. In 412, the CoAP/HTTP Intermediary 404 may process one or more request messages, which may include aggregating multiple SU-type request messages received from the CoAP/HTTP client 402 and addressed to the same M2M device 406 into one (or more) MU-type request message. The CoAP/HTTP Intermediary 404 may similarly deaggregate an MU-type request message from the CoAP/HTTP client 402 into multiple SU-type request messages. The Intermediary 404 may aggregate SU-type request messages and generate a new MU-type request message. In 418, the Intermediary 404 may receive an MV-type response (or SV-type responses) back from the CoAP/HTTP Server 406, and may deaggregate the MV-type responses to generate separate SV-type responses for each original SU-type request. If the CoAP/HTTP Server 406 does not support MU, the Intermediary 404 may not perform SU-type request aggregation. The MU capability of the CoAP/HTTP Server 406 may be obtained through different approaches such as resource discovery. If the CoAP/HTTP Server 406 does not support MU, but the Intermediary 404 receives an MU-type request from a CoAP/HTTP Client 402 that supports MU, the Intermediary 404 may perform deaggregation. In other words, the Intermediary 404 may process the MU-type request message and generate multiple SU-type request messages to send to the CoAP/HTTP Server 406. In 418, The CoAP/HTTP Intermediary 404 may aggregate multiple SV-type response messages into one MV-type response message.
According to an embodiment, SV-type Response Aggregation may be used together with MU-type Request Deaggregation.
The Intermediary 504 may receive 508 one or more SV-type responses from the Server 506, and may aggregate 510 the one or more received SV-type responses to generate 512 an MV-type response and may transmit 514 the MV-type response to the CoAP/HTTP Client 502.
If the Intermediary 504 receives 516 an MU-type request from a CoAP/HTTP Client 502 that supports MU, the Intermediary 504 may deaggregate 518 the MU Request to generate and transmit 520 one or more SU-type requests to the CoAP/HTTP server 506. In other words, the Intermediary 504 may process 518 the received MU-type request message and generate 520 multiple SU-type request messages to send to the CoAP/HTTP Server 506.
According to another embodiment, the CoAP/HTTP Intermediary may deaggregate an MV-type response message to multiple SV-type response messages.
The M2M architecture 600 may include multiple CoAP/HTTP clients 6021,2,3, a CoAP/HTTP server 606, and a CoAP/HTTP intermediary 604. In this example, the CoAP/HTTP server 606 may support MU, but the CoAP/HTTP clients 6021,2,3 may not support MU. The Intermediary 604 may receive 608 an MV-type response from the Server 606, and may deaggregate 610 the received MV-type response to generate 612 one or more SV-type responses and may transmit 6141,2,3 the MV-type responses to the respective CoAP/HTTP Clients 6021,2,3. The Intermediary 604 may receive 6161,2,3 one or more SU-type request messages from the respective CoAP/HTTP Clients 6021,2,3 and may aggregate 618 the SU-type Requests to generate and transmit 620 an MU-type request to the CoAP/HTTP server 606.
According to an embodiment, procedures at a CoAP/HTTP client may handle multiple URIs. Examples of a CoAP/HTTP client include, for example, a user, and M2M applications such as emergency services alert center. A CoAP/HTTP client may be a sub-component of an application or an SCL and may enable the application or SCL to issue HTTP/CoAP requests.
In order for a CoAP/HTTP Client to manipulate multiple resources, referred to as r1, r2, . . . , ri, on the same CoAP/HTTP Server, the CoAP/HTTP Client may generate an MU-type request message containing multiple URIs which may represent those multiple resources to be manipulated. There may be two cases to consider: (1) the same operation may apply to all resources r1, r2, . . . ri, or (2) different operations may apply to two or more of the resources r1, r2, . . . , ri.
The MU approach may leverage a URI-Path option in CoAP (or Request-Line option in HTTP) to embed multiple URIs in a single CoAP (or HTTP) request message. If a request message contains one URI-Path/Request-Line Option, in order to support multiple URIs, the URI-Path Option in CoAP (or Request-Line Option in HTTP) may be modified to support embedding multiple URIs in one URI-Path/Request-Line Option. If a request message already contains multiple URI-Path/Request-Line Options, then each URI-Path/Request-Line Option may contain a respective URI. In this latter approach, the existing URI-Path/Request-Line Option may be re-used. A URI-Path/Request Line option may be a field within a HTTP/CoAP request message, and may hold a URI address of the target of the HTTP/CoAP request (e.g. cnn.com).
The CoAP/HTTP Client may receive MV-type or SV-type response messages from the CoAP/HTTP Server. If the received responses are SV-type, CoAP/HTTP procedures may be used. In addition, if the SV-type response corresponds to an MU-type request message, a “Token” option may be included in an SV-type response message in order to map the value in the SV-type response message to a correct URI previously contained in the MU-type request message. If the received response message from the CoAP/HTTP server are SV-type, the CoAP/HTTP Client may decode the payload, if present, of the MV-type response message, and recover the contained values and relate each value to a corresponding URI.
According to another embodiment, procedures at a CoAP/HTTP server may handle multiple URIs.
If MU is not supported at the client (or is not desired), a separate SV-type response message may be generated for each URI contained in the MU-type request message, 730. If MU is supported at the client, a single MV-type response message may be generated including all URIs contained in the MU-type request message, 725. The multiple values contained in the payload of an MV-type response message may be made to be distinguishable, as discussed further below.
The CoAP/HTTP intermediary node as described above is especially useful if either the CoAP/HTTP client or CoAP/HTTP server do no support MU. If both the CoAP/HTTP Client and Server support MU, the CoAP/HTTP Intermediary may or may not be used. If only CoAP/HTTP Client (or Server) support MU, the CoAP/HTTP Intermediary may be used to translate between MU and SU CoAP/HTTP in a transparent way, so that the CoAP/HTTP Client and Server may communicate with each other even though one of them does not support MU.
If the request message is SU-type, the server may determine if the server supports MU, 815. If the CoAP/HTTP Server does not support MU, the intermediary may forward the SU-type request message to the CoAP/HTTP server, 820. If the CoAP/HTTP Server does support MU, the CoAP/HTTP Intermediary may use the MU mechanism to aggregate multiple SU-type request messages from one or more CoAP/HTTP Clients addressed to the same CoAP/HTTP Server to generate an MU-type message and send it to the server, 825.
If the request message is MU-type, the server may determine if the server supports MU, 830. If the CoAP/HTTP Server does not support MU, the CoAP/HTTP Intermediary may deaggregate the MU-type request message into multiple separate SU-type request messages and send them to the server, 835. If the CoAP/HTTP Server does support MU, the MU-type request message may be forwarded by the CoAP/HTTP intermediary to the server, 840.
The CoAP/HTTP intermediary may silently receive response messages from the CoAP/HTTP sServer, which may be SV-type or MV-type. For SV-type response messages, if the CoAP/HTTP client does not support MU, SV-type response messages may be forwarded to the client via the CoAP/HTTP intermediary. If the CoAP/HTTP server does support MU, the CoAP/HTTP intermediary may use MU mechanism to aggregate multiple SV-type response messages into an MV-type response message or simply forward the SV-type messages to the CoAP/HTTP Client.
For MV-type response messages, if the CoAP/HTTP client supports MU, MV-type response messages may be forwarded by the CoAP/HTTP Intermediary to the client. If the CoAP/HTTP server does not support MU, the CoAP/HTTP Intermediary may use MU mechanism to deaggregate the MV-type response messages to generate multiple SV-type response messages.
MU techniques, as described above, may be integrated into CoAP/HTTP layer as a part of CoAP/HTTP protocol. In integration with CoAP/HTTP layer, certain modifications may be introduced into CoAP/HTTP protocol to support MU and in turn improve the performance of CoAP/HTTP protocol for M2M applications.
MU-type request messages including multiple URIs may be generated according to the example formats shown in
With reference to
The code field 1006 may assume the CoAP value and when there are multiple URIs each URI may be assumed to have the same code field 1006 value. In an example, an extra 8-bit may be introduced in each token field 10121,2,3 to stand for a specific code for each URI.
The Message ID 1008 it may assume the CoAP value. However, the message ID field 1008 may contain a new value generated at the node where the aggregation of messages is conducted. The node may need to maintain a mapping between old message IDs and a new message ID in order to process MU-responses at a later time.
The URI-path fields 10101,2,3, may assume CoAP values and each URI path field 10101,2,3 is associated with a corresponding URI to be included in the message. As explained above, if each URI has different a Representational State Transfer (REST)ful method (i.e. code), an extra 8-bit may be introduced in each URI-Path option 10101,2,3 to contain an original code for each URI.
The token fields 10121,2,3, may assume CoAP values. If each URI has a different RESTful method (i.e. code), an extra 8-bit may be used in each token field or option 10121,2,3. A token option 10121,2,3 may be put after each URI-Path option 10101,2,3 such that the pair options represents a corresponding URI.
Other options 1114 may assume the CoAP values. If an option is used in a CoAP message for a single URI, then multiple such options may be used in an MV-type message, one for each URI.
A single CoAP payload 1016 may include multiple (e.g. three in this example) URI values, which may be delimited in different scenarios. In a first example scenario, there may be no payload for all URIs. For example, the code 1006 for all URIs may be GET or DELETE.
In another example scenario, each URI may need a payload 1016, but the payload 1016 for each URI may be identical. For example, several resources may be updated using the same new value.
In another example scenario, each URI may need a payload 1016, but the payload 1016 for each URI may be different. For example, several resources may be updated using different new value for each resource. If the media type for each resource is an extensible markup language (XML) (or JavaScript Object Notation (JSON)), the XML (or JSON) semantics may be leveraged to self-delimit each value in the payload field 1016.
In
With reference to
The token option 12121,2,3, may assume CoAP values. If each URI has a different response code, an extra 8-bits may be used in each token option 12121,2,3. The extra 8-bits may allow an independent RESTful method (GET, PUT, POST, DELETE) to be affiliated with each URI in the request.
The other options 1214 may assume CoAP values. In other words, if an option is needed in the CoAP for a single URI, then multiple such options may be used in the MV-type message 1200, one for each URI.
Multiple URI values may be included and delimited in payload field 1216. In an example scenario, no payload is included for all URIs. For example, the cod 1206 for all URIs may be PUT/POST. In another example scenario, each URI may need a payload, but the payload for each URI may be different. For example, several resources may be updated using different new value for each resource. If the media type for each resource is XML (or JSON), the XML (or JSON) semantics may be leveraged to self-delimit each value in the payload field 1216. The fields of
In
Instead of generating an MV-type response messages, the CoAP Server may issue multiple SV-type response messages in response to a received MU-type request message from the CoAP Client.
As discussed above, the ver field in the CoAP header may indicate if the CoAP request and response messages support MU or not. According to another embodiment, a CoAP option, referred to as the MU option, may be used to indicate MU.
Some examples of implementing the MU option are given in the following; however, other implementations may be used. According to an example, the MU option, such as that illustrated in
In the following, examples are given for implementing an MU approach in HTTP. An HTTP request message may include some header fields such as “Request-Line”, while other header fields such as “Status-Line” may appear in the HTTP response messages. “Request Line” may be contained in a HTTP request message, and may include several parameters or fields including, for example, method token (e.g. “Token”), “Request-URI” and the protocol version (e.g. “ver”). “Status-Line” may be contained in a HTTP response message, and may include the protocol version (e.g. “ver”), a numeric status code (e.g “Code”) and an associated textual phrase.
According to an embodiment, an MU-type HTTP request message may use a “Request-Line” field used to contain “Request-URI” in order to support an MU-type request. According to a first approach, multiple “Request-URI” may be embedded in the “Request-Line” field. For example, if containing n URI, the “Request-Line” format may be changed to Request-Line=Method+Request-URI(1)+Request-URI(2)+ . . . +Request-URI(n)+HTTP-Version, where it is assumed that “Method” for each “Request-URI” is the same. In another example, if containing n URI, the “Request-Line” format may be changed to Request-Line=Method(1)+Request-URI(1)+Method(2)+Request-URI(2)+ . . . +Method(n)+Request-URI(n)+HTTP-Version, assuming “Method” for each “Request-URI” is different. According to another embodiment, the “Request-Line” field may be kept unchanged, but multiple “Request-Line” fields may be embedded in the header of a HTTP request message.
An HTTP response message may be modified to an MV-type HTTP response message. In order to contain the results for multiple “Request-URI”, the following changes may be made to HTTP response message to create new MV-type HTTP response messages. According to an embodiment, the HTTP response Header Fields may be modified such that multiple “Status Code” and “Reason-Phrase” values may be embedded in the “Status-Line” field of the response message header. For example, the “Status-Line” format may be changed to: Status-Line=HTTP-Version+Status-Code(1)+Status-Code(2)+ . . . +Status-Code(n)+Reason-Phrase(1)+Reason-Phrase(2)+ . . . +Reason-Phrase(n), or Status-Line=HTTP-Version+Status-Code (1)+Reason-Phrase(1)+Status-Code(2)+Reason-Phrase(2)+ . . . +Status-Code(n)+Reason-Phrase(n). Here, “Status-Code(n)” may be the status code for “Request-URI(n)”, and “Reason-Phrase(n)” may stand for the status text for “Request-URI(n).” According to another embodiment, the HTTP response payload may be modified to contain multiple values or representation, such that each value or representation may be the result for each “Request-URI”.
In the following, example deployments are given for MU implementations for use, for example, with the capabilities of a CoAP/HTTP client and server.
The MU techniques described above may be used to retrieve multiple resources in one message. Table 1 illustrates an MU-type request message, which may be generated by a CoAP client. The header may include a “GET” request, and header field values are given for the T, code and message ID (MID) fields.
The example MU-type request message of table 1 may show the following information: it is a CoAP “GET” request message; the message needs confirmation from the CoAP server (i.e. T=CON); it is a MU-type request message (i.e. Code=1); the ID of this message is 0×6789 (i.e. MID=0×6789); the message contains three URIs (i.e. Uri-Path1, Uri-Path2, and Uri-Path3); there are three tokens for each URI respectively (i.e. 20 for Uri-Path1, 21 for Uri-Path 2, 22 for Uri-Path 3).
In response to receiving the MU-type message, the CoAP Server may generate an MV-type response message. Two examples of MV-type response messages are given in Tables 2 and 3.
The example message in Table 2 may show the following information: it is a CoAP response message for GET request message (i.e. T=ACK); the ID of this message is 0×7d35 (MID=0×7d35); the response code is 69 (i.e. Code=69), which implies this code is the same for all 3 Uri-Paths and there is a payload contained in this message; there are three tokens equivalent to those 3 tokens in the request message in Table 1; and there are three Payload-Length values (i.e. 10 bytes) and three values in the payload for each Uri-Path as contained in the request message shown in Table 1.
The example message in Table 3 may show the following information: it is a CoAP response message for GET request message (i.e. T=ACK); the ID of this message is 0×7d35 (MID=0×7d35); the response code is different for each Uri-Path in Table 1 since code=0×00; Code1 is for Uri-Path1 in Table 1 and it (i.e. Code1=69) means there is a value in the payload for Uri-Path1; Code2 is for Uri-Path2 in Table 1 and it (i.e. Code2=132) means Uri-Path2 is not found in the CoAP sever; Code3 is for Uri-Path3 in Table 1 and it (i.e. Code1=69) means there is a value in the payload for Uri-Path3; there are three tokens equivalent to those 3 tokens in the request message in Table 1; and there are 2 values in the Payload for Uri-Path1 and Uri-Path3 respectively.
In the following, the performance of MU approaches is analyzed. For convenience of performance analysis, the following symbols are defined. OH12 may be the overhead from MAC/PHY frame header and preamble. OH34 may be the overhead from IP header and UDP/TCP header. OHreq may be the overhead in CoAP request message from normal CoAP message header and options. OHrsp may be the overhead in CoAP response message from normal CoAP message header and options. OHreqnew may be the overhead from using MU to the request message. OHrspnew may be the overhead from using MU to the response message. M may be the number of URIs in an MU request message. H may be the number of hops between the Client and Server. Lpld may be the payload size for each URI. It may be assumed that Lpld is identical for all URIs. Lreq may be the size of a request message. Lrsp may be the size of a response message. T may be the total traffic caused including those forwarded at intermediate nodes. U may be transmission utility defined as the ratio of total payload over total traffic caused.
According to a first example, a Client may issue a GET method to retrieve the value of M(>1) resources on the Server. A “Piggy-backed” response may be assumed.
Using CoAP without MU, M request messages and M response messages may be transmitted between the Client and the Server. The total traffic (Tcoap) introduced in the network may be calculated as follows:
The transmission utility (Ucoap) may be calculated as follows:
Likewise, the total traffic Tmu and transmission utility Umu under MU may be calculated as follows:
In Equations 3 and 4, an extra 1-Byte “Payload-Length” option and an extra 1-Byte “Code” for each URI may be taken into consideration.
The ration of equations 2 and 4 is as follows:
Given that the ratio is less than 1, it may be concluded from Equation 5 that MU can achieve higher utility than CoAP without MU by using multiple URIs.
For example, IEEE 802.15.4 has OH12=15 bytes and IEEE 802.11 Direct-Sequence Spread Spectrum (DSSS) has OH12=48 bytes. In addition, the total overhead from IPv6 and UDP is OH34=48 bytes, which may be compressed to OH34=3 bytes according to 6LoWPAN header compression. Based on CoAP specification, OHreq=7 bytes and OHrsp=7 bytes, assuming use URI-Path=2 bytes and Token=1 byte only.
The MU approaches described above may be used under security considerations. For example, in contrast to HTTP (over port 80), HTTP secure (HTTPS) protocol may use port 443 and may run over Transport Layer Security/Secure Socket Layer (TLS/SSL) protocol to provide secure communications. TLS/SSL, as a layer below HTTP, may provide HTTP a secure connection, such that HTTPS may operate as HTTP over TLS/SSL. TLS/SSL may use two-way handshaking procedures to establish the secure connection. HTTPS may transport normal HTTP request/response messages over this secure connection. As a result, the existence of TLS/SSL may not prevent the use of multiple URI in HTTP messages.
Any of the following techniques may be used to leverage TLS/SSL more efficiently. According to one embodiment, in a Client-to-Server solution, multiple URIs which may have the same security requirements and access control may be included in the same HTTP message.
According to another embodiment, in a “Multiple Clients”-to-“Intermediary”-to-“Server” solution, the intermediary may use multiple client certificates to establish secure connections with the Server. Alternatively, the server may pre-assign a special client certificate to the intermediary based on multiple client certificates. This special client certificate may be used by the intermediary's TLS/SSL to set up a special connection with the Server for multiple URI operations such as aggregation and de-aggregation.
According to another embodiment, in a “Client”-to-“Intermediary”-to-“Multiple Servers” solution, the intermediary may use multiple server certificates to establish secure connections with the Client. Alternatively, the intermediary may calculate a special server certificate based on multiple server certificates. The special server certificate may be used by the intermediary's TLS/SSL to set up a special connection with the Client for multiple URI operations such as aggregation and de-aggregation as discussed above.
Although features and elements are described above in particular combinations, one of ordinary skill in the art will appreciate that each feature or element can be used alone or in any combination with the other features and elements. In addition, the methods described herein may be implemented in a computer program, software, or firmware incorporated in a computer-readable medium for execution by a computer or processor. Examples of computer-readable media include electronic signals (transmitted over wired or wireless connections) and computer-readable storage media. Examples of computer-readable storage media include, but are not limited to, a read only memory (ROM), a random access memory (RAM), a register, cache memory, semiconductor memory devices, magnetic media such as internal hard disks and removable disks, magneto-optical media, and optical media such as CD-ROM disks, and digital versatile disks (DVDs). A processor in association with software may be used to implement a radio frequency transceiver for use in a WTRU, UE, terminal, base station, RNC, or any host computer.
This application claims the benefit of U.S. provisional application No. 61/696,655, filed Sep. 4, 2012, the contents of which are hereby incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
61696655 | Sep 2012 | US |