CN114980200B - Message processing method, device, electronic equipment and computer readable storage medium - Google Patents

Message processing method, device, electronic equipment and computer readable storage medium Download PDF

Info

Publication number
CN114980200B
CN114980200B CN202210527182.2A CN202210527182A CN114980200B CN 114980200 B CN114980200 B CN 114980200B CN 202210527182 A CN202210527182 A CN 202210527182A CN 114980200 B CN114980200 B CN 114980200B
Authority
CN
China
Prior art keywords
interface
network element
response message
timeout time
message
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.)
Active
Application number
CN202210527182.2A
Other languages
Chinese (zh)
Other versions
CN114980200A (en
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 Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202210527182.2A priority Critical patent/CN114980200B/en
Publication of CN114980200A publication Critical patent/CN114980200A/en
Application granted granted Critical
Publication of CN114980200B publication Critical patent/CN114980200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/04Error control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • H04L1/1848Time-out mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • H04L1/188Time-out mechanisms
    • 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/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)

Abstract

The disclosure provides a message processing method, a message processing device, electronic equipment and a computer readable storage medium, and relates to the technical field of internet communication. The method is applied to the intermediate network element and comprises the following steps: receiving a response message from the forward network element; inserting the timeout time and/or retransmission times of a timer of a first interface into the message header of the response message, wherein the first interface is an interface for receiving the response message by the intermediate network element, and the retransmission times are times for retransmitting the request message corresponding to the response message by the first interface; and forwarding the response message to the next-hop network element corresponding to the response message, so that the next-hop network element configures the timer timeout time and/or the maximum retransmission times of the second interface of the next-hop network element for receiving the response message according to the timer timeout time and/or the retransmission times of the first interface in the response message. The automatic configuration of the request timeout timer of the network element is realized, so that the request timeout timers of the network elements in the network can work cooperatively, and the request information retransmitted in the network is reduced.

Description

Message processing method, device, electronic equipment and computer readable storage medium
Technical Field
The present disclosure relates to the field of internet communications technologies, and in particular, to a message processing method, a device, an electronic apparatus, and a computer readable storage medium.
Background
In the technical field of internet communication, a 5G (5 th Generation Mobile Communication Technology, fifth-generation mobile communication technology) core network has the characteristics of a large number of network elements and complex networking, so that the difficulty of network quality assurance and key parameter configuration of the 5G core network is increased, and the network elements can retransmit a request message which is overtime and unresponsive in order to ensure the reliability of the 5G core network.
In the related art, a timer timeout time and a maximum retransmission number corresponding to a request timeout timer are directly configured by a person according to experience, and then, a network element retransmits a request message according to the manually set timer timeout time and the maximum retransmission number.
However, in the 5G core network of indirect communication, the request message needs to be forwarded from the originating end to the terminating end through multiple hops, and especially in the roaming, cross-network scenarios, it is difficult to set the request timeout timer of each network element reasonably according to experience manually. Moreover, if the request timeout timers of the network elements cannot be coordinated or set unreasonably, excessive request messages and traffic volume increase in the network will be caused, so that the processing performance of the network elements is excessively consumed, and network faults are caused.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a message processing method, apparatus, electronic device, and computer-readable storage medium, which at least to some extent overcome the problem of unreasonable request message processing caused by the difficulty in reasonably configuring a request timeout timer manually in the related art.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to an aspect of the present disclosure, there is provided a message processing method, which is applied to an intermediate network element, the method including:
receiving a response message from the forward network element;
inserting a timer timeout time and/or retransmission times of a first interface into a message header of the response message, wherein the first interface is an interface for receiving the response message by the intermediate network element, and the retransmission times are times for retransmitting a request message corresponding to the response message by the first interface;
Forwarding the response message to a next-hop network element corresponding to the response message, so that the next-hop network element configures the timer timeout time and/or the maximum retransmission times of a second interface of the response message received by the next-hop network element according to the timer timeout time and/or the retransmission times of the first interface in the response message.
In one embodiment of the disclosure, the message header includes a first field belonging to a hypertext transfer protocol, HTTP, custom header based on third generation partnership project, 3GPP, services; the step of inserting the timeout time and/or retransmission times of the timer of the first interface into the message header of the response message comprises the following steps: inserting the timer timeout time and/or retransmission times of the first interface in the first field; or, the message header includes a second field and/or a third field, where the second field and the third field both belong to the HTTP custom header, and the inserting the timer timeout time and/or the retransmission times of the first interface in the message header of the response message includes: and inserting the timer timeout time of the first interface in the second field and/or inserting the retransmission times of the first interface in the third field.
In one embodiment of the present disclosure, the message header includes the second field and the third field, and after the second field is inserted into the timer timeout of the first interface and/or after the third field is inserted into the retransmission number of the first interface, the method further includes: and inserting the network element identification of the intermediate network element in the second field and the third field.
In one embodiment of the present disclosure, the forward network element includes a forward intermediate network element, and the message header of the response message includes a timer timeout time and/or a retransmission number of a third interface of the forward intermediate network element, where the third interface is an interface for forwarding the response message; before the timer timeout time and/or the retransmission times of the first interface are inserted in the message header of the response message, the method further comprises: and configuring the timer timeout time and/or the maximum retransmission times of the first interface according to the timer timeout time and/or retransmission times of the third interface.
In one embodiment of the present disclosure, the configuring the timer timeout time and/or the maximum retransmission number of the first interface according to the timer timeout time and/or the retransmission number of the third interface includes: configuring the timer timeout time of the first interface according to the type of the response message, the target timer timeout time, the time delay requirement of the first interface and the current maximum retransmission times of the first interface, wherein the time delay requirement is determined according to the requirement of network quality; configuring the maximum retransmission times of the first interface according to the type of the response message, the target retransmission times, the delay requirement and the timer timeout time after the first interface is configured; the target timer timeout time is a timer timeout time of a first target interface, and the first target interface is an interface, in the third interface, of which the number of hops required to reach the first interface is not greater than a first reference value according to a forwarding path of the response message; the target retransmission times are retransmission times of a second target interface, and the second target interface is an interface, in the third interface, of which the number of hops required to reach the first interface is not greater than a second reference value according to the forwarding path.
In one embodiment of the present disclosure, the configuring the timer timeout time of the first interface according to the type of the response message, the target timer timeout time, the delay requirement of the first interface, and the current maximum retransmission number of the first interface includes: determining a first strategy for configuring the timer timeout time of the first interface according to the type of the response message, the target timer timeout time, the time delay requirement and the current maximum retransmission times of the first interface; determining the overtime of the timer indicated by the first strategy, and the dissimilarity relation between the overtime of the timer indicated by the first strategy and the overtime of the timer of the current first interface; and when the different relationships are different, configuring the timer timeout time of the first interface as the timer timeout time indicated by the first strategy.
In one embodiment of the present disclosure, the configuring the maximum retransmission number of the first interface according to the type of the response message, the target retransmission number, the delay requirement, and the timer timeout time after the first interface is configured includes: determining a second strategy for configuring the maximum retransmission times of the first interface according to the type of the response message, the target retransmission times, the delay requirement and the timer timeout time after the first interface is configured; determining the maximum retransmission times indicated by the second strategy, and the different relationship between the maximum retransmission times and the maximum retransmission times of the current first interface; and when the different relationships are different, configuring the maximum retransmission times of the first interface as the maximum retransmission times indicated by the second strategy.
According to another aspect of the present disclosure, there is provided a message processing method, applied to a service consumer network element, the method comprising:
receiving a response message from an intermediate network element, wherein the message header of the response message is inserted with the timeout time and/or retransmission times of a timer of a fourth interface, and the fourth interface is an interface for forwarding the response message by the intermediate network element;
and configuring the timer timeout time and/or the maximum retransmission times of the fifth interface for receiving the response message by the service consumer network element according to the timer timeout time and/or retransmission times of the fourth interface in the message header.
According to yet another aspect of the present disclosure, there is provided a message processing apparatus, applied to an intermediate network element, the apparatus comprising:
a receiving module, configured to receive a response message from a forward network element;
the processing module is used for inserting the timeout time and/or retransmission times of a timer of a first interface into the message header of the response message, wherein the first interface is the interface for receiving the response message by the intermediate network element, and the retransmission times are the times of retransmitting the request message corresponding to the response message by the first interface;
And the forwarding module is used for forwarding the response message to a next-hop network element corresponding to the response message, so that the next-hop network element configures the timer timeout time and/or the maximum retransmission times of a second interface of the response message received by the next-hop network element according to the timer timeout time and/or the retransmission times of the first interface in the response message.
In one embodiment of the disclosure, the message header includes a first field belonging to a hypertext transfer protocol, HTTP, custom header based on third generation partnership project, 3GPP, services; the processing module is configured to insert a timer timeout time and/or a retransmission number of the first interface in the first field; or the message header comprises a second field and/or a third field, wherein the second field and the third field both belong to the HTTP custom header, and the processing module is used for inserting the timer timeout time of the first interface in the second field and/or inserting the retransmission times of the first interface in the third field.
In one embodiment of the disclosure, the message header includes the second field and the third field, and the processing module is further configured to insert network element identifiers of the intermediate network elements in the second field and the third field.
In one embodiment of the present disclosure, the forward network element includes a forward intermediate network element, and the message header of the response message includes a timer timeout time and/or a retransmission number of a third interface of the forward intermediate network element, where the third interface is an interface for forwarding the response message; the apparatus further comprises:
and the configuration module is used for configuring the timer timeout time and/or the maximum retransmission times of the first interface according to the timer timeout time and/or the retransmission times of the third interface.
In one embodiment of the disclosure, the configuration module is configured to configure a timer timeout time of the first interface according to a type of the response message, a target timer timeout time, a delay requirement of the first interface, and a current maximum retransmission number of the first interface, where the delay requirement is determined according to a requirement of network quality; configuring the maximum retransmission times of the first interface according to the type of the response message, the target retransmission times, the delay requirement and the timer timeout time after the first interface is configured; the target timer timeout time is a timer timeout time of a first target interface, and the first target interface is an interface, in the third interface, of which the number of hops required to reach the first interface is not greater than a first reference value according to a forwarding path of the response message; the target retransmission times are retransmission times of a second target interface, and the second target interface is an interface, in the third interface, of which the number of hops required to reach the first interface is not greater than a second reference value according to the forwarding path.
In one embodiment of the disclosure, the configuration module is configured to determine a first policy for configuring a timer timeout time of the first interface according to a type of the response message, the target timer timeout time, the delay requirement, and a current maximum retransmission number of the first interface; determining the overtime of the timer indicated by the first strategy, and the dissimilarity relation between the overtime of the timer indicated by the first strategy and the overtime of the timer of the current first interface; and when the different relationships are different, configuring the timer timeout time of the first interface as the timer timeout time indicated by the first strategy.
In one embodiment of the disclosure, the configuration module is configured to determine a second policy for configuring a maximum number of retransmissions of the first interface according to the type of the response message, the target number of retransmissions, the delay requirement, and a timer timeout time after the first interface is configured; determining the maximum retransmission times indicated by the second strategy, and the different relationship between the maximum retransmission times and the maximum retransmission times of the current first interface; and when the different relationships are different, configuring the maximum retransmission times of the first interface as the maximum retransmission times indicated by the second strategy.
According to yet another aspect of the present disclosure, there is provided a message processing apparatus, for application to a service consumer network element, the apparatus comprising:
a receiving module, configured to receive a response message from an intermediate network element, where a message header of the response message is inserted with a timer timeout time and/or retransmission number of a fourth interface, and the fourth interface is an interface for forwarding the response message by the intermediate network element;
and the configuration module is used for configuring the timer timeout time and/or the maximum retransmission times of the second interface for receiving the response message by the service consumer network element according to the timer timeout time and/or the retransmission times of the fourth interface in the message header.
According to still another aspect of the present disclosure, there is provided an electronic apparatus including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the message processing method described above via execution of the executable instructions.
According to yet another aspect of the present disclosure, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described message processing method.
According to the technical scheme provided by the embodiment of the disclosure, the intermediate network element inserts the time-out time and/or retransmission times of the timer of the first interface into the message header of the received response message, so that the intermediate network element carries the time-out time and/or retransmission times of the timer of the first interface in the response message forwarded to the next hop network element, and further the next hop network element can configure the time-out time and/or maximum retransmission times of the timer of the second interface for receiving the response message according to the time-out time and/or retransmission times of the timer of the first interface, the automatic configuration of the request time-out timer of the network element is realized, and the problem that the request time-out timer is difficult to be configured manually based on experience rationally is solved.
Further, the network element configures the local request timeout timer of the network element according to the timeout duration of the timer of the forward network element and/or the retransmission times, so that the request timeout timers of the network elements in the network can cooperate, the retransmission request messages in the network are reduced, and the possibility of network faults caused by excessive retransmission request messages is reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
FIG. 1 is a schematic diagram illustrating the architecture of a message processing system in an embodiment of the present disclosure;
FIG. 2 illustrates a flow chart of a message processing method of one embodiment of the present disclosure;
FIG. 3 illustrates a block diagram of the components of a response message of one embodiment of the present disclosure;
FIG. 4 is a schematic diagram illustrating the change in the second and third fields of a response message forwarded from a service producer network element to a service consumer network element according to one embodiment of the present disclosure;
fig. 5 is a signaling diagram showing a message processing procedure in the related art;
FIG. 6 illustrates a signaling diagram of a message processing procedure of one embodiment of the present disclosure;
FIG. 7 shows a flow chart of a message processing method of another embodiment of the present disclosure;
FIG. 8 shows a message processing apparatus schematic diagram of one embodiment of the present disclosure;
FIG. 9 shows a message processing apparatus schematic diagram of another embodiment of the present disclosure;
fig. 10 shows a block diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
In the technical field of internet communication, a 5G core network adopts direct communication between network elements of the 5G core network in a 3GPP (3 rd Generation Partnership Project, third generation partnership project) R15 (a protocol version) stage, and a service consumer network element is directly connected with a service producer network element. Although the network interconnection has advanced structure, the large-scale networking scene has the problems of complex logic connection, difficult guarantee of network reliability, high maintenance and management difficulty and the like. To this end, the 3gpp r16 (a protocol version) phase introduces SCP (Service Control Point ) and indirect communication, forwarding by the SCP request messages and response messages between the service consumer network element and the service producer network element.
However, the number of network elements of the 5G core network is large, the network organization is complex, and new network elements are continuously added in the evolution of the architecture, so that the difficulty of network quality assurance and key parameter configuration of the 5G core network is increased, and in order to ensure the reliability of the 5G core network, the network elements can retransmit the request message which is not responded after the timeout, and the retransmission request message relates to the configuration of the local request timeout timer of the network elements. In the direct communication of the 3GPP R15 stage, the operation and maintenance personnel manually set the unified timer timeout time according to experience. However, in large-scale indirect communication, the request message needs to be forwarded from the originating terminal to the terminating terminal through multiple hops, and especially in roaming, cross-network and other scenarios, it is difficult for operation and maintenance personnel to empirically set the timer timeout time of each network element. Moreover, if the request timeout timers of the network elements on one path cannot be coordinated or are unreasonably set, excessive request messages retransmitted in the network are caused, so that telephone traffic is increased, the processing performance of the network elements is consumed excessively, network faults are caused, and meanwhile, low-delay service cannot be guaranteed.
In the 5G core network, the retransmission of the request message by the intermediate network element does not distinguish whether the request message is a retransmitted request message, that is, the intermediate network element directly forwards the request message after receiving a request message, and retransmits the request message after receiving no response message within a certain period of time. This allows intermediate network elements closer to the serving producer network element to accumulate more request messages, and more request messages to retransmit. If the number of request messages retransmitted in the network is to be reduced, the timer timeout time of the intermediate network element far from the service producer network element needs to be longer, and the timer timeout time of the intermediate network element near the service producer network element is shorter, so that the number of request messages accumulated to the intermediate network element near the service producer network element is reduced.
In addition, the different interfaces of the same network element are located in different paths, for example, the A1 interface of the network element a is located adjacent to the service producer network element in one path, and the A2 interface of the network element a is located adjacent to the service consumer network element in the other path, so when the request timeout timers of the different interfaces of the network element are set, the request timeout timers of the different interfaces cannot be directly configured with uniform timeout durations of timers, but the request timeout timers of the interfaces need to be reasonably configured according to the locations of the interfaces of the network element in the transmission process of the request message.
In this regard, the embodiments of the present disclosure provide a message processing method, which may enable an intermediate network element near a service producer network element to insert, in a response message, a timer timeout time and/or a retransmission number of an interface for forwarding the response message before forwarding the response message to a network element far away from the service producer network element, so that a network element subsequently receiving the response message may configure a request timeout timer of a network element local interface according to the timer timeout time and/or the retransmission number of a forward network element, thereby implementing cooperative work of the request timeout timers between the front and rear network elements, and further reducing the request messages retransmitted in the network and reducing the possibility of network failure.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which a message processing method or message processing apparatus of an embodiment of the present disclosure may be applied.
As shown in fig. 1, the system architecture may include a service producer network element 101, an intermediate network element 102, an intermediate network element 103, and a service consumer network element 104.
Wherein the service consumer network element 104 is the calling party of the service, sends a request message to the service producer network element 101, the service consumer network element 104 may receive the response message and may be able to identify and configure the local request timeout timer according to the field included in the message header of the response message. The service producer network element 101 is a called party of the service, and responds to a request message sent by the service consumer network element 101, and sends a response message for feeding back the request message. The first field or the second field and/or the third field are/is inserted into the message header of the response message, and the first field, the second field and the third field all belong to an HTTP (Hyper Text Transfer Protocol ) custom header based on a 3GPP server.
The intermediate network element 102 and the intermediate network element 103 can both receive and forward the response message and the request message, and can both identify corresponding fields in the message header of the response message, insert own data information in the corresponding fields, and the intermediate network element 103 can also configure the local request timeout timer according to the corresponding fields in the message header of the response message.
The communication connection between the service producer network element 101, the intermediate network element 102, the intermediate network element 103 and the service consumer network element 104 is realized based on a network, and the network can be a wired network or a wireless network.
In some embodiments, the wireless network or wired network described above uses standard communication techniques and/or protocols. The network is typically the Internet, but may be any network including, but not limited to, a local area network (Local Area Network, LAN), metropolitan area network (Metropolitan Area Network, MAN), wide area network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or any combination of virtual private networks. In some embodiments, data exchanged over a network is represented using techniques and/or formats including HyperText Mark-up Language (HTML), extensible markup Language (Extensible MarkupLanguage, XML), and the like. All or some of the links may also be encrypted using conventional encryption techniques such as secure sockets layer (Secure Socket Layer, SSL), transport layer security (Transport Layer Security, TLS), virtual private network (Virtual Private Network, VPN), internet protocol security (Internet ProtocolSecurity, IPsec), etc. In other embodiments, custom and/or dedicated data communication techniques may also be used in place of or in addition to the data communication techniques described above.
The service producer network element 101 may be a server capable of receiving the request message and feeding back the response message to the request message, the service consumer network element 104 may be a server or terminal capable of generating, issuing the request message, and receiving the response message, and the server may be a server providing various services, for example, a background management server. In some embodiments, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), and basic cloud computing services such as big data and artificial intelligence platforms.
The intermediate network element 102 may be an SCP and the intermediate network element 103 may be a gateway or an SCP.
Those skilled in the art will appreciate that the number of intermediate network elements 103 in fig. 1 is merely illustrative and that any number of intermediate network elements may be provided as desired. The embodiments of the present disclosure are not limited in this regard.
The present exemplary embodiment will be described in detail below with reference to the accompanying drawings and examples.
In the embodiment of the disclosure, a message processing method is provided, and the method can be executed by any electronic device with computing processing capability, for example, the electronic device with computing processing capability can be an intermediate network element.
Fig. 2 shows a flowchart of a message processing method in an embodiment of the present disclosure, and as shown in fig. 2, the message processing method provided in the embodiment of the present disclosure includes the following steps S201 to S203.
Step S201, the intermediate network element receives the response message from the forward network element.
The forward network element may be a service producer network element or a forward intermediate network element. The response message is the feedback of the service generator network element to the request message, and the request message is sent to the service generator network element after being generated by the service consumer network element. In some embodiments, the intermediate network element receives a response message from the forward network element, comprising: the intermediate network element receives the response message generated and sent by the service producer network element through the first interface, or the intermediate network element receives the response message forwarded by the forward intermediate network element through the first interface.
In step S201, the intermediate network element inserts the timer timeout time and/or the retransmission number of the first interface in the header of the response message.
The first interface is an interface for receiving the response message in the interface of the intermediate network element, the timeout time of the timer of the first interface is the timeout time of the request timeout timer corresponding to the first interface, for example, the timeout time of the request timeout timer corresponding to the first interface is 3ms (milliseconds), and the retransmission times are times of retransmitting the request message corresponding to the response message by the first interface.
In one embodiment, the message header of the response message includes a first field belonging to an HTTP custom header based on 3GPP services, the first field being configured with parameters inserted therein being a timer timeout time and/or a number of retransmissions. In this case, the intermediate network element inserts the timer timeout time and/or the retransmission number of the first interface in the message header of the response message, including: the timer timeout time and/or the retransmission number of the first interface are inserted in the first field. For example, the first field is 3 gpp-Sbi-retransmission-Num-Max-Rsp-Time, the timer timeout Time of the first interface is 3ms, and the retransmission number is 2, and the first field obtained after inserting the timer timeout Time and the retransmission number of the first interface is 3 gpp-Sbi-retransmission-Num-Max-Rsp-Time: 2;3ms. Of course, the timer timeout time of the first interface may be inserted only in the first field, or the retransmission number may be inserted only in the first field.
In another embodiment, the message header of the response message includes a second field and/or a third field, both belonging to an HTTP custom header based on 3GPP services. Wherein the second field is configured to have inserted therein a parameter that is a timer timeout time and the third field is configured to have inserted therein a parameter that is a number of retransmissions. In this case, the intermediate network element inserts the timer timeout time and/or the retransmission number of the first interface in the message header of the response message, including: the timer timeout time of the first interface is inserted in the second field and/or the retransmission number of the first interface is inserted in the third field.
Taking the message header including the second field and the third field as an example for explanation, inserting the timer timeout time of the first interface in the second field includes: the intermediate network element directly acquires the timer timeout time of the request timeout timer of the first interface from the local storage to obtain the timer timeout time of the first interface; the intermediate network element determines a second field from the message header of the response message; the intermediate network element inserts a timer timeout of the first interface into the second field. With respect to the style of the second field, embodiments of the present disclosure are not limited. In one embodiment, the second field is 3gpp-Sbi-Max-Rsp-Time, and the intermediate network element may determine that the field is the second field after identifying 3gpp-Sbi-Max-Rsp-Time from the message header.
Inserting the retransmission times of the first interface in the third field, including: the intermediate network element acquires the number of times of retransmission of the request message corresponding to the response message from the memory by the first interface, and acquires the retransmission number; the intermediate network element determines a third field from the message header of the response message; the intermediate network element inserts the number of retransmissions of the first interface into the third field. The network element can have corresponding records in the memory every retransmission request message, and the times of retransmitting the request message can be directly obtained by inquiring the memory. With respect to the style of the third field, the embodiments of the present disclosure are not limited. In one embodiment, the third field is 3 gpp-Sbi-retransmission-Num, and the intermediate network element may determine that the field is the third field after identifying 3 gpp-Sbi-retransmission-Num from the message header.
In order to make the time-out time and/or retransmission times of the timer inserted in the message header of the response message be the same as the source, and facilitate the subsequent maintenance and adjustment of the network elements, the network element identifier of the network element is also required to be inserted in the message header, and through the network element identifier, the operation and maintenance personnel can know the information of which network element each time-out time and/or retransmission times of the timer inserted in the message header is. Still further to the description taking the example that the message header includes the second field and the third field, in some embodiments, after the second field is inserted into the timer timeout of the first interface and/or after the third field is inserted into the retransmission number of the first interface, the method further includes: and inserting network element identifiers of the intermediate network elements in the second field and the third field. Regarding which identifier the network element identifier is an intermediate network element, the embodiment of the disclosure is not limited, and the information that can uniquely indicate the intermediate network element may be used as the network element identifier of the intermediate network element. In one embodiment, the Network element identification may be an IP (Internet Protocol ) address of the intermediate Network element, or an FQDN (Fully Qualified Domain Name ), or an NF-Instance (Network Function-Instance).
In one embodiment, the composition structure of the response message is shown in fig. 3, and in fig. 3, the first field, the second field, or the third field is located in the message header in an HTTP custom header 302 included in the HTTP header 301.
In some embodiments, the intermediate network element performing step S201 may be an intermediate network element adjacent to the service producer network element, e.g. 102 in fig. 1, or may be an intermediate network element not adjacent to the service producer network element, e.g. 103 in fig. 1. Since the service producer network element does not retransmit the request message, there is no timer timeout and/or retransmission number available for reference by the intermediate network element in the message header of the response message sent by the service producer network element to the neighboring intermediate network element. And the timer timeout time and/or retransmission times of the third interface used for forwarding the response message by the forward intermediate network element are inserted into the message header of the response message received by the intermediate network element not adjacent to the service production network element. When the intermediate network element is an intermediate network element not adjacent to the service producer network element, the intermediate network element inserts the timer timeout time and/or retransmission times of the first interface in the message header of the response message, and further includes: and configuring the timer timeout time and/or the maximum retransmission times of the first interface according to the timer timeout time and/or the retransmission times of the third interface.
In some embodiments, the message header of the response message includes a timer timeout time and a retransmission number of the third interface, where the intermediate network element configures the timer timeout time and the maximum retransmission number of the first interface, including: configuring the timer timeout time of the first interface according to the type of the response message, the target timer timeout time, the delay requirement of the first interface and the current maximum retransmission times of the first interface; and configuring the maximum retransmission times of the first interface according to the type of the response message, the target retransmission times, the time delay requirement and the timer timeout time after the first interface is configured.
The target timer timeout time is the timer timeout time of the first target interface, and the first target interface is an interface with the number of hops required to reach the first interface not greater than a first reference value according to a forwarding path of the response message in the third interface; the target retransmission times are retransmission times of a second target interface, and the second target interface is an interface of a third interface, which is not more than a second reference value, according to the forwarding path and the number of hops required to reach the first interface. The first reference value and the second reference value are set values, which may be empirically set, and the embodiments of the present disclosure do not limit this, and in one embodiment, the first reference value and the second reference value are both 1.
The delay requirement is determined according to the requirement of network quality, and the delay requirement is used for limiting the product of the time-out time of the timer and the maximum retransmission time, for example, when the delay requirement is 50ms, the product of the maximum retransmission time and the time-out time of the timer should not be greater than 50ms, and the product of the time required for transmitting the request message and the processing time of the network element should be less than 50ms.
In some embodiments, before configuring the timer timeout time and the maximum retransmission number of the first interface, the intermediate network element further includes: determining the type of the response message; acquiring a time delay requirement of a first interface; and obtaining the maximum retransmission times of the current first interface. The delay requirement and the maximum number of times of the first interface are set values, and the intermediate network element can be directly obtained from the memory. In one embodiment, a corresponding field indicating the type of the response message is included in the message header of the response message, and the type of the response message may be determined by identifying the corresponding field.
In one embodiment, configuring the timer timeout time of the first interface according to the type of the response message, the target timer timeout time, the delay requirement of the first interface, and the current maximum retransmission number of the first interface includes: determining a first strategy for configuring the timeout time of the timer of the first interface according to the type of the response message, the timeout time of the target timer, the time delay requirement and the maximum retransmission times of the current first interface; determining the overtime of the timer indicated by the first strategy, and the different relationship with the overtime of the timer of the current first interface; and when the different relationships are different, configuring the timer timeout time of the first interface as the timer timeout time indicated by the first strategy.
In one embodiment, the type of the response message is an important response, and accordingly, the request message is an important request message, and the important request message needs to be guaranteed to be delivered to the corresponding service producer network element as soon as possible, so that the service consumer network element can receive the response message more quickly, and the important request message should be retransmitted as soon as the service consumer network element does not receive the response message, i.e. the timer timeout time should be set to be shorter. That is, the type of response message has a certain influence on the setting of the timer timeout time, which can be represented by an influence factor K, different types of response messages corresponding to different K values.
For example, the impact factor of the important response message on the timer timeout is k=0.8. The time delay requirement is 50ms, the overtime of the target timer is 5ms, the influence factor of the overtime of the target timer is M=2, and the current maximum retransmission times are 3, so that the overtime T of the timer corresponding to the first strategy can be 2×5ms×0.8=8 ms, and 8ms×3=24 ms <50ms meets the time delay requirement.
Still taking the timer timeout indicated by the first policy in step S201 as an example, if the timer timeout of the current first interface is also 8ms, the different relationship between the timer timeout indicated by the first policy and the timer timeout of the current first interface is the same, so that the timer timeout of the first interface does not need to be configured. If the timer timeout time of the current first interface is not 8ms, the different relationship between the timer timeout time indicated by the first strategy and the timer timeout time of the current first interface is different, and the timer timeout time of the first interface is configured to be 8ms indicated by the first strategy.
In one embodiment, configuring the maximum retransmission number of the first interface according to the type of the response message, the target retransmission number, the delay requirement and the timer timeout time after the first interface is configured, includes: determining a second strategy for configuring the maximum retransmission times of the first interface according to the type of the response message, the target retransmission times, the time delay requirement and the timer overtime time after the first interface is configured; determining the maximum retransmission times indicated by the second strategy, and the different relationship between the maximum retransmission times and the maximum retransmission times of the current first interface; and when the different relationships are different, configuring the maximum retransmission times of the first interface as the maximum retransmission times indicated by the second strategy.
For example, the second reference value is 1, and accordingly, the target retransmission number is the number of times that the previous intermediate network element retransmits the request message, where in this case, the maximum retransmission number indicated by the second policy may be num=the target retransmission number/the number of times of the influence of the type of the 2+ response message, and if num×configured timer timeout time is greater than the delay requirement, num is reduced by 1. The higher the importance level corresponding to the type of response message, the more the corresponding request message needs to be transmitted to the service producer network element, e.g. the number of impact of the important response message is increased by 1 retransmission.
It should be noted that, besides configuring the timer timeout time of the first interface according to the type of the response message, the target timer timeout time, the delay requirement of the first interface, and the current maximum retransmission number of the first interface, the timer timeout time of the first interface may be configured directly according to the target timer timeout time, the delay requirement of the first interface, and the current maximum retransmission number of the first interface without considering the type of the response message. Similarly, the maximum retransmission number of the first interface may also be configured directly according to the target retransmission number, the delay requirement, and the timer timeout time after the first interface is configured.
For ease of understanding, the change of the insertion parameters in the message header will be described below by taking as an example an intermediate network element adjacent to the service producer network element and an intermediate network element not adjacent to the service producer network element in one transmission path.
For example, the message header of the response message includes a second field 3gpp-Sbi-Max-Rsp-Time and a third field 3 gpp-Sbi-retransmission-Num, and an intermediate network element a 403 and an intermediate network element B402 are included between the service consumer network element and the service producer network element. The number of times of retransmission of the request message by the intermediate network element a 403 is 2, the number of times of retransmission of the request message by the intermediate network element B402 is 1, and the timer timeout time of the interface of the intermediate network element B402 for forwarding the response message is 4ms. The change of the second and third fields in the forwarding of the response message from the service producer network element to the service consumer network element is shown in fig. 4.
The second and third fields do not include any parameters when the response message is sent from the service producer network element 401 to the intermediate network element B402. When the response message is sent from the intermediate network element B402 to the intermediate network element a403, the second field is 3gpp-Sbi-Max-Rsp-Time:4ms; the third field is 3gpp-Sbi-Retrans-Num:1, a step of; and (3) identifying B. When the response message is sent from the network element a403 to the service consumer network element 404, the second field is 3gpp-Sbi-Max-Rsp-Time:4ms; a mark B;8ms; the identifier A, the third field is 3gpp-Sbi-Retrans-Num:1, a step of; a mark B;2; and (3) identifying A.
Step S203, the intermediate network element forwards the response message to the next-hop network element corresponding to the response message, so that the next-hop network element configures the timer timeout time and/or the maximum retransmission times of the second interface for receiving the response message by the next-hop network element according to the timer timeout time and/or the retransmission times of the first interface in the response message.
The next hop network element may be an intermediate network element or a service consumer network element. In one embodiment, the forwarding, by the intermediate network element, the response message to the next hop network element corresponding to the response message includes: the intermediate network element forwards the response message to the next hop intermediate network element corresponding to the response message through the first interface, or forwards the response message to the service consumer corresponding to the response message through the first interface.
The manner of configuring the timeout time and/or the maximum retransmission number of the timer of the second interface of the response message received by the next-hop network element according to the timeout time and/or the retransmission number of the timer of the first interface in the response message by the next-hop network element is consistent with the manner of configuring the timeout time and/or the maximum retransmission number of the timer of the first interface by the intermediate network element, which is not adjacent to the service producer in step S202, and is not described herein.
In some embodiments, the intermediate network element is a border network element, and the border network element may map and rewrite the first field, or the second field and/or the third field in the message header before forwarding the response message to the next hop network element.
As shown in fig. 5, the processing of the response message in the related art includes steps S501 to S504.
S501: the service producer network element responds to the request message;
s502: SCP transmits response message;
s503: the gateway forwards the response message;
s504: the local timer timeout time of the service consumer network element is manually configured empirically.
In one embodiment, the message processing method provided by the embodiment of the disclosure inserts the retransmission times, the timer timeout time and the network element identifier of the network element retransmission request message into the message header of the response message when forwarding the response message, so that the subsequent network element can optimize the local request timeout timer according to the information inserted into the message header. As shown in fig. 6, the processing procedure of the response message according to the embodiment of the present disclosure includes steps S601 to S604.
S601: responding to the request message by the service producer net friends;
s602: the SCP inserts network element identification, retransmission times and timer overtime time of the local network element in the newly added field of the message header;
s603: the gateway configures the timeout time of the timer and the maximum retransmission times of the local interface of the network element according to the information inserted by the forward network element; and inserting network element local network element identification, retransmission times and timer timeout time into the newly added field of the message header.
S604: the service consumer network element optimizes the timer timeout time and the maximum retransmission times of the local interface of the network element according to the information inserted by the forward network element.
According to the technical scheme provided by the embodiment of the disclosure, the intermediate network element inserts the time-out time and/or retransmission times of the timer of the first interface into the message header of the received response message, so that the intermediate network element carries the time-out time and/or retransmission times of the timer of the first interface in the response message forwarded to the next hop network element, and further the next hop network element can configure the time-out time and/or maximum retransmission times of the timer of the second interface for receiving the response message according to the time-out time and/or retransmission times of the timer of the first interface, the automatic configuration of the request time-out timer of the network element is realized, and the problem that the request time-out timer is difficult to be configured manually based on experience rationally is solved.
Further, the network element configures the local request timeout timer of the network element according to the timeout duration of the timer of the forward network element and/or the retransmission times, so that the request timeout timers of the network elements in the network can cooperate, the retransmission request messages in the network are reduced, and the possibility of network faults caused by excessive retransmission request messages is reduced.
Another message processing method is provided in the embodiments of the present disclosure, and the method may be performed by any electronic device with computing processing capability, for example, the electronic device with computing processing capability may be a service consumer network element.
Fig. 7 shows a flowchart of another message processing method in the embodiment of the present disclosure, and as shown in fig. 7, the method for sending a short message provided in the embodiment of the present disclosure includes the following step S701 and step S702.
In step S701, the service consumer network element receives a response message from the intermediate network element, and the message header of the response message is inserted with the timer timeout time and/or the retransmission number of the fourth interface, where the fourth interface is an interface for forwarding the response message by the intermediate network element.
In indirect communication, a response message needs to be forwarded from a service generator network element to a service consumer network element via an intermediate network element. In one embodiment, a service consumer network element receives a response message from an intermediate network element, comprising: the service consumer network element receives the response message forwarded from the intermediate network element through the fifth interface.
In step S702, the service consumer network element configures the timer timeout time and/or the maximum retransmission number of the fifth interface for receiving the response message according to the timer timeout time and/or the retransmission number of the fourth interface in the message header.
In one embodiment, the service consumer network element configures the timeout period and/or the maximum retransmission number of the timer of the fifth interface for receiving the response message according to the timeout period and/or the retransmission number of the timer of the fourth interface in the message header, and in step S202 of the embodiment corresponding to fig. 2, the manner in which the intermediate network element configures the timeout period and/or the maximum retransmission number of the first interface according to the timeout period and/or the retransmission number of the timer of the third interface is consistent, which is not described herein.
In order to facilitate understanding of the technical solutions of the present disclosure, the following description will be given by integrating the message processing method corresponding to fig. 2 and the message processing method corresponding to fig. 7.
For example, a forwarding path of a request message is a service consumer network element, an SCP1, a gateway, an SCP2, and a service producer network element in sequence, and accordingly, a forwarding path of a response message corresponding to the request message is opposite to the request message. Wherein the SCP1, the gateway and the SCP2 are intermediate network elements, and the SCP2 is a network element adjacent to the service producer. The number of times the SCP1 retransmits the request message is 1, the number of times the gateway 2 retransmits the request message is 4, the number of times the SCP2 retransmits the request message is 8, and the timer timeout time of the interface on which the SCP2 forwards the request message is 10ms. It should be noted that the interfaces for forwarding the request message and the response message are the same interface.
The message header of the response message includes a second field 3gpp-Sbi-Max-Rsp-Time and a third field 3 gpp-Sbi-retransmission-Num. The response message is generated at the service producer network element, and the service producer network element does not retransmit the request message because the service producer network element is the final receiving end of the request message, so that when the service producer network element sends the response message to the SCP2, neither the second field nor the third field carries information.
After receiving the response message, the SCP2 inserts the timer timeout Time of the interface forwarding the request message and the network element identifier of the SCP2 into the second field, so as to obtain a second field 3gpp-Sbi-Max-Rsp-Time updated by the SCP 2: 10ms; SCP2 marks, SCP2 inserts the times of retransmission request information and network element marks into the third field to obtain a third field 3 gpp-Sbi-retransmission-Num updated by SCP 2: 8, 8; the SCP2 identifies. The SCP2 then forwards the response message to the gateway.
After receiving the response message, the gateway configures the timer timeout time of the interface for receiving the response message according to the timer timeout time of the SCP2 included in the second field, and configures the maximum retransmission times of the interface for receiving the response message according to the retransmission times of the SCP2 included in the third field. Assuming that the configured timer timeout is 20ms, the maximum retransmission number is 4. Then, the gateway inserts the configured timer timeout Time and the network element identification of the gateway into the second field to obtain a second field 3gpp-Sbi-Max-Rsp-Time updated by the gateway: 10ms; SCP2 identification; 20ms; the gateway identifier inserts the times of retransmission request messages and the network element identifier into the third field to obtain a third field 3 gpp-Sbi-retransmission-Num after gateway updating: 8, 8; SCP2 identification; 4, a step of; and (5) gateway identification. The gateway then sends a response message to the SCP1.
After receiving the response message, the SCP1 configures the timer timeout time of the interface for receiving the response message by the SCP1 according to the timer timeout time of the SCP2 and the timer timeout time of the gateway included in the second field, and configures the maximum retransmission times of the interface for receiving the response message by the SCP1 according to the retransmission times of the SCP2 and the retransmission times of the gateway included in the third field. Assuming that the configured timer timeout is 40ms, the maximum retransmission number is 2. Then, the SCP1 inserts the configured timer timeout Time and the network element identification of the gateway into the second field to obtain a second field 3gpp-Sbi-Max-Rsp-Time updated by the SCP 1: 10ms; SCP2 identification; 20ms; a gateway identifier; 40ms; SCP1 marks, the times of retransmission request information and network element marks are inserted into a third field, and a third field 3 gpp-Sbi-retransmission-Num updated by SCP1 is obtained: 8, 8; SCP2 identification; 4, a step of; a gateway identifier; 1, a step of; SCP1 identification. The SCP1 then sends a response message to the service consumer network element.
After receiving the response message, the service consumer network element configures the timer timeout time of the interface for receiving the response message by the service consumer network element according to the timer timeout time of the SCP2, the timer timeout time of the gateway and the timer timeout time of the SCP1 which are included in the second field, and configures the maximum retransmission times of the interface for receiving the response message by the service consumer network element according to the retransmission times of the SCP2, the retransmission times of the gateway and the retransmission times of the SCP1 which are included in the third field. Assume that the configured timer times out for 80ms, and the maximum number of retransmissions is 1. At this time, the processing of the response message is completed.
Based on the same inventive concept, a message processing apparatus is also provided in the embodiments of the present disclosure, as follows. Since the principle of solving the problem of the embodiment of the device is similar to that of the embodiment of the method, the implementation of the embodiment of the device can be referred to the implementation of the embodiment of the method, and the repetition is omitted.
Fig. 8 is a schematic diagram of a message processing apparatus in an embodiment of the disclosure, where the message processing apparatus is applied to an intermediate network element, and as shown in fig. 8, the apparatus includes:
a receiving module 801, configured to receive a response message from a forward network element;
a processing module 802, configured to insert, in a message header of a response message, a timer timeout time and/or a retransmission number of a first interface, where the first interface is an interface where the intermediate network element receives the response message, and the retransmission number is a number of times that the first interface retransmits a request message corresponding to the response message;
and a forwarding module 803, configured to forward the response message to the next-hop network element corresponding to the response message, so that the next-hop network element configures the timer timeout time and/or the maximum retransmission number of the second interface for the next-hop network element to receive the response message according to the timer timeout time and/or the retransmission number of the first interface in the response message.
In one embodiment of the present disclosure, the message header includes a first field belonging to a hypertext transfer protocol, HTTP, custom header based on third generation partnership project, 3GPP, services; a processing module 802, configured to insert a timer timeout time and/or a retransmission number of the first interface in the first field; or, the message header includes a second field and/or a third field, where the second field and the third field both belong to HTTP custom headers, and the processing module 802 is configured to insert a timer timeout time of the first interface in the second field and/or insert the retransmission times of the first interface in the third field.
In one embodiment of the present disclosure, the message header includes a second field and a third field, and the processing module 802 is further configured to insert network element identifiers of intermediate network elements in the second field and the third field.
In one embodiment of the present disclosure, the forward network element includes a forward intermediate network element, and the message header of the response message includes a timer timeout time and/or a retransmission number of a third interface of the forward intermediate network element, where the third interface is an interface for forwarding the response message; the apparatus further comprises:
a configuration module 804, configured to configure the timer timeout time and/or the maximum retransmission number of the first interface according to the timer timeout time and/or the retransmission number of the third interface.
In one embodiment of the disclosure, a configuration module 804 is configured to configure a timer timeout time of the first interface according to a type of a response message, a target timer timeout time, a delay requirement of the first interface, and a current maximum retransmission number of the first interface, where the delay requirement is determined according to a requirement of network quality; configuring the maximum retransmission times of the first interface according to the type of the response message, the target retransmission times, the time delay requirement and the timer overtime after the first interface is configured; the target timer timeout time is the timer timeout time of the first target interface, and the first target interface is an interface with the number of hops required to reach the first interface not greater than a first reference value according to a forwarding path of the response message in the third interface; the target retransmission times are retransmission times of a second target interface, and the second target interface is an interface of a third interface, which is not more than a second reference value, according to the forwarding path and the number of hops required to reach the first interface.
In one embodiment of the present disclosure, the configuration module 804 is configured to determine a first policy for configuring a timer timeout time of the first interface according to a type of the response message, a target timer timeout time, a delay requirement, and a maximum retransmission number of the current first interface; determining the overtime of the timer indicated by the first strategy, and the different relationship with the overtime of the timer of the current first interface; and when the different relationships are different, configuring the timer timeout time of the first interface as the timer timeout time indicated by the first strategy.
In one embodiment of the present disclosure, the configuration module 804 is configured to determine a second policy for configuring the maximum number of retransmissions of the first interface according to the type of the response message, the target number of retransmissions, the delay requirement, and the timer timeout time after the first interface is configured; determining the maximum retransmission times indicated by the second strategy, and the different relationship between the maximum retransmission times and the maximum retransmission times of the current first interface; and when the different relationships are different, configuring the maximum retransmission times of the first interface as the maximum retransmission times indicated by the second strategy.
According to the technical scheme provided by the embodiment of the disclosure, the intermediate network element inserts the time-out time and/or retransmission times of the timer of the first interface into the message header of the received response message, so that the intermediate network element carries the time-out time and/or retransmission times of the timer of the first interface in the response message forwarded to the next hop network element, and further the next hop network element can configure the time-out time and/or maximum retransmission times of the timer of the second interface for receiving the response message according to the time-out time and/or retransmission times of the timer of the first interface, the automatic configuration of the request time-out timer of the network element is realized, and the problem that the request time-out timer is difficult to be configured manually based on experience rationally is solved.
Further, the network element configures the local request timeout timer of the network element according to the timeout duration of the timer of the forward network element and/or the retransmission times, so that the request timeout timers of the network elements in the network can cooperate, the retransmission request messages in the network are reduced, and the possibility of network faults caused by excessive retransmission request messages is reduced.
Fig. 9 is a schematic diagram of another message processing apparatus in an embodiment of the disclosure, where the message processing apparatus is applied to a service consumer network element, as shown in fig. 7, and includes:
a receiving module 901, configured to receive a response message from an intermediate network element, where a message header of the response message is inserted with a timer timeout time and/or retransmission number of a fourth interface, and the fourth interface is an interface for forwarding the response message by the intermediate network element;
a configuration module 902, configured to configure the timer timeout time and/or the maximum retransmission number of the second interface for receiving the response message by the service consumer network element according to the timer timeout time and/or retransmission number of the fourth interface in the message header.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 1000 according to such an embodiment of the present disclosure is described below with reference to fig. 10. The electronic device 1000 shown in fig. 10 is merely an example and should not be construed as limiting the functionality and scope of use of the disclosed embodiments.
As shown in fig. 10, the electronic device 1000 is embodied in the form of a general purpose computing device. Components of electronic device 800 may include, but are not limited to: the at least one processing unit 1010, the at least one memory unit 1020, and a bus 1030 that connects the various system components, including the memory unit 1020 and the processing unit 1010.
Wherein the storage unit stores program code that is executable by the processing unit 1010 such that the processing unit 1010 performs steps according to various exemplary embodiments of the present disclosure described in the section "detailed description of the invention" above.
The memory unit 1020 may include readable media in the form of volatile memory units such as Random Access Memory (RAM) 1021 and/or cache memory unit 1022, and may further include Read Only Memory (ROM) 1023.
Storage unit 1020 may also include a program/utility 1024 having a set (at least one) of program modules 1025, such program modules 1025 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 1030 may be representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 1000 can also communicate with one or more external devices 1040 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 1000, and/or with any device (e.g., router, modem, etc.) that enables the electronic device 1000 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 1050. Also, electronic device 1000 can communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 1060. As shown in fig. 10, the network adapter 1060 communicates with other modules of the electronic device 1000 over the bus 1030. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with the electronic device 1000, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In an exemplary embodiment of the present disclosure, a computer-readable storage medium, which may be a readable signal medium or a readable storage medium, is also provided. On which a program product is stored which enables the implementation of the method described above of the present disclosure. In some possible implementations, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the section "detailed description" above of the disclosure, when the program product is run on the terminal device.
More specific examples of the computer readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In this disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
In some embodiments, the program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, the program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the description of the above embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope of the disclosure being indicated by the following claims.

Claims (12)

1. A message processing method, applied to an intermediate network element, the method comprising:
receiving a response message from the forward network element;
inserting a timer timeout time and/or retransmission times of a first interface into a message header of the response message, wherein the first interface is an interface for receiving the response message by the intermediate network element, and the retransmission times are times for retransmitting a request message corresponding to the response message by the first interface;
forwarding the response message to a next-hop network element corresponding to the response message, so that the next-hop network element configures the timer timeout time and/or the maximum retransmission times of a second interface of the response message received by the next-hop network element according to the timer timeout time and/or the retransmission times of the first interface in the response message.
2. The method according to claim 1, wherein the message header comprises a first field belonging to a hypertext transfer protocol HTTP custom header based on third generation partnership project, 3GPP, services; the step of inserting the timeout time and/or retransmission times of the timer of the first interface into the message header of the response message comprises the following steps:
Inserting the timer timeout time and/or retransmission times of the first interface in the first field;
or, the message header includes a second field and/or a third field, where the second field and the third field both belong to the HTTP custom header, and the inserting the timer timeout time and/or the retransmission times of the first interface in the message header of the response message includes:
and inserting the timer timeout time of the first interface in the second field and/or inserting the retransmission times of the first interface in the third field.
3. The method according to claim 2, wherein the message header comprises the second field and the third field, and wherein after a timer timeout period for the second field to be inserted into the first interface and/or after a number of retransmissions for the third field to be inserted into the first interface, further comprising:
and inserting the network element identification of the intermediate network element in the second field and the third field.
4. The method according to claim 1, wherein the forward network element comprises a forward intermediate network element, and the message header of the response message comprises a timer timeout and/or a retransmission number of a third interface of the forward intermediate network element, the third interface being an interface forwarding the response message;
Before the timer timeout time and/or the retransmission times of the first interface are inserted in the message header of the response message, the method further comprises:
and configuring the timer timeout time and/or the maximum retransmission times of the first interface according to the timer timeout time and/or retransmission times of the third interface.
5. The method according to claim 4, wherein configuring the timer timeout time and/or the maximum number of retransmissions of the first interface according to the timer timeout time and/or the number of retransmissions of the third interface comprises:
configuring the timer timeout time of the first interface according to the type of the response message, the target timer timeout time, the time delay requirement of the first interface and the current maximum retransmission times of the first interface, wherein the time delay requirement is determined according to the requirement of network quality;
configuring the maximum retransmission times of the first interface according to the type of the response message, the target retransmission times, the delay requirement and the timer timeout time after the first interface is configured;
the target timer timeout time is a timer timeout time of a first target interface, and the first target interface is an interface, in the third interface, of which the number of hops required to reach the first interface is not greater than a first reference value according to a forwarding path of the response message; the target retransmission times are retransmission times of a second target interface, and the second target interface is an interface, in the third interface, of which the number of hops required to reach the first interface is not greater than a second reference value according to the forwarding path.
6. The method of claim 5, wherein configuring the timer timeout time of the first interface according to the type of the response message, a target timer timeout time, a latency requirement of the first interface, and a current maximum number of retransmissions of the first interface, comprises:
determining a first strategy for configuring the timer timeout time of the first interface according to the type of the response message, the target timer timeout time, the time delay requirement and the current maximum retransmission times of the first interface;
determining the overtime of the timer indicated by the first strategy, and the dissimilarity relation between the overtime of the timer indicated by the first strategy and the overtime of the timer of the current first interface;
and when the different relationships are different, configuring the timer timeout time of the first interface as the timer timeout time indicated by the first strategy.
7. The method of claim 5, wherein configuring the maximum number of retransmissions for the first interface based on the type of response message, the target number of retransmissions, the delay requirement, and the configured timer timeout for the first interface comprises:
Determining a second strategy for configuring the maximum retransmission times of the first interface according to the type of the response message, the target retransmission times, the delay requirement and the timer timeout time after the first interface is configured;
determining the maximum retransmission times indicated by the second strategy, and the different relationship between the maximum retransmission times and the maximum retransmission times of the current first interface;
and when the different relationships are different, configuring the maximum retransmission times of the first interface as the maximum retransmission times indicated by the second strategy.
8. A message processing method for use with a service consumer network element, the method comprising:
receiving a response message from an intermediate network element, wherein the message header of the response message is inserted with the timeout time and/or retransmission times of a timer of a fourth interface, and the fourth interface is an interface for forwarding the response message by the intermediate network element;
and configuring the timer timeout time and/or the maximum retransmission times of the fifth interface for receiving the response message by the service consumer network element according to the timer timeout time and/or retransmission times of the fourth interface in the message header.
9. A message processing apparatus for application to an intermediate network element, the apparatus comprising:
A receiving module, configured to receive a response message from a forward network element;
the processing module is used for inserting the timeout time and/or retransmission times of a timer of a first interface into the message header of the response message, wherein the first interface is the interface for receiving the response message by the intermediate network element, and the retransmission times are the times of retransmitting the request message corresponding to the response message by the first interface;
and the forwarding module is used for forwarding the response message to a next-hop network element corresponding to the response message, so that the next-hop network element configures the timer timeout time and/or the maximum retransmission times of a second interface of the response message received by the next-hop network element according to the timer timeout time and/or the retransmission times of the first interface in the response message.
10. A message processing apparatus for use with a service consumer network element, the apparatus comprising:
a receiving module, configured to receive a response message from an intermediate network element, where a message header of the response message is inserted with a timer timeout time and/or retransmission number of a fourth interface, and the fourth interface is an interface for forwarding the response message by the intermediate network element;
And the configuration module is used for configuring the timer timeout time and/or the maximum retransmission times of the second interface for receiving the response message by the service consumer network element according to the timer timeout time and/or the retransmission times of the fourth interface in the message header.
11. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the message processing method of any of claims 1 to 7, or to perform the message processing method of claim 8, via execution of the executable instructions.
12. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the message processing method of any one of claims 1 to 7 or implements the message processing method of claim 8.
CN202210527182.2A 2022-05-16 2022-05-16 Message processing method, device, electronic equipment and computer readable storage medium Active CN114980200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210527182.2A CN114980200B (en) 2022-05-16 2022-05-16 Message processing method, device, electronic equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210527182.2A CN114980200B (en) 2022-05-16 2022-05-16 Message processing method, device, electronic equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN114980200A CN114980200A (en) 2022-08-30
CN114980200B true CN114980200B (en) 2023-09-12

Family

ID=82983072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210527182.2A Active CN114980200B (en) 2022-05-16 2022-05-16 Message processing method, device, electronic equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114980200B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104025525A (en) * 2012-12-14 2014-09-03 英特尔公司 Notification by network element of packet drops
CN114095987A (en) * 2021-11-22 2022-02-25 中国联合网络通信集团有限公司 Service processing method, device and storage medium
CN114401316A (en) * 2021-12-23 2022-04-26 中国电信股份有限公司 Network element communication method, service request method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104025525A (en) * 2012-12-14 2014-09-03 英特尔公司 Notification by network element of packet drops
CN114095987A (en) * 2021-11-22 2022-02-25 中国联合网络通信集团有限公司 Service processing method, device and storage medium
CN114401316A (en) * 2021-12-23 2022-04-26 中国电信股份有限公司 Network element communication method, service request method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"C4-216137_DISC_retransmission".3GPP tsg_ct\wg4_protocollars_ex-cn4.2021,全文. *

Also Published As

Publication number Publication date
CN114980200A (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US11368386B2 (en) Centralized error telemetry using segment routing header tunneling
US7492764B2 (en) System for management of equipment deployed behind firewalls
CN108200165A (en) Ask Transmission system, method, apparatus and storage medium
EP3611877A1 (en) Information notification method and device
EP1770906B1 (en) A method for realizing terminals management in the network device
US9467374B2 (en) Supporting multiple IEC-101/IEC-104 masters on an IEC-101/IEC-104 translation gateway
US11489836B2 (en) Method, apparatus, and system for collecting access control list
CN110784333B (en) Concurrent transactions with network configuration protocol devices for cross-network services
CN108200158A (en) Ask Transmission system, method, apparatus and storage medium
CN114828140B (en) Service flow message forwarding method and device, storage medium and electronic equipment
CN112491638A (en) Tunnel BFD session establishment method and device
CN114980200B (en) Message processing method, device, electronic equipment and computer readable storage medium
CN111245660B (en) Network-based equipment upgrading self-adaptive transmission method
CN111741006A (en) Discrete acquisition gateway and implementation method thereof
WO2016070679A1 (en) Network state synchronizing method and apparatus
CN114143372B (en) End network control method and system based on converged network shunt
TW202103475A (en) Method for terminal device management, server and terminal device
CN103475506B (en) Multiple equipment management control method and system
CN112929211A (en) Method for realizing non-IP management and control equipment to be accessed to IP DCN network to be managed
KR101200875B1 (en) Method and system for light-weight soap transport for web services based management
CN115334139B (en) Communication connection control method and device
CN114039814B (en) Message forwarding method and device, electronic equipment and storage medium
CN115914143A (en) Message forwarding method and gateway equipment
CN109510801B (en) Explicit forward proxy and SSL interception integrated system and operation method thereof
CN109818773B (en) Communication method and device for network management and managed device

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
GR01 Patent grant
GR01 Patent grant