This application is the National Stage of International Application No. PCT/EP2017/052696, filed Feb. 8, 2017, which claims the benefit of German Patent Application No. DE 10 2016 204 195.9, filed Mar. 15, 2016. The entire contents of these documents are hereby incorporated herein by reference.
The present embodiments relate to a method and an apparatus for data interchange.
Transmission protocols that provide stateless transmission of data via a computer network are known in the prior art. One transmission protocol predominantly used today is known as the “hypertext transfer protocol” or HTTP. HTTP is used today primarily for transmitting hypertext documents in the world wide web (WWW), but increasingly also for providing web services for direct machine-to-machine interaction.
An HTTP communication between two communication units (e.g., a client and a server) is effected by an interchange of messages that usually include a request and a response. A request, which is usually sent from a client to a server, is followed by a response as a reaction to the request.
To achieve a machine-to-machine interaction using HTTP, a scheme for distributed web services, also known as “representational state transfer” or REST in specialist circles, has proved itself. Like the transmission protocol HTTP, the REST scheme is also stateless (e.g., no storage of state information by the communication partners involved is effected between two messages). This statelessness provides scaleability of a web service. In the course of a load distribution, requests arriving on a server may readily be distributed over multiple servers. Web services consistent with the REST scheme are also referred to as RESTful. To provide web services, request schemes that are already defined in the HTTP transmission protocol (eg., the known request schemes GET, POST, PUT/PATCH or DELETE) are used.
While use of HTTP for transmitting hypertext documents does not require any particular presets for the quality of the message interchange, implementations of web services using message-oriented middleware applications require a defined quality of service (QoS). This quality of service includes, for example, specified response times or a required throughput of messages. These kinds of demands on quality of service are distinguished in this case based on applications that are superordinate to or use the message-oriented middleware application.
Currently known measures for providing a pledged quality of service include parameterization of a data packet traffic with reservation, optimization and possibly limitation of data packet rates. These measures are all effected on layer 3 of the known open systems interconnection (OSI) model (e.g., on the network layer that relates to the switching at data packet level).
Measures for providing a quality of service on the network layer are not suitable for message-oriented middleware applications based on HTTP, however, since the measures only control forwarding of data packets on layer 3 of the OSI model, while the message-oriented middleware applications are supposed to regulate superordinate message interchange on a transmission and/or application layer. At the superordinate level of the transmission and/or application layer, data-packet-oriented quality of service attributes are no longer accessible from the network layer and continue not to be invariable anyway (e.g., in the case of switching over multiple network segment boundaries), since data-packet-oriented attributes may be changed at any time during the forwarding of data packets in individual network nodes. Measures for providing a quality of service for a data interchange between a sender and a receiver on a transmission and/or application layer thus cannot be accomplished using known approaches for providing a quality of service on the network layer.
The scope of the present invention is defined solely by the appended claims and is not affected to any degree by the statements within this summary.
The present embodiments may obviate one or more of the drawbacks or limitations in the related art. For example, ways that admit setting of a quality of service for a stateless transmission protocol on a transmission and/or application layer are provided.
The method for data interchange according to the present embodiments has provision for setup of a data connection via at least one network node to be followed by a data interchange by a plurality of messages according to a stateless transmission protocol. A message contains not only the data that is actually to be interchanged (e.g., user data or “payload”), but also a message header. The message header includes one or more header fields that include, inter alia, a characterization of a type and/or content of the message.
According to the present embodiments, there is provision for the message header to be extended by one or more quality of service attributes that are used by at least one network node involved in the data interchange to determine a handling of a respective message (e.g., in comparison with other messages).
A handling of a network node involved in the data interchange between the respective receiver and the respective sender (and possibly multiple forwarding servers) involves the message header of the message being evaluated. The provision of the quality of service attributes in this area according to the present embodiments has the advantage that evaluation of the user data of the message is not required. Considerations to perform a deep inspection (e.g., analysis of the entire content in the payload of a message) instead would require considerable additional effort in comparison with the measure according to the present embodiments.
The quality of service attributes may be used by the network nodes involved in the data interchange (e.g., client, server, and forwarding network nodes (“intermediaries”) to determine a handling of a respective message (e.g., also to determine a handling of a respective message in comparison with other messages, such as for the purposes of prioritization).
A “handling” of the messages in this case may take the following manifestations, depending on the purpose of use: putting the messages into a queuing process or queuing (e.g., the order in which outgoing messages are sent to the receiver); buffering (e.g., the order in which incoming messages are processed; and/or a forwarding rule or routing (e.g., to what place and whether messages are forwarded).
The present embodiments also include a computer program product having means for performing the method and via a network node for performing the method.
According to one configuration of the present embodiments, a quality of service attribute includes: a validity period for the message for determining a transmission time after which the message is irrelevant; a priority value for prioritizing the message on a transmission and/or application layer; and/or an association datum for associating the message with an application or a group of applications.
For example, the association of the message with an application or to a group of applications is found to be advantageous, since, when an HTTP channel is used for different applications, different quality of service presets or constraints (e.g., regarding response times, throughput, etc.) that are very application specific may be prescribed. It is also possible for applications to have different importances for the overall system among one another. The quality of service settings brought about by the quality of service attributes may also be forwarded to lower application layers when required. For example, in the case of load situations in the network, it is thus possible for better quality of service results to be obtained.
The text below describes and
In contrast to a packet-oriented data transmission, depicted in the drawing by dashed double-headed arrows between the individual network nodes, on the network layer, the data interchange on the transmission and/or application layer is produced merely between the client CL and one of the servers AS1, AS2, AS3. The latter data interchange on the transmission and/or application layer is depicted in the drawing by an arcuate double-headed arrow between the client CL and one of the servers AS1, AS2, AS3.
After successful setup of the data-packet-oriented data connection persistent for a definable period via the intervening “intermediaries” R1, PX, R2, LB, the further data interchange, depicted in the drawing by an arcuate double-headed arrow between the client CL and one of the servers AS1, AS2, AS3, is effected as direct end-to-end communication.
The text below considers an exemplary design of a request from a client CL to a respective server AS1, AS2, AS3 in more detail. This request may have the following structure:
The first line or header field
includes an instruction for a “GET” method and specifies the protocol of the HTTP message as a HTTP message in version 1.1 according to the requests for comments (RFC) 2616 specification from the Internet Engineering Task Force (IETF) or the Internet Society.
The next line
indicates a domain name for the requested server AS1.
The line
indicates which data connection the client prefers (e.g., a data connection or TCP data connection that is closed after completion of the response).
The line
specifies an application at the client end, (e.g., a Mozilla application in version 5.0).
The line
indicates which compressed formats the client supports (e.g., the compression format gzip).
A response by the server AS1 receiving this request that answers the request may then have the following exemplary structure:
The first line or header field
reports back not only the specification as an HTTP message in version 1.1 but also successful execution of the request by the acknowledgement “200 OK”.
The subsequent lines
specify the length (e.g., 123456 bytes) and the language (e.g., German) of the content or user data portion of the message.
The line
indicates which data connection the server AS1 prefers (e.g., a data connection or TCP data connection that is closed after completion of the response).
The line
classifies the data in the user data portion of the message
<html> . . . </html>
as text in the HTML format.
According to the present embodiments, the request and response shown above, in respective message headers, are provided with at least one quality of service attribute that allows the server AS1 and the client CL a classification concerning which message has which prerequisites regarding a corresponding quality of service. The request extended according to one configuration of the present embodiments has the following exemplary structure:
In this configuration of the request, two quality of service (QoS) attributes, (e.g., “X-Priority” and “X-TTL”) are provided. The value of the quality of service attribute “X-Priority” prescribes to the addressed server AS1 and to the network nodes R1, PX, R2, LB involved in the data interchange a priority level for forwarding and processing the request, or are generally a level for handling this request (e.g., in comparison with other messages having lower priority). In the example above, the priority of the request is set to “high” using the instruction
The value of the quality of service attribute “X-TTL” (e.g., time to live) prescribes to the addressed server AS1 and the network nodes R1, PX, R2, LB involved in the data interchange a demand on the transmission time after the message is irrelevant, or, generally, an amount of time for handling the message. In the example above, the time to live for the request is set to 20 seconds using the instruction
X-TTL: 20 s.
According to one configuration of the present embodiments, a quality of service attribute “X-EOL” (e.g., end of life) is used to indicate, rather than a time to live, an end of validity (e.g., a time from which the message is irrelevant). This measure is, for example, advantageous if it may be expected that at least one of the network nodes R1, PX, R2, LB involved in the data interchange or else the client CL is unable to perform computation of the end time. This allows the network nodes R1, PX, R2, LB involved in the data interchange to directly indicate when the message may be regarded as irrelevant, without needing to compute this from their own internal time, the sending time, and the time to live. Conversely, the sending time may be computed from a difference between the end of validity X-EOL and the time to live X-TTL.
The response by the server AS1, which is extended according to one configuration of the present embodiments, has the following exemplary structure:
The priority of the responding message in the example above is likewise set to “high”, and the time to live is set to 18 seconds.
The method for data interchange using a stateless transmission protocol (e.g., a HTTP), according to the present embodiments, provides for a message header of the message to be extended by one or more quality of service attributes used by network nodes involved in the data interchange to determine a handling of a respective message according to presets for the quality of service attribute. This allows a quality of service to be achieved on a transmission and/or application layer.
The implementation of a quality of service on an application layer provides annotation of every single message regarding corresponding properties and expectations during a data transmission of a plurality of messages associated with different applications. This provides that the terminal points may bring about more detailed control of the data interchange. The quality of service settings brought about by the quality of service attributes may also be forwarded to lower application layers when needed. In one embodiment, in load situations in the network, it is thus possible for better quality of service results to be attained.
The elements and features recited in the appended claims may be combined in different ways to produce new claims that likewise fall within the scope of the present invention. Thus, whereas the dependent claims appended below depend from only a single independent or dependent claim, it is to be understood that these dependent claims may, alternatively, be made to depend in the alternative from any preceding or following claim, whether independent or dependent. Such new combinations are to be understood as forming a part of the present specification.
Number | Date | Country | Kind |
---|---|---|---|
102016204195.9 | Mar 2016 | DE | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/EP2017/052696 | 2/8/2017 | WO | 00 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2017/157584 | 9/21/2017 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
6965604 | Sato | Nov 2005 | B1 |
7401118 | Yokota | Jul 2008 | B1 |
20020120760 | Kimchi | Aug 2002 | A1 |
20020143981 | DeLima | Oct 2002 | A1 |
20060059253 | Goodman | Mar 2006 | A1 |
20070005768 | Won | Jan 2007 | A1 |
20070156919 | Potti | Jul 2007 | A1 |
20070230342 | Skog | Oct 2007 | A1 |
20080025230 | Patel | Jan 2008 | A1 |
20080034052 | Bess | Feb 2008 | A1 |
20080056273 | Pelletier | Mar 2008 | A1 |
20080222248 | Eberlein | Sep 2008 | A1 |
20100094945 | Chan | Apr 2010 | A1 |
20100202287 | Diaz | Aug 2010 | A1 |
20100250696 | Iwasaki | Sep 2010 | A1 |
20100251262 | Rokicki | Sep 2010 | A1 |
20110019556 | Hsin | Jan 2011 | A1 |
20110271326 | Liang | Nov 2011 | A1 |
20120033563 | Jazra | Feb 2012 | A1 |
20120054809 | Chowdhury | Mar 2012 | A1 |
20120296784 | Connor | Nov 2012 | A1 |
20130059527 | Hasesaka | Mar 2013 | A1 |
20160182601 | Zombek | Jun 2016 | A1 |
20180176157 | Kret | Jun 2018 | A1 |
20180295190 | Lu | Oct 2018 | A1 |
20190020706 | Hund | Jan 2019 | A1 |
Number | Date | Country |
---|---|---|
2331046 | Jul 2002 | CA |
101478755 | Jul 2009 | CN |
101854351 | Oct 2010 | CN |
WO02056566 | Jul 2002 | WO |
Entry |
---|
German Office Action for German Application No. 102016204195.9, dated Oct. 27, 2016. |
PCT International Search Report dated Mar. 24, 2017 and corresponding to PCT International Application No. PCT/EP2017/052696 filed Feb. 8, 2017. |
German Office Action for German Application No. 10 2016 204195.9 dated Jun. 24, 2020. |
Chinese Office Action for Chinese Application No. 201780017437.8 dated Jul. 16, 2020. |
Number | Date | Country | |
---|---|---|---|
20190124158 A1 | Apr 2019 | US |