[go: up one dir, main page]

CN114900459B - Route multiplexing method, device, equipment and storage medium - Google Patents

Route multiplexing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114900459B
CN114900459B CN202210689645.5A CN202210689645A CN114900459B CN 114900459 B CN114900459 B CN 114900459B CN 202210689645 A CN202210689645 A CN 202210689645A CN 114900459 B CN114900459 B CN 114900459B
Authority
CN
China
Prior art keywords
route
routing
ports
multiplexing
port
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
CN202210689645.5A
Other languages
Chinese (zh)
Other versions
CN114900459A (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210689645.5A priority Critical patent/CN114900459B/en
Publication of CN114900459A publication Critical patent/CN114900459A/en
Application granted granted Critical
Publication of CN114900459B publication Critical patent/CN114900459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery

Landscapes

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

Abstract

The application relates to the field of route multiplexing, and provides a route multiplexing method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a route application request, and determining a first number of route ports required by the route application request; acquiring a second number of created routing ports; and multiplexing the first number of routing ports in the created plurality of routing ports when the first number is smaller than or equal to the second number so as to establish the data route corresponding to the routing application request. The method improves the connection stability of the routing equipment. The present application also relates to the field of blockchain, and the storage medium may store data created from the use of blockchain nodes.

Description

Route multiplexing method, device, equipment and storage medium
Technical Field
The present application relates to the technical field of routing multiplexing, and in particular, to a routing multiplexing method, device, equipment and storage medium.
Background
At present, after route configuration in a routing device is updated, a route port needs to be fully recreated based on the updated route configuration, under the scenes of online examination, online competition and the like, a large number of request senders can apply for the route port to the routing device at the same time in a short time, after the route port is applied for the routing device, the routing device can fully recreate the route port and allocate the route port to each request sender and users who have previously established data routes, so that the previously established data ports are continuously created and destroyed in a short time, the connection stability of the routing device is affected, the session quality of the established data routes is also affected, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a route multiplexing method, a device, equipment and a storage medium, aiming at improving the connection stability of route equipment.
In a first aspect, an embodiment of the present application provides a routing multiplexing method, including:
acquiring a route application request, and determining a first number of route ports required by the route application request;
acquiring a second number of created routing ports;
multiplexing the first number of routing ports in the created plurality of routing ports when the first number is smaller than or equal to the second number, so as to establish the data route corresponding to the routing application request.
In a second aspect, an embodiment of the present application further provides a routing multiplexing apparatus, where the routing multiplexing apparatus includes:
the acquisition module is used for acquiring a route application request and determining a first number of route ports required by the route application request;
the acquisition module is further configured to acquire a second number of created routing ports;
and the port multiplexing module is used for multiplexing the first number of routing ports in the created plurality of routing ports when the first number is smaller than or equal to the second number so as to establish the data route corresponding to the routing application request.
In a third aspect, an embodiment of the present application further provides a routing device, where the routing device includes a processor, a memory, and a computer program stored on the memory and executable by the processor, where the computer program, when executed by the processor, implements the steps of the routing multiplexing method as described above.
In a fourth aspect, embodiments of the present application further provide a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the routing multiplexing method as described above.
The embodiment of the application provides a route multiplexing method, a device, equipment and a storage medium, wherein the route multiplexing method is used for acquiring a route application request, determining a first number of route ports required by the route application request, then determining a second number of created route ports, multiplexing the created route ports to establish a data route corresponding to the route application request when the first number is smaller than or equal to the second number, and not fully re-creating and loading the route ports, so that the route ports in use are not influenced, and the session quality of the established data route is not influenced, thereby improving the connection stability of the route equipment, being the multiplexed created route ports, saving the memory and reducing the interaction times with a kernel.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a routing multiplexing method according to an embodiment of the present application;
fig. 2 is a scenario of implementing a routing multiplexing method according to an embodiment of the present application;
fig. 3 is another schematic diagram of a scenario of implementing a routing multiplexing method provided by an embodiment of the present application;
fig. 4 is another schematic view of a scenario of implementing a routing multiplexing method provided by an embodiment of the present application;
fig. 5 is another schematic view of a scenario of implementing a routing multiplexing method provided by an embodiment of the present application;
fig. 6 is a schematic block diagram of a routing multiplexing apparatus according to an embodiment of the present application;
fig. 7 is a schematic block diagram of a routing device according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
At present, after route configuration in a routing device is updated, a route port needs to be fully recreated based on the updated route configuration, under the scenes of online examination, online competition and the like, a large number of request senders can apply for the route port to the routing device at the same time in a short time, after the route port is applied for the routing device, the routing device can fully recreate the route port and allocate the route port to each request sender and users who have previously established data routes, so that the previously established data ports are continuously created and destroyed in a short time, the connection stability of the routing device is affected, the session quality of the established data routes is also affected, and the user experience is poor.
In order to solve the above problems, the embodiments of the present application provide a routing multiplexing method, an apparatus, a routing device, and a storage medium, where the routing multiplexing method obtains a routing application request, determines a first number of routing ports required by the routing application request, then determines a second number of created routing ports, and when the first number is less than or equal to the second number, multiplexes the created routing ports to create a data route corresponding to the routing application request, instead of fully recreating and loading the routing ports, so that the session quality of the created data route is not affected, and thus the connection stability of the routing device is improved, and the created routing ports are multiplexed, so that memory can be saved, and the number of interactions with a core can be reduced.
The routing multiplexing method can be applied to routing equipment, the routing equipment can be a server or gateway equipment, and the server can be an independent server or a cloud server for providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content distribution networks (Content Delivery Network, CDNs), big data, artificial intelligent platforms and the like.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a flow chart of a routing multiplexing method according to an embodiment of the present application.
As shown in fig. 1, the route multiplexing method includes steps S101 to S103.
Step S101, a route application request is obtained, and a first number of route ports required by the route application request is determined.
The route application request is a request of a terminal device for applying a route port to a route device, the route application request comprises route application information, the route application information comprises source device information and one or more sink device information, the source device information comprises a source ip address and a source port, and the sink device information comprises a sink ip address and a sink port. Or, the route application information includes a plurality of source device information and one or more sink device information corresponding to each source device information.
For example, in the case where the route application information includes one source device information and one or more sink device information, the first number may be determined in such a manner that: acquiring route application information from a route application request; the method includes determining a number of sink device information in route application information, and determining the number of sink device information as a first number of routing ports required for a route application request. For example, if the route application request includes 3 pieces of sink device information, it may be determined that the number of route ports required for the route application request is 3. For another example, if the route application request includes 1 sink device information, it may be determined that the number of route ports required for the route application request is 1.
For example, in a case where the route application information includes a plurality of source device information and one or more sink device information corresponding to each source device information, the first number may be determined in a manner that: acquiring route application information from a route application request; and determining the number of the sink device information corresponding to each piece of source device information in the route application information, and determining the maximum value of the number as the first number of the route ports required by the route application request. For example, the route application information includes source device information a, source device information B, and source device information C, where the source device information a corresponds to 2 pieces of sink device information, the source device information B corresponds to 3 pieces of sink device information, and the source device information C corresponds to 1 piece of sink device information, and it can be determined that the number of route ports required for the route application request is 3.
Step S102, obtaining a second number of created routing ports.
The created routing port is created based on a historical routing application request, the historical routing application request is a routing application request received before the current system time, and if the routing application request is not received before the current system time, the historical routing application request does not exist in the routing equipment. It can be understood that, in the initial state, the number of created routing ports in the routing device is 0, when the routing device receives the routing application request for the first time, the routing device creates a corresponding routing port based on the routing application request received for the first time, creates a data route corresponding to the routing application request received for the first time based on the created routing port, and generates a routing table.
For example, the route application information in the route application request received for the first time includes one source device information, and sink device information B, sink device information C, and sink device information D corresponding to the source device information, where the source device information is: source ip address 1 and source port1, which may be denoted as s_ip1_port1, sink device information B is: sink ip address 1 and sink port1, which may be denoted as d_ip1_port1, sink device information C is: sink ip address 2 and sink port1, which may be denoted as d_ip2_port1, sink device information D is: sink ip address 1 and sink port2, which may be denoted as d_ip1_port2, then route port1 (denoted as t_port1), route port2 (denoted as t_port2) and route port3 (denoted as t_port3) are created to establish the data route.
As shown in fig. 2, the routing device 10 creates a routing port 11, a routing port 12 and a routing port 13, the routing port 11 is t_port1, the routing port 12 is t_port2, the routing port 13 is t_port3, a data route between the source device s_ip1_port1 and the sink device d_ip1_port1 is established through the client connection 21, t_port1 and the socket connection 31, and a data route between the source device s_ip1_port1 and the sink device d_ip2 is established through the client connection 22, t_port2 and the socket connection 32, and the source device s_ip1_port1 establishes a data route between the source device s_ip1_port1 and the sink device d_ip1_port2 through the client connection 23, t_port3 and the socket connection 33. The routing table 1 can be obtained by the data routing shown in fig. 2:
routing table 1
Sequence number Source IP address_source port Routing port Sink IP address_sink port
1 s_ip1_port1 t_port1 d_ip1_port1
2 s_ip1_port1 t_port2 d_ip2_port1
3 s_ip1_port1 t_port3 d_ip1_port2
Step S103, multiplexing the first number of route ports in the created plurality of route ports to establish the data route corresponding to the route application request when the first number is smaller than or equal to the second number.
For example, the number of routing ports required for the routing application request is 2, and the source device information is: the source ip address 2 and the source port1 can be recorded as s_ip2_port1, the two pieces of sink device information are d_ip2_port1 and d_ip1_port2 respectively, the created route ports are shown in fig. 2, including route port 11, route port 12 and route port 13, as shown in fig. 3, multiplexing route port 12 establishes a data route between s_ip2_port1 and d_ip2_port1, multiplexing route port 13 establishes a data route between s_ip2_port1 and d_ip1_port2, and establishes a data route between source device s_ip2_port1 and sink device d_ip2_port1 through client connection 24, t_port2 and socket connection 34, and establishes a data route between source device s_ip2_port1 and sink device d_port2 through client connection 25, t_port3 and socket connection 35. The routing table 2 can be obtained by the data routing shown in fig. 3.
Routing table 2
Sequence number Source IP address_source port Routing port Sink IP address_sink port
1 s_ip1_port1 t_port1 d_ip1_port1
2 s_ip1_port1 t_port2 d_ip2_port1
3 s_ip1_port1 t_port3 d_ip1_port2
4 s_ip2_port1 t_port2 d_ip2_port1
5 s_ip2_port1 t_port3 d_ip1_port2
In one embodiment, the multiplexing times of each created route port are obtained; selecting a first number of routing ports from the created plurality of routing ports as target routing ports according to the multiplexing times of each created routing port; multiplexing a first number of target routing ports to establish a data route corresponding to the route application request. The multiplexing times of the created routing ports are the number of data routes carried by the created routing ports. Through the multiplexing times of each created route port, a plurality of created route ports can be multiplexed uniformly to establish the data route corresponding to the route application request, and the stability of the route ports is improved.
Illustratively, sorting each created routing port according to the size sequence of the multiplexing times of each created routing port to obtain a routing port queue; and starting from the first routing port in the routing port queue, sequentially selecting one routing port from the routing port queue as a target routing port until the number of the target routing ports reaches the first number. For example, the created routing ports include the routing port 11, the routing port 12 and the routing port 13, and the multiplexing times of the routing port 11, the routing port 12 and the routing port 13 are respectively 50 times, 80 times and 60 times, and since the number of routing ports required for the routing application request is 2 two, the routing port 11 and the routing port 12 are selected for multiplexing.
In an embodiment, when the minimum multiplexing frequency of the multiplexing frequencies is greater than or equal to a preset frequency threshold, newly creating a first number of routing ports; and establishing a data route corresponding to the route application request based on the newly-established first number of route ports. The preset frequency threshold may be set based on practical situations, which is not limited in the embodiment of the present application, for example, the preset frequency threshold is 10000 times or 15000 times. Under the condition that the multiplexing times of the routing ports are higher, the routing ports are newly built, and the data route corresponding to the routing application request is built based on the newly built routing ports, so that the stability of the data route can be improved.
For example, as shown in fig. 4, the newly created routing ports are routing port 14 (t_port4) and routing port 15 (t_port5), the data route between source device s_ip2_port1 and sink device d_ip2_port1 is established through client connection 26, t_port4 and socket connection 36, and the data route between source device s_ip2_port1 and sink device d_ip1_port2 is established through client connection 27, t_port5 and socket connection 37. The routing table 3 can be obtained by the data routing shown in fig. 4.
Routing table 3
Sequence number Source IP address_source port Routing port Sink IP address_sink port
1 s_ip1_port1 t_port1 d_ip1_port1
2 s_ip1_port1 t_port2 d_ip2_port1
3 s_ip1_port1 t_port3 d_ip1_port2
4 s_ip2_port1 t_port4 d_ip2_port1
5 s_ip2_port1 t_port5 d_ip1_port2
In an embodiment, when the first number is greater than the second number, determining a fourth number by a difference between the first number and the second number, and creating a fourth number of routing ports; and establishing a data route corresponding to the route application request based on each created route port. When the number of the created routing ports does not meet the number of the routing ports required by the routing application request, the routing ports are newly built, the previously created routing ports and the newly built routing ports are multiplexed together to establish the data routes corresponding to the routing application request, so that the number of times of newly building the routing ports can be reduced, and the memory is saved.
For example, the number of routing ports required for the routing application request is 4, and the source device information is: the s_ip3_port2,4 pieces of sink device information are d_ip2_port1, d_ip1_port2, d_ip2_port2 and d_ip3_port2, respectively, as shown in fig. 5, the route port 14 (t_port4) is a newly built route port, at this time, the multiplexing route port 11 establishes a data route between s_ip3_port2 and d_ip2_port1, the multiplexing route port 12 establishes a data route between s_ip3_port2 and d_ip1_port2, the multiplexing route port 13 establishes a data route between s_ip3_port2 and d_ip2_port2, and the newly built route port 14 is used to establish a data route between s_ip3_port2 and d_ip3_port2.
Wherein, a data route between a source device s_ip3_port2 and a sink device d_ip2_port1 is established through a client connection 41, a t_port1 and a socket connection 51, a data route between a source device s_ip3_port2 and a sink device d_ip1_port2 is established through a client connection 42, a t_port2 and a socket connection 52, a data route between a source device s_ip3_port2 and a sink device d_ip2_port2 is established through a client connection 43, a t_port3 and a socket connection 53, and a data route between a source device s_ip3_port2 and a sink device d_ip2_port2 is established through a client connection 44, a t_port4 and a socket connection 54. The routing table 4 can be obtained by the data routing as shown in fig. 5.
Routing table 4
Sequence number Source IP address_source port Routing port Sink IP address_sink port
1 s_ip1_port1 t_port1 d_ip1_port1
2 s_ip1_port1 t_port2 d_ip2_port1
3 s_ip1_port1 t_port3 d_ip1_port2
4 s_ip3_port2 t_port1 d_ip2_port1
5 s_ip3_port2 t_port2 d_ip1_port2
6 s_ip3_port2 t_port3 d_ip2_port2
7 s_ip3_port2 t_port4 d_ip3_port2
In an embodiment, a creation time stamp of each routing port is obtained, and the creation time stamp of each routing port is updated once every time the routing port transmits data; determining a difference value between the creation time stamp of each route port and the current system time stamp to obtain the effective duration of each route port; and deleting the route ports corresponding to the valid time length being greater than or equal to the preset time length, and updating the second number. The creation timestamp is a timestamp when the route port is created, and the preset duration can be set based on actual conditions, which is not particularly limited in the embodiment of the present application. For example, the preset time period is 2 hours. The free route ports are destroyed by creating the time stamp of the route ports, so that resources can be saved, and the utilization rate of the resources can be improved.
According to the route multiplexing method provided by the embodiment, the route application request is acquired, the first number of route ports required by the route application request is determined, then the second number of created route ports is determined, and when the first number is smaller than or equal to the second number, the created route ports can be multiplexed to establish the data route corresponding to the route application request, instead of the full-quantity re-creation and loading of the route ports, so that the route ports in use are not influenced, the session quality of the created data route is not influenced, the connection stability of the routing device is improved, the created route ports are multiplexed, the memory is saved, and the interaction times with the kernel are reduced.
Referring to fig. 6, fig. 6 is a schematic block diagram of a routing multiplexing apparatus according to an embodiment of the present application.
As shown in fig. 6, the routing multiplexing apparatus 200 includes:
an obtaining module 210, configured to obtain a route application request, and determine a first number of routing ports required by the route application request;
the obtaining module 210 is further configured to obtain a second number of created routing ports;
and the port multiplexing module 220 is configured to multiplex the first number of routing ports in the created plurality of routing ports to establish the data route corresponding to the routing application request when the first number is less than or equal to the second number.
In an embodiment, the obtaining module 210 is further configured to:
acquiring route application information from the route application request;
and determining the quantity of the destination device information in the route application information, and determining the quantity of the destination device information as the first quantity of the route ports required by the route application request.
In an embodiment, the port multiplexing module 220 is further configured to:
acquiring the multiplexing times of each created route port;
selecting the first number of routing ports from the created plurality of routing ports as target routing ports according to the multiplexing times;
multiplexing the first number of target routing ports to establish a data route corresponding to the route application request.
In an embodiment, the port multiplexing module 220 is further configured to:
sequencing each created route port according to the size sequence of the multiplexing times of each created route port to obtain a route port queue;
and sequentially selecting one routing port from the routing port queue as a target routing port from the first routing port in the routing port queue until the number of the target routing ports reaches the first number.
In an embodiment, the port multiplexing module 220 is further configured to:
when the minimum multiplexing frequency in the multiplexing frequencies is greater than or equal to a preset frequency threshold, newly building the first number of routing ports;
and establishing the data route corresponding to the route application request based on the newly-established first number of route ports.
In an embodiment, the port multiplexing module 220 is further configured to:
when the first quantity is larger than the second quantity, determining a fourth quantity by the difference value between the first quantity and the second quantity, and newly building a routing port of the fourth quantity;
and establishing a data route corresponding to the route application request based on each created route port.
In an embodiment, the routing multiplexing apparatus further includes a determining module, a deleting module, and an updating module, where:
the obtaining module 210 is further configured to obtain a creation time stamp of each of the routing ports, where the creation time stamp of each of the routing ports is updated once every time the routing ports transmit data;
the determining module is used for determining the difference value between the creation time stamp of each routing port and the current system time stamp to obtain the effective duration of each routing port;
the deleting module is used for deleting the route ports corresponding to the effective time length being greater than or equal to a preset time length;
the updating module is configured to update the second number.
It should be noted that, for convenience and brevity of description, specific working processes of the above-described apparatus and each module and unit may refer to corresponding processes in the foregoing routing multiplexing method embodiment, and will not be described herein again.
The apparatus provided by the above embodiments may be implemented in the form of a computer program which may be run on a routing device as shown in fig. 7.
Referring to fig. 7, fig. 7 is a schematic block diagram of a routing device according to an embodiment of the present application. The routing device may be a server.
As shown in fig. 7, the routing device includes a processor, a memory, and a network interface connected by a system bus, wherein the memory may include a storage medium and an internal memory.
The storage medium may store an operating system and a computer program. The computer program comprises program instructions that, when executed, cause a processor to perform any one of a number of routing multiplexing methods.
The processor is used to provide computing and control capabilities supporting the operation of the entire routing device.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the routing device to which the present inventive arrangements are applied, and that a particular routing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in an embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
acquiring a route application request, and determining a first number of route ports required by the route application request;
acquiring a second number of created routing ports;
multiplexing the first number of routing ports in the created plurality of routing ports when the first number is smaller than or equal to the second number, so as to establish the data route corresponding to the routing application request.
In an embodiment, the processor, when implementing determining the first number of routing ports required for the routing application request, is configured to implement:
acquiring route application information from the route application request;
and determining the quantity of the destination device information in the route application information, and determining the quantity of the destination device information as the first quantity of the route ports required by the route application request.
In an embodiment, the processor is configured to, when implementing multiplexing the first number of routing ports of the created plurality of routing ports to establish a data route corresponding to the route application request, implement:
acquiring the multiplexing times of each created route port;
selecting the first number of routing ports from the created plurality of routing ports as target routing ports according to the multiplexing times;
multiplexing the first number of target routing ports to establish a data route corresponding to the route application request.
In an embodiment, the processor is configured to, when implementing selecting the first number of routing ports from the created plurality of routing ports as the target routing ports according to the multiplexing number, implement:
sequencing each created route port according to the size sequence of the multiplexing times of each created route port to obtain a route port queue;
and sequentially selecting one routing port from the routing port queue as a target routing port from the first routing port in the routing port queue until the number of the target routing ports reaches the first number.
In an embodiment, the processor is further configured to implement the steps of:
when the minimum multiplexing frequency in the multiplexing frequencies is greater than or equal to a preset frequency threshold, newly building the first number of routing ports;
and establishing the data route corresponding to the route application request based on the newly-established first number of route ports.
In an embodiment, the processor, after implementing obtaining the second number of created routing ports, is further configured to implement:
when the first quantity is larger than the second quantity, determining a fourth quantity by the difference value between the first quantity and the second quantity, and newly building a routing port of the fourth quantity;
and establishing a data route corresponding to the route application request based on each created route port.
In an embodiment, the processor is further configured to implement the steps of:
acquiring the creation time stamp of each routing port, wherein each time the routing port transmits data, the creation time stamp of the routing port is updated once;
determining a difference value between the creation time stamp of each routing port and the current system time stamp to obtain the effective duration of each routing port;
and deleting the route ports corresponding to the valid time length being greater than or equal to the preset time length, and updating the second number.
It should be noted that, for convenience and brevity of description, specific working processes of the routing device described above may refer to corresponding processes in the foregoing routing multiplexing method embodiment, and are not described herein again.
From the above description of embodiments, it will be apparent to those skilled in the art that the present application may be implemented in software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a routing device (which may be a personal computer, a server, or a network device, etc.) to perform the method described in the various embodiments or parts of the embodiments of the present application.
Embodiments of the present application also provide a storage medium having a computer program stored thereon, where the computer program includes program instructions, and a method implemented when the program instructions are executed may refer to various embodiments of the routing multiplexing method of the present application.
The storage medium may be volatile or nonvolatile. The storage medium may be an internal storage unit of the routing device according to the foregoing embodiment, for example, a hard disk or a memory of the routing device. The storage medium may also be an external storage device of the routing device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the routing device.
Further, the storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
It is to be understood that the terminology used in the description of the application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations. It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments. While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.

Claims (10)

1. A method of route multiplexing, comprising:
acquiring a route application request, and determining a first number of route ports required by the route application request;
acquiring a second number of created routing ports;
multiplexing the first number of routing ports in the created second number of routing ports when the first number is smaller than or equal to the second number, so as to establish the data route corresponding to the routing application request.
2. The method of routing multiplexing as recited in claim 1, wherein the determining the first number of routing ports required for the routing application request comprises:
acquiring route application information from the route application request;
and determining the quantity of the destination device information in the route application information, and determining the quantity of the destination device information as the first quantity of the route ports required by the route application request.
3. The route multiplexing method according to claim 1, wherein multiplexing the first number of routing ports of the second number of routing ports created to create the data route corresponding to the route application request includes:
acquiring the multiplexing times of each created route port;
selecting the first number of routing ports from the created second number of routing ports as target routing ports according to the multiplexing times;
multiplexing the first number of target routing ports to establish a data route corresponding to the route application request.
4. A route multiplexing method according to claim 3, wherein said selecting the first number of route ports as the target route ports from the created second number of route ports according to the number of multiplexing times comprises:
sequencing each created route port according to the size sequence of the multiplexing times of each created route port to obtain a route port queue;
and sequentially selecting one routing port from the routing port queue as a target routing port from the first routing port in the routing port queue until the number of the target routing ports reaches the first number.
5. A method of route multiplexing as claimed in claim 3, further comprising:
when the minimum multiplexing frequency in the multiplexing frequencies is greater than or equal to a preset frequency threshold, newly building the first number of routing ports;
and establishing the data route corresponding to the route application request based on the newly-established first number of route ports.
6. The route multiplexing method of any of claims 1-5, wherein after the obtaining the second number of created route ports, further comprising:
when the first quantity is larger than the second quantity, determining a fourth quantity by the difference value between the first quantity and the second quantity, and newly building a routing port of the fourth quantity;
and establishing a data route corresponding to the route application request based on each created route port.
7. The method of route multiplexing according to any of claims 1-5, wherein the method further comprises:
acquiring the creation time stamp of each routing port, wherein each time the routing port transmits data, the creation time stamp of the routing port is updated once;
determining a difference value between the creation time stamp of each routing port and the current system time stamp to obtain the effective duration of each routing port;
and deleting the route ports corresponding to the valid time length being greater than or equal to the preset time length, and updating the second number.
8. A routing multiplexing apparatus, characterized in that the routing multiplexing apparatus comprises:
the acquisition module is used for acquiring a route application request and determining a first number of route ports required by the route application request;
the acquisition module is further configured to acquire a second number of created routing ports;
and the port multiplexing module is used for multiplexing the first number of routing ports in the created second number of routing ports when the first number is smaller than or equal to the second number so as to establish the data route corresponding to the routing application request.
9. A routing device comprising a processor, a memory, and a computer program stored on the memory and executable by the processor, wherein the computer program when executed by the processor implements the steps of the routing multiplexing method according to any of claims 1 to 7.
10. A storage medium for computer readable storage, characterized in that the storage medium has stored thereon a computer program, wherein the computer program, when executed by a processor, implements the steps of the routing multiplexing method according to any of claims 1 to 7.
CN202210689645.5A 2022-06-17 2022-06-17 Route multiplexing method, device, equipment and storage medium Active CN114900459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210689645.5A CN114900459B (en) 2022-06-17 2022-06-17 Route multiplexing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210689645.5A CN114900459B (en) 2022-06-17 2022-06-17 Route multiplexing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114900459A CN114900459A (en) 2022-08-12
CN114900459B true CN114900459B (en) 2023-12-05

Family

ID=82728342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210689645.5A Active CN114900459B (en) 2022-06-17 2022-06-17 Route multiplexing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114900459B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6049524A (en) * 1997-11-20 2000-04-11 Hitachi, Ltd. Multiplex router device comprising a function for controlling a traffic occurrence at the time of alteration process of a plurality of router calculation units
US7007101B1 (en) * 2001-11-09 2006-02-28 Radisys Microware Communications Software Division, Inc. Routing and forwarding table management for network processor architectures
CN101014014A (en) * 2007-02-09 2007-08-08 华为技术有限公司 Routing aggregation method, packet transmitting method and border router of autonomous system
CN107959628A (en) * 2016-10-18 2018-04-24 中国电信股份有限公司 Business routing search method and system
CN112217730A (en) * 2019-07-09 2021-01-12 辉达公司 Network routing using aggregated links
CN113364707A (en) * 2021-08-10 2021-09-07 国网江苏省电力有限公司信息通信分公司 Resource allocation method, device, storage medium and electronic equipment
CN113420400A (en) * 2021-07-06 2021-09-21 北京字跳网络技术有限公司 Routing relation establishing method, request processing method, device and equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6049524A (en) * 1997-11-20 2000-04-11 Hitachi, Ltd. Multiplex router device comprising a function for controlling a traffic occurrence at the time of alteration process of a plurality of router calculation units
US7007101B1 (en) * 2001-11-09 2006-02-28 Radisys Microware Communications Software Division, Inc. Routing and forwarding table management for network processor architectures
CN101014014A (en) * 2007-02-09 2007-08-08 华为技术有限公司 Routing aggregation method, packet transmitting method and border router of autonomous system
CN107959628A (en) * 2016-10-18 2018-04-24 中国电信股份有限公司 Business routing search method and system
CN112217730A (en) * 2019-07-09 2021-01-12 辉达公司 Network routing using aggregated links
CN113420400A (en) * 2021-07-06 2021-09-21 北京字跳网络技术有限公司 Routing relation establishing method, request processing method, device and equipment
CN113364707A (en) * 2021-08-10 2021-09-07 国网江苏省电力有限公司信息通信分公司 Resource allocation method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN114900459A (en) 2022-08-12

Similar Documents

Publication Publication Date Title
CN107276765B (en) Processing method and device for consensus in block chain
CN110430274A (en) A kind of document down loading method and system based on cloud storage
CN110855576A (en) Application identification method and device
WO2021243666A1 (en) Information processing method and system, and device, medium, chip and program
JP2020510938A (en) System and method for a compute node management protocol
CN106998297A (en) A kind of virtual machine migration method and device
CN113190778A (en) Business data pushing method, system, computer equipment and computer storage medium
US20190372825A1 (en) Communication apparatus, communication method, and recording medium
CN111522874A (en) Block chain consensus method, block chain consensus device, computer equipment and storage medium
CN113114503B (en) Deployment method and device based on application delivery network requirements
CN110351276A (en) Data processing method, equipment and computer readable storage medium
CN110691042A (en) Resource allocation method and device
CN106716974B (en) Access distribution method, device and system
CN109474713A (en) Message forwarding method and device
US12046109B2 (en) Method and apparatus for conducting fair lottery while reducing transaction cost by using blockchain network
CN114900459B (en) Route multiplexing method, device, equipment and storage medium
CN113301144B (en) Concurrent access processing method and device for Nginx server, server and storage medium
CN107948022A (en) A kind of recognition methods of peer-to-peer network flow and identification device
US20210012421A1 (en) Method and device for trading on an electronic trading platform
CN106936643B (en) Equipment linkage method and terminal equipment
CN108366136B (en) Domain name resolution method and device
US9912757B2 (en) Correlation identity generation method for cloud environment
CN113438267B (en) Method and equipment for analyzing stream data
CN116192518A (en) Network protection method, device, electronic device and computer readable storage medium
CN106878356A (en) A scheduling method and computing nodes

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