CN117395195A - Communication method, device, equipment and storage medium - Google Patents

Communication method, device, equipment and storage medium Download PDF

Info

Publication number
CN117395195A
CN117395195A CN202311502240.7A CN202311502240A CN117395195A CN 117395195 A CN117395195 A CN 117395195A CN 202311502240 A CN202311502240 A CN 202311502240A CN 117395195 A CN117395195 A CN 117395195A
Authority
CN
China
Prior art keywords
service
network protocol
message
gateway
target
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
CN202311502240.7A
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202311502240.7A priority Critical patent/CN117395195A/en
Publication of CN117395195A publication Critical patent/CN117395195A/en
Pending legal-status Critical Current

Links

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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Abstract

The application provides a communication method, a device, equipment and a storage medium. The method comprises the following steps: the service orchestrator determines a target application server corresponding to the target service according to the type of the service request and the mapping relation between the service type and the application server, and the service orchestrator generates and transmits configuration information of a functional service chain of the target service based on a second network protocol to the second service gateway according to a first service gateway corresponding to the target application server and the second service gateway, and the second service gateway controls nodes on the functional service chain to forward messages of the target service based on the second network protocol. The method improves the transmission flexibility of the service data and the accuracy of the network flow scheduling.

Description

Communication method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of communications, and in particular, to a communication method, apparatus, device, and storage medium.
Background
The internet protocol sixth version of the segmented routing service function chain (Segment Routing v6 Service Function Chaining, SRv6 SFC) is a service function chain technique based on internet protocol sixth version (Internet Protocol version, IPv 6) segmented routing. The method combines the concepts of SRv and service function chains, can realize flexible and efficient network flow scheduling and service link customization, and is a technology for guiding a message to sequentially pass through application layer service equipment according to a designated path by adding SRv path information in an initial message.
The SRv-based functional service chain needs to be based on an IPv6 network architecture, namely all SRv nodes need to be based on the IPv6 network architecture to realize message transmission. However, the current network architecture is mainly the internet protocol fourth edition (Internet Protocol version, IPv 4), and in some scenarios, the network architecture is an IPv 4-only architecture, and SFC based on SRv6 cannot be used.
Therefore, how to communicate through SRv 6-based SFC under an IPv4 network architecture is a problem that needs to be solved.
Disclosure of Invention
The application provides a communication method, a device, equipment and a storage medium, which are used for solving the technical problem of how to communicate through SFC based on SRv under an IPv4 network architecture.
In a first aspect, the present application provides a communication method, including:
the service orchestrator receives a service request of a target service, wherein the target service is a network service based on a first network protocol;
the service orchestrator determines a target application server corresponding to the target service according to the type of the service request and the mapping relation between the service type and the application server;
the service orchestrator generates configuration information of a functional service chain of the target service based on a second network protocol according to a first service gateway corresponding to the target application server and a second service gateway, wherein the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol;
And the service orchestrator transmits the functional service chain configuration information to the second service gateway, so that the second service gateway controls nodes on the functional service chain to forward the message of the target service based on a second network protocol.
In a second aspect, the present application provides a communication method, including:
the second service gateway receives function service chain configuration information of a network architecture of a target service based on a second network protocol, wherein the function service chain configuration information is generated by the service orchestrator according to a first service gateway corresponding to a target application server, the first service gateway is a forwarding node on the function service chain, the second service gateway is a service classification node on the function service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol; the target application server is an application server corresponding to the target service, and the target application server supports the first network protocol;
and the second service gateway controls the node on the functional service chain to forward the message of the target service based on a second network protocol.
Optionally, the second service gateway controls the node on the functional service chain to forward the message of the target service based on a second network protocol, including:
the second service gateway receives an initial message of the target service based on the first network protocol;
the second service gateway is a second network protocol message header of the initial message Wen Tianjia according to the functional service chain configuration information, where the second network protocol message header is used to indicate a first service gateway node on a transmission path of the message of the target service;
the second service gateway generates a message of the target service for an initial message Wen Tianjia first network protocol message header added with the second network protocol message header;
and the second service gateway sends the message of the target service to a first service gateway on the transmission path.
Optionally, the second service gateway is configured to send a second network protocol header to the initial packet Wen Tianjia according to the functional service chain configuration information, including:
the second service gateway obtains a first service gateway list of a target application server corresponding to the target service and a transmission path of the target service according to the function service chain configuration information;
And the second service gateway generates the second network protocol message header according to the identification of the first service gateway included in the first service gateway list and the transmission path of the target service.
In a third aspect, the present application provides a communication method, including:
the method comprises the steps that a first service gateway receives a message based on a first network protocol of a target service sent by a last gateway on a functional service chain, wherein the last gateway is a second service gateway or other first service gateways on the functional service chain; the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, the first service gateway and the second service gateway both support the first network protocol and the second network protocol, and the target service is a network service based on the first network protocol and provided by a target application server; the message of the target service is packaged with an initial message and the message header of the second network protocol;
the first service gateway acquires the initial message from the message and a second network protocol message header;
the first service gateway sends the initial message to the target application server according to the second network protocol message header;
The first service gateway receives a response message of the target application server based on the initial message;
the first service gateway generates a message added with the second network protocol message header according to the response message;
the first service gateway generates a message of the target service for an initial message Wen Tianjia added with the message header of the second network protocol;
and the first service gateway sends the message of the target service to the next gateway on a functional service chain, wherein the next gateway is other first service gateways or an end point service gateway, and the end point service gateway supports the first network protocol and the second network protocol.
Optionally, the acquiring the initial message from the message, and the second network protocol header include:
stripping the first network protocol message header of the outer layer in the message to obtain an initial message with the second network protocol message header;
and stripping the second network protocol message header to obtain the initial message and the second network protocol message header.
Optionally, the sending the initial message to the target application server according to the second network protocol message header includes:
Acquiring a network address of the target application server based on the first network protocol from the second network protocol message header;
changing an inner layer first network protocol message header of the initial message into a target first network protocol message header, and generating a message to be processed, wherein an input interface of the target first network protocol message header is a network address of the first service gateway based on the first network protocol, and an output interface of the target first network protocol message header is a network address of the first application server based on the first network protocol;
and sending the message to be processed to the target application server.
Optionally, the generating, according to the response message, a message added with the second network protocol header includes:
replacing the first network protocol message header of the response message with the inner layer first network protocol message header;
and adding a second network protocol message header comprising the residual transmission path to the response message added with the inner layer first network protocol message header according to the residual transmission path of the target service.
In a fourth aspect, the present application provides a communication method, including:
The terminal service gateway receives a message based on a first network protocol, sent by a last gateway on a functional service chain, wherein the last gateway is a first service gateway on the functional service chain, the first service gateway is a forwarding node on the functional service chain, the first service gateway supports the first network protocol and a second network protocol, and the target service is a network service based on the first network protocol and provided by a target application server; the message of the target service is packaged with a response message of the initial message and a message header of a second network protocol;
the terminal service gateway obtains the response message from the message of the target service;
and the terminal service gateway sends the response message to the receiver of the target service through the communication connection based on the first network protocol.
In a fifth aspect, the present application provides a communication system comprising a service orchestrator implementing the method according to the first aspect, a second service gateway implementing the method according to any of the second aspects, a first service gateway implementing the method according to any of the third aspects, and an end point service gateway implementing the method according to any of the fourth aspects.
In a sixth aspect, the present application provides a communication device for use in a service orchestrator, the device comprising:
the receiving module is used for receiving a service request of a target service, wherein the target service is a network service based on a first network protocol;
the processing module is used for determining a target application server corresponding to the target service according to the type of the service request and the mapping relation between the service type and the application server; generating configuration information of a functional service chain of the target service based on a second network protocol according to a first service gateway corresponding to the target application server and a second service gateway, wherein the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol;
and the control module is used for transmitting the function service chain configuration information to the second service gateway so that the second service gateway controls the node on the function service chain to forward the message of the target service based on a second network protocol.
In a seventh aspect, the present application provides a communication device for use in a second service gateway, the device comprising:
the system comprises a receiving module, a service orchestrator, a service forwarding module and a service classifying module, wherein the receiving module is used for receiving functional service chain configuration information of a network architecture of a target service based on a second network protocol, which is sent by the service orchestrator, the functional service chain configuration information is generated by the service orchestrator according to a first service gateway corresponding to a target application server, the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classifying node on the functional service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol; the target application server is an application server corresponding to the target service, and the target application server supports the first network protocol;
and the control module is used for controlling the nodes on the functional service chain to forward the message of the target service based on a second network protocol.
In an eighth aspect, the present application provides a communication device applied to a first service gateway, the device comprising:
the first receiving module is used for receiving a message based on a first network protocol of a target service sent by a last gateway on a functional service chain, wherein the last gateway is a second service gateway or other first service gateways on the functional service chain; the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, the first service gateway and the second service gateway both support the first network protocol and the second network protocol, and the target service is a network service based on the first network protocol and provided by a target application server; the message of the target service is packaged with an initial message and the message header of the second network protocol;
The acquisition module is used for acquiring the initial message and a second network protocol message header from the message;
the first sending module is used for sending the initial message to the target application server according to the second network protocol message header;
the second receiving module is used for receiving a response message of the target application server based on the initial message;
the processing module is used for generating a message added with the second network protocol message header according to the response message; generating a message of the target service for the initial message Wen Tianjia of the second network protocol message header added with the first network protocol message header;
and the second sending module is used for sending the message of the target service to the next gateway on the functional service chain, wherein the next gateway is other first service gateways or terminal service gateways, and the terminal service gateways support the first network protocol and the second network protocol.
The ninth aspect. The application provides a communication device, which is applied to an end point service gateway, and comprises:
the system comprises a receiving module, a first network protocol-based message and a second network protocol-based message, wherein the receiving module is used for receiving a message based on the first network protocol of a target service sent by a last gateway on a functional service chain, the last gateway is a first service gateway on the functional service chain, the first service gateway is a forwarding node on the functional service chain, the first service gateway supports the first network protocol and the second network protocol, and the target service is the network service based on the first network protocol and provided by a target application server; the message of the target service is packaged with a response message of the initial message and a message header of a second network protocol;
The acquisition module is used for acquiring the response message from the message of the target service;
and the sending module is used for sending the response message to the receiver of the target service through the communication connection based on the first network protocol.
In a tenth aspect, the present application provides an electronic device, comprising: the processor is respectively in communication connection with the communication interface and the memory;
the memory stores computer-executable instructions;
the communication interface performs communication interaction with external equipment;
the processor executes computer-executable instructions stored by the memory to implement the method of any one of the first to fourth aspects.
In an eleventh aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for implementing the method according to any of the first to fourth aspects when executed by a processor.
In a twelfth aspect, the present application provides a computer program product for implementing the communication method according to any one of the first to fourth aspects when executed by a processor.
According to the communication method, the device, the equipment and the storage medium, the SC node and the SFF node are configured to be the nodes supporting the first network protocol and the second network protocol through the dual-stack technology, and the data transmission tunnel between the SC node and the SFF node is configured to be the tunnel supporting network protocol conversion (namely, data based on the second network protocol is transmitted in the network of the first network protocol), so that the SC node can transmit and forward the message of the target service based on the first network protocol through the second network protocol, and the problem of limited service data transmission is avoided.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic structural diagram of a SRv SFC networking provided in the present application;
fig. 2 is a schematic structural diagram of a communication network according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a communication method according to an embodiment of the present application;
fig. 4 is a flow chart of another communication method according to an embodiment of the present application;
fig. 5 is a flow chart of another communication method according to an embodiment of the present application;
Fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another communication device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another communication device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of still another communication device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with the related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
For ease of understanding, the present SFC system architecture based on SRv6 will be described first.
Fig. 1 is a schematic structural diagram of a SRv SFC network provided in the present application. As shown in fig. 1, the networking may include: a Service classification (Service Classifier, SC) node, a Service chaining forwarding (Service Function Forwarder, SFF) node, an application Service (SF) node, a subscriber network node of a Service initiator, a subscriber network node of a Service receiver.
The connection between any two nodes is based on IPv6 network connection.
The SC node is located at the network edge of SRv SFC and is a source node of the functional service chain path, and may adopt different drainage modes to introduce the service data from the user network node of the service initiator into the SRv transmission engineering Policy (Traffic Engineering Policy, TE Policy) tunnel for forwarding.
The SFF node is used as a functional service chain agent of the SF node, the received message is forwarded to a plurality of SF nodes associated with the SFF node according to SRv encapsulation information, the SF node processes the message and returns the message to the SFF node, and the SFF node finally decides whether to continue forwarding the message.
The SF node is a node providing a specific application service for the service flow and is used for processing the service-related message received from the SFF node.
However, the current network architecture is mainly an IPv4 network architecture, and in some scenarios, the network architecture is an IPv 4-only architecture. When the network architecture is an IPv4 architecture, the transmitted message is also an IPv 4-based message, and the relevant setting based on SRv is not provided, so that the SFC based on SRv cannot be used for message transmission and service processing, and the problem of service data transmission limitation is caused.
According to the communication method, the SC node and the SFF node are configured to be nodes supporting the first network protocol and the second network protocol through the dual-stack technology, and the data transmission tunnel between the SC node and the SFF node is configured to be a tunnel supporting network protocol conversion (namely, transmitting data based on the second network protocol in the network of the first network protocol), so that the SC node can transmit and forward the message of the target service based on the first network protocol through the second network protocol, and the problem of limited service data transmission is avoided.
Next, a description will be given of a structure of networking of the communication method provided in the embodiment of the present application.
Fig. 2 is a schematic structural diagram of a communication network according to an embodiment of the present application. As shown in fig. 2, the structure may include: the system comprises a service orchestrator, a service classification node, at least one forwarding node, at least one application server, a terminal node, a user network node of a service initiator and a user network node of a service receiver.
The service classification node is a service classification node corresponding to a user network node of the service initiator, and the connection between the service classification node and the user network node is a tunnel based on a first network protocol. The service classification node and the forwarding node, the forwarding node and other forwarding nodes, and the forwarding node and the destination node are all connected through a tunnel supporting network protocol conversion (namely, data based on a second network protocol is transmitted in a network of a first network protocol), and the tunnel can be an IPv6-over-IPv4 (6 to4 for short) tunnel assuming that the first network protocol is IPv4 and the second network protocol is IPv 6. The connection between the forwarding node and at least one application server corresponding to the forwarding node and between the terminal node and the user network node of the service receiver is a tunnel based on a first network protocol. The service classification node, the at least one forwarding node, and the destination node may be service gateways serving as corresponding nodes.
The service orchestrator determines an orchestration result of a functional service chain corresponding to the service request according to the service request sent by a user network node of a service initiator, namely, determines a network transmission path of the service request, and transmits a message corresponding to the service in sequence through nodes and nodes of the network transmission path. The service orchestrator issues the network transmission path to the service classification node, so that the service classification node can control transmission of the service message.
The service classification node, the forwarding node and the destination node are all nodes supporting the first network protocol and the second network protocol, the function of the service classification node in the function service chain is the same as that of the SC node in the foregoing figure 1, the function of the forwarding node in the function service chain is the same as that of the SFF node in the foregoing figure 1, and the destination node is a node for distributing messages to the user network node of the service receiver. The application server is a server only supporting the first network protocol, and its function in the functional service chain is the same as that of the SF node in fig. 1, which is not described herein.
It should be understood that the first network protocol and the second network protocol in the embodiments of the present application may be any network protocol, for example, the first network protocol may be IPv4, and the second network protocol may be IPv6, and the first network protocol and the second network protocol are not limited in this application, so long as they are two different network protocols. The network protocol conversion protocol is determined according to the first network protocol and the second network protocol, and is used for converting the message of the first network protocol into the message of the second network protocol, for example, the 6to4 protocol. The functional service chain is based on a second network protocol.
Next, a detailed description will be given of the technical solution of the present application and how to solve the above technical problems by using the architecture shown in fig. 2 through a specific embodiment. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
First, an explanation will be given of how the service orchestrator determines orchestration of functional service chains according to the target traffic. Fig. 3 is a flow chart of a communication method according to an embodiment of the present application. As shown in fig. 3, the method may include:
s301, a user network node of a service initiator sends out a service request of a target service.
Accordingly, the service orchestrator receives the service request for the target service.
Wherein the service orchestrator is a service orchestrator corresponding to the user network node of the service initiator. The target service is a network service based on the first network protocol, for example, may be a cloud computing service, a data center service, a video service, an e-commerce service, and the like, which is not limited in this application. The service request is a request sent by a user network node of a service initiator, where the user network node may be, for example, a user server, a user terminal, and the terminal may be, for example, a computer, a mobile phone, a tablet computer, and the like.
S302, the service orchestrator determines a target application server corresponding to the target service according to the type of the service request and the mapping relation between the service type and the application server.
The service type may be determined according to actual requirements, for example, according to the classification of the target service, or according to a more detailed classification under each classification. The application server is used for processing the service corresponding to the application server, and the application servers for processing the target services of different service types are different.
The mapping relationship between the service type and the application server may be pre-stored in the service orchestrator or stored in a database corresponding to the service orchestrator. The service orchestrator can determine a target service corresponding to the service request according to the service request, and determine a service type of the target service according to the target service. And determining a target application server corresponding to the target service through the service type and the mapping relation between the service type and the application server.
S303, the service orchestrator generates configuration information of a functional service chain of the target business based on the second network protocol according to the first service gateway corresponding to the target application server and the second service gateway.
The first service gateway is a forwarding node on a functional service chain, the second service gateway is a service classification node on the functional service chain, and both the first service gateway and the second service gateway support a first network protocol and a second network protocol. The configuration information of the functional service chain comprises forwarding nodes and service classification nodes corresponding to at least one target application server for processing the target service, and transmission paths for transmitting messages of the target service in the forwarding nodes and the service classification nodes. For example, a service identifier (Service Identifier, SID) of each first service gateway as a forwarding node may be included, and the SIDs may be arranged according to a transmission path of a message transmitting the target service, where the SID of the first service gateway through which the message passes first is arranged before and the SID of the first service gateway through which the message passes later is arranged after.
The forwarding node included in the configuration information of the functional service chain may be determined according to the target application servers corresponding to the target service, where each target application server corresponds to a forwarding node in communication connection with the target application server, and the service classification node is a service classification node corresponding to a user network node of the service initiator. The service orchestrator may be connected to a plurality of service classification nodes, and write the SID of the service classification node in the configuration information of the functional service chain according to the service classification node corresponding to the target service.
S304, the service orchestrator issues the function service chain configuration information to the second service gateway.
Correspondingly, the second service gateway receives the functional service chain configuration information of the target business based on the network architecture of the second network protocol, which is sent by the service orchestrator.
The function service chain configuration information is generated by the service orchestrator according to a first service gateway corresponding to a target application server and a second service gateway, wherein the target application server is an application server corresponding to a target service, and the target application server supports a first network protocol. In the network architecture, a network connection between a first service gateway and a second service gateway is a tunnel capable of converting a second network protocol into a first network protocol.
The second service gateway is a second service gateway for subsequently receiving the message of the target service, the second service gateway is related to the target service, and the service orchestrator can determine the second service gateway according to the service type of the target service and write the second service gateway into the functional service chain configuration information.
By transmitting the configuration information of the functional service chain to the second service gateway, the second service gateway can control the node on the functional service chain to forward the message of the target service based on the second network protocol.
S305, the node on the second service gateway control function service chain forwards the message of the target service based on the second network protocol.
The second service gateway determines a transmission path of a message for forwarding the target service on a functional service chain according to the functional service chain configuration information of the network architecture of the target service based on the second network protocol, wherein the transmission path comprises a node for forwarding the message of the target service, and the node comprises at least one first service gateway serving as a forwarding node and a terminal service gateway serving as a terminal node.
For example, the second service gateway may generate a segment routing header (Segment Routing Header, SRH) including a corresponding transmission path according to the functional service chain configuration information, where the SRH includes a series of segment identifiers that specify paths that a message should traverse in the network, so as to accurately control and manage transmission of the message. And adding a second network protocol message header comprising the SRH to the message of the target service so as to control the node on the functional service chain to forward the message of the target service based on the second network protocol.
According to the method provided by the embodiment of the application, the service orchestrator determines the target application server corresponding to the target service according to the type of the service request and the mapping relation between the service type and the application server, and generates the configuration information of the functional service chain of the target service based on the second network protocol according to the first service gateway corresponding to the target application server and the second service gateway, so that the second service gateway can control the node on the functional service chain to forward the message of the target service based on the second network protocol according to the configuration information, and the problem of limited service data transmission is avoided.
Next, how the second service gateway controls the node on the functional service chain to forward the message of the target service based on the second network protocol in the foregoing step S305 will be described in detail.
Fig. 4 is a flow chart of another communication method according to an embodiment of the present application. As shown in fig. 4, the foregoing step S305 may include:
s401, the second service gateway receives an initial message of the target service based on the first network protocol.
The target service is sent to the second service gateway for the service initiator user network node based on an initial message of the first network protocol. The initial message includes service data to be processed by a target application server of the target service. The second service gateway receives an initial message of the target service through a network connection based on a first network protocol with a service initiator user network node.
And S402, the second service gateway is a second network protocol message header of the initial message Wen Tianjia according to the functional service chain configuration information.
The second network protocol message header is used for indicating a first service gateway node on a transmission path of the message of the target service. The second service gateway determines a first service gateway node included in the transmission path according to the transmission path of the message of the target service included in the functional service chain configuration information. For example, the identifier of the first service gateway node may be extracted, for example, the identifier of the name, the serial number, etc. of the first service gateway node, or the network address of the first service gateway node may be extracted, the identifier of the first service gateway node and/or the network address of the first service gateway node is added to a blank second network protocol message header, so as to generate the second network protocol message header corresponding to the functional service chain configuration information.
One possible implementation manner, the second network protocol header includes only the first service gateway node on the transmission path of the message of the target service.
One possible implementation manner includes a first service gateway node on a transmission path of the message of the target service in the second network protocol message header, and a transmission sequence of the first service gateway node. The implementation mode can be realized by the following steps:
s4021, the second service gateway obtains a first service gateway list of a target application server corresponding to the target service and a transmission path of the target service according to the function service chain configuration information.
In one possible implementation manner, the function service chain configuration information may include a first service gateway list of a target application server corresponding to a target service, and a transmission path of the target service, and the second service gateway directly extracts the first service gateway list of the target application server corresponding to the target service, and the transmission path of the target service.
In another possible implementation manner, the functional service chain configuration information includes a target application server and a destination service gateway corresponding to the target service, determines a first service gateway node corresponding to each target application server according to the second service gateway and the target application server, and determines a transmission path of the target service on the first service gateway node as a transmission path of the target service according to an order in which the target application servers process the target service.
S4022, the second service gateway generates a second network protocol message header according to the identification of the first service gateway included in the first service gateway list and the transmission path of the target service.
The identification of the first service gateway may be the SID of each first service gateway, or may be the name of each first service gateway, and the SID of each first service gateway is ordered according to the transmission sequence of the first service gateway in the transmission path according to the transmission path of the target service, so as to generate a second network protocol header including the SID of the first service gateway and the SRH of the transmission sequence of the first service gateway.
For example, assuming that the SID of the first service gateway on the transmission path of the target service is SID-a and SID-B in sequence, the Segment List of the generated SRH (Segments left=2) may be: < Segment List [0] =sid-B, segment List [1] =sid-a >.
S403, the second service gateway generates a message of the target service for the initial message Wen Tianjia added with the second network protocol message header.
The first network protocol header is used for packaging the initial message added with the second network protocol header into a message based on a first network protocol, so that the message of the target service can be transmitted to the first service gateway through a tunnel between the second service gateway and the first service gateway on the transmission path, wherein the tunnel converts the second network protocol into the first network protocol, namely, the initial message added with the second network protocol header can be transmitted to the first service gateway.
S404, the second service gateway sends the message of the target service to the first service gateway on the transmission path.
The second service gateway transmits the message of the target service to the first service gateway through a tunnel between the second service gateway and the first service gateway on the transmission path, wherein the tunnel converts the second network protocol into the first network protocol, so that the first service gateway can forward the initial message to the corresponding target application server for service processing.
And in the transmission process of the message, the first network protocol address of the second service gateway is taken as a source address, the first network protocol address of the first service gateway is taken as a destination address, and the message is sent from the second service gateway to the first service gateway.
According to the method provided by the embodiment of the invention, the second service gateway receives the initial message of the target service based on the first network protocol, the initial message is the second network protocol message header of the initial message Wen Tianjia according to the configuration information of the functional service chain, and the initial message added with the second network protocol message header is transmitted to the first service gateway in the functional service chain by converting the second network protocol into the tunnel of the first network protocol, so that the initial message based on the first network protocol can be transmitted between the second service gateway and the first service gateway, and the problem of limited service data transmission is avoided.
The following details of how the first service gateway forwards the message of the target service.
Fig. 5 is a flow chart of another communication method according to an embodiment of the present application. As shown in fig. 5, the method may include:
s501, a first service gateway receives a message based on a first network protocol of a target service sent by a last gateway on a functional service chain.
The last gateway is a second service gateway on the functional service chain, or other first service gateways, and the message of the target service is encapsulated with an initial message and a second network protocol message header.
If the functional service chain includes a plurality of first service gateways and the current first service gateway is not the first service gateway on the transmission path of the message of the target service, the last gateway is the previous first service gateway of the current first service gateway in the transmission path. If the current first service gateway is the first service gateway on the transmission path of the message of the target service, the last gateway is the second service gateway on the functional service chain. If the functional service chain only includes one first service gateway, the last gateway is a second service gateway on the functional service chain.
S502, the first service gateway acquires an initial message and a second network protocol message header from the message.
In one possible implementation, since the packet of the target service encapsulates an initial packet and a second network protocol packet header, the first service gateway may directly extract the initial packet and the second network protocol packet header from the packet.
In another possible implementation manner, the first service gateway may strip the header included on the initial packet layer by layer to obtain the initial packet, and the second network protocol header. And stripping the first network protocol header of the outer layer in the message to obtain an initial message with the second network protocol header, wherein the first network protocol header of the outer layer is added for passing through a tunnel based on a network protocol conversion protocol. And stripping the second network protocol message header to obtain an initial message, and the second network protocol message header.
S503, the first service gateway sends the initial message to the target application server according to the second network protocol message header.
The second network protocol message header includes a first network protocol address of the first service gateway and a first network protocol address of the target application server, where the two addresses may be stored in address storage locations corresponding to the identifier of the first service gateway, and according to the two addresses, the initial message may be packaged into a first network protocol message transmitted based on the two addresses, and the initial message is sent to the target application server through a tunnel between the first service gateway and the target application server based on the first network protocol.
After receiving the initial message, the target application server processes the service data in the initial message according to the service requirement and generates a response message based on the initial message according to the processed service data. The service processing process can be determined according to actual requirements, and the processing mode can be any existing service processing mode, which is not limited in the application.
S504, the first service gateway receives a response message of the target application server based on the initial message.
After generating a response message based on the initial message, the target application server sends the response message to the first service gateway based on a first network protocol message header comprising a first network protocol address of the first service gateway and the first network protocol message header of the first network protocol address of the target application server, so that the first service gateway can receive the processed service data, and subsequent forwarding operation is executed.
S505, the first service gateway generates a message added with a second network protocol message header according to the response message.
One possible implementation manner may be to re-add the second network protocol header stripped from the initial packet to the reply packet according to the reply packet, so that the first service gateway may determine, according to a first service gateway list included in the second network protocol header, a service gateway to which the reply packet needs to be forwarded subsequently. For example, the identifier of the first service gateway may be obtained, and the service gateway corresponding to the identifier after the identifier is used as the service gateway to which the response message needs to be forwarded subsequently.
In another possible implementation manner, the identifier of the first service gateway in the first service gateway list included in the second network protocol header stripped from the initial packet is deleted, so as to indicate that forwarding of the first service gateway is completed, thereby generating a new second network protocol packet header, adding the new second network protocol packet header to the response packet, and generating a packet added with the second network protocol packet header.
S506, the first service gateway generates the message of the target service for the initial message Wen Tianjia added with the second network protocol message header.
The function of the first service gateway for the initial message Wen Tianjia added with the second network protocol header is the same as that in the step S403, and will not be described herein.
S507, the first service gateway sends the message of the target service to the next gateway on the functional service chain.
The next gateway is other first service gateways or destination service gateways, and the destination service gateways support the first network protocol and the second network protocol. If the first service gateway needs other first service gateways to forward the message to other application servers for processing after the first service gateway is in the transmission path of the target service, the next gateway is the other first service gateway; if the target service is processed by all application servers, the message of the target service needs to be distributed to the user network node of the service receiver through the terminal service gateway, so that the next gateway is the terminal service gateway.
The first service gateway sends the message of the target service to the next gateway on the functional service chain through the tunnel converting the second network protocol into the first network protocol.
S508, the terminal service gateway receives the message of the target business based on the first network protocol sent by the last gateway on the functional service chain.
The last gateway is a first service gateway on a functional service chain, the end service gateway is a forwarding service gateway corresponding to a service receiver user network node of the target service, and is used for distributing a message of the target service to the service receiver user network node corresponding to the target service, and the last gateway is the last first service gateway on a message transmission path in the functional service chain.
S509, the terminal service gateway acquires a response message from the message of the target service.
The terminal service gateway obtains a second network message header of the response message and the response message by stripping the message header of the message of the target service.
Optionally, the second network message header of the response message further includes an operation instruction configured for an identifier of the service gateway, for the first service gateway, the operation instruction corresponding to the identifier of each first service gateway is a forwarding message to the target application server, and for the destination service gateway, the operation instruction corresponding to the identifier of the destination service gateway is a response message extracted from the message of the target service. And the terminal service gateway acquires the response message from the message of the target service according to the operation instruction configured for the identifier in the second network message header of the response message.
And S510, the terminal service gateway transmits the response message to a receiver of the target service through the communication connection based on the first network protocol.
After stripping the second network message header of the response message, the terminal service gateway determines the network address based on the first network protocol of the service receiver user network node of the target service according to the receiver address included in the first network message header at the inner side of the response message, so as to send the response message to the corresponding service receiver user network node according to the network address based on the first network protocol.
According to the method provided by the embodiment of the invention, the first service gateway sends the message to the target application server for processing through the first network protocol by stripping the second network protocol message header of the message of the target service, receives the processed response message, and after the processing is completed, the first service gateway transmits the response message to the next designated gateway through the second network protocol message header which is the response message Wen Tianjia again until the terminal service gateway receives the response message processed at least once, and distributes the response message to the service receiver of the target service, so that the problem of service data transmission limitation is avoided through the function of processing the service based on the functional service chain of the second network protocol under the architecture of the first network protocol.
In the following, a detailed description is given of how to send the initial message to the target application server according to the second network protocol header. The aforementioned step S503 may include:
s5031, the first service gateway obtains the network address of the target application server based on the first network protocol from the second network protocol message header.
The network address of the target application server based on the first network protocol may be stored in the second network protocol packet header, for example, the network address of the target application server corresponding to the first service gateway based on the first network protocol may be configured for the SID of each first service gateway in advance.
The first service gateway can obtain the network address of the target application server based on the first network protocol from the second network protocol message header according to the identifier of the first service gateway, for example, obtain the network address of the target application server corresponding to the first service gateway configured by the SID of the first service gateway based on the first network protocol.
Or, the first service gateway stores the addresses of all application servers connected with the first service gateway in advance, and extracts the network address of the target application server based on the first network protocol from the addresses of all application servers connected with the first service gateway according to the target application server indicated in the second network protocol message header.
S5032, the first service gateway changes the first network protocol message header of the inner layer of the initial message into the first network protocol message header of the target, and generates a message to be processed.
The first network protocol message header of the inner layer of the initial message is a message header of the initial message, the input interface of the target first network protocol message header is a network address of the first service gateway based on the first network protocol, and the output interface of the target first network protocol message header is a network address of the first application server based on the first network protocol.
The first service gateway can send the message to be processed to the target application server through the target first network protocol message header.
S5033, the first service gateway sends the message to be processed to the target application server.
The first service gateway sends the message to be processed to the target application server so that the target application server can process the service data included in the message to be processed, and returns the processed message to the first service gateway according to the input interface of the target first network protocol message header so that the first service gateway can continuously forward the processed message to the next gateway.
In the above implementation manner, the step S505 may include:
s5051, replacing the first network protocol message header of the response message with the first network protocol message header of the inner layer.
The first network protocol message header of the response message is a target first network protocol message header, and the first network protocol message header of the target first network protocol message header is replaced by an inner layer first network protocol message header of the initial message, so that the format of the response message is the same as that of the initial message, and the subsequent continuous transmission of the initial message is facilitated.
S5052, adding a second network protocol message header comprising the residual transmission path for the response message added with the inner layer first network protocol message header according to the residual transmission path of the target service.
The remaining transmission paths are transmission paths of the message of the target service, including transmission paths of all nodes after the first service gateway node, and may be stored in the second network protocol header in a similar manner to the transmission paths of the target service.
And adding the second network protocol message header storing the rest transmission paths to the response message to instruct the first service gateway and how the next gateway forwards the response message.
The application also provides a communication system comprising a service orchestrator, a second service gateway, a first service gateway, and a destination service gateway implementing the method according to the previous embodiments. The communication system provided in the embodiment of the present application may perform the communication method in the embodiment of the method, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 6 is a schematic structural diagram of a communication device according to an embodiment of the present application. As shown in fig. 6, the apparatus is applied to a service orchestrator, and the communication apparatus may include: a receiving module 11, a processing module 12, a control module 13.
The receiving module 11 is configured to receive a service request of a target service, where the target service is a network service based on a first network protocol.
The processing module 12 is configured to determine a target application server corresponding to the target service according to the type of the service request and a mapping relationship between the service type and the application server. And generating configuration information of a functional service chain of the target service based on a second network protocol according to a first service gateway corresponding to the target application server and a second service gateway, wherein the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol.
And the control module 13 is configured to send the configuration information of the functional service chain to the second service gateway, so that the second service gateway controls the node on the functional service chain to forward the message of the target service based on the second network protocol.
The communication device provided in the embodiment of the present application may execute the communication method executed by the service orchestrator in the embodiment of the method, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 7 is a schematic structural diagram of another communication device according to an embodiment of the present application. As shown in fig. 7, the apparatus is applied to a second service gateway, and the communication apparatus may include: a receiving module 21, a control module 22.
The receiving module 21 is configured to receive function service chain configuration information of a network architecture of a second network protocol for a target service sent by a service orchestrator, where the function service chain configuration information is generated by the service orchestrator according to a first service gateway corresponding to a target application server, and the second service gateway is a forwarding node on the function service chain, the second service gateway is a service classification node on the function service chain, and both the first service gateway and the second service gateway support the first network protocol and the second network protocol. The target application server is an application server corresponding to the target service, and the target application server supports the first network protocol.
And the control module 22 is used for controlling the nodes on the functional service chain to forward the message of the target service based on the second network protocol.
In a possible implementation manner, the receiving module 21 is specifically configured to receive an initial packet of the target service based on the first network protocol.
The control module 22 is specifically configured to send the initial message Wen Tianjia a second network protocol header according to the functional service chain configuration information. And generating the message of the target service for the initial message Wen Tianjia of the second network protocol message header added with the first network protocol message header. And sending the message of the target service to a first service gateway on the transmission path. The second network protocol message header is used for indicating a first service gateway node on a transmission path of the message of the target service.
Wherein, optionally, the control module 22 is specifically configured to obtain, according to the function service chain configuration information, a first service gateway list of a target application server corresponding to the target service, and a transmission path of the target service. And generating the second network protocol message header according to the identification of the first service gateway included in the first service gateway list and the transmission path of the target service.
The communication device provided in the embodiment of the present application may execute the communication method executed by the second service gateway in the embodiment of the method, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 8 is a schematic structural diagram of another communication device according to an embodiment of the present application. As shown in fig. 8, the apparatus is applied to a first service gateway, and the communication apparatus may include: the device comprises a first receiving module 31, an acquisition module 32, a first transmitting module 33, a second receiving module 34, a processing module 35 and a second transmitting module 36.
The first receiving module 31 is configured to receive a message based on the first network protocol from a last gateway on the functional service chain, where the last gateway is a second service gateway or another first service gateway on the functional service chain. The first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, the first service gateway and the second service gateway both support the first network protocol and the second network protocol, and the target service is a network service based on the first network protocol and provided by the target application server. The message of the target service is encapsulated with an initial message and the second network protocol message header.
The obtaining module 32 is configured to obtain the initial message and the second network protocol header from the message.
A first sending module 33, configured to send the initial message to the target application server according to the second network protocol message header.
A second receiving module 34, configured to receive a response message based on the initial message from the target application server.
A processing module 35, configured to generate a message with the second network protocol header added according to the response message. And generating the message of the target service for the initial message Wen Tianjia of the second network protocol message header added with the first network protocol message header.
The second sending module 36 is configured to send the message of the target service to a next gateway on the functional service chain, where the next gateway is another first service gateway, or an end service gateway, where the end service gateway supports the first network protocol and the second network protocol.
Optionally, the processing module 35 is specifically configured to strip the first network protocol header of the outer layer in the packet to obtain the initial packet with the second network protocol header. And stripping the second network protocol message header to obtain the initial message and the second network protocol message header.
Optionally, the acquiring module 32 is specifically configured to acquire, from the second network protocol header, a network address of the target application server based on the first network protocol. The processing module 35 is specifically configured to replace the inner layer first network protocol header of the initial message with a target first network protocol header, generate a message to be processed, wherein an input interface of the target first network protocol header is a network address of the first service gateway based on the first network protocol, and an output interface of the target first network protocol header is a network address of the first application server based on the first network protocol.
The first sending module 33 is specifically configured to send the message to be processed to the target application server.
Optionally, the processing module 35 is specifically configured to replace the first network protocol header of the reply message with the inner layer first network protocol header. And adding a second network protocol message header comprising the residual transmission path to the response message added with the inner layer first network protocol message header according to the residual transmission path of the target service.
The communication device provided in the embodiment of the present application may execute the communication method executed by the first service gateway in the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 9 is a schematic structural diagram of still another communication device according to an embodiment of the present application. As shown in fig. 9, the apparatus is applied to an end point service gateway, and the communication apparatus may include: the receiving module 41, the obtaining module 42 and the sending module 43.
The receiving module 41 is configured to receive a message based on a first network protocol from a last gateway in a functional service chain, where the last gateway is a first service gateway in the functional service chain, the first service gateway is a forwarding node in the functional service chain, the first service gateway supports the first network protocol and the second network protocol, and the target service is a network service based on the first network protocol and provided by a target application server. The message of the target service is packaged with a response message of the initial message and a message header of the second network protocol.
The obtaining module 42 is configured to obtain the response message from the message of the target service.
A sending module 43, configured to send the response message to the receiver of the target service through a communication connection based on the first network protocol.
The communication device provided in the embodiment of the present application may execute the communication method executed by the end point service gateway in the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application. The electronic device is configured to perform the communication method, and may be, for example, the service orchestrator, the first service gateway, the second service gateway, the destination service gateway, and the like. As shown in fig. 10, the electronic device 1000 may include: at least one processor 1001, a memory 1002, a communication interface 1003.
Memory 1002 for storing programs. In particular, the program may include program code including computer-operating instructions.
The memory 1002 may include high-speed RAM memory or may further include non-volatile memory (non-volatile memory), such as at least one disk memory.
The processor 1001 is configured to execute computer-executable instructions stored in the memory 1002 to implement the methods described in the foregoing method embodiments. The processor 1001 may be a CPU, or an application specific integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more integrated circuits configured to implement embodiments of the present application.
The processor 1001 may perform communication interaction with an external device, such as a terminal that issues an application server, a user node, or the like, through the communication interface 1003. In a specific implementation, if the communication interface 1003, the memory 1002, and the processor 1001 are implemented independently, the communication interface 1003, the memory 1002, and the processor 1001 may be connected to each other through a bus and perform communication with each other. The bus may be an industry standard architecture (Industry Standard Architecture, abbreviated ISA) bus, an external device interconnect (Peripheral Component, abbreviated PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, abbreviated EISA) bus, among others. Buses may be divided into address buses, data buses, control buses, etc., but do not represent only one bus or one type of bus.
Alternatively, in a specific implementation, if the communication interface 1003, the memory 1002, and the processor 1001 are implemented integrally on one chip, the communication interface 1003, the memory 1002, and the processor 1001 may complete communication through internal interfaces.
The present application also provides a computer-readable storage medium, which may include: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk or an optical disk, etc., in which program codes may be stored, and in particular, the computer-readable storage medium stores program instructions for the methods in the above embodiments.
The present application also provides a program product comprising execution instructions stored in a readable storage medium. The at least one processor of the computing device may read the execution instructions from the readable storage medium, the execution instructions being executed by the at least one processor to cause the computing device to implement the communication method described above.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (16)

1. A method of communication, comprising:
the service orchestrator receives a service request of a target service, wherein the target service is a network service based on a first network protocol;
the service orchestrator determines a target application server corresponding to the target service according to the type of the service request and the mapping relation between the service type and the application server;
the service orchestrator generates configuration information of a functional service chain of the target service based on a second network protocol according to a first service gateway corresponding to the target application server and a second service gateway, wherein the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol;
and the service orchestrator transmits the functional service chain configuration information to the second service gateway, so that the second service gateway controls nodes on the functional service chain to forward the message of the target service based on a second network protocol.
2. A method of communication, comprising:
The second service gateway receives function service chain configuration information of a network architecture of a target service based on a second network protocol, wherein the function service chain configuration information is generated by the service orchestrator according to a first service gateway corresponding to a target application server, the first service gateway is a forwarding node on the function service chain, the second service gateway is a service classification node on the function service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol; the target application server is an application server corresponding to the target service, and the target application server supports the first network protocol;
and the second service gateway controls the node on the functional service chain to forward the message of the target service based on a second network protocol.
3. The method of claim 2, wherein the second service gateway controlling the node on the functional service chain to forward the message of the target traffic based on a second network protocol comprises:
the second service gateway receives an initial message of the target service based on the first network protocol;
The second service gateway is a second network protocol message header of the initial message Wen Tianjia according to the functional service chain configuration information, where the second network protocol message header is used to indicate a first service gateway node on a transmission path of the message of the target service;
the second service gateway generates a message of the target service for an initial message Wen Tianjia first network protocol message header added with the second network protocol message header;
and the second service gateway sends the message of the target service to a first service gateway on the transmission path.
4. The method of claim 3, wherein the second service gateway, according to the functional service chain configuration information, is a second network protocol header of the initial message Wen Tianjia, comprising:
the second service gateway obtains a first service gateway list of a target application server corresponding to the target service and a transmission path of the target service according to the function service chain configuration information;
and the second service gateway generates the second network protocol message header according to the identification of the first service gateway included in the first service gateway list and the transmission path of the target service.
5. A method of communication, comprising:
the method comprises the steps that a first service gateway receives a message based on a first network protocol of a target service sent by a last gateway on a functional service chain, wherein the last gateway is a second service gateway or other first service gateways on the functional service chain; the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, the first service gateway and the second service gateway both support the first network protocol and the second network protocol, and the target service is a network service based on the first network protocol and provided by a target application server; the message of the target service is packaged with an initial message and the message header of the second network protocol;
the first service gateway acquires the initial message from the message and a second network protocol message header;
the first service gateway sends the initial message to the target application server according to the second network protocol message header;
the first service gateway receives a response message of the target application server based on the initial message;
The first service gateway generates a message added with the second network protocol message header according to the response message;
the first service gateway generates a message of the target service for an initial message Wen Tianjia added with the message header of the second network protocol;
and the first service gateway sends the message of the target service to the next gateway on a functional service chain, wherein the next gateway is other first service gateways or an end point service gateway, and the end point service gateway supports the first network protocol and the second network protocol.
6. The method of claim 5, wherein the obtaining the initial message from the message, and the second network protocol header comprise:
stripping the first network protocol message header of the outer layer in the message to obtain an initial message with the second network protocol message header;
and stripping the second network protocol message header to obtain the initial message and the second network protocol message header.
7. The method of claim 6, wherein the sending the initial message to the target application server according to the second network protocol header comprises:
Acquiring a network address of the target application server based on the first network protocol from the second network protocol message header;
changing an inner layer first network protocol message header of the initial message into a target first network protocol message header, and generating a message to be processed, wherein an input interface of the target first network protocol message header is a network address of the first service gateway based on the first network protocol, and an output interface of the target first network protocol message header is a network address of the first application server based on the first network protocol;
and sending the message to be processed to the target application server.
8. The method of claim 7, wherein generating the message with the second network protocol header added according to the response message comprises:
replacing the first network protocol message header of the response message with the inner layer first network protocol message header;
and adding a second network protocol message header comprising the residual transmission path to the response message added with the inner layer first network protocol message header according to the residual transmission path of the target service.
9. A method of communication, comprising:
The terminal service gateway receives a message based on a first network protocol, sent by a last gateway on a functional service chain, wherein the last gateway is a first service gateway on the functional service chain, the first service gateway is a forwarding node on the functional service chain, the first service gateway supports the first network protocol and a second network protocol, and the target service is a network service based on the first network protocol and provided by a target application server; the message of the target service is packaged with a response message of the initial message and a message header of a second network protocol;
the terminal service gateway obtains the response message from the message of the target service;
and the terminal service gateway sends the response message to the receiver of the target service through the communication connection based on the first network protocol.
10. A communication system comprising a service orchestrator implementing the method according to claim 1, a second service gateway implementing the method according to claims 2-4, a first service gateway implementing the method according to claims 5-8, and an end-point service gateway implementing the method according to claim 9.
11. A communication device for use with a service orchestrator, the device comprising:
the receiving module is used for receiving a service request of a target service, wherein the target service is a network service based on a first network protocol;
the processing module is used for determining a target application server corresponding to the target service according to the type of the service request and the mapping relation between the service type and the application server; generating configuration information of a functional service chain of the target service based on a second network protocol according to a first service gateway corresponding to the target application server and a second service gateway, wherein the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol;
and the control module is used for transmitting the function service chain configuration information to the second service gateway so that the second service gateway controls the node on the function service chain to forward the message of the target service based on a second network protocol.
12. A communication device for use with a second service gateway, the device comprising:
the system comprises a receiving module, a service orchestrator, a service forwarding module and a service classifying module, wherein the receiving module is used for receiving functional service chain configuration information of a network architecture of a target service based on a second network protocol, which is sent by the service orchestrator, the functional service chain configuration information is generated by the service orchestrator according to a first service gateway corresponding to a target application server, the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classifying node on the functional service chain, and the first service gateway and the second service gateway both support the first network protocol and the second network protocol; the target application server is an application server corresponding to the target service, and the target application server supports the first network protocol;
and the control module is used for controlling the nodes on the functional service chain to forward the message of the target service based on a second network protocol.
13. A communication device for use with a first service gateway, the device comprising:
the first receiving module is used for receiving a message based on a first network protocol of a target service sent by a last gateway on a functional service chain, wherein the last gateway is a second service gateway or other first service gateways on the functional service chain; the first service gateway is a forwarding node on the functional service chain, the second service gateway is a service classification node on the functional service chain, the first service gateway and the second service gateway both support the first network protocol and the second network protocol, and the target service is a network service based on the first network protocol and provided by a target application server; the message of the target service is packaged with an initial message and the message header of the second network protocol;
The acquisition module is used for acquiring the initial message and a second network protocol message header from the message;
the first sending module is used for sending the initial message to the target application server according to the second network protocol message header;
the second receiving module is used for receiving a response message of the target application server based on the initial message;
the processing module is used for generating a message added with the second network protocol message header according to the response message; generating a message of the target service for the initial message Wen Tianjia of the second network protocol message header added with the first network protocol message header;
and the second sending module is used for sending the message of the target service to the next gateway on the functional service chain, wherein the next gateway is other first service gateways or terminal service gateways, and the terminal service gateways support the first network protocol and the second network protocol.
14. A communication device for use in an end point service gateway, the device comprising:
the system comprises a receiving module, a first network protocol-based message and a second network protocol-based message, wherein the receiving module is used for receiving a message based on the first network protocol of a target service sent by a last gateway on a functional service chain, the last gateway is a first service gateway on the functional service chain, the first service gateway is a forwarding node on the functional service chain, the first service gateway supports the first network protocol and the second network protocol, and the target service is the network service based on the first network protocol and provided by a target application server; the message of the target service is packaged with a response message of the initial message and a message header of a second network protocol;
The acquisition module is used for acquiring the response message from the message of the target service;
and the sending module is used for sending the response message to the receiver of the target service through the communication connection based on the first network protocol.
15. An electronic device, comprising: the processor is respectively in communication connection with the communication interface and the memory;
the memory stores computer-executable instructions;
the communication interface performs communication interaction with external equipment;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1-9.
16. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 9.
CN202311502240.7A 2023-11-10 2023-11-10 Communication method, device, equipment and storage medium Pending CN117395195A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311502240.7A CN117395195A (en) 2023-11-10 2023-11-10 Communication method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311502240.7A CN117395195A (en) 2023-11-10 2023-11-10 Communication method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117395195A true CN117395195A (en) 2024-01-12

Family

ID=89439180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311502240.7A Pending CN117395195A (en) 2023-11-10 2023-11-10 Communication method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117395195A (en)

Similar Documents

Publication Publication Date Title
KR102555671B1 (en) Packet processing methods, related devices and computer storage media
CN114365464B (en) Method, equipment and system for forwarding message in SR network
CN111510386B (en) Method and device for processing message
EP1454453B1 (en) Method and apparatus for tunneling service of explicit multicast in mobile ip network
CN108512758B (en) Message processing method, controller and forwarding equipment
CN105340217A (en) Packet processing method, apparatus and system
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
CN111510476B (en) Communication method, communication device, computer equipment and computer readable storage medium
CN112468396B (en) Method, device and system for programming host network performance requirements
CN109196842B (en) Session keeping method, device and storage medium
CN104683210A (en) Automatic tunnel establishing method and device
EP3965382A1 (en) Method and device for implementing service function processing
CN111803925A (en) Scheduling method and device of forwarding server of cloud game and readable storage medium
CN111788812B (en) Techniques for packet data conversion
CN108093041A (en) Single channel VDI proxy servers and implementation method
US9762486B2 (en) Method and system for using extension headers to support protocol stack migration
CN117395195A (en) Communication method, device, equipment and storage medium
CN111147379A (en) Data transmission method, system and related equipment
CN103986637A (en) Error message processing method and tunnel device
CN110351394A (en) Processing method and processing device, computer installation and the readable storage medium storing program for executing of network data
CN113055268A (en) Method, device, equipment and medium for tunnel traffic load balancing
CN114221913A (en) Method and network node for sending and obtaining assertion message
CN112565088B (en) Message processing method, system, device and network equipment
CN113973074B (en) Message processing method and device, electronic equipment and medium
CN115589381A (en) Method and device for processing multicast message

Legal Events

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