CN115695301A - Method and device for sending message to be transmitted, storage medium and electronic device - Google Patents

Method and device for sending message to be transmitted, storage medium and electronic device Download PDF

Info

Publication number
CN115695301A
CN115695301A CN202110867187.5A CN202110867187A CN115695301A CN 115695301 A CN115695301 A CN 115695301A CN 202110867187 A CN202110867187 A CN 202110867187A CN 115695301 A CN115695301 A CN 115695301A
Authority
CN
China
Prior art keywords
content
target
address
network
uri
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110867187.5A
Other languages
Chinese (zh)
Inventor
彭少富
谭斌
黄光平
黄兵
郭勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN202110867187.5A priority Critical patent/CN115695301A/en
Priority to PCT/CN2022/104232 priority patent/WO2023005630A1/en
Publication of CN115695301A publication Critical patent/CN115695301A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for sending a message to be transmitted, a mobile robot, a storage medium and an electronic device, wherein the method for sending the message to be transmitted comprises the following steps: determining a content identifier of unspecified location information, wherein the content identifier comprises at least one of: content type, content name, network transmission parameters when accessing content; determining a target I P address according to the content identification, and sending a message to be transmitted to the target I P address, wherein the target I P address is used for addressing a content provider of the content identification in a network or a gateway to which the content provider belongs. By adopting the technical scheme, the problem that the application layer protocol including the hypertext transfer protocol HTTP can not support the communication with the unspecified position information based on the content name is solved.

Description

Method and device for sending message to be transmitted, storage medium and electronic device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for sending a packet to be transmitted, a storage medium, and an electronic apparatus.
Background
The Hypertext Transfer Protocol (HTTP) is widely used for various services on the Internet, is a stateless application-level request/response Protocol, and operates using a reliable transport layer or session layer "connection". An HTTP client is a program that establishes a connection to an HTTP server and then sends one or more HTTP requests to the HTTP server; HTTP server is also a program that accepts connections and serves HTTP requests by replying to HTTP responses. HTTP relies on Uniform Resource identifiers (URIs for short, refer to RFC 3986) to indicate target resources and relationships between resources. URIs comprise two types: the first type is Uniform Resource Location (URL), that is, the URI, besides identifying the Resource, also provides a method for locating the location (e.g., network location) of the Resource; the other is a Uniform Resource Name (URN), i.e., URI is a globally unique Resource Name. HTTP uses URL, i.e. host identifier in authority component in URL to indicate the location of HTTP server, the location can be indicated by Domain Name Service (DNS) Name or IP address, and cannot be null.
Most HTTP communications are HTTP clients sending a retrieve request (GET) to HTTP server requesting some resource identified by URI; there are also some HTTP communications that involve the HTTP client submitting data to the HTTP server and the communication message being relayed by the proxy. Currently known versions of HTTP include: HTTP/1.1, HTTP/2, HTTP/3, their major differences appear: whether header compression is supported, whether multiple concurrent interactions on the same connection are supported, whether a server is supported to actively push data to a client, and different transport layer protocols are adopted. They all use URLs to identify target resources, although there are slight differences in how the authority components of the URLs are carried in the corresponding HTTP messages of these versions, such as the HTTP/1.1 version which is carried using host header field, and HTTP/3 version which is carried using ": authority" pseudo-header field. This indicates that the current HTTP communication occurs between the known HTTP client and HTTP server, and the user on the HTTP client side needs to first obtain (e.g. by a search engine, or memorize) the location of the HTTP server where the target resource is located, and then send a request to the HTTP server side.
With the trend of network internet of everything in the future, more and more communication requirements are established on the basis of connection oriented to content and service, and the network has the sensing capability to resources and can provide optimal path scheduling for a target resource access request of terminal equipment, namely, the most appropriate service providing node is selected and the optimal path is arranged. Thanks to a more intelligent network, the application on the terminal device is simplified, the access request can be initiated only according to the content name of the target resource, and the non-optimal service providing node which cannot sense the network state is not required to be inquired in advance (such as through a search engine) according to the existing mode, and the DNS name resolution for the service providing node is not required to obtain the IP address information.
Aiming at the problem that the application layer protocol including the hypertext transfer protocol HTTP can not support the communication with the unspecified position information based on the content name in the related technology, an effective solution is not proposed at present.
Accordingly, there is a need for improvement in the related art to overcome the disadvantages of the related art.
Disclosure of Invention
The invention aims to provide a method for sending a message to be transmitted, a mobile robot, a storage medium and an electronic device, so as to at least solve the problems that the traditional target detection method cannot accurately detect the position of a door and the like.
The purpose of the invention is realized by the following technical scheme:
according to an aspect of the embodiments of the present invention, a method for sending a packet to be transmitted is provided, including: determining a content identifier of unspecified location information, wherein the content identifier comprises at least one of: content type, content name, network transmission parameters when accessing content; and determining a target IP address according to the content identifier, and sending a message to be transmitted to the target IP address, wherein the target IP address is used for addressing a content provider of the content identifier or a gateway to which the content provider belongs in a network.
Further, the method further comprises: newly adding a target value in an authority component of the URI, wherein the target value is used for indicating the unspecified position information, and the setting mode of the target value at least comprises one of the following modes: setting the existing host identifier as a wildcard character, other character or character string; or introducing a new field in the authority component to indicate the unspecified location information.
Further, the method further comprises: setting a structured query expression in a query component of the URI, wherein the query expression is used for indicating the content identification, and the content type in the content identification comprises: a normalized type value of the target content to be queried.
Further, the method further comprises: setting an unstructured natural language in a query component of the URI, wherein the natural language is used for indicating the content identification.
Further, the method further comprises: determining the target IP address according to the standardized type value in the query component and the network transmission parameter in case that the host identifier in the URI indicates the unspecified location information, wherein the target IP address comprises: the standardized type value and the network transmission parameter.
Further, the method further comprises: instructing an HTTP client to generate the redirected target URI; sending an HTTP message to the redirected target URI.
Further, the method further comprises: the destination IP address includes: a content network address, wherein the content network address comprises: fixed prefix, digital code copied from content type, digital code copied from content subtype, transmission parameters copied from network transmission parameters, reserved field.
According to another aspect of the embodiments of the present invention, there is also provided a sending apparatus for a packet to be transmitted, including: a content identifier for determining unspecified location information, wherein the content identifier comprises at least one of: content type, content name, network transmission parameters when accessing content; and the sending module is used for determining a target IP address according to the content identifier and sending a message to be transmitted to the target IP address, wherein the target IP address is used for addressing a content provider of the content identifier or a gateway to which the content provider belongs in a network.
According to a further aspect of the embodiments of the present invention, there is provided a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the method for sending a message to be transmitted, when the computer program is run.
According to a further aspect of the embodiments of the present invention, there is provided an electronic apparatus, including a memory and a processor, the memory storing a computer program, and the processor being configured to execute the computer program to perform the method for sending a message to be transmitted according to any one of the above.
According to the invention, the target IP address is determined by determining the content identification of the unspecified position information, and then the message to be transmitted is sent to the target IP address. And the problem that the application layer protocol including the HTTP can not support the communication with the unspecified position information based on the content name is solved, so that the application layer protocol including the HTTP can support the communication which is independent of the position based on the content name, and the service communication requirement of a future network is met.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and not to limit the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal for transmitting a message to be transmitted according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for sending a message to be transmitted according to an embodiment of the present invention;
fig. 3 is a schematic diagram of communication between an HTTP client and an HTTP server according to a method for sending a packet to be transmitted in an embodiment of the present invention;
fig. 4 is a format diagram of a content network address of a transmission method of a packet to be transmitted according to an embodiment of the present invention;
fig. 5 is a computational service example diagram of a method for sending a message to be transmitted according to an embodiment of the present invention;
fig. 6 is a block diagram of a sending apparatus for a message to be transmitted according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the embodiment of the invention can be executed in a computer terminal or a similar arithmetic device. Taking an example of running on a computer terminal, fig. 1 is a block diagram of a hardware structure of a computer terminal of a method for sending a message to be transmitted according to an embodiment of the present invention. As shown in fig. 1, a computer terminal may include one or more processors 102 (only one is shown in fig. 1), wherein the processors 102 may include but are not limited to a processing device such as a Microprocessor (MPU) or a Programmable Logic Device (PLD) and a memory 104 for storing data, and optionally, the computer terminal may further include a transmission device 106 for communication function and an input/output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting on the structure of the computer terminal, for example, the computer terminal may further include more or less components than those shown in fig. 1, or have equivalent functions or different configurations than those shown in fig. 1.
The memory 104 may be configured to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the transmission method of the message to be transmitted in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the method described above. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a sending method operating on the message to be transmitted is provided, and fig. 2 is a flowchart of the sending method of the message to be transmitted according to the embodiment of the present invention, as shown in fig. 2, the flow includes the following steps:
step S202, determining a content identifier of unspecified position information, wherein the content identifier comprises at least one of the following: content type, content name, network transmission parameters when accessing content;
step S204, determining a target IP address according to the content identifier, and sending a message to be transmitted to the target IP address, wherein the target IP address is used for addressing a content provider of the content identifier or a gateway to which the content provider belongs in a network.
Through the steps, the target IP address is determined by determining the content identification of the unspecified position information, and then the message to be transmitted is sent to the target IP address. And the problem that the application layer protocol including the HTTP can not support the communication with the unspecified position information based on the content name is solved, so that the application layer protocol including the HTTP can support the communication which is independent of the position based on the content name, and the service communication requirement of a future network is met.
That is, for any application protocol (i.e. Client of the application protocol obtains corresponding content from Server via content id) that accesses content using content id (or called resource id, or service id), a general method is proposed to extend the capability of the protocol to support the processing of content id of unspecified location information. To this end, a content identifier that does not specify location information is defined, wherein the content identifier includes: content type, content name, network transmission parameters when accessing the content. The Client end obtains a special IP address (equivalent to the target IP address) through conversion according to the content identification of the unspecified position information, and sends a message to the special IP address, wherein the special IP address is used for addressing a desired content (equivalent to the content of the content identification) provider in the network or a gateway to which the content provider belongs.
Further, the method for sending the message to be transmitted further includes: adding a target value in an authority component of the URI, wherein the target value is used for indicating the unspecified position information, and the setting mode of the target value at least comprises one of the following modes: setting the existing host identifier as a wildcard character, other character or character string; or introducing a new field in the authority component to indicate the unspecified location information.
Specifically, taking a typical HTTP protocol as an example, the definition of the extensible HTTP URI is that a value (corresponding to the target value) is added to a host identifier (corresponding to the host identifier) in an authority component in the URI to indicate an unspecified location, such as a wildcard "×" or other specific characters (corresponding to the other characters) or a character string used for the purpose.
Further, the method for sending the message to be transmitted further includes: setting a structured query expression in a query component of the URI, wherein the query expression is used for indicating the content identification, and the content type in the content identification comprises: a normalized type value of the target content to be queried.
That is, in the query component in the HTTP URI, a query expression having a structure is set, including: standardized type value (one-level or multi-level type) of target content to be queried, content name, network transmission parameter.
Further, the method for sending the message to be transmitted further includes: setting an unstructured natural language in a query component of the URI, wherein the natural language is used for indicating the content identification.
That is, the query component can also set the type, name and network transmission parameters of the target content represented by the unstructured natural language.
Further, the method for sending the message to be transmitted further includes: determining the target IP address according to the standardized type value and the network transmission parameter in the query component if the host identifier in the URI indicates the unspecified location information, wherein the target IP address comprises: the standardized type value and the network transmission parameter.
Specifically, the Client converts the content identifier of the unspecified location information to obtain a special IP address (equivalent to the target IP address), and sends a message to the special IP address, where the special IP address is used to address a desired content provider or a gateway to which the content provider belongs in a network. Taking a typical HTTP protocol as an example, the behavior of the HTTP client may be adjusted, and when the host identifier in the URI is processed to be an unspecified location, the host identifier is directly converted to obtain a special IP address according to the standard type value (corresponding to the standardized type value) of the target content contained in the query component in the URI (or the type of the target content represented by the unstructured natural language is first converted into the standard type value) and the network transmission parameters, where the IP address contains the standard type value and the network transmission parameters of the target content.
Further, the method for sending the message to be transmitted further includes: instructing an HTTP client to generate the redirected target URI; sending an HTTP message to the redirected target URI.
That is, the HTTP client generates a redirected new URI, where the host identifier is the IP address and the query component can be copied from the query component of the original URI (either all or just the content name).
It should be noted that the target IP address includes: a content network address, wherein the content network address comprises: fixed prefix, digital code copied from content type, digital code copied from content subtype, transmission parameters copied from network transmission parameters, reserved field.
For better understanding, in a complete embodiment, for any application protocol that accesses content using content id (or called resource id, or service id) (i.e. the Client of the application protocol obtains corresponding content from the Server via the content id), a general method is proposed to extend the capability of the protocol to support the processing of content id of unspecified location information. For this purpose, a content identifier is defined for unspecified location information, which includes the content type, the content name, and the network transmission parameters when accessing the content. Taking the typical HTTP protocol as an example, the definition of the extensible HTTP URI adds a new value to the host identifier in the authority component in the URI to indicate an unspecified location, such as a wildcard "-" or other specific character or string for this purpose. In addition, in the query component in the HTTP URI, a query expression having a structure is set, which includes: standardized type value (one-level or multi-level type) of target content to be queried, content name, network transmission parameter. Alternatively, the query component may also set the type, name and network transmission parameters of the target content represented by the unstructured natural language.
The Client end obtains a special IP address through conversion according to the content identification of the unspecified position information, and sends a message to the special IP address, and the special IP address is used for addressing an expected content provider or a gateway to which the content provider belongs in a network. Taking a typical HTTP protocol as an example, the behavior of the HTTP client may be adjusted, and when the host identifier in the URI is processed to be an unspecified location, the host identifier is directly converted to obtain a special IP address according to the standard type value of the target content (or the type of the target content represented by the unstructured natural language is first transferred to the standard type value) and the network transmission parameter, where the target content is represented by the query component in the URI. The HTTP client then generates a redirected new URI, where the host identifier is the IP address and the query component can copy from the query component of the original URI (either all or just the content name).
Other similar application protocols that need to access content according to some content identifier (the related identifier is not necessarily a URI) can be extended and enhanced similar to the HTTP protocol.
Further, the following is described in detail by taking HTTP as an example:
fig. 3 is a schematic diagram of communication between an HTTP client and an HTTP server according to a method for sending a to-be-transmitted message in an embodiment of the present invention, as shown in fig. 3, the HTTP client needs to communicate with the HTTP server capable of providing specific content (e.g., content a) in a network. In a conventional communication method, a host on the HTTP client side may query content a through a search engine (e.g., google. For example, the target URI containing location information of server1 is http:// server1.Com/path/content-A. Html.
According to the scheme of the embodiment, the HTTP client accesses the potential HTTP server in the network in a new mode, namely, the communication irrelevant to the position of the HTTP server is realized directly based on the content type, the name and the network transmission parameter. The method comprises the following specific steps:
1) The definition of a URI is extended so that a host identifier in an authority component in the URI can represent an unspecified location, such as using a wildcard "+" or other specific character or string for that purpose. For simplicity of description, the embodiments of the present application assume wildcard characters "".
2) In the query component in the URI or the component newly defined for this purpose (for simplicity of description, the query component is taken as an example), a standardized query expression with a structure is set, which includes: standardized type value (one-level or multi-level type) of target content to be queried, content name, network transmission parameter. Alternatively, the query component may also have the type, name, and network transmission parameters of the target content in the unstructured natural language representation. For simplicity of description, the present embodiment assumes a structured query expression; if the query is a natural language, the query can be firstly transferred into a structured query expression in a certain way and then the subsequent steps are executed.
The specific implementation manner of the structured query expression is as follows:
Content.type=;
Content.sub-type=;
Content.name=;
Connection.args=;
among them, content.type and content.sub-type are standardized two-level type values, which are generally necessary, but may be optional in some scenarios. These type values can be Assigned using Media Types registry entries (see https:// www.iana.org/associations/Media-Types. Xhtml) already maintained by the Internet Assigned Numbers Authority (IANA) or adding Types as needed on the basis of Media Types registry entries. For example, content.type = text, content.sub-type = plane, and further for example, content.type = video, content.sub-type = mp4. Note that, in the current IANA Media Types registration entry, each type value is a character string, and in order to facilitate IP address conversion in the subsequent step, a numeric code needs to be supplemented for these standard type values, as shown in table 1 below:
TABLE 1
Figure BDA0003187768130000061
Figure BDA0003187768130000071
Similarly, a numeric code is assigned to a different sub-type under each type, for example, the numeric code of mp4sub-type under video type is 28. Others will not be described in detail.
Name is generally the name of the target content described in natural language, which is optional, such as the name of a novel, and the name of a movie. In some scenarios, such as a computational network, the type of the computing resource can be determined based on only content.type and content.sub-type, and no content.name needs to be provided.
Connection. Args is a network transmission parameter, which is optional and is used to specify a traffic engineering target when an HTTP message is transmitted in a network. In many cases, an ingress gateway in the network determines a traffic engineering target for a packet subsequently transmitted in the network according to a header field (e.g., a five-tuple) of the packet received from the HTTP client side. Args provides an additional mechanism for explicitly informing the ingress gateway to determine traffic engineering objectives according to desired parameters. There are many ways to assign the connection. Args, in this embodiment, it is proposed to use a 32-bit value, and the ingress gateway and the HTTP client side need to have the same understanding on this value and map to a specific traffic engineering target. Traffic engineering objectives generally include path constraints such as "bandwidth", "delay", etc. that traffic needs to satisfy when being transmitted in a network.
The standardized query expression means that both the HTTP client and the HTTP server can recognize the semantics of the query expression. For example, if the HTTP server receives the HTTP request message and includes the "content. It is possible that the code on the HTTP server side just also implements a non-standard "content.name = xxx" query processing, which can be considered as an override to the standard query processing.
For example, an example of a structured query expression is:
Content.type=video;
Content.sub-type=mp4;
name = above cliff;
Connection.args=1000;
then, the relevant location-independent target URI example is:
http://? Type = video & content.sub-type = mp4& content.name = above cliff & connection.args =1000.
3) And adjusting the behavior of the HTTP client, and when finding that the host identifier in the target URI is an unspecified position when analyzing the target URI, directly converting the target URI into a special IP address according to the standard type value and the network transmission parameter of the target content contained in the query component in the URI, namely, the IP address contains the standard type value and the network transmission parameter of the target content. This patent refers to this particular IP address as the "content network address".
Fig. 4 is a format diagram of a content network address of a method for sending a packet to be transmitted according to an embodiment of the present invention, and specifically, a specific implementation manner of an IPv6 "content network address" is shown in fig. 4, where:
fixed-prefix: the 32-bit fixed prefix is the most logically mathematically significant portion of the entire 128-bit IPv6 address. RFC6890 defines a Special IPv6 Address range 2001 of 0000:/23, IANA currently maintains IANA IPv6Special-Purpose Address Registry entry (refer to https:// www.iana.org/associations/IANA-IPv 6-specific-registration. Xhtml # IANA-IPv 6-specific-registration-1), and this embodiment assumes allocation of "2001.
type: the digital code copied from the content type (corresponding to the above-described digital code copied from the content type) occupies 16 bits.
sub-type: the digital code copied from the content sub-type (corresponding to the digital code copied from the content subtype described above) takes 16 bits.
args: args (equivalent to the above-described transmission parameters copied from the network transmission parameters) occupies 32 bits.
reserved: reserved field, occupying 32 bits. Currently undefined and may be set to 0. Other uses may be defined in the future as desired.
Optionally, for the target URI example:
http://? Type = video & content.sub-type = mp4& content.name = above cliff & connection.args =1000.
The IPv6 'content network address' obtained by conversion is 2001. Wherein 0xA corresponds to content.type =10,0x1c corresponds to content.sub-type =28,0x3e8 corresponds to connection.args =1000.
The HTTP client then generates a redirected new URI with the host identifier as the "content network address" and the query component can be copied from the query component of the original URI (either all or just the content name).
Optionally, for the target URI example:
http://? Type = video & content.sub-type = mp4& content.name = above cliff & connection.args =1000.
The generated redirected new URI is: http:// 2001? Name = above cliff.
4) The HTTP client sends an HTTP message to the redirected new URI. Before this, the HTTP client may need to initiate a TCP connection setup request to the "content network address" contained in the new URI (as is necessary for HTTP/1.1 version, but not for HTTP/3 based QUIC transport). In any event, the HTTP client will call the socket API of the transport layer, where the destination IP address input parameter is the "content network address" described above. The setting of the content included in the HTTP request message sent to the redirected new URI may refer to the existing flows defined in the specifications of RFC7230, RFC7231, RFC7540, draft-ietf-quic-HTTP-34, and the like.
The HTTP client side sends a message with a destination IP address of 'content network address', and the message is directly delivered to an entrance gateway node of the network or delivered to the entrance gateway node of the network through an outer IP tunnel.
5) The entrance gateway node of the network completes subsequent complex flow scheduling according to the target IP address as the content network address, selects a proper path to guide the message to a proper target HTTP server, and simplifies the realization of HTTP client. For this purpose, the ingress gateway node needs to query locally or from a third-party system, according to the standardized content type in the "content network address", an egress gateway to which an optimal providing node capable of providing the content type belongs, and to arrange an optimal forwarding path that meets the traffic engineering objective to the egress gateway. After receiving the message, the exit gateway node also locally inquires or inquires a server node in a site capable of providing the content type to a third-party system according to the standardized content type in the content network address, and then modifies the destination IP of the message into the ordinary IP of the server and sends the modified ordinary IP to the server.
It should be noted that the technical solution of the present embodiment may be applied to a broadband access scenario.
It is to be understood that the above-described embodiments are only a few, but not all, embodiments of the present invention. In order to better understand the method for sending the message to be transmitted, the following describes the above process with reference to an embodiment, but is not intended to limit the technical solution of the embodiment of the present invention, and specifically:
in an alternative embodiment, this embodiment describes an example of a typical computing network providing computing services to users. Fig. 5 is an exemplary diagram of computational service according to a sending method of a to-be-transmitted packet according to an embodiment of the present invention, and as shown in fig. 5, virtual machine (virtual machine) server1 and server2 are respectively deployed in a cloud resource pool 1 and a cloud resource pool 2 to provide an AI inference service, a host at a client side prepares data to be inferred, and plans to send the data to be inferred to server1 or server2, so as to obtain an inference result.
Assuming that the application layer between the host and the server communicates through the HTTP/1.1 protocol, the HTTP client program on the host side may generate an HTTP request message (Method type is POST), and provide data to be inferred in the payload of the message. In this case, the host need not pay attention to who provides the computing service in the computing network, but only constructs a target URI whose location is not specified, and transmits the HTTP request message to the target URI. In this embodiment, the target URI is constructed as: http://? Type = calculation & content sub-type = AI-regeneration.
Since the authority component in the target URI contains an unspecified location, the new URI containing the "content network address" after being generated and redirected according to the query component therein is "http://2001 b.
Further, a socket API is called in the host node to establish a TCP connection with a destination IP address being the "content network address" (2001.
And the PE2 also analyzes and finds that the destination IP address of the message is a special content network address, inquires that the obtained service provider is server1 in the local cloud resource pool 1, modifies the destination IP of the message into a common IP address of the server1, and delivers the message to the server1. And at this moment, the TCP link establishment message successfully reaches the destination node, and the link establishment is successful after three-way handshake between the host and the server1 is completed.
And finally, the HTTP request message is sent to server1 along the TCP connection, the server1 extracts data to be calculated from the payload of the HTTP request message, AI inference calculation is carried out, and the calculation result is returned to the host along the TCP connection through HTTP response.
In addition, by adopting the technical scheme, the limitation that HTTP must depend on the position is broken through, so that the method is more suitable for various requirements of future networks, such as a calculation network.
In addition, through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation in many cases. Based on such understanding, the technical solutions of the present application may be substantially embodied in the form of a software product, which is stored in a storage medium (such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, an optical disk), and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, or a network device) to execute the methods described in the embodiments of the present application.
In this embodiment, a sending apparatus of a to-be-transmitted message is further provided, where the sending apparatus of the to-be-transmitted message is used to implement the foregoing embodiments and preferred embodiments, and details of the sending apparatus of the to-be-transmitted message are omitted for the sake of description. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a structure of a sending apparatus for a packet to be transmitted according to an alternative embodiment of the present invention, as shown in fig. 4:
a determining module 62, configured to determine a content identifier of the unspecified location information, where the content identifier includes at least one of: content type, content name, network transmission parameters when accessing content;
a sending module 64, configured to determine a target IP address according to the content identifier, and send a packet to be transmitted to the target IP address, where the target IP address is used to address a content provider of the content identifier in a network or a gateway to which the content provider belongs.
Through the module, the target IP address is determined by determining the content identification of the unspecified position information, and then the message to be transmitted is sent to the target IP address. And the problem that the application layer protocol including the HTTP can not support the communication with the unspecified position information based on the content name is solved, so that the application layer protocol including the HTTP can support the communication which is independent of the position based on the content name, and the service communication requirement of a future network is met.
Optionally, the sending module 64 is further configured to add a target value to the authority component of the URI, where the target value is used to indicate the unspecified location information, and the setting mode of the target value at least includes one of the following: setting the existing host identifier as a wildcard character, other character or character string; or introducing a new field in the authority component to indicate the unspecified location information.
Optionally, the sending module 64 is further configured to set a query expression having a structure in the query component of the URI, where the query expression is used to indicate the content identifier, and the content type in the content identifier includes: a normalized type value of the target content to be queried.
Optionally, the sending module 64 is further configured to set an unstructured natural language in the query component of the URI, where the natural language is used to indicate the content identifier.
Optionally, the sending module 64 is further configured to, in a case that the host identifier in the URI indicates the unspecified location information, determine the target IP address according to the standardized type value in the query component and the network transmission parameter, where the target IP address includes: the standardized type value and the network transmission parameter.
Optionally, the sending module 64 is further configured to instruct the HTTP client to generate the redirected target URI; sending an HTTP message to the redirected target URI.
Optionally, the destination IP address includes: a content network address, wherein the content network address comprises: fixed prefix, digital code copied from content type, digital code copied from content subtype, transmission parameters copied from network transmission parameters, reserved field.
It should be noted that the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, determining a content identifier of unspecified position information, wherein the content identifier comprises at least one of the following: content type, content name, network transmission parameters when accessing content;
s2, determining a target IP address according to the content identifier, and sending a message to be transmitted to the target IP address, wherein the target IP address is used for addressing a content provider of the content identifier or a gateway to which the content provider belongs in a network.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a U disk, a read only memory ROM, a random access memory RAM, a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining a content identifier of unspecified position information, wherein the content identifier comprises at least one of the following: content type, content name, network transmission parameters when accessing content;
s2, determining a target IP address according to the content identifier, and sending a message to be transmitted to the target IP address, wherein the target IP address is used for addressing a content provider of the content identifier or a gateway to which the content provider belongs in a network.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
Embodiments of the present invention also provide a robot comprising a body, a motion assembly and a controller arranged to perform the steps of any of the method embodiments described above.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for sending a message to be transmitted is characterized by comprising the following steps:
determining a content identifier of unspecified location information, wherein the content identifier comprises at least one of: content type, content name, network transmission parameters when accessing content;
and determining a target I P address according to the content identifier, and sending a message to be transmitted to the target I P address, wherein the target IP address is used for addressing a content provider of the content identifier in a network or a gateway to which the content provider belongs.
2. The method according to claim 1, wherein the method further comprises:
newly adding a target value in an authority component of the URI, wherein the target value is used for indicating the unspecified position information, and the setting mode of the target value at least comprises one of the following modes: setting the existing host identifier as a wildcard character, other character or character string; or introducing a new field in the authority component to indicate the unspecified location information.
3. The method according to claim 2, wherein the method further comprises:
setting a structured query expression in a query component of the URI, wherein the query expression is used for indicating the content identification, and the content type in the content identification comprises: a normalized type value of the target content to be queried.
4. The method according to claim 2, wherein the method further comprises:
setting an unstructured natural language in a query component of the URI, wherein the natural language is used for indicating the content identification.
5. The method according to claim 3, wherein the method further comprises:
determining the target IP address according to the standardized type value in the query component and the network transmission parameter in case that the host identifier in the URI indicates the unspecified location information, wherein the target IP address comprises: the standardized type value and the network transmission parameter.
6. The method according to claim 5, wherein the method further comprises:
instructing an HTTP client to generate the redirected target URI;
sending an HTTP message to the redirected target URI.
7. The method according to any of claims 1 to 6, wherein the method further comprises:
the destination IP address includes: a content network address, wherein the content network address comprises: fixed prefix, digital code copied from content type, digital code copied from content subtype, transmission parameters copied from network transmission parameters, reserved field.
8. A transmission apparatus for a packet to be transmitted, comprising:
a determining module, configured to determine a content identifier of unspecified location information, where the content identifier includes at least one of: content type, content name, network transmission parameters when accessing content;
and the sending module is used for determining a target IP address according to the content identifier and sending a message to be transmitted to the target IP address, wherein the target IP address is used for addressing a content provider of the content identifier or a gateway to which the content provider belongs in a network.
9. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any one of claims 1 to 7 when executed.
10. An electronic device, comprising a memory having a computer program stored therein and a processor arranged to perform the method of any of claims 1 to 7 by means of the computer program.
CN202110867187.5A 2021-07-29 2021-07-29 Method and device for sending message to be transmitted, storage medium and electronic device Pending CN115695301A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110867187.5A CN115695301A (en) 2021-07-29 2021-07-29 Method and device for sending message to be transmitted, storage medium and electronic device
PCT/CN2022/104232 WO2023005630A1 (en) 2021-07-29 2022-07-06 Method and apparatus for sending message to be transferred, and storage medium and electronic apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110867187.5A CN115695301A (en) 2021-07-29 2021-07-29 Method and device for sending message to be transmitted, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115695301A true CN115695301A (en) 2023-02-03

Family

ID=85058319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110867187.5A Pending CN115695301A (en) 2021-07-29 2021-07-29 Method and device for sending message to be transmitted, storage medium and electronic device

Country Status (2)

Country Link
CN (1) CN115695301A (en)
WO (1) WO2023005630A1 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7761500B1 (en) * 2000-02-29 2010-07-20 Cisco Technology, Inc. URL based communication protocol from a client computer to a network device
CN103905526A (en) * 2014-03-05 2014-07-02 深圳市同洲电子股份有限公司 Dispatching method and server
CN107872486B (en) * 2016-09-28 2020-06-02 华为技术有限公司 Communication method and device
CN108494720B (en) * 2017-02-23 2021-02-12 华为软件技术有限公司 Scheduling method based on session migration and server

Also Published As

Publication number Publication date
WO2023005630A1 (en) 2023-02-02

Similar Documents

Publication Publication Date Title
CN109067914B (en) web service proxy method, device, equipment and storage medium
JP4819953B2 (en) Control tunnel and direct tunnel setting method in IPv4 network-based IPv6 service providing system
US8769661B2 (en) Virtual private network node information processing method, relevant device and system
US8156243B2 (en) Request routing
CN112714194B (en) Method for accessing intranet equipment by extranet host and network topology structure
US20170034174A1 (en) Method for providing access to a web server
EP3576379A1 (en) Service layer interworking using mqtt protocol
US20050229243A1 (en) Method and system for providing Web browsing through a firewall in a peer to peer network
WO2017007783A1 (en) Wide area service discovery for internet of things
US20160241664A1 (en) Method, device, and system for redirecting data by using service proxy
CN107222561A (en) A kind of transport layer reverse proxy method
JP7367793B2 (en) Communication relay device and data relay method
CN112637348A (en) Connection establishing method, device and system and electronic equipment
US20070100998A1 (en) System and method of accessing a resource on a translated network device
US20100023620A1 (en) Access controller
US20040054781A1 (en) Method for establishing point to point or point to multiple points internet connection(s)
JP2017010388A (en) Http server and control method for the same, image forming apparatus, and program
JP4292897B2 (en) Relay device and port forward setting method
US20140189793A1 (en) Virtual file system for interworking between content server and information-centric network server and operating method thereof
CN111064825A (en) Method and device for realizing DPI data acquisition and control based on ARP
WO2011117959A1 (en) Communication apparatus, communication apparatus control method, and program
CN115695301A (en) Method and device for sending message to be transmitted, storage medium and electronic device
CN113542450B (en) Method and system for realizing industrial control firewall supporting FTP (File transfer protocol) traversal NAT (network Address translation)
CN116074365A (en) Method and device for establishing connection, storage medium and electronic device
JP2019103118A (en) Communication relay device, communication relay program, and communication relay method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination