CN112637068B - Network data forwarding method, computer device, computer network and storage medium - Google Patents

Network data forwarding method, computer device, computer network and storage medium Download PDF

Info

Publication number
CN112637068B
CN112637068B CN202011405721.2A CN202011405721A CN112637068B CN 112637068 B CN112637068 B CN 112637068B CN 202011405721 A CN202011405721 A CN 202011405721A CN 112637068 B CN112637068 B CN 112637068B
Authority
CN
China
Prior art keywords
network element
data
target network
message data
node
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
CN202011405721.2A
Other languages
Chinese (zh)
Other versions
CN112637068A (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.)
Guangzhou Aipu Road Network Technology Co Ltd
Original Assignee
Guangzhou Aipu Road Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Aipu Road Network Technology Co Ltd filed Critical Guangzhou Aipu Road Network Technology Co Ltd
Priority to CN202011405721.2A priority Critical patent/CN112637068B/en
Publication of CN112637068A publication Critical patent/CN112637068A/en
Application granted granted Critical
Publication of CN112637068B publication Critical patent/CN112637068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Abstract

The invention discloses a network data forwarding method, a computer device, a computer network and a storage medium, wherein the network data forwarding method comprises the steps of receiving website data and message data, determining a node name of a target network element according to the message data, replacing a corresponding part in the website data with a node parameter corresponding to the node name, forwarding the message data to the target network element according to the website data and the like. The invention avoids the processes of searching the adjustment rule and executing the adjustment rule by directly replacing the corresponding part in the website data by the node parameter, improves the forwarding efficiency, is beneficial to simultaneously processing the processing results returned by the response message data of a plurality of target network elements by the OAM network element, is beneficial to intensively processing the processing results by the OAM network element, enables the OAM network element to intensively return the processing results to the client, and avoids unnecessary load generated by the client. The invention is widely applied to the technical field of computer networks.

Description

Network data forwarding method, computer device, computer network and storage medium
Technical Field
The invention relates to the technical field of computer networks, in particular to a network data forwarding method, a computer device, a computer network and a storage medium.
Background
In a computer network such as a mobile communication network, when performing operations such as basic configuration, device management, log management, fault management, and performance management on network elements in a core network, a client needs to forward a message to the network elements through a relay server, and when the relay server executes a forwarding process, an adjustment rule corresponding to the message sent by the client needs to be searched in a pre-created adjustment rule database to adjust the message sent by the client. On the other hand, the rules adjusting processes executed by the transit service on different network elements are asynchronous, so that when the network elements respectively return the processing results of the messages to the client, a large unnecessary load is generated on the client.
Disclosure of Invention
In view of at least one of the above technical problems, it is an object of the present invention to provide a network data forwarding method, a computer apparatus, a computer network, and a storage medium.
In one aspect, an embodiment of the present invention includes a network data forwarding method, including:
receiving website data and message data from a client;
determining the node name of the target network element according to the message data; the target network element is a network element to which the message data is sent;
replacing the corresponding part in the website data with a node parameter corresponding to the node name;
and forwarding the message data to the target network element according to the website data.
Further, the network data forwarding method further includes:
receiving a processing result of the target network element on the message data;
and returning the processing result to the client.
Further, the receiving the processing result of the target network element on the message data; returning the processing result to the client, including:
when receiving processing results respectively returned by a plurality of target network elements, merging and summarizing the processing results;
and returning the result obtained by the combination and summarization processing to the client.
Further, the determining a node name of the target network element according to the message data includes:
and when the message data comprises the node name of the target network element, analyzing the node name of the target network element from the message data.
Further, the determining a node name of the target network element according to the message data further includes:
when the message data does not include the node name of the target network element, acquiring a plurality of data forwarding records to the network element;
respectively carrying out similarity calculation on the message data and each data forwarding record, and determining a network element corresponding to the data forwarding record with the highest similarity;
and determining the node name of the determined network element as the node name of the target network element.
Further, the website data is a URL, and the replacing the corresponding part in the website data with the node parameter corresponding to the node name includes:
inquiring node parameters from a data table according to the node names;
and replacing the IP address part and the port address part in the website data with the node parameters.
Further, the target network element is an AMF network element, an SMF network element, a UPF network element, or an NRF network element.
In another aspect, an embodiment of the present invention further includes a computer apparatus, including a memory and a processor, where the memory is used to store at least one program, and the processor is used to load the at least one program to perform the network data forwarding method in the embodiment.
On the other hand, the embodiment of the present invention further includes a computer network, which includes at least one target network element and the computer device in the embodiment, where the computer device is connected to each target network element, and the computer device is used for connecting to each client.
In another aspect, the present invention further includes a storage medium in which a processor-executable program is stored, and the processor-executable program is used to execute the network data forwarding method in the embodiment when executed by a processor.
The invention has the beneficial effects that: in the network data forwarding method in the embodiment, the corresponding part in the website data is directly replaced by the node parameter determined according to the message data, so that the processes of searching and executing the adjustment rule are avoided, and the forwarding efficiency is improved; the processes of searching for the adjustment rule and executing the adjustment rule are avoided, so that the OAM network element is favorable for simultaneously processing results returned by the response message data of the plurality of target network elements, and the OAM network element is favorable for carrying out centralized processing on the processing results, so that the OAM network element can intensively return the processing results to the client, and unnecessary load of the client is avoided.
Drawings
Fig. 1 is a schematic structural diagram of a network data forwarding method in an application embodiment;
fig. 2 is a flowchart of a network data forwarding method in an embodiment.
Detailed Description
The network data forwarding method in this embodiment may be applied to a computer network as shown in fig. 1. In fig. 1, the computer network includes an OAM network element, an AMF network element, an SMF network element, a UPF network element, and an NRF network element. In this embodiment, the OAM network element refers to an Operation Maintenance and Management (Operation Administration and Maintenance) network element, the AMF network element refers to an Access and Mobility Management Function (Access and Mobility Management Function) network element, the SMF network element refers to a Session Management Function (Session Management Function) network element, the UPF network element refers to a User Plane Function (User Plane Function) network element, and the NRF network element refers to a network Repository Function (NF Mobility Function) network element. The OAM network element is respectively connected with the AMF network element, the SMF network element, the UPF network element, the NRF network element and the client.
In this embodiment, an OAM network element executes the network data forwarding method. Referring to fig. 2, the network data forwarding method includes the steps of:
s1, receiving website data and message data from a client;
s2, determining a node name of a target network element according to the message data, wherein the target network element is a network element to which the message data are sent;
s3, replacing the corresponding part in the website data with a node parameter corresponding to the node name;
and S4, forwarding the message data to the target network element according to the website data.
In step S1, the client is a Web end, that is, a Web browser is run on the client, so that a user operates the Web browser to perform operations such as basic configuration, device management, log management, fault management, and performance management on one or more network elements such as an AMF network element, an SMF network element, a UPF network element, and an NRF network element. When the above basic configuration and other operations are performed, the client sends out a message, and in this embodiment, a network element that the client wants to send out a message to reach is referred to as a target network element.
When the basic configuration and other operations are executed, the client sends out message data including params (parameter set required by a message interface) and the like and website data including a URL (uniform resource locator), and the OAM network element receives the message data and the website data sent out by the client.
In this embodiment, step S2, that is, the step of determining the node name of the target network element according to the message data, includes the following steps:
and S201, when the message data includes the node name of the target network element, for example, nfNameList (network element node name list combination and other data), the OAM network element analyzes the nfNameList from the message data, and finds the node name of the target network element from the nfNameList.
S202, when the message data does not include the node name of the target network element, that is, does not include nfNameList or other similar data, the OAM network element may obtain a plurality of data forwarding records to the network element, where the data forwarding records may be messages or message fragments intercepted by the OAM network element when forwarding messages to the network element in the past;
s203, similarity calculation is carried out on the message data and each data forwarding record respectively, and a network element corresponding to the data forwarding record with the highest similarity is determined;
and S204, determining the node name of the determined network element as the node name of the target network element.
The principle of steps S203 and S204 is: in step S203, the OAM network element may use a data similarity algorithm to calculate a similarity between the message data obtained by performing step S1 and the message intercepted in the previous forwarding process, identify the previous forwarded message with the highest similarity, and when there is a rule that the data received by the same network element at different times has higher similarity, the network element sending the message with the highest similarity has a higher possibility to belong to the target network element of the current forwarding process, so that the node name of the network element sending the message with the highest similarity is determined as the node name of the target network element of the current forwarding process.
By executing step S201, in the case where the node name of the target network element such as nfNameList is included in the message data, the node name of the target network element can be directly analyzed from the message data. By executing steps S202 to S204, in the case that the message data does not include the node name of the target network element such as nfNameList, the OAM network element can determine the node name of the target network element by comparing the message data with the history record, and in this process, the OAM network element does not need to communicate with the client or the target network element, so that traffic or load can be avoided.
In this embodiment, step S3, that is, the step of replacing the corresponding part in the website data with the node parameter corresponding to the node name, includes the following steps:
s301, according to the node name obtained in the step S2, inquiring node parameters from a data table; in this step, the data table may be stored in a local database of the OAM network element, and the node parameters looked up from the data table include an IP address and a port address (port);
s302, replacing the IP address part in the website data with the IP address in the node parameter, and replacing the port address part in the website data with the port address in the node parameter.
In step S4, the OAM network element forwards the message data to the target network element according to the website data after completing the replacement.
In the embodiment, when the steps S1-S4 are executed, the corresponding part in the website data is directly replaced by the node parameter determined according to the message data, so that the processes of searching for the adjustment rule and executing the adjustment rule are avoided, and the forwarding efficiency is improved; the processes of searching for the adjustment rule and executing the adjustment rule are avoided, so that the OAM network element is favorable for simultaneously processing results returned by the response message data of the plurality of target network elements, and the OAM network element is favorable for carrying out centralized processing on the processing results, so that the OAM network element can intensively return the processing results to the client, and unnecessary load of the client is avoided.
And after receiving the message data forwarded by the OAM network element, the target network element executes processing on the message data or executes a corresponding work task in response to the message data. For example, the message data sent by the client includes an RPM packet, the OAM network element forwards the message data to the target network element, the target network element performs an upgrade operation according to the RPM packet in the message data, so as to generate upgrade success information or upgrade failure information as a processing result of the message data, and the target network element may return the processing result of the message data to the client through the OAM network element.
The network data forwarding method performed by the OAM network element may further include the steps of:
s5, receiving a processing result of the target network element on the message data;
and S6, returning a processing result to the client.
The OAM network element performs steps S5 and S6, thereby forwarding the processing result of the message data by the target network element to the client. When a plurality of target network elements return processing results for message data, the OAM network element may, when performing steps S5 and S6, cache the processing results returned by the plurality of target network elements, merge and summarize the processing results, where the number of processing results to be merged and summarized or the data amount reaches a threshold, or after counting down is finished, the OAM network element returns the results obtained by the merge and summarization to the client.
In steps S5-S6, when the OAM network element processes the processing results returned by the response message data of multiple target network elements at the same time, the OAM network element can return the processing results to the client in a centralized manner by performing centralized processing on the processing results, thereby avoiding unnecessary load generated by the client.
In this embodiment, a computer apparatus includes a memory and a processor, where the memory is used to store at least one program, and the processor is used to load the at least one program to execute the network data forwarding method in the embodiment. The computer apparatus may be used as an OAM network element.
In this embodiment, a computer network includes at least one target network element and a computer device, i.e., an OAM network element in the embodiment. The computer device is connected to each target network element, and the computer device may be connected to one or more clients to form a computer network structure as shown in fig. 1.
In the present embodiment, a storage medium stores therein a program executable by a processor, and the program executable by the processor is used to execute the network data forwarding method in the embodiment when executed by the processor, thereby achieving the same technical effects as those described in the embodiment.
It should be noted that, unless otherwise specified, when a feature is referred to as being "fixed" or "connected" to another feature, it may be directly fixed or connected to the other feature or indirectly fixed or connected to the other feature. Furthermore, the descriptions of upper, lower, left, right, etc. used in the present disclosure are only relative to the mutual positional relationship of the constituent parts of the present disclosure in the drawings. As used in this disclosure, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. In addition, unless defined otherwise, all technical and scientific terms used in this example have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in the description of the embodiments herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this embodiment, the term "and/or" includes any combination of one or more of the associated listed items.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element of the same type from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of the present disclosure. The use of any and all examples, or exemplary language ("e.g.," such as "or the like") provided with this embodiment is intended merely to better illuminate embodiments of the invention and does not pose a limitation on the scope of the invention unless otherwise claimed.
It should be recognized that embodiments of the present invention can be realized and implemented by computer hardware, a combination of hardware and software, or by computer instructions stored in a non-transitory computer readable memory. The methods may be implemented in a computer program using standard programming techniques, including a non-transitory computer-readable storage medium configured with the computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner, according to the methods and figures described in the detailed description. Each program may be implemented in a high level procedural or object oriented programming language to communicate with a computer system. However, the program(s) can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language. Furthermore, the program can be run on a programmed application specific integrated circuit for this purpose.
Further, operations of processes described in this embodiment can be performed in any suitable order unless otherwise indicated herein or otherwise clearly contradicted by context. The processes described in this embodiment (or variations and/or combinations thereof) may be performed under the control of one or more computer systems configured with executable instructions, and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) collectively executed on one or more processors, by hardware, or combinations thereof. The computer program includes a plurality of instructions executable by one or more processors.
Further, the method may be implemented in any type of computing platform operatively connected to a suitable interface, including but not limited to a personal computer, mini computer, mainframe, workstation, networked or distributed computing environment, separate or integrated computer platform, or in communication with a charged particle tool or other imaging device, and the like. Aspects of the invention may be embodied in machine-readable code stored on a non-transitory storage medium or device, whether removable or integrated into a computing platform, such as a hard disk, optically read and/or write storage medium, RAM, ROM, or the like, such that it may be read by a programmable computer, which when read by the storage medium or device, is operative to configure and operate the computer to perform the procedures described herein. Further, the machine-readable code, or portions thereof, may be transmitted over a wired or wireless network. The invention described in this embodiment includes these and other different types of non-transitory computer-readable storage media when such media include instructions or programs that implement the steps described above in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
A computer program can be applied to input data to perform the functions described in the present embodiment to convert the input data to generate output data that is stored to a non-volatile memory. The output information may also be applied to one or more output devices, such as a display. In a preferred embodiment of the invention, the transformed data represents physical and tangible objects, including particular visual depictions of physical and tangible objects produced on a display.
The above description is only a preferred embodiment of the present invention, and the present invention is not limited to the above embodiment, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention should be included in the protection scope of the present invention as long as the technical effects of the present invention are achieved by the same means. The invention is capable of other modifications and variations in its technical solution and/or its implementation, within the scope of protection of the invention.

Claims (8)

1. A network data forwarding method is characterized by comprising the following steps:
receiving website data and message data from a client;
determining the node name of the target network element according to the message data; the target network element is a network element to which the message data is sent;
replacing the corresponding part in the website data with a node parameter corresponding to the node name;
forwarding the message data to the target network element according to the website data;
the determining the node name of the target network element according to the message data includes:
when the message data comprises the node name of the target network element, analyzing the node name of the target network element from the message data;
when the message data does not include the node name of the target network element, acquiring a plurality of data forwarding records to the network element;
respectively carrying out similarity calculation on the message data and each data forwarding record, and determining a network element corresponding to the data forwarding record with the highest similarity;
and determining the node name of the determined network element as the node name of the target network element.
2. The network data forwarding method of claim 1, further comprising:
receiving a processing result of the target network element on the message data;
and returning the processing result to the client.
3. The network data forwarding method of claim 2, wherein the receiving of the processing result of the message data by the target network element; returning the processing result to the client, including:
when receiving processing results respectively returned by a plurality of target network elements, merging and summarizing the processing results;
and returning the result obtained by the combination and summarization processing to the client.
4. The method according to claim 1, wherein the website data is a URL, and the replacing the corresponding part in the website data with the node parameter corresponding to the node name includes:
inquiring node parameters from a data table according to the node names;
and replacing the IP address part and the port address part in the website data with the node parameters.
5. The network data forwarding method of any one of claims 1-4, wherein the target network element is an AMF network element, an SMF network element, a UPF network element or an NRF network element.
6. A computer apparatus comprising a memory for storing at least one program and a processor for loading the at least one program to perform the method of any one of claims 1 to 5.
7. A computer network, comprising:
at least one target network element;
and
the computer device of claim 6;
the computer device is connected with each target network element, and the computer device is used for being connected with each client.
8. A storage medium having stored therein a program executable by a processor, wherein the program executable by the processor is adapted to perform the method according to any one of claims 1-5 when executed by the processor.
CN202011405721.2A 2020-12-04 2020-12-04 Network data forwarding method, computer device, computer network and storage medium Active CN112637068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011405721.2A CN112637068B (en) 2020-12-04 2020-12-04 Network data forwarding method, computer device, computer network and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011405721.2A CN112637068B (en) 2020-12-04 2020-12-04 Network data forwarding method, computer device, computer network and storage medium

Publications (2)

Publication Number Publication Date
CN112637068A CN112637068A (en) 2021-04-09
CN112637068B true CN112637068B (en) 2021-09-21

Family

ID=75307927

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011405721.2A Active CN112637068B (en) 2020-12-04 2020-12-04 Network data forwarding method, computer device, computer network and storage medium

Country Status (1)

Country Link
CN (1) CN112637068B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220371A (en) * 2012-01-18 2013-07-24 中国移动通信集团公司 Method and system for conducting content adaptation
CN106789166A (en) * 2016-11-28 2017-05-31 上海斐讯数据通信技术有限公司 A kind of method and device of network element batch configuration
CN106936615A (en) * 2015-12-31 2017-07-07 中兴通讯股份有限公司 A kind of message processing method and device
CN111212154A (en) * 2019-12-31 2020-05-29 瑞庭网络技术(上海)有限公司 Service binding method, device, terminal, server and storage medium
US10715482B2 (en) * 2015-07-06 2020-07-14 Convida Wireless, Llc Wide area service discovery for internet of things

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220371A (en) * 2012-01-18 2013-07-24 中国移动通信集团公司 Method and system for conducting content adaptation
US10715482B2 (en) * 2015-07-06 2020-07-14 Convida Wireless, Llc Wide area service discovery for internet of things
CN106936615A (en) * 2015-12-31 2017-07-07 中兴通讯股份有限公司 A kind of message processing method and device
CN106789166A (en) * 2016-11-28 2017-05-31 上海斐讯数据通信技术有限公司 A kind of method and device of network element batch configuration
CN111212154A (en) * 2019-12-31 2020-05-29 瑞庭网络技术(上海)有限公司 Service binding method, device, terminal, server and storage medium

Also Published As

Publication number Publication date
CN112637068A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
CN103051740B (en) Domain name analytic method, dns server and domain name analysis system
US10194001B1 (en) Automatic discovery of API information
CN109492019B (en) Service request response method, device, computer equipment and storage medium
US20180253326A1 (en) Self-learning localization service
CN108881066B (en) Routing request method, access server and storage device
CN106951179B (en) Data migration method and device
CN110519409B (en) Domain name dynamic configuration method, device, equipment and storage medium
CN110851753A (en) Website access method, device, equipment and storage medium
CN104980478A (en) Cache sharing method, devices and system in content delivery network
US20150120692A1 (en) Method, device, and system for acquiring user behavior
CN107229628B (en) Distributed database preprocessing method and device
CN112685175A (en) Method and device for constructing service topological graph and computer readable storage medium
CN112286757A (en) Data synchronization monitoring method and device, electronic equipment and storage medium
US9600251B1 (en) Enhancing API service schemes
CN110661851A (en) Data exchange method and device
EP3905591A1 (en) Server abnormality processing method and management device
CN113904951A (en) Data monitoring method and device of gateway equipment and related equipment
CN108650123B (en) Fault information recording method, device, equipment and storage medium
CN112637068B (en) Network data forwarding method, computer device, computer network and storage medium
CN111159131A (en) Performance optimization method, device, equipment and computer readable storage medium
US20180074797A1 (en) Transform a data object in a meta model based on a generic type
CN107092529B (en) OLAP service method, device and system
CN112235363B (en) Data processing method, device, electronic equipment, storage medium and system
CN110162250B (en) Screenshot method, system and storage medium
CN114584573A (en) Node machine information synchronization method based on long polling mechanism

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