CN110995474B - Multi-port data reporting method and system - Google Patents

Multi-port data reporting method and system Download PDF

Info

Publication number
CN110995474B
CN110995474B CN201911140791.7A CN201911140791A CN110995474B CN 110995474 B CN110995474 B CN 110995474B CN 201911140791 A CN201911140791 A CN 201911140791A CN 110995474 B CN110995474 B CN 110995474B
Authority
CN
China
Prior art keywords
reporting
port
port number
routing gateway
data
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
CN201911140791.7A
Other languages
Chinese (zh)
Other versions
CN110995474A (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.)
Unihub China Information Technology Co Ltd
Original Assignee
Unihub China Information 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 Unihub China Information Technology Co Ltd filed Critical Unihub China Information Technology Co Ltd
Priority to CN201911140791.7A priority Critical patent/CN110995474B/en
Publication of CN110995474A publication Critical patent/CN110995474A/en
Application granted granted Critical
Publication of CN110995474B publication Critical patent/CN110995474B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • 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/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • 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

Landscapes

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

Abstract

The invention discloses a method and a system for reporting multi-port data, wherein the method comprises the following steps: the reverse proxy server acquires a port number of a routing gateway and a plurality of reported port numbers; the reverse proxy server generates a corresponding first reporting path according to each reporting port number in the reporting port numbers; the reverse proxy server generates a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway; and the reverse proxy server sends reporting request data to the routing gateway port according to the second reporting path corresponding to each reporting port number. The invention can effectively save hardware resources, simplify maintenance work and avoid a large amount of repeated work.

Description

Multi-port data reporting method and system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and a system for reporting multiport data.
Background
In the context of WEB applications, when reporting data from provinces across a service interface to a group system, each province generally needs to report data to a different port service interface with the same address, for example, the reporting address in the south of the river is http://100.66.124.131:12001/rest/report, and the reporting address in the north of the river is http://100.66.124.131: 12002/rest/report. For multi-port data reporting, in the existing implementation scheme, 31 provinces in the country need to start 31 background service application interfaces, that is, a corresponding background service application interface is started for each reporting port, so that a large amount of hardware resources are wasted, maintenance work is greatly increased, and a large amount of repeated work is brought.
Disclosure of Invention
The embodiment of the invention provides a multi-port data reporting method, which is used for reporting multi-port data, saving hardware resources, simplifying maintenance work and avoiding a large amount of repeated work, and comprises the following steps:
the reverse proxy server acquires a port number of a routing gateway and a plurality of reported port numbers;
the reverse proxy server generates a corresponding first reporting path according to each reporting port number in the reporting port numbers;
the reverse proxy server generates a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway;
and the reverse proxy server sends reporting request data to the routing gateway port according to the second reporting path corresponding to each reporting port number.
The embodiment of the invention provides a reverse proxy server, which is used for reporting multi-port data, saving hardware resources, simplifying maintenance work and avoiding a large amount of repeated work, and comprises:
the acquisition module is used for acquiring the port number of the routing gateway and the port numbers of the plurality of reports;
a first path generating module, configured to generate a corresponding first reporting path according to each reporting port number in the plurality of reporting port numbers;
a second path generating module, configured to generate a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway;
and the sending module is used for sending the report request data to the routing gateway port according to the second report path corresponding to each report port number.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the multi-port data reporting method is realized when the processor executes the computer program.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the multi-port data reporting method is realized when the processor executes the computer program.
Compared with the scheme that a corresponding background service application interface is respectively started for each reporting port in the prior art, the embodiment of the invention obtains the port number of the routing gateway and the numbers of a plurality of reporting ports through the reverse proxy server; the reverse proxy server generates a corresponding first reporting path according to each reporting port number in the reporting port numbers; the reverse proxy server generates a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway; and the reverse proxy server sends reporting request data to the routing gateway port according to the second reporting path corresponding to each reporting port number. According to the embodiment of the invention, a corresponding background service application interface is not required to be started for each reporting port, the reverse proxy server can convert the first reporting path corresponding to each reporting port number in the plurality of reporting port numbers into the second reporting path according to the routing gateway port number, the reporting request data is sent to the routing gateway port according to the second reporting path, and the routing gateway port forwards the reporting request data to the background service application, so that hardware resources are effectively saved, maintenance work is simplified, and a large amount of repeated work is avoided.
The embodiment of the invention provides a multi-port data reporting method, which is used for reporting multi-port data, saving hardware resources, simplifying maintenance work and avoiding a large amount of repeated work, and comprises the following steps:
the method comprises the steps that a routing gateway port receives reporting request data sent by a reverse proxy server according to a second reporting path corresponding to each reporting port number, the second reporting path corresponding to each reporting port number is generated according to a first reporting path corresponding to each reporting port number and the routing gateway port number, and the first reporting path corresponding to each reporting port number is generated according to the reporting port number;
the method comprises the steps that a routing gateway port obtains load weight data of one or more background service applications which are registered in a registration center in advance;
and the routing gateway port sends the report request data to the background service application of the registration center according to the load weight data.
The embodiment of the invention provides a routing gateway port, which is used for reporting multi-port data, saving hardware resources, simplifying maintenance work and avoiding a large amount of repeated work, and comprises:
a receiving module, configured to receive report request data sent by a reverse proxy server according to a second reporting path corresponding to each reporting port number, where the second reporting path corresponding to each reporting port number is generated according to a first reporting path corresponding to each reporting port number and a routing gateway port number, and the first reporting path corresponding to each reporting port number is generated according to the reporting port number;
the acquisition module is used for acquiring load weight data of one or more background service applications which are registered in advance by the registry;
and the sending module is used for sending the reporting request data to a background service application of a registration center according to the load weight data.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the multi-port data reporting method is realized when the processor executes the computer program.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the multi-port data reporting method is realized when the processor executes the computer program.
Compared with the scheme that a corresponding interface is respectively started for each reporting port in the prior art, the embodiment of the invention receives reporting request data sent by a reverse proxy server according to a second reporting path corresponding to each reporting port number through a routing gateway port, wherein the second reporting path corresponding to each reporting port number is generated according to a first reporting path corresponding to each reporting port number and a routing gateway port number, and the first reporting path corresponding to each reporting port number is generated according to the reporting port number; the method comprises the steps that a routing gateway port obtains load weight data of one or more background service applications which are registered in a registration center in advance; and the routing gateway port sends the report request data to the background service application of the registration center according to the load weight data. According to the embodiment of the invention, a corresponding background service application interface is not required to be started for each reporting port, the routing gateway port receives the reporting request data sent by the reverse proxy server, and then the reporting request data is sent to the background service application of the registration center according to the load weight data, so that hardware resources are effectively saved, maintenance work is simplified, and a large amount of repeated work is avoided.
The embodiment of the invention provides a multi-port data reporting system, which is used for reporting multi-port data, saving hardware resources, simplifying maintenance work and avoiding a large amount of repeated work, and comprises: the reverse proxy server and the routing gateway port.
Compared with the scheme of respectively starting a corresponding interface for each reporting port in the prior art, the multi-port data reporting system provided by the embodiment of the invention does not need to start a corresponding background service application interface for each reporting port, and can report multi-port data by using the reverse proxy server and the routing gateway port, thereby saving hardware resources, simplifying maintenance work and avoiding a large amount of repeated work.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic diagram of a multi-port data reporting method in an embodiment of the present invention;
FIG. 2 is a diagram of a reverse proxy server architecture in an embodiment of the present invention;
FIG. 3 is a diagram illustrating a multi-port data reporting method according to an embodiment of the present invention;
FIG. 4 is a diagram of a port structure of a routing gateway in an embodiment of the present invention;
FIG. 5 is a diagram of a multi-port data reporting system according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a multi-port data reporting method in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In order to report multi-port data, save hardware resources, simplify maintenance work, and avoid a large amount of repetitive work, an embodiment of the present invention provides a multi-port data reporting method, which, as shown in fig. 1, may include:
101, a reverse proxy server acquires a port number of a routing gateway and a plurality of reported port numbers;
102, the reverse proxy server generates a corresponding first reporting path according to each reporting port number in the reporting port numbers;
103, the reverse proxy server generates a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway;
and step 104, the reverse proxy server sends report request data to the routing gateway port according to the second report path corresponding to each report port number.
As shown in fig. 1, in the embodiment of the present invention, a reverse proxy server obtains a port number of a routing gateway and a plurality of port numbers to be reported; the reverse proxy server generates a corresponding first reporting path according to each reporting port number in the reporting port numbers; the reverse proxy server generates a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway; and the reverse proxy server sends reporting request data to the routing gateway port according to the second reporting path corresponding to each reporting port number. According to the embodiment of the invention, a corresponding background service application interface is not required to be started for each reporting port, the reverse proxy server can convert the first reporting path corresponding to each reporting port number in the plurality of reporting port numbers into the second reporting path according to the routing gateway port number, the reporting request data is sent to the routing gateway port according to the second reporting path, and the routing gateway port forwards the reporting request data to the background service application, so that hardware resources are effectively saved, maintenance work is simplified, and a large amount of repeated work is avoided.
In specific implementation, the reverse proxy server obtains the port number of the routing gateway and the port numbers of the plurality of reports.
In the embodiment, each province has its own reporting port number, for example, the reporting port number in the south of the river is 12001, the reporting port number in the north of the river is 12002, and the reporting port number in the east of the mountain is 12003. The routing gateway port number is 9900.
In an embodiment, the reverse proxy server may be a nginx-based reverse proxy server.
In specific implementation, the reverse proxy server generates a corresponding first reporting path according to each reporting port number in the plurality of reporting port numbers.
In an embodiment, a corresponding first reporting path may be generated according to each of the plurality of reporting port numbers. For example, the number of the reporting port in the south of the river is 12001, and the generated corresponding first reporting path is: the http is/100.66.124.131: 12001/rest/report, the number of the reporting port of the river north is 12002, and the generated corresponding first reporting path is as follows: http://100.66.124.131: 12002/rest/report.
In specific implementation, the reverse proxy server generates a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway.
In an embodiment, after a first reporting path corresponding to each reporting port number is generated, the reporting port number in the first reporting path is replaced with a routing gateway port number, province label information is added at the end of the first reporting path, and a second reporting path corresponding to each reporting port number is generated, where the province label information may be an acronym of province. For example, the number of the reporting port in the south of the river is 12001, and the generated corresponding first reporting path is: http://100.66.124.131:12001/rest/report, the second reporting path is: http://100.66.124.131:9900/rest/report/HN, the number of the reporting port in Hebei is 12002, and the generated corresponding first reporting path is as follows: http://100.66.124.131:12002/rest/report, the second reporting path is: http://100.66.124.131: 9900/rest/report/HB. 9900 is a port of a routing gateway, and the reverse proxy server processes the path so that there are multiple ports on the outside and only one port on the inside, and therefore it is not necessary to start a corresponding background service application interface for each reporting port.
In specific implementation, the reverse proxy server sends reporting request data to the routing gateway port according to the second reporting path corresponding to each reporting port number.
In the embodiment, after the second reporting path corresponding to each reporting port number is generated, reporting request data is sent to the routing gateway port. Because the first reporting path corresponding to each reporting port number is processed, and the second reporting path is generated according to the port number of the routing gateway, the corresponding background service application interface does not need to be started for each first reporting path, and the reporting request data is sent to the routing gateway port according to the second reporting path, and the routing gateway port reports the data.
Based on the same inventive concept, the embodiment of the present invention further provides a reverse proxy server, as described in the following embodiments. Because the principle of solving the problems is similar to the multi-port data reporting method, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
Fig. 2 is a structural diagram of a reverse proxy server according to an embodiment of the present invention, and as shown in fig. 2, the reverse proxy server 200 includes:
an obtaining module 201, configured to obtain a port number of a routing gateway and a plurality of port numbers to be reported;
a first path generating module 202, configured to generate a corresponding first reporting path according to each reporting port number in the plurality of reporting port numbers;
a second path generating module 203, configured to generate a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway;
a sending module 204, configured to send report request data to the routing gateway port according to the second reporting path corresponding to each reporting port number.
In order to report multi-port data, save hardware resources, simplify maintenance work, and avoid a large amount of repetitive work, an embodiment of the present invention provides a multi-port data reporting method, which, as shown in fig. 3, may include:
301, a routing gateway port receives report request data sent by a reverse proxy server according to a second report path corresponding to each report port number, the second report path corresponding to each report port number is generated according to a first report path corresponding to each report port number and the routing gateway port number, and the first report path corresponding to each report port number is generated according to the report port number;
step 302, a routing gateway port acquires load weight data of one or more background service applications pre-registered by a registration center;
and step 303, the routing gateway port sends the report request data to a background service application of a registry according to the load weight data.
As shown in fig. 3, it can be known that, in the embodiment of the present invention, the routing gateway port receives the report request data sent by the reverse proxy server according to the second reporting path corresponding to each reporting port number, where the second reporting path corresponding to each reporting port number is generated according to the first reporting path corresponding to each reporting port number and the routing gateway port number, and the first reporting path corresponding to each reporting port number is generated according to the reporting port number; the method comprises the steps that a routing gateway port obtains load weight data of one or more background service applications which are registered in a registration center in advance; and the routing gateway port sends the report request data to the background service application of the registration center according to the load weight data. According to the embodiment of the invention, a corresponding background service application interface is not required to be started for each reporting port, the routing gateway port receives the reporting request data sent by the reverse proxy server, and then the reporting request data is sent to the background service application of the registration center according to the load weight data, so that hardware resources are effectively saved, maintenance work is simplified, and a large amount of repeated work is avoided.
In specific implementation, the routing gateway port receives report request data sent by the reverse proxy server according to a second report path corresponding to each report port number, the second report path corresponding to each report port number is generated according to a first report path corresponding to each report port number and the routing gateway port number, and the first report path corresponding to each report port number is generated according to the report port number.
In the embodiment, each province has its own reporting port number, for example, the reporting port number in the south of the river is 12001, the reporting port number in the north of the river is 12002, and the reporting port number in the east of the mountain is 12003. The routing gateway port number is 9900.
In an embodiment, the reverse proxy server may be a nginx-based reverse proxy server.
In an embodiment, the first reporting path corresponding to each reporting port number is generated according to the reporting port number. For example, the number of the reporting port in the south of the river is 12001, and the generated corresponding first reporting path is: the http is/100.66.124.131: 12001/rest/report, the number of the reporting port of the river north is 12002, and the generated corresponding first reporting path is as follows: http://100.66.124.131: 12002/rest/report.
In an embodiment, the second reporting path corresponding to each reporting port number is generated according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway. After a first reporting path corresponding to each reporting port number is generated, replacing the reporting port number in the first reporting path with a routing gateway port number, adding province label information at the tail of the first reporting path, and generating a second reporting path corresponding to each reporting port number, where the province label information may be an acronym of province. For example, the number of the reporting port in the south of the river is 12001, and the generated corresponding first reporting path is: http://100.66.124.131:12001/rest/report, the second reporting path is: http://100.66.124.131:9900/rest/report/HN, the number of the reporting port in Hebei is 12002, and the generated corresponding first reporting path is as follows: http://100.66.124.131:12002/rest/report, the second reporting path is: http://100.66.124.131: 9900/rest/report/HB. 9900 is a port of a routing gateway, and the reverse proxy server processes the path so that there are multiple ports on the outside and only one port on the inside, and therefore it is not necessary to start a corresponding background service application interface for each reporting port.
In specific implementation, the routing gateway port obtains load weight data of one or more background service applications registered in advance by the registry.
In an embodiment, one or more background service applications of the registry are pre-registered based on pressure peak data. The registry is used to register one or more background service applications thereon. The number and the health tree of the registered background service applications can be seen in the registry, and the offline operation of the service can be realized.
In specific implementation, the routing gateway port sends the report request data to a background service application of a registry according to the load weight data.
In the embodiment, the background service application can obtain an independent name ID after successfully registering in the registration center, and the routing gateway can find the corresponding background service application by going to the registration center through the name ID, wherein the routing gateway is an independent address port and corresponds to a plurality of background service applications.
In the embodiment, the load balancing is set by the routing gateway port, and the report request data is specifically sent to which background service application in the registry is determined according to the load weight data of each background service application.
In an embodiment, after the routing gateway port sends the report request data to the background service application of the registry, when a request failure signal sent by the registry is received, the routing gateway port sends the report request data to one or more background service applications except the background service application in the registry again. In this embodiment, the routing gateway port sets the failure retransmission, for example, if the current request is being executed on the background service application a, and the request is down at this time, the routing gateway port may receive the request failure signal sent by the registration center, and at this time, the routing gateway port may immediately transfer the reported request data to the normally executed background service application B, so as to implement that the request can be normally executed.
The embodiment summarizes that the background service applications registered in the registration center are subjected to peak pressure testing, if the peak value is within a preset range, the number of the background service applications does not need to be expanded, and if the peak value exceeds the preset range, the number of the background service applications is expanded transversely according to actual traffic.
Based on the same inventive concept, the embodiment of the present invention further provides a routing gateway port, as described in the following embodiments. Because the principle of solving the problems is similar to the multi-port data reporting method, the implementation of the device can refer to the implementation of the method, and repeated details are not repeated.
Fig. 4 is a structural diagram of a routing gateway port in an embodiment of the present invention, and as shown in fig. 4, the routing gateway port 400 includes:
a receiving module 401, configured to receive report request data sent by a reverse proxy server according to a second reporting path corresponding to each reporting port number, where the second reporting path corresponding to each reporting port number is generated according to a first reporting path corresponding to each reporting port number and a routing gateway port number, and the first reporting path corresponding to each reporting port number is generated according to a reporting port number;
an obtaining module 402, configured to obtain load weight data of one or more background service applications pre-registered by a registry;
a sending module 403, configured to send the report request data to a background service application of a registry according to the load weight data.
In one embodiment, one or more background service applications of the registry are pre-registered based on pressure peak data.
In an embodiment, the sending module 403 is further configured to, after sending the report request data to the background service application of the registry, when receiving a request failure signal sent by the registry, resend the report request data to one or more background service applications in the registry except for the background service application.
An embodiment of the present invention further provides a system for reporting multi-port data, and as shown in fig. 5, the system includes: the reverse proxy server 200 and the routing gateway port 400.
The multi-port data reporting system provided by the embodiment of the invention does not need to start a corresponding background service application interface for each reporting port, and can report multi-port data by utilizing the reverse proxy server and the routing gateway port, thereby saving hardware resources, simplifying maintenance work and avoiding a large amount of repeated work.
A specific embodiment is given below to illustrate a specific application of the multi-port data reporting method in the embodiment of the present invention. As shown in fig. 6, in this embodiment, the reverse proxy software nginx is first configured, with open ports (e.g., henan: 12001, hebei: 12002, shandong: 12003 …), and request forwarding paths plus provinces. If the original reporting path of Henan is http://100.66.124.131:12001/rest/report, and the reporting path is http://100.66.124.131:9900/rest/report/HN after provinces are added; for example, the reporting path of Hebei original http://100.66.124.131:12002/rest/report, and after provinces are added, the reporting path is http://100.66.124.131:9900/rest/report/HB, wherein 9900 is a routing gateway port. The service registry is started, and the background service application is required to be registered. A background service application (e.g., port 8081) is launched and registered with the service registry. And the routing gateway forwards the configuration request to a background service of the registration center, and simultaneously sets a load balancing and failure retransmission mechanism. And transversely expanding the background application according to the background service pressure, and starting the application as little as possible.
In summary, in the embodiments of the present invention, a reverse proxy server obtains a port number of a routing gateway and a plurality of port numbers to be reported; the reverse proxy server generates a corresponding first reporting path according to each reporting port number in the reporting port numbers; the reverse proxy server generates a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway; and the reverse proxy server sends reporting request data to the routing gateway port according to the second reporting path corresponding to each reporting port number. According to the embodiment of the invention, a corresponding background service application interface is not required to be started for each reporting port, the reverse proxy server can convert the first reporting path corresponding to each reporting port number in the plurality of reporting port numbers into the second reporting path according to the routing gateway port number, the reporting request data is sent to the routing gateway port according to the second reporting path, and the routing gateway port forwards the reporting request data to the background service application, so that hardware resources are effectively saved, maintenance work is simplified, and a large amount of repeated work is avoided.
In the embodiment of the invention, report request data sent by a reverse proxy server according to a second reporting path corresponding to each reporting port number is received through a routing gateway port, the second reporting path corresponding to each reporting port number is generated according to a first reporting path corresponding to each reporting port number and the routing gateway port number, and the first reporting path corresponding to each reporting port number is generated according to the reporting port number; the method comprises the steps that a routing gateway port obtains load weight data of one or more background service applications which are registered in a registration center in advance; and the routing gateway port sends the report request data to the background service application of the registration center according to the load weight data. According to the embodiment of the invention, a corresponding background service application interface is not required to be started for each reporting port, the routing gateway port receives the reporting request data sent by the reverse proxy server, and then the reporting request data is sent to the background service application of the registration center according to the load weight data, so that hardware resources are effectively saved, maintenance work is simplified, and a large amount of repeated work is avoided.
The multi-port data reporting system provided by the embodiment of the invention does not need to start a corresponding background service application interface for each reporting port, and can report multi-port data by utilizing the reverse proxy server and the routing gateway port, thereby saving hardware resources, simplifying maintenance work and avoiding a large amount of repeated work.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (11)

1. A method for reporting multi-port data is characterized by comprising the following steps:
the reverse proxy server acquires a port number of a routing gateway and a plurality of reported port numbers;
the reverse proxy server generates a corresponding first reporting path according to each reporting port number in the reporting port numbers;
the reverse proxy server generates a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway;
and the reverse proxy server sends reporting request data to the routing gateway port according to the second reporting path corresponding to each reporting port number.
2. A method for reporting multi-port data is characterized by comprising the following steps:
the method comprises the steps that a routing gateway port receives reporting request data sent by a reverse proxy server according to a second reporting path corresponding to each reporting port number, the second reporting path corresponding to each reporting port number is generated according to a first reporting path corresponding to each reporting port number and the routing gateway port number, and the first reporting path corresponding to each reporting port number is generated according to the reporting port number;
the method comprises the steps that a routing gateway port obtains load weight data of one or more background service applications which are registered in a registration center in advance;
and the routing gateway port sends the report request data to the background service application of the registration center according to the load weight data.
3. The multi-port data reporting method of claim 2, wherein one or more background service applications of the registry are pre-registered based on pressure peak data.
4. The multi-port data reporting method of claim 2, further comprising:
after the routing gateway port sends the report request data to the background service application of the registry, when a request failure signal sent by the registry is received, the routing gateway port sends the report request data to one or more background service applications except the background service application in the registry again.
5. A reverse proxy server, comprising:
the acquisition module is used for acquiring the port number of the routing gateway and the port numbers of the plurality of reports;
a first path generating module, configured to generate a corresponding first reporting path according to each reporting port number in the plurality of reporting port numbers;
a second path generating module, configured to generate a second reporting path corresponding to each reporting port number according to the first reporting path corresponding to each reporting port number and the port number of the routing gateway;
and the sending module is used for sending the report request data to the routing gateway port according to the second report path corresponding to each report port number.
6. A routing gateway port, comprising:
a receiving module, configured to receive report request data sent by a reverse proxy server according to a second reporting path corresponding to each reporting port number, where the second reporting path corresponding to each reporting port number is generated according to a first reporting path corresponding to each reporting port number and a routing gateway port number, and the first reporting path corresponding to each reporting port number is generated according to the reporting port number;
the acquisition module is used for acquiring load weight data of one or more background service applications which are registered in advance by the registry;
and the sending module is used for sending the reporting request data to a background service application of a registration center according to the load weight data.
7. The routing gateway port of claim 6 wherein one or more background services applications of the registry are pre-registered based on pressure peak data.
8. The routing gateway port of claim 6, wherein the sending module is further configured to, after the routing gateway port sends the report request data to the background service applications of the registry, when a request failure signal sent by the registry is received, the routing gateway port resends the report request data to one or more background service applications in the registry except for the background service application.
9. A multi-port data reporting system, comprising: a reverse proxy server comprising the reverse proxy server of claim 5 and a routing gateway port comprising the routing gateway port of any one of claims 6-8.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 4 when executing the computer program.
11. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 4.
CN201911140791.7A 2019-11-20 2019-11-20 Multi-port data reporting method and system Active CN110995474B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911140791.7A CN110995474B (en) 2019-11-20 2019-11-20 Multi-port data reporting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911140791.7A CN110995474B (en) 2019-11-20 2019-11-20 Multi-port data reporting method and system

Publications (2)

Publication Number Publication Date
CN110995474A CN110995474A (en) 2020-04-10
CN110995474B true CN110995474B (en) 2022-03-08

Family

ID=70085213

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911140791.7A Active CN110995474B (en) 2019-11-20 2019-11-20 Multi-port data reporting method and system

Country Status (1)

Country Link
CN (1) CN110995474B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137014A (en) * 2011-03-11 2011-07-27 华为技术有限公司 Resource management method, system and resource manager
WO2011125638A1 (en) * 2010-04-08 2011-10-13 株式会社スプリングソフト Network system, port forward forming apparatus and reverse proxy server
US9100369B1 (en) * 2012-08-27 2015-08-04 Kaazing Corporation Secure reverse connectivity to private network servers
CN108269396A (en) * 2016-12-31 2018-07-10 中国移动通信集团辽宁有限公司 Traffic Information processing method and system
CN109547547A (en) * 2018-11-23 2019-03-29 北京知道创宇信息技术有限公司 Return source dispatching method, device and its storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170310583A1 (en) * 2016-04-22 2017-10-26 Cisco Technology, Inc. Segment routing for load balancing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011125638A1 (en) * 2010-04-08 2011-10-13 株式会社スプリングソフト Network system, port forward forming apparatus and reverse proxy server
CN102137014A (en) * 2011-03-11 2011-07-27 华为技术有限公司 Resource management method, system and resource manager
US9100369B1 (en) * 2012-08-27 2015-08-04 Kaazing Corporation Secure reverse connectivity to private network servers
CN108269396A (en) * 2016-12-31 2018-07-10 中国移动通信集团辽宁有限公司 Traffic Information processing method and system
CN109547547A (en) * 2018-11-23 2019-03-29 北京知道创宇信息技术有限公司 Return source dispatching method, device and its storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于ZigBee网络的多网关传输系统设计;刘焕强等;《江南大学学报(自然科学版)》;20130628(第03期);全文 *

Also Published As

Publication number Publication date
CN110995474A (en) 2020-04-10

Similar Documents

Publication Publication Date Title
CN113301166B (en) Service calling method and device, storage medium and electronic device
CN110661702B (en) Link backup method and device and computer readable storage medium
CN103971687A (en) Method and device for realizing load balance of voice recognition system
CN109327511B (en) Data request method and server based on HTTP (hyper text transport protocol)
CN112822260B (en) File transmission method and device, electronic equipment and storage medium
CN105743687B (en) Method and device for judging node fault
CN114553799B (en) Multicast forwarding method, device, equipment and medium based on programmable data plane
CN103973555A (en) GRE protocol tunnel building method, communication device and communication system
CN109379764B (en) Message sending method and device
US10320616B2 (en) Method and a system for sideband server management
CN114157500A (en) Data packet processing method, electronic device and storage medium
CN110995474B (en) Multi-port data reporting method and system
CN113055193B (en) Data multicast transmission method, device, equipment and storage medium
EP3171565B1 (en) Methods, devices and system for netconf hello packets interaction
US10025752B2 (en) Data processing method, processor, and data processing device
CN116010130B (en) Cross-card link aggregation method, device, equipment and medium for DPU virtual port
CN109618015B (en) Data center-based de-stacking implementation method and device
US11436172B2 (en) Data frame interface network device
CN113259248B (en) Method and device for determining link for forwarding service flow
CN112491903B (en) Account checking method, device and system among multiple systems
CN113242292A (en) Message transmission method, device, equipment, medium and product
CN107005476B (en) Method and first device for managing data frames in a switching network
CN106936737B (en) Port mirroring implementation method and device based on network equipment
US9485107B2 (en) System and method for distributed internet group management protocol processing
US20150256469A1 (en) Determination method, device and storage medium

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
CP02 Change in the address of a patent holder

Address after: Room 702-2, No. 4811, Cao'an Highway, Jiading District, Shanghai

Patentee after: CHINA UNITECHS

Address before: 100872 5th floor, Renmin culture building, 59 Zhongguancun Street, Haidian District, Beijing

Patentee before: CHINA UNITECHS

CP02 Change in the address of a patent holder