CN111464446B - Communication method and device for multi-line server access and server - Google Patents
Communication method and device for multi-line server access and server Download PDFInfo
- Publication number
- CN111464446B CN111464446B CN202010270410.3A CN202010270410A CN111464446B CN 111464446 B CN111464446 B CN 111464446B CN 202010270410 A CN202010270410 A CN 202010270410A CN 111464446 B CN111464446 B CN 111464446B
- Authority
- CN
- China
- Prior art keywords
- service
- server
- routing
- network
- operator
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 63
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000002776 aggregation Effects 0.000 claims description 27
- 238000004220 aggregation Methods 0.000 claims description 27
- 230000006870 function Effects 0.000 claims description 21
- 238000001514 detection method Methods 0.000 claims description 16
- 230000036541 health Effects 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 abstract description 12
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 8
- 230000000903 blocking effect Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 5
- XEEYBQQBJWHFJM-UHFFFAOYSA-N Iron Chemical compound [Fe] XEEYBQQBJWHFJM-UHFFFAOYSA-N 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 4
- 230000000737 periodic effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000004931 aggregating effect Effects 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 229910052742 iron Inorganic materials 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010606 normalization Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present application relates to the field of communications technologies, and in particular, to a communication method, an apparatus, a storage medium, and a server for a multi-line server access, including: periodically inquiring a service IP network segment from a background server based on the running timing service; acquiring a queried service IP network segment, matching the service IP network segment with local operator line information of a server, and generating different operator routing tables and a routing strategy table; if a data packet is sent, matching a target IP in the data packet with the routing policy table, and routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result; in the scheme, the phenomenon of network blockage caused by factors such as a firewall and the like can be effectively prevented when the server node is in the entrance direction, and the network transmission quality and the transmission efficiency are improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a communication method and apparatus for accessing a multi-line server, a storage medium, and a server.
Background
Currently, the internal communication between the servers needs to be realized by means of communication across operators. For example, the server a uses a communication IP of the telecommunication IP access server B, in order to reduce network transmission cost, a CDN manufacturer uses a multi-line IP scheme instead of a BGP network, determines network routing configuration of the node server through the central server, and issues a corresponding operator policy table, and the node server matches the policy table according to a source address corresponding to a received data packet, so as to implement that an access request of a specific operator user is forwarded to the same operator network or an optimal network for transmission.
However, under the infrastructure of the hybrid cloud, the number of the IPs is not only large, but also the network segments to which the IPs belong are not continuous; if each IP generates a corresponding route, the performance of a routing table is obviously reduced, so that the network communication quality is deteriorated; moreover, when the central control node architecture is adopted for configuration management, the connectivity of a unidirectional network between the central control node and the server node is relied on, and when the server node is in the entrance direction, a plurality of factors such as a firewall and the like can cause network blocking.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks, and in particular, to solve the technical drawbacks of the prior art that the quality of a network is poor and the network delay is greatly increased due to cross-operator communication.
The application provides a communication method for accessing a multi-line server, which comprises the following steps:
periodically inquiring a service IP network segment from a background server based on the running timing service; the background server-side carries out real-time network segment aggregation on the service IP network segments in the service IP library and provides a concurrent query function for the aggregated service IP network segments;
acquiring a queried service IP network segment, matching the service IP network segment with local operator line information of a server, and generating different operator routing tables and a routing strategy table;
and if the data packet is sent, matching the target IP in the data packet with the routing policy table, and routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result.
In one embodiment, before the step of periodically querying the background server for the service IP network segment based on the running timing service, the method further includes:
and detecting service IP aggregation information in the background server based on the running route health detection component, wherein the route health detection component is a component for performing route detection on the service IP in the background server in real time.
In one embodiment, the service IP aggregation information includes operator information to which the IP belongs and final gateway egress operator information;
and if the operator information to which the IP belongs is inconsistent with the final gateway outlet operator information, performing alarm prompt so as to enable an administrator to correct the information.
In one embodiment, the step of matching the service IP network segment with the local operator line information of the server to generate different operator routing tables and a routing policy table includes:
acquiring local operator line information of a server, and matching the service IP network segment with the operator line information to obtain a matched routing table;
the routing table is processed by using an iproute2 tool kit to generate different operator routing tables and a policy table.
In one embodiment, the step of matching the destination IP in the data packet with the routing policy table includes:
acquiring a network segment corresponding to the target IP;
and matching the corresponding gateway in the routing policy table according to the network segment.
In one embodiment, the step of routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to the matching result includes:
matching a corresponding operator routing table through the network segment corresponding to the target IP;
and routing the data packet to a target server in a corresponding operator network through the operator routing table according to the gateway.
In one embodiment, the service IP in the service IP library is dynamically changed, and the background server needs to dynamically aggregate the service IP segments in the service IP library.
The present application further provides a communication device for accessing a multiline server, comprising:
the timing query module is used for regularly querying a service IP network segment from a background server based on the running timing service; the background server-side carries out real-time network segment aggregation on the service IP network segments in the service IP library and provides a concurrent query function for the aggregated service IP network segments;
the route generation module is used for acquiring the inquired service IP network segment, matching the service IP network segment with the local operator line information of the server and generating different operator routing tables and a routing strategy table;
and the communication module is used for matching the target IP in the data packet with the routing policy table if the data packet is sent, and routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result.
The present application also provides a storage medium having stored therein computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the multi-line server accessed communication method as described in any of the above embodiments.
The present application further provides a server, including:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the steps of the multi-wire server accessed communication method as recited in any of the above embodiments.
The communication method, the device, the storage medium and the server accessed by the multi-line server periodically inquire the service IP network segment from the background server based on the running timing service; the background server-side carries out real-time network segment aggregation on the service IP network segments in the service IP library and provides a concurrent query function for the aggregated service IP network segments; acquiring a queried service IP network segment, matching the service IP network segment with local operator line information of a server, and generating different operator routing tables and a routing strategy table; and if the data packet is sent, matching the target IP in the data packet with the routing policy table, and routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result.
In the scheme, the background server performs real-time local network segment aggregation on the service IP library and provides a high concurrent query function, so that the number of route entries of the server is reduced, the periodic concurrent query of the existing network full-scale server is met, the problems of large number of IP and quick change are solved, and the stability and the normativity of the route are improved; in addition, a data packet matched with the destination IP and the routing policy table is routed to a corresponding operator network through the established operator routing table by using a policy routing mode, so that the phenomenon of network blocking caused by factors such as a firewall and the like can be effectively prevented when the server node is in the entrance direction, and the network transmission efficiency is improved.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a diagram of an application environment of an embodiment;
FIG. 2 is a flow diagram of a communication method for multi-line server access, according to an embodiment;
FIG. 3 is a schematic diagram of a multi-line server accessed communication device, according to an embodiment;
fig. 4 is a block diagram of the internal structure of the electronic device of an embodiment.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Currently, the internal communication between the servers needs to be realized by means of communication across operators. For example, the server a uses a communication IP of the telecommunication IP access server B, in order to reduce network transmission cost, a CDN manufacturer uses a multi-line IP scheme instead of a BGP network, determines network routing configuration of the node server through the central server, and issues a corresponding operator policy table, and the node server matches the policy table according to a source address corresponding to a received data packet, so as to implement that an access request of a specific operator user is forwarded to the same operator network or an optimal network for transmission.
However, under the infrastructure of the hybrid cloud, the number of the IPs is not only large, but also the network segments to which the IPs belong are not continuous; if each IP generates a corresponding route, the performance of a routing table is obviously reduced, so that the network communication quality is deteriorated; moreover, when the central control node architecture is adopted for configuration management, the connectivity of a unidirectional network between the central control node and the server node is relied on, and when the server node is in the entrance direction, a plurality of factors such as a firewall and the like can cause network blocking.
Therefore, the present application proposes the following embodiments to solve the technical defects of poor network quality and greatly increased network delay caused by cross-operator communication.
Referring to fig. 1, fig. 1 is a diagram of an application environment of an embodiment of the present application; in this embodiment, the technical solution of the present application can be implemented on a server, for example, in fig. 1, the server 110 queries a service IP network segment in the backend server 130, and configures the service IP network segment into a local routing table to implement a relevant function; in the embodiment of the present application, the background server 130 queries the service IP in the service IP library 120, so as to perform network segment aggregation on the service IP in real time, and provide a concurrent query service for the server 110, so that the server 110 queries the aggregated service IP network segment, and after configuring with a local routing table, realizes a function of cross-operator access communication between the server 110 and a target server; in addition, the routing health detection component 140 realizes the IP routing detection function by querying the operator information of the service IP in the service IP library 120 and the aggregated service IP network segment in the backend server 130.
In an embodiment, as shown in fig. 2, fig. 2 is a flowchart of a communication method for multiple line server access according to an embodiment, and in this embodiment, a communication method for multiple line server access is provided, which includes the following steps:
s110: periodically inquiring the service IP network segment from the background server 130 based on the running timing service; the background server 130 performs real-time network segment aggregation on the service IP network segments in the service IP library 120, and provides a function of concurrently querying the aggregated service IP network segments.
In the application, in order to adapt to some platforms, such as the specificity of a live network platform for audio and video services and the comprehensive consideration of network traffic cost optimization, a public network IP is used for replacing an expensive dedicated line to complete communication between an edge node and a regional center node in the design of a basic network architecture, namely, a hybrid cloud architecture (a private IDC + multi-operator public cloud basic architecture is adopted), and the bandwidth of multiple operator lines is used for replacing an expensive BGP bandwidth.
It is understood that the multi-thread server in the present application refers to an Internet Data Center (IDC) that accesses different multiple network access provider (ISP) services to a server or a server cluster by special technical means, such as telecommunications, internet access, iron access, internet access, home network, education network, etc., so that the network service access users provided by the internet service access server can access the same ISP or ISP with faster inter-access speed as much as possible.
When a multi-threaded server is used for internal communication, the problem of communication across operators exists, for example, a server A uses a telecom IP to access a Unicom IP of a server B; in addition, under the infrastructure of the hybrid cloud, the number of the IPs is not only large, but also the network segments to which the IPs belong are not continuous, and if each IP generates a corresponding route, the performance of the routing table is significantly reduced, thereby causing the quality of network communication to be poor.
Therefore, the background server 130 is preferentially used in the present application, and the background server 130 can perform real-time network segment aggregation on the service IP in the service IP library 120, and also provides a high concurrency query function, so as to solve the problems of a large number of IPs and a fast change, and improve the stability and the normativity of routing.
It should be noted that, the service IP here refers to an IP address used on the platform internal service server 110, and the service IP library 120 refers to a set of all IP addresses in the platform internal service server.
It is understood that segment aggregation herein refers to a process of aggregating a plurality of classified networks into a single network address with one bit mask, which is beneficial to reduce the size of the routing table and improve the communication quality.
S120: and acquiring the inquired service IP network segment, matching the service IP network segment with the local operator line information of the server 110, and generating different operator routing tables and a routing policy table.
In this step, after the background server 130 aggregates the service IP segments in the service IP library 120 in real time, the server 110 may obtain the aggregated service IP segments according to the concurrent query service provided by the background server 130.
After the aggregated service IP network segment is obtained, the policy routing may be configured through the configuration management service at the server 110, so as to ensure stable communication of the management network.
Specifically, the service IP network segment may be matched with local operator line information to generate different operator routing tables and a routing policy table.
It can be understood that the policy routing is a more flexible packet routing and forwarding mechanism than routing based on the target network; when an interface applies a policy route, all packets received by the interface are checked, data packets which do not conform to any policy of the route graph are forwarded and processed according to a common route, and data packets which conform to a certain policy in the route graph are processed according to an operation defined in the policy.
For example, the policy routing may specify that a packet sent from a certain network can only be forwarded to a certain specific interface, and in this application, the policy routing is applied to the sending end of the server 110, so as to avoid the occurrence of a network blocking phenomenon caused by a firewall and other factors in the entry direction of the server 110 node, and thus, the policy routing can adapt to a complex basic environment.
In addition, the configuration management service in the application can also customize other richer functions, such as gateway detection, quality alarm and the like, and is beneficial to improving the network quality.
S130: and if the data packet is sent, matching the target IP in the data packet with the routing policy table, and routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result.
In this step, after the policy routing is configured through the configuration management service of the server 110 in step S120, if there is a data packet to be sent, the destination address of the data packet may be matched with the routing policy table on the sending end according to the policy routing, and the data packet destined to a specific operator is transmitted in the same operator network or the optimal network through the established operator routing table, so as to achieve the purpose of optimizing the transmission quality of the multi-line network.
For example, the network environment at present is roughly divided into south telecommunication, north network access, the telecommunication IP has slower lines for accessing the network access IP, and the network access IP has slower lines for accessing the telecommunication IP.
In the communication method for accessing the multi-line server, the service IP network segment is periodically inquired from the background server 130 based on the running timing service; the background server 130 performs real-time network segment aggregation on the service IP network segments in the service IP library 120, and provides a concurrent query function for the aggregated service IP network segments; acquiring the inquired service IP network segment, matching the service IP network segment with the local operator line information of the server 110, and generating different operator routing tables and a routing strategy table; and if the data packet is sent, matching the target IP in the data packet with the routing policy table, and routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result.
In the scheme, the background server 130 performs real-time network segment aggregation on the service IP library 120 and provides a high concurrent query function, so that the number of route entries at the server 110 is reduced, the periodic concurrent query of the existing network total server is met, the problems of large number of IP and quick change are solved, and the stability and the normalization of the route are improved; in addition, a data packet matched with the destination IP and the routing policy table is routed to a corresponding operator network through the established operator routing table by using a policy routing mode, so that the phenomenon of network blocking caused by factors such as a firewall and the like can be effectively prevented when the server 110 node is in the entrance direction, and the network transmission efficiency is improved.
In an embodiment, before the step of periodically querying the background server 130 for the service IP segment based on the running timing service in step S110, the method may further include:
s101: the running-based routing health detection component 140 detects service IP aggregation information in the backend server 130, where the routing health detection component 140 is a component for performing routing detection on the service IP in the backend server 130 in real time.
Since the core function of the present application depends on the information of the service IP library 120, there is a problem that the IP and the corresponding operator information are not matched due to various factors, which may also cause a policy routing configuration error on the server 110 side and ultimately affect the multi-line communication quality.
Therefore, in this embodiment, the route in the service IP repository 120 is detected in real time by designing a route health detection component 140 running on the query server side of the service IP repository 120.
Moreover, the routing health detection component 140 can perform routing detection on the service IP network segment after segment aggregation in the backend server 130, so as to prevent operator information corresponding to the service IP after segment aggregation from being inconsistent before segment aggregation.
In one embodiment, the service IP aggregation information in step S101 includes operator information to which the IP belongs and final gateway egress operator information.
S102: and if the operator information to which the IP belongs is inconsistent with the final gateway outlet operator information, performing alarm prompt so as to enable an administrator to correct the information.
In this embodiment, when it is found that the information of the operator to which the IP belongs is inconsistent with the information of the final gateway exit operator, an alarm can be given in time in the form of an error information alarm, so that an error can be found in time and corrected by an administrator when the IP information is not yet queried by the existing network server 110, thereby ensuring stability.
In an embodiment, the step of matching the service IP network segment with the local operator line information of the server 110 in step S120 to generate different operator routing tables and a routing policy table may include:
s121: acquiring local operator line information of the server 110, and matching the service IP network segment with the operator line information to obtain a matched routing table;
s122: the routing table is processed by using an iproute2 tool kit to generate different operator routing tables and a policy table.
In this embodiment, after the service IP network segment matches the local operator routing information, an iproute2 tool kit may be used to generate different operator routing tables and a routing policy table.
It will be appreciated that in Linux, the operations involved in modifying the routing tables of the hosts are typically performed using ip route commands, which are installed by default in the CentOS7, inside the ip route2 package.
Starting with Linux-2.2, the kernel generalizes routes into a number of routing tables, which are numbered, range from 1 to 255, and may also be named for convenience in/etc/iproute 2/rt _ tables. By default, all routes are inserted into the table main (number 254), and the kernel only uses the routing table main when making routing queries.
When using policy routing, multiple routes need to be used, in which case the table identifier has many parameters, and therefore each route needs to be uniquely identified using the form { prefix, tos, reference }.
And when each route is identified, a single route can be obtained to form different operator routing tables, and a routing policy table is obtained according to the operator routing tables so as to match the destination addresses in the data packets.
In one embodiment, the step of matching the destination IP in the data packet with the routing policy table in step S130 may include:
s131: acquiring a network segment corresponding to the target IP;
s132: and matching the corresponding gateway in the routing policy table according to the network segment.
When a data packet needs to be sent, before the data packet is sent, the destination IP address of the header of the data packet can be matched with the routing policy table.
Specifically, the network segment corresponding to the destination IP address of the data packet may be matched with the network segment in the routing policy table, and after matching the network segment corresponding to the destination IP address of the data packet, the corresponding gateway may be determined according to the network segment, so as to send the data packet.
It will be appreciated that a gateway is essentially an IP address of one network to the other. When server a accesses the communication IP of server B using the telecommunication IP, the two networks belong to different network environments, and a gateway is needed to realize the communication between the two networks.
For example, when the host in network a finds that the destination host of the data packet is not in the local network, the host forwards the data packet to its own gateway, and then the data packet is forwarded to the gateway of network b by the gateway, and then the gateway of network b forwards the data packet to a host of network b, so as to realize communication transmission.
In an embodiment, the step of routing the data packet to the destination server in the corresponding operator network through the corresponding operator routing table according to the matching result in step S130 may include:
s133: matching a corresponding operator routing table through the network segment corresponding to the target IP;
s134: and routing the data packet to a target server in a corresponding operator network through the operator routing table according to the gateway.
In this embodiment, different operator routing tables are generated in step S120, and when a data packet needs to be sent, the corresponding operator routing table may be searched according to the network segment corresponding to the destination IP address of the header of the data packet.
After the corresponding operator routing table is obtained, the data packet can be routed to a target server in an operator network corresponding to the gateway through the operator routing table according to the gateway obtained by matching the destination IP with the routing policy table, so that access communication between the multi-thread servers of the cross-operator is completed.
In one embodiment, the service IP in the service IP library 120 is dynamically changed, and the backend server 130 needs to dynamically aggregate the service IP segments in the service IP library 120.
In this embodiment, the service IP library 120 is dynamically changed, and the corresponding route also needs to be quickly validated on the server 110 side, so as to ensure the network quality in real time. Therefore, a dynamic aggregation service IP network segment is needed to realize a compact route generation with a fast update in less than 5 minutes.
In an embodiment, as shown in fig. 3, fig. 3 is a schematic structural diagram of a communication device accessed by a multi-line server according to an embodiment, and in this embodiment, a communication device accessed by a multi-line server is provided, which includes: a timing query module 210, a route generation module 220, and a communication module 230, wherein:
a timing query module 210, configured to periodically query the background server 130 for a service IP network segment based on a running timing service; the background server 130 performs real-time network segment aggregation on the service IP network segments in the service IP library 120, and provides a function of concurrently querying the aggregated service IP network segments.
In the application, in order to adapt to some platforms, such as the specificity of a live network platform for audio and video services and the comprehensive consideration of network traffic cost optimization, a public network IP is used for replacing an expensive dedicated line to complete communication between an edge node and a regional center node in the design of a basic network architecture, namely, a hybrid cloud architecture (a private IDC + multi-operator public cloud basic architecture is adopted), and the bandwidth of multiple operator lines is used for replacing an expensive BGP bandwidth.
It is understood that the multi-thread server in the present application refers to an Internet Data Center (IDC) that accesses different multiple network access provider (ISP) services to a server or a server cluster by special technical means, such as telecommunications, internet access, iron access, internet access, home network, education network, etc., so that the network service access users provided by the internet service access server can access the same ISP or ISP with faster inter-access speed as much as possible.
When a multi-threaded server is used for internal communication, the problem of communication across operators exists, for example, a server A uses a telecom IP to access a Unicom IP of a server B; in addition, under the infrastructure of the hybrid cloud, the number of the IPs is not only large, but also the network segments to which the IPs belong are not continuous, and if each IP generates a corresponding route, the performance of the routing table is significantly reduced, thereby causing the quality of network communication to be poor.
Therefore, the background server 130 is preferentially used in the present application, and the background server 130 can perform real-time network segment aggregation on the service IP in the service IP library 120, and also provides a high concurrency query function, so as to solve the problems of a large number of IPs and a fast change, and improve the stability and the normativity of routing.
It should be noted that, the service IP here refers to an IP address used on a service server inside the platform, and the service IP library 120 refers to a set of all IP addresses in the service server inside the platform.
It is understood that segment aggregation herein refers to a process of aggregating a plurality of classified networks into a single network address with one bit mask, which is beneficial to reduce the size of the routing table and improve the communication quality.
The route generating module 220 is configured to obtain the queried service IP network segment, match the service IP network segment with the local operator line information of the server 110, and generate different operator routing tables and a routing policy table.
In this module, after the background server 130 aggregates the real-time network segments of the service IP segments in the service IP library 120, the server 110 may obtain the aggregated service IP network segments according to the concurrent query service provided by the background server 130.
After the aggregated service IP network segment is obtained, the policy routing may be configured through the configuration management service at the server 110, so as to ensure stable communication of the management network.
Specifically, the service IP network segment may be matched with local operator line information to generate different operator routing tables and a routing policy table.
It can be understood that the policy routing is a more flexible packet routing and forwarding mechanism than routing based on the target network; when an interface applies a policy route, all packets received by the interface are checked, data packets which do not conform to any policy of the route graph are forwarded and processed according to a common route, and data packets which conform to a certain policy in the route graph are processed according to an operation defined in the policy.
For example, the policy routing may specify that a packet sent from a certain network can only be forwarded to a certain specific interface, and in this application, the policy routing is applied to the sending end of the server 110, so as to avoid the occurrence of a network blocking phenomenon caused by a firewall and other factors in the entry direction of the server 110 node, and thus, the policy routing can adapt to a complex basic environment.
In addition, the configuration management service in the application can also customize other richer functions, such as gateway detection, quality alarm and the like, and is beneficial to improving the network quality.
The communication module 230 is configured to, if a data packet is sent, match a destination IP in the data packet with the routing policy table, and route the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result.
In this module, after the policy routing is configured by the configuration management service of the server 110 in the routing generation module 220, if there is a data packet to be sent, the destination address of the data packet may be matched with the routing policy table on the sending end according to the policy routing, and the data packet destined to a specific operator is transmitted in the same operator network or an optimal network through the formulated operator routing table, so as to achieve the purpose of optimizing the transmission quality of the multi-line network.
For example, the network environment at present is roughly divided into south telecommunication, north network access, the telecommunication IP has slower line for accessing the network access IP, and the network access IP has slower access to the telecommunication IP.
The communication device accessed by the multi-line server periodically inquires the service IP network segment from the background server 130 based on the running timing service; the background server 130 performs real-time network segment aggregation on the service IP network segments in the service IP library 120, and provides a concurrent query function for the aggregated service IP network segments; acquiring the inquired service IP network segment, matching the service IP network segment with the local operator line information of the server 110, and generating different operator routing tables and a routing strategy table; and if the data packet is sent, matching the target IP in the data packet with the routing policy table, and routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result.
In the scheme, the background server 130 performs real-time network segment aggregation on the service IP library 120 and provides a high concurrent query function, so that the number of route entries at the server 110 is reduced, the periodic concurrent query of the existing network total server is met, the problems of large number of IP and quick change are solved, and the stability and the normalization of the route are improved; in addition, a data packet matched with the destination IP and the routing policy table is routed to a corresponding operator network through the established operator routing table by using a policy routing mode, so that the phenomenon of network blocking caused by factors such as a firewall and the like can be effectively prevented when the server 110 node is in the entrance direction, and the network transmission efficiency is improved.
For specific limitations of the communication device accessed by the multi-line server, reference may be made to the above limitations of the communication method accessed by the multi-line server, and details thereof are not repeated here. The various modules in the communication device accessed by the multi-wire server described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent of a processor in the terminal device, and can also be stored in a memory in the terminal device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a storage medium is provided having computer readable instructions stored therein which, when executed by one or more processors, cause the one or more processors to perform the steps of a multi-line server accessed communication method as described in any of the above embodiments.
In one embodiment, there is provided a server comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the steps of the multi-wire server accessed communication method as recited in any of the above embodiments.
Fig. 4 is a block diagram of an internal structure of an electronic device, and the electronic device 300 may be provided as a server. Referring to fig. 4, the electronic device 300 includes a processing component 302 that further includes one or more processors and memory resources, represented by memory 301, for storing instructions, such as application programs, that are executable by the processing component 302. The application programs stored in memory 301 may include one or more modules that each correspond to a set of instructions. Further, the processing component 302 is configured to execute instructions to perform the multi-line server accessed communication method of any of the embodiments described above.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (8)
1. A communication method for access by a multiline server, comprising the steps of:
periodically inquiring a service IP network segment from a background server based on the running timing service; the background server-side carries out real-time network segment aggregation on the service IP network segments in the service IP library and provides a concurrent query function for the aggregated service IP network segments;
acquiring a queried service IP network segment, matching the service IP network segment with local operator line information of a server, and generating different operator routing tables and a routing strategy table;
if a data packet is sent, matching a destination IP in the data packet with the routing policy table, and routing the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result, comprising: acquiring a network segment corresponding to the target IP; matching a corresponding gateway in the routing policy table according to the network segment; matching a corresponding operator routing table through the network segment corresponding to the target IP; and routing the data packet to a target server in a corresponding operator network through the operator routing table according to the gateway.
2. The method of claim 1, wherein prior to the step of periodically querying the background server for the service IP network segment based on the running timing service, the method further comprises:
and detecting service IP aggregation information in the background server based on the running route health detection component, wherein the route health detection component is used for carrying out route detection on the service IP in the background server in real time.
3. The method of claim 2, wherein the service IP aggregation information includes information of an operator to which the IP belongs and information of a final gateway egress operator;
and if the operator information to which the IP belongs is inconsistent with the final gateway outlet operator information, performing alarm prompt so as to enable an administrator to correct the information.
4. The communication method of claim 1, wherein the step of matching the service IP network segment with the local operator routing information of the server to generate different operator routing tables and a routing policy table comprises:
acquiring local operator line information of a server, and matching the service IP network segment with the operator line information to obtain a matched routing table;
the routing table is processed by using an iproute2 tool kit to generate different operator routing tables and a policy table.
5. The communication method of claim 1, wherein the service IP in the service IP library is dynamically changed, and the background server needs to dynamically aggregate the service IP segments in the service IP library.
6. A multi-line server accessed communication device, comprising:
the timing query module is used for regularly querying a service IP network segment from a background server based on the running timing service; the background server-side carries out real-time network segment aggregation on the service IP network segments in the service IP library and provides a concurrent query function for the aggregated service IP network segments;
the route generation module is used for acquiring the inquired service IP network segment, matching the service IP network segment with the local operator line information of the server and generating different operator routing tables and a routing strategy table;
a communication module, configured to match a destination IP in a data packet with the routing policy table if the data packet is sent, and route the data packet to a target server in a corresponding operator network through a corresponding operator routing table according to a matching result, including: acquiring a network segment corresponding to the target IP; matching a corresponding gateway in the routing policy table according to the network segment; matching a corresponding operator routing table through the network segment corresponding to the target IP; and routing the data packet to a target server in a corresponding operator network through the operator routing table according to the gateway.
7. A storage medium, characterized by: the storage medium having stored therein computer-readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the multi-line server accessed communication method of any one of claims 1 to 5.
8. A server, comprising:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the steps of the multi-wire server accessed communication method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010270410.3A CN111464446B (en) | 2020-04-08 | 2020-04-08 | Communication method and device for multi-line server access and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010270410.3A CN111464446B (en) | 2020-04-08 | 2020-04-08 | Communication method and device for multi-line server access and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111464446A CN111464446A (en) | 2020-07-28 |
CN111464446B true CN111464446B (en) | 2022-04-12 |
Family
ID=71685231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010270410.3A Active CN111464446B (en) | 2020-04-08 | 2020-04-08 | Communication method and device for multi-line server access and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111464446B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111988221B (en) * | 2020-08-31 | 2022-09-13 | 网易(杭州)网络有限公司 | Data transmission method, data transmission device, storage medium and electronic equipment |
CN111934936B (en) * | 2020-09-10 | 2023-07-18 | 广州虎牙科技有限公司 | Network state detection method and device, electronic equipment and storage medium |
CN112866116B (en) * | 2020-12-31 | 2023-06-20 | 平安科技(深圳)有限公司 | Network access detection method, device, equipment and storage medium |
CN114430375B (en) * | 2021-12-27 | 2024-07-05 | 天翼云科技有限公司 | Scheduling method, device, equipment and medium for multi-line machine room bandwidth |
CN114679483B (en) * | 2022-03-01 | 2023-07-25 | 南京巨鲨显示科技有限公司 | Communication method, system and storage medium for distributed service communication system |
CN114745380B (en) * | 2022-03-29 | 2024-02-06 | 阿里巴巴(中国)有限公司 | Service grid-based cross-private network multi-cluster management method and device |
CN115314469B (en) * | 2022-07-29 | 2023-10-03 | 广州通则康威智能科技有限公司 | Service separation method and device for CPE |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102761451A (en) * | 2012-08-09 | 2012-10-31 | 武汉迈威实达软件有限公司 | Improved single loop redundancy backup implementation based on rapid spanning tree protocol (RSTP) |
CN106850432A (en) * | 2017-01-04 | 2017-06-13 | 杭州迪普科技股份有限公司 | A kind of method and device of message forwarding |
CN108040017A (en) * | 2017-12-22 | 2018-05-15 | 上海斐讯数据通信技术有限公司 | Router load equalization methods, routing device and system based on policybased routing |
CN108574666A (en) * | 2017-03-09 | 2018-09-25 | 贵州白山云科技有限公司 | A kind of data stream scheduling method, device and system |
CN110650093A (en) * | 2019-08-29 | 2020-01-03 | 苏州浪潮智能科技有限公司 | Multi-network-segment access method and system for single operating system |
CN110945855A (en) * | 2017-07-31 | 2020-03-31 | 思科技术公司 | Virtualized network functionality through address space aggregation |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2498517B (en) * | 2012-01-10 | 2019-02-27 | Media Network Services As | Data transport |
CN105281986A (en) * | 2014-05-28 | 2016-01-27 | 中国移动通信集团公司 | Method, device and system for transmitting data stream |
EP3313118A1 (en) * | 2016-10-24 | 2018-04-25 | Thomson Licensing | Method to be implemented at a device configured to be connected to a customer premise equipment of a first type network, corresponding device |
-
2020
- 2020-04-08 CN CN202010270410.3A patent/CN111464446B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102761451A (en) * | 2012-08-09 | 2012-10-31 | 武汉迈威实达软件有限公司 | Improved single loop redundancy backup implementation based on rapid spanning tree protocol (RSTP) |
CN106850432A (en) * | 2017-01-04 | 2017-06-13 | 杭州迪普科技股份有限公司 | A kind of method and device of message forwarding |
CN108574666A (en) * | 2017-03-09 | 2018-09-25 | 贵州白山云科技有限公司 | A kind of data stream scheduling method, device and system |
CN110945855A (en) * | 2017-07-31 | 2020-03-31 | 思科技术公司 | Virtualized network functionality through address space aggregation |
CN108040017A (en) * | 2017-12-22 | 2018-05-15 | 上海斐讯数据通信技术有限公司 | Router load equalization methods, routing device and system based on policybased routing |
CN110650093A (en) * | 2019-08-29 | 2020-01-03 | 苏州浪潮智能科技有限公司 | Multi-network-segment access method and system for single operating system |
Also Published As
Publication number | Publication date |
---|---|
CN111464446A (en) | 2020-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111464446B (en) | Communication method and device for multi-line server access and server | |
US10565001B2 (en) | Distributed virtual network controller | |
US12126530B2 (en) | Data transmission method and apparatus, computer readable medium, and electronic device | |
US9531676B2 (en) | Proxy methods for suppressing broadcast traffic in a network | |
US9485183B2 (en) | System and method for efectuating packet distribution among servers in a network | |
WO2018133454A1 (en) | Method for controlling remote service access path, and relevant apparatus | |
WO2016015582A1 (en) | Packet transmission method, apparatus and system | |
US10652142B2 (en) | SDN-based ARP implementation method and apparatus | |
WO2019042186A1 (en) | Network management method and related device | |
WO2020177246A1 (en) | Nat-based method for load balancing in dpdk environment | |
CN110233834B (en) | Network system, method, device and equipment for intercepting attack message | |
WO2015066840A1 (en) | Device and method for network address conversion | |
EP3668058B1 (en) | Content distribution method and system | |
US11419171B2 (en) | Method for establishing subflow of multipath connection, apparatus, and system | |
MXPA04007647A (en) | Method and apparatus for parameter borrowing for network address translator configuration. | |
US20120102162A1 (en) | Dynamic bandwidth adjustment for multiple service support | |
WO2022221445A1 (en) | Asymmetric addressing for limited domains and internet | |
WO2024222010A1 (en) | Method and apparatus for proxying a response to address request message, electronic device, and storage medium | |
CN112994928B (en) | Virtual machine management method, device and system | |
CN112104566B (en) | Processing method and device for load balancing | |
KR20220046525A (en) | Network load balancer, request message distribution method, program product and system | |
CN116938829A (en) | Data forwarding method and related equipment | |
WO2011026355A1 (en) | Method for a node accessing a home agent, home agent cluster system and service router | |
WO2023056873A1 (en) | Data request method, communication apparatus, and communication system | |
CN113411211B (en) | Master-slave cluster control method, device and system |
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 |