CN108270689B - Method and device for realizing service connection - Google Patents

Method and device for realizing service connection Download PDF

Info

Publication number
CN108270689B
CN108270689B CN201810022663.1A CN201810022663A CN108270689B CN 108270689 B CN108270689 B CN 108270689B CN 201810022663 A CN201810022663 A CN 201810022663A CN 108270689 B CN108270689 B CN 108270689B
Authority
CN
China
Prior art keywords
network gateway
network
service
data packet
idle
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
CN201810022663.1A
Other languages
Chinese (zh)
Other versions
CN108270689A (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.)
Information Engineering University of PLA Strategic Support Force
Original Assignee
Information Engineering University of PLA Strategic Support Force
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 Information Engineering University of PLA Strategic Support Force filed Critical Information Engineering University of PLA Strategic Support Force
Priority to CN201810022663.1A priority Critical patent/CN108270689B/en
Publication of CN108270689A publication Critical patent/CN108270689A/en
Application granted granted Critical
Publication of CN108270689B publication Critical patent/CN108270689B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Landscapes

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

Abstract

The invention provides a method for realizing service connection, which is applied to a network gateway, wherein wide area network ports of the network gateway are respectively connected with different service providers; the method comprises the following steps: when detecting that the network delay of the WAN port connected with the first service provider is larger than a set threshold value, accessing the resource management server, and confirming that the WAN port connected with the first service provider is in an idle network gateway in an idle state; sending bandwidth lease request information to an idle network gateway; and when receiving the bandwidth lease confirmation information sent by the idle network gateway, sending the service request data packet to be sent to the idle network gateway through a WAN port connected with the second service provider, so that the idle network gateway sends the service request data packet to be sent to a target server through the WAN port connected with the first service provider. The technical scheme realizes the regional load balance of the network gateway, reduces the service load of the congested network gateway and ensures the service requirement of the user.

Description

Method and device for realizing service connection
Technical Field
The present invention relates to the field of computer network technologies, and in particular, to a method and an apparatus for implementing service connection.
Background
In a home Network, a router is generally used as a home Network gateway, and is accessed to an Internet Service Provider (ISP) Network through a Wide Area Network (WAN) port of the router to implement Service connection between a user terminal and an external Network. When a user initiates a plurality of parallel services, the limitation of the outlet bandwidth can cause congestion of a network gateway, namely a router WAN port, and influence on user service connection.
In order to improve the service access capability of the network gateway, a router with double WAN ports is proposed in the industry, and two WAN ports of the router are respectively accessed to different ISP networks. When a user initiates service connection through the router with the double WAN ports, the user service is shared by internetwork links of the two WAN ports to be connected with an external network, so that the service load of a single WAN port is reduced, and WAN port congestion is avoided.
For a single WAN port of a router, although the amount of traffic born by a user is reduced when the amount of traffic initiated by the user is not changed, due to ISP infrastructure and other reasons, when the amount of traffic initiated by the user is large, the bandwidth of an inter-network link may still not meet the service requirement of the user, and at this time, a situation that the service response time is long or the service cannot be connected occurs.
Disclosure of Invention
Based on the defects and shortcomings of the prior art, the invention provides a method and a device for realizing service connection, which can realize regional load balance of a network gateway, reduce the service load of a congested network gateway while maximally utilizing the bandwidth resources of the network gateway, and ensure the service requirements of users.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for realizing service connection is applied to a network gateway, and wide area network ports of the network gateway are respectively connected with different service providers; the method comprises the following steps:
when detecting that the network time delay of the network gateway connected with the wide area network port of the first service provider is larger than a set threshold value, accessing a resource management server, and confirming an idle network gateway connected with the wide area network port of the first service provider in an idle state according to network quality information of each network gateway stored in the resource management server;
sending bandwidth lease request information to the idle network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of the first service provider and a target server through the idle network gateway;
and when receiving the bandwidth lease confirmation information sent by the idle network gateway, sending a service request data packet to be sent to the idle network gateway through a wide area network port connected with a second service provider, so that the idle network gateway sends the service request data packet to be sent to the target server through the wide area network port connected with the first service provider.
Preferably, the sending the service request data packet to be sent to the idle network gateway through a wan port connected to a second service provider includes:
acquiring network parameter information of the idle network gateway;
confirming an octave mapping relation between an external network and the network gateway according to the network parameter information of the idle network gateway and the network parameter information of the equipment initiating the service request;
configuring routing parameter information of a service request data packet to be sent according to the octave mapping relation;
and sending the service request data packet to be sent to the idle network gateway through a wide area network port connected with a second service provider according to the routing parameter information.
Preferably, the method further comprises:
receiving a service response data packet sent by the idle network gateway through a wide area network port connected with the second service provider; the service response data packet is received by the network port of the idle network gateway connected with the first service provider, and the target server responds to the service request of the network gateway and feeds back the service response data packet.
A method for realizing service connection is applied to a network gateway, the network gateway monitors the network quality of each wide area network port respectively connected with different service providers in real time and sends the monitored network quality information to a resource management server; the method comprises the following steps:
when bandwidth lease request information sent by a congested network gateway is received, determining whether the network bandwidth can be leased to the congested network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of a first service provider and a target server through the network gateway;
when the fact that the network bandwidth can be leased to the congested network gateway is confirmed, bandwidth lease confirmation information is sent to the congested network gateway;
and receiving a service request data packet sent by the congestion network gateway through a wide area network port connected with a second service provider, and sending the service request data packet to the target server through a wide area network port connected with the first service provider.
Preferably, the sending the service request data packet to the target server through a wan port connected to the first service provider includes:
sending the service request data packet to the target server through a wide area network port connected with the first service provider according to the routing parameter information of the service request data packet; the routing parameter information is configured for the service request data packet by the congested network gateway and includes the routing parameter information of the service request data packet.
Preferably, the method further comprises:
and receiving a service response data packet which is sent by the target server and corresponds to the service request data packet, and sending the service response data packet to the congestion network gateway through a wide area network port connected with the second service provider.
A device for realizing service connection is applied to a network gateway, and wide area network ports of the network gateway are respectively connected with different service providers; the device includes:
the detection processing unit is used for accessing the resource management server when detecting that the network time delay of the network gateway connected with the wide area network port of the first service provider is greater than a set threshold value, and confirming an idle network gateway connected with the wide area network port of the first service provider in an idle state according to the network quality information of each network gateway stored in the resource management server;
a request sending unit, configured to send bandwidth lease request information to the idle network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of the first service provider and a target server through the idle network gateway;
and the data packet sending unit is used for sending the service request data packet to be sent to the idle network gateway through a wide area network port connected with a second service provider when receiving the bandwidth lease confirmation information sent by the idle network gateway, so that the idle network gateway sends the service request data packet to be sent to the target server through the wide area network port connected with the first service provider.
Preferably, when the data packet sending unit sends the service request data packet to be sent to the idle network gateway through a wan port connected to a second service provider, the data packet sending unit is specifically configured to:
acquiring network parameter information of the idle network gateway; confirming an octave mapping relation between an external network and the network gateway according to the network parameter information of the idle network gateway and the network parameter information of the equipment initiating the service request; configuring routing parameter information of a service request data packet to be sent according to the octave mapping relation; and sending the service request data packet to be sent to the idle network gateway through a wide area network port connected with a second service provider according to the routing parameter information.
Preferably, the apparatus further comprises:
a data packet receiving unit, configured to receive a service response data packet sent by the idle network gateway through a wan port connected to the second service provider; the service response data packet is received by the network port of the idle network gateway connected with the first service provider, and the target server responds to the service request of the network gateway and feeds back the service response data packet.
An apparatus for implementing service connection, applied to a network gateway, the apparatus comprising:
the monitoring processing unit is used for monitoring the network quality of each wide area network port respectively connected with different service providers in real time and sending the monitored network quality information to the resource management server;
the device comprises a request processing unit, a bandwidth lease unit and a bandwidth lease unit, wherein the request processing unit is used for confirming whether the network bandwidth can be leased to the congested network gateway or not when bandwidth lease request information sent by the congested network gateway is received; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of a first service provider and a target server through the network gateway;
the request confirmation unit is used for sending bandwidth lease confirmation information to the congested network gateway when confirming that the network bandwidth can be leased to the congested network gateway;
and the first forwarding unit is used for receiving a service request data packet sent by the congestion network gateway through a wide area network port connected with a second service provider, and sending the service request data packet to the target server through the wide area network port connected with the first service provider.
Preferably, when the packet forwarding unit sends the service request packet to the target server through a wan port connected to the first service provider, the packet forwarding unit is specifically configured to:
sending the service request data packet to the target server through a wide area network port connected with the first service provider according to the routing parameter information of the service request data packet; the routing parameter information is configured for the service request data packet by the congested network gateway and includes the routing parameter information of the service request data packet.
Preferably, the apparatus further comprises:
and the second forwarding unit is used for receiving a service response data packet which is sent by the target server and corresponds to the service request data packet, and sending the service response data packet to the congestion network gateway through a wide area network port connected with the second service provider.
According to the technical scheme, when the individual wide area network ports in the network gateway with the multiple wide area network ports are congested, the service request data packet is sent to the target server through the rented bandwidth in a roundabout mode by renting the bandwidth to the idle network gateway, and therefore service connection is achieved. The technical scheme realizes the regional load balance of the network gateway, reduces the service load of the congested network gateway while maximally utilizing the bandwidth resources of the network gateway, and ensures the service requirements of users.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for implementing service connection according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another method for implementing service connection according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a further method for implementing service connection according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for implementing service connection according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another apparatus for implementing service connection according to an embodiment of the present invention;
fig. 6 is a schematic process diagram for implementing detour forwarding of a service request packet according to an embodiment of the present invention;
fig. 7 is a schematic process diagram for implementing detour forwarding of a service response packet according to an embodiment of the present invention.
Detailed Description
The technical scheme of the embodiment of the invention is suitable for the application scene of realizing the service connection between the network gateway with a plurality of wide area network ports and the server. By adopting the technical scheme of the embodiment of the invention, the network gateway with a plurality of wide area network ports can smoothly realize the service connection with the server when the wide area network ports are congested.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a method for realizing service connection, which is applied to a network gateway, in particular to a network gateway with congestion of a wide area network port, and as shown in figure 1, the method comprises the following steps:
when detecting that the network time delay of the network gateway connected with the wide area network port of the first service provider is larger than a set threshold value, executing the step S101, accessing a resource management server, and confirming an idle network gateway connected with the wide area network port of the first service provider in an idle state according to the network quality information of each network gateway stored in the resource management server;
specifically, the network gateway described above refers to a network gateway having a plurality of wide area network ports, that is, a plurality of WAN ports, and for example, a router having 2 or more WAN ports. And each WAN port of the network gateway is respectively accessed to different Internet service providers ISP.
The network quality information of the network gateway includes the network quality of each WAN port of the network gateway.
The congested network gateway can directly analyze the network quality information of each network gateway stored by the resource management server from the resource management server by accessing the resource management server; the data list for storing the network quality information of each network gateway can be obtained by accessing the resource management server and requesting from the resource management server, and the network quality information of each network gateway can be obtained by locally analyzing the requested data list.
S102, sending bandwidth lease request information to the idle network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of the first service provider and a target server through the idle network gateway;
specifically, the bandwidth lease request information is used to request that a service connection is established between the wan port of the first service provider and the target server through the idle network gateway, that is, a service connection is established between the network bandwidth of the wan port of the first service provider and the target server through the idle network gateway. The establishing of the service connection specifically includes sending the service request data packet to the target server.
The bandwidth lease request message also includes the size of the requested lease bandwidth. And the congested network gateway calculates the size of the bandwidth to be leased according to the size of a service request data packet which is required to be sent through the congested WAN port, and then adds the information of the size of the bandwidth to be leased into the bandwidth lease request information and sends the information to the idle network gateway.
When the congestion network gateway is connected with the wide area network port of the first service provider and congestion occurs, the congestion network gateway sends request information to the confirmed idle network gateway, and requests to establish service connection with the target server through the idle network gateway connecting the wide area network port of the first service provider.
When receiving the bandwidth lease acknowledgement information sent by the idle network gateway, executing step S103, sending a service request data packet to be sent to the idle network gateway through a wan port connected to a second service provider, so that the idle network gateway sends the service request data packet to be sent to the target server through the wan port connected to the first service provider.
Specifically, because the congested network gateway is connected to the WAN port of the first service provider, congestion occurs, in the congested network gateway, the WAN port connected to the second service provider sends the service request data packet, which should be originally sent through the WAN port connected to the first service provider, to the idle network gateway, and then the idle network gateway is connected to the WAN port of the first service provider, and sends the service request data packet to the target server.
The above process realizes the roundabout sending of the service request data packet to the target server by the idle network gateway, thereby realizing the service connection. The technical scheme realizes the regional load balance of the network gateway, reduces the service load of the congested network gateway while maximally utilizing the bandwidth resources of the network gateway, and ensures the service requirements of users.
The technical idea of the technical scheme of the embodiment of the invention is that when a certain WAN port in a network gateway with a plurality of WAN ports is congested, the service request data packet is sent to an idle network gateway through other WAN ports of the network gateway, and the idle network gateway forwards the service request data packet to a target server, so that service connection is realized through a roundabout link.
The embodiment of the present invention also discloses a method for implementing service connection applied to an idle network gateway, which corresponds to the method for implementing service connection shown in fig. 1, and as shown in fig. 2, the method for implementing service connection applied to a network gateway, specifically an idle network gateway, disclosed in the embodiment of the present invention, includes:
when bandwidth lease request information sent by a congested network gateway is received, executing step S201, and determining whether a network bandwidth can be leased to the congested network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of a first service provider and a target server through the network gateway;
specifically, when the idle network gateway receives bandwidth lease request information sent by the congested network gateway, whether a WAN port requested by the congested network gateway is idle is checked and confirmed, and whether the idle bandwidth of the requested WAN port is sufficient or not is confirmed according to request bandwidth size information carried in the bandwidth lease request information, that is, whether the idle bandwidth of the requested WAN port is larger than the bandwidth requested by the congested network gateway or not is confirmed. If the WAN port requested by the congested network gateway is idle and the idle bandwidth is larger than the bandwidth requested by the congested network gateway, determining that the network bandwidth can be leased to the congested network gateway; otherwise, confirming that the network bandwidth cannot be leased to the congested network gateway.
When it is confirmed that the network bandwidth can be leased to the congested network gateway, executing step S202, and sending bandwidth lease confirmation information to the congested network gateway;
specifically, when the idle network gateway is checked and confirmed to be capable of leasing the network bandwidth connected with the WAN port of the first service provider to the congested network gateway, the idle network gateway sends broadband leasing confirmation information to the congested network gateway, that is, sends information to the congested network gateway to inform that the network bandwidth can be leased.
S203, receiving a service request data packet sent by the congestion network gateway through a wide area network port connected with a second service provider, and sending the service request data packet to the target server through the wide area network port connected with the first service provider.
Specifically, after receiving a service request data packet sent by the congested network gateway through the wan port connected to the second service provider, the idle network gateway sends the service request data packet to the target server through the wan port connected to the first service provider according to the routing parameter information configured for the service request data packet by the congested network gateway.
According to the technical scheme of the embodiment of the invention, when the individual WAN port in the multi-WAN-port network gateway is congested, the service request data packet is sent to the target server through the rented bandwidth in a roundabout manner by renting the bandwidth to the idle network gateway, so that service connection is realized. The technical scheme realizes the regional load balance of the network gateway, reduces the service load of the congested network gateway while maximally utilizing the bandwidth resources of the network gateway, and ensures the service requirements of users.
The method for realizing service connection provided by the embodiment of the invention realizes roundabout service connection by means of the idle bandwidth of the idle network gateway when the individual wide area network ports of the network gateway with a plurality of wide area network ports are congested. The service connection implementation process is a process of implementing service connection by interaction of a congested network gateway and an idle network gateway. The method for implementing service connection disclosed in the embodiment of the present invention is described in detail below with reference to the method for implementing service connection shown in fig. 1 and fig. 2.
It can be understood that the technical solution of the embodiment of the present invention is implemented by two network gateways in an interactive manner, and for convenience of description, the embodiment of the present invention is distinguished by a congested network gateway and an idle network gateway. The nature of the idle network gateway and the congested network gateway is also a network gateway, and the roles of the network gateway as the idle network gateway and the congested network gateway can be changed according to the change of the traffic carried by the network gateway. Namely, the network gateway can be used as a congested network gateway, and realizes service connection by using other idle bandwidth resources of the network gateway as an idle network gateway, and can also be used as an idle network gateway to assist other network gateways as congested network gateways to realize service connection.
The network gateway according to the embodiment of the present invention is a network gateway having a plurality of wide area network ports, i.e., a plurality of WAN ports, and is, for example, a router having 2 or more WAN ports. And each WAN port of the network gateway is respectively accessed to different Internet service providers ISP.
The embodiment of the invention sets that the network gateway automatically monitors the network quality of each WAN port in real time, and sends the monitored network quality information to the resource management server, and the information is stored by the resource management server. Any network gateway can inquire the network quality of any WAN port of any network gateway by accessing the resource management server.
Referring to fig. 3, a method for implementing service connection according to an embodiment of the present invention includes:
when the congested network gateway detects that the network delay of the wide area network port connected with the first service provider is greater than a set threshold, executing step S301, accessing the resource management server, and determining an idle network gateway in an idle state of the wide area network connected with the first service provider according to the network quality information of each network gateway stored in the resource management server;
specifically, the congested network gateway refers to a network gateway that detects that the network delay of its WAN port is greater than a set threshold, that is, a network gateway that is congested. The embodiment of the present invention introduces the method for implementing service connection according to the embodiment of the present invention, by taking an example that a network gateway detects that a WAN port connected to a first service provider is congested, where the network gateway where a network delay of the WAN port connected to the first service provider is greater than a set threshold becomes a congested network gateway.
The network quality information of the network gateway includes the network quality of each WAN port of the network gateway.
The congested network gateway can directly analyze the network quality information of each network gateway stored by the resource management server from the resource management server by accessing the resource management server; the data list for storing the network quality information of each network gateway can be obtained by accessing the resource management server and requesting from the resource management server, and the network quality information of each network gateway can be obtained by locally analyzing the requested data list.
After confirming the network quality information of each network gateway, the embodiment of the present invention sets that, in the congested network gateway, according to the network quality information of each network gateway, a network gateway, that is, an idle network gateway, at which a WAN port connected to the first service provider is in an idle state, is further confirmed.
Traffic connections through the WAN connecting the first service provider may be affected due to congestion in the communication link between the congested network gateway and the first service provider. By adopting the technical scheme provided by the embodiment of the invention, the service connection is realized by the bandwidth of the WAN port connected with the first service provider by other network gateways, so that the congested network gateway should firstly confirm the idle network gateway connected with the WAN port of the first service provider in other network gateways.
For example, assume that network gateway X has two WAN ports: WAN port A and WAN port B, WAN port A and WAN port B connect operator A and operator B respectively. When the WAN port B of the network gateway X is congested and service connection cannot be established through a communication link between the network gateway X and the operator B, the network gateway X confirms the idle network gateway Y connected with the WAN port B of the operator B according to the technical scheme so as to realize service connection by means of the communication link between the WAN port B of the network gateway Y and the operator B.
S302, the congested network gateway sends bandwidth lease request information to an idle network gateway;
specifically, the bandwidth lease request information is used to request that a service connection is established between the wan port of the first service provider and the target server through the idle network gateway, that is, a service connection is established between the network bandwidth of the wan port of the first service provider and the target server through the idle network gateway. The establishing of the service connection specifically includes sending the service request data packet to the target server.
The bandwidth lease request message also includes the size of the requested lease bandwidth. And the congested network gateway calculates the size of the bandwidth to be leased according to the size of a service request data packet which is required to be sent through the congested WAN port, and then adds the information of the size of the bandwidth to be leased into the bandwidth lease request information and sends the information to the idle network gateway.
When the congestion network gateway is connected with the wide area network port of the first service provider and congestion occurs, the congestion network gateway sends request information to the confirmed idle network gateway, and requests to establish service connection with the target server through the idle network gateway connecting the wide area network port of the first service provider.
When the idle network gateway receives the bandwidth lease request information sent by the congested network gateway, step S303 is executed to determine whether the network bandwidth can be leased to the congested network gateway;
specifically, when the idle network gateway receives bandwidth lease request information sent by the congested network gateway, whether a WAN port requested by the congested network gateway is idle is checked and confirmed, and whether the idle bandwidth of the requested WAN port is sufficient or not is confirmed according to request bandwidth size information carried in the bandwidth lease request information, that is, whether the idle bandwidth of the requested WAN port is larger than the bandwidth requested by the congested network gateway or not is confirmed. If the WAN port requested by the congested network gateway is idle and the idle bandwidth is larger than the bandwidth requested by the congested network gateway, determining that the network bandwidth can be leased to the congested network gateway; otherwise, confirming that the network bandwidth cannot be leased to the congested network gateway.
When the idle network gateway confirms that the network bandwidth can be leased to the congested network gateway, the idle network gateway executes the step S304 and sends bandwidth lease confirmation information to the congested network gateway;
specifically, when the idle network gateway is checked and confirmed to be capable of leasing the network bandwidth connected with the WAN port of the first service provider to the congested network gateway, the idle network gateway sends broadband leasing confirmation information to the congested network gateway, that is, sends information to the congested network gateway to inform that the network bandwidth can be leased.
When the congested network gateway receives the bandwidth lease confirmation information sent by the idle network gateway, executing step S305, obtaining the network parameter information of the idle network gateway;
specifically, the network parameter information of the idle network gateway specifically refers to information such as an IP address and a port number of the idle network gateway. When the congestion network gateway is connected with the WAN port of the first service provider, the network bandwidth is leased to the WAN port of the idle network gateway, which is connected with the first service provider, so that in order to enable the congestion network gateway to lease the WAN port of the idle network gateway, which is connected with the first service provider, to establish service connection, the service request data packet can be explicitly sent to the WAN port of the idle network gateway, which is connected with the first service provider, the IP address of the idle network gateway, which is acquired by the congestion network gateway, specifically refers to the public network IP address allocated by the first service provider for the WAN port of the idle network gateway, which is connected with the first service provider.
S306, confirming an octave mapping relation between an external network and the congestion network gateway by the congestion network gateway according to the network parameter information of the idle network gateway and the network parameter information of the equipment initiating the service request;
specifically, the network parameter information of the device initiating the service request specifically refers to information such as an IP address and a port number of the device initiating the service request in the congested network gateway intranet.
The above eight-tuple mapping relationship between the external network and the congested network gateway specifically includes the information shown in table 1:
TABLE 1
Figure BDA0001544033430000121
Wherein, the old source IP address is an IP address (private IP address) of a device for initiating a service request in the congested network gateway intranet; the old source TCP/UDP port is the local TCP/UDP port number of the equipment; the new source IP address is a public network IP address allocated to the congestion network gateway by the first service provider, namely the IP address of a WAN port of the first service provider connected with the congestion network gateway; the new source TCP/UDP port number is an idle port number generated locally by the congestion network gateway; the old destination IP address is the IP address of the website server, namely the IP address of the target server of the service request; the new destination IP address is a public network IP address assigned to the idle network gateway by the first service provider, that is, an IP address of a WAN port of the first service provider connected to the idle network gateway.
S307, configuring routing parameter information of a service request data packet to be sent by the congestion network gateway according to the octave mapping relation between the external network and the congestion network gateway;
specifically, according to the eight-tuple mapping relationship between the congested network gateway and the external network, the congested network gateway changes the old source IP address, the old destination IP address, and the old source port number of a service request packet (i.e., a service request packet to be sent to a target server for establishing a service) sent by a device for initiating a service request into a new source IP address, a new destination IP address, and a new port number, so as to configure routing parameter information for the service request packet.
S308, the congestion network gateway sends the service request data packet to an idle network gateway through a wide area network port connected with a second service provider according to the routing parameter information of the service request data packet to be sent;
specifically, after configuring routing parameter information for a service request data packet to be sent, the congestion network gateway sends the service request data packet to be sent to an idle network gateway through a WAN port connected to a second service provider, that is, through another WAN port different from the WAN port connected to the first service provider. Since the new destination IP address of the service request packet is a public network IP address allocated to the idle network gateway by the first service provider, the sending of the service request packet to the idle network gateway is specifically a WAN port connected to the first service provider and sent to the idle network gateway.
S309, the idle network gateway receives a service request data packet sent by the congestion network gateway through a wide area network port connected with a second service provider, and sends the received service request data packet to a target server through a wide area network port connected with a first service provider;
specifically, after receiving a service request data packet sent by the congested network gateway through the wan port connected to the second service provider, the idle network gateway sends the service request data packet to the target server through the wan port connected to the first service provider according to the routing parameter information configured for the service request data packet by the congested network gateway.
The specific process that the idle network gateway sends the service request data packet to the target server through the wide area network port connected with the first service provider according to the routing parameter information of the received service request data packet is as follows:
the idle network gateway establishes a ten-tuple mapping relationship between itself and the external network according to the routing parameter information of the service request data packet, where the ten-tuple mapping relationship is specifically shown in table 2:
TABLE 2
Figure BDA0001544033430000131
Wherein, the old source IP address/source port number is extracted from the routing parameter information of the service request data packet; the new source IP address is a public network IP address which is allocated to the idle network gateway by the first service provider, namely the public network IP address which is allocated to the idle network gateway by the first service provider and is connected with a WAN port of the first service provider; the old destination IP address is a public network IP address which is allocated to the idle network gateway by the second service provider, namely the public network IP address which is allocated to the idle network gateway by the second service provider and is connected with the WAN port of the second service provider; the new destination IP address is the IP address of the target server, and the new destination IP address is the public network IP address distributed to the gateway X by the operator A; the meaning of ingress port a/egress port B is that the service request packet is forwarded from the idle network gateway to the WAN port of the second service provider and is forwarded from the WAN port of the first service provider (assuming that the WAN port connected to the first service provider is port B and the WAN port connected to the second service provider is port a).
And the idle network gateway sends the service request data packet to the target server through a communication link between the idle network gateway and the first service provider according to the ten-tuple mapping relation, so that the service request data packet is sent to the target server from the congested network gateway in a roundabout manner, namely service connection is realized.
The processing procedure of the above steps S305 to S309 can be seen in fig. 6. The a-port between the congested gateway and ISP1 is congested, and the service request packet that the congested gateway originally wants to transmit to ISP1 through the a-port cannot be transmitted. According to the technical scheme of the embodiment of the invention, the congestion gateway leases the bandwidth to the idle gateway, and hopefully, the service request data packet is sent to the ISP1 through the idle gateway. When the idle gateway confirms that the bandwidth can be leased to the congestion gateway, the congestion gateway sends the service request data packet to the idle gateway through the B network port between the congestion gateway and the ISP2, and the idle gateway sends the service request data packet to the ISP1 through the A network port, so that the routing service request data packet from the congestion gateway to the ISP1 is sent.
Generally, when a network device sends a service request data packet to a target server and establishes a service connection, the target server returns a service response data packet. Because the service request data packet is sent to the target server by the congestion network gateway through the idle network gateway bandwidth roundabout, the embodiment of the invention sets that the target server can directly send the service response data packet to the congestion network gateway under the condition that the downlink between the target server and the congestion network gateway is ensured to be smooth, and the condition is a conventional service response process, and the embodiment of the invention is not specifically described. And if the down link between the target server and the congested network gateway is congested, the target server returns a service response data packet through the up link of the service request data packet, namely the service response data packet is sent to the congested network gateway through the idle network gateway in a roundabout manner. This is a service response processing method corresponding to the service implementation method proposed in the embodiment of the present invention, and the following describes the process specifically.
And when the link between the target server and the congested network gateway is congested, the target server sends the service response data packet to the idle network gateway which forwards the service request data packet.
Correspondingly, the idle network gateway executes the step S310, receives the service response data packet corresponding to the service request data packet and sent by the target server, and sends the service response data packet to the congested network gateway through the wan port connected to the second service provider;
specifically, after receiving the service response data packet sent by the target server, the idle network gateway establishes a ten-tuple mapping relationship as shown in table 3:
TABLE 3
Figure BDA0001544033430000151
Wherein, the old source IP address is the IP address of the target server; the old destination IP address is a public network IP address allocated by the second service provider for the idle network gateway, namely the public network IP address allocated by the second service provider for the WAN port of the idle network gateway connected with the second service provider; the old source TCP/UDP port is the TCP/UDP port of the target server; the new source IP address is a public network IP address distributed by the second service provider for the idle network gateway, namely the public network IP address distributed by the second service provider for the WAN port of the idle network gateway connected with the second service provider; the new destination IP address is a public network IP address allocated to the congestion network gateway by the first service provider, namely the public network IP address allocated to the congestion network gateway by the first service provider for connecting the WAN port of the first service provider; the new source TCP/UDP port is an idle port number generated locally by the congestion network gateway; ingress port B/egress port a means that the service response packet is forwarded from the idle network gateway to the WAN port of the first service provider and forwarded from the WAN port of the second service provider (assuming that the WAN port connected to the first service provider is port B and the WAN port connected to the second service provider is port a).
And the idle network gateway sends the service response data packet to the congestion network gateway through a WAN port connected with the second service provider according to the ten-tuple mapping relation.
And S311, the congestion network gateway receives a service response data packet sent by the idle network gateway through the wide area network port connected with the second service provider.
Specifically, after receiving a service response data packet sent by an idle network gateway, the congested network gateway establishes an octave mapping relationship as shown in table 4:
TABLE 4
Figure BDA0001544033430000152
The old source IP address is a public network IP address allocated to the idle network gateway by the second service provider, namely an IP address allocated to a WAN port of the idle network gateway connected with the second service provider; the old destination IP address is a public network IP address allocated to the congestion network gateway by the first service provider, namely an IP address allocated to a WAN port of the first service provider connected with the congestion network gateway; the old source port number is an idle port number generated locally by the idle network gateway; the new source IP address is a public network IP address allocated to the congestion network gateway by the first service provider, namely an IP address allocated to a WAN port of the first service provider connected with the congestion network gateway; the new destination IP address is the IP address (private IP address) of the equipment which initiates the service request in the congested network gateway intranet; the new source TCP/UDP port is an idle TCP/UDP port number generated locally by the congestion network gateway.
And the congestion network gateway sends the service response data packet to the equipment initiating the service request from the wide area network port connected with the first service provider according to the eight-tuple mapping relation.
The processing procedure of the above steps S310 to S311 can be seen in fig. 7. If the a-port between the congested gateway and ISP1 is congested, the servers connected to ISP1 cannot send the traffic response packets to the congested gateway through the a-network between ISP1 and the congested gateway. According to the bandwidth leasing method provided by the embodiment of the invention, the server feeds back the service response data packet to the congestion gateway along the uploading path of the service request data packet. As shown in fig. 7, the server first sends the service response packet to the idle gateway through the a-network port of ISP1 and the idle gateway, and then the idle gateway sends the service response packet to the congestion gateway through the B-network port connected to ISP2, thereby realizing the detour service response packet transmission from ISP1 to the congestion gateway.
As can be seen from the above description, according to the technical scheme of the embodiment of the present invention, when congestion occurs at an individual WAN port in a multi-WAN-port network gateway, a service request packet is sent to a target server by a leased bandwidth detour through an idle network gateway by leasing a bandwidth to the idle network gateway, thereby implementing service connection. The technical scheme realizes the regional load balance of the network gateway, reduces the service load of the congested network gateway while maximally utilizing the bandwidth resources of the network gateway, and ensures the service requirements of users.
In order to more vividly describe the method for implementing service connection disclosed in the embodiments of the present invention, the following describes the implementation process of the above technical solution with reference to examples.
The network gateway X is assumed to be provided with a WAN port A and a WAN port B, and the WAN port A and the WAN port B are respectively connected with an operator A and an operator B; the network gateway Y is provided with a WAN port A and a WAN port B, and the WAN port A and the WAN port B are respectively connected with an operator A and an operator B.
When WAN port B of network gateway X is congested and WAN port a is good, the network gateway establishes an octave mapping as shown in table 1. The old source IP address is an IP address (private IP address) of equipment for initiating a service request by an intranet, the old source TCP/UDP port is a local TCP/UDP port number of the equipment, the new source IP address is a public network IP address allocated to a gateway X by an operator B, the new source TCP/UDP port number is an idle port number generated locally by X, the old destination IP address is a website server IP address, and the new destination IP address is a public network IP address allocated to a gateway Y by the operator B.
And the network gateway X changes the old source IP address, the old destination IP address and the old source port number of the service request data packet into a new source IP address, a new destination IP address and a new port number according to the eight-tuple mapping relation, and sends the service request data packet to the network gateway Y through the WAN port A.
After receiving the service request data packet, the network gateway Y establishes a ten-tuple mapping relationship as shown in table 2. The old source IP address and the old source port number are extracted by the service request data packet, the new source IP address is a public network IP address distributed to the gateway Y by the operator B, the old destination IP address is a public network IP address distributed to the gateway Y by the operator A, and the new destination IP address is an IP address of the target server. At this time, the network gateway Y sends the service request packet to the target server through the B port.
When the network gateway Y forwards the service response packet sent by the target server to the network gateway X, the new destination IP address is a public network IP address allocated to the network gateway X by the operator B, and the access port is an access port B and an access port a, that is, the corresponding service packet is received through the WAN port B, and the service response packet is sent through the WAN port a.
If the network time delays of the double WAN ports of the network gateway reach the threshold within a period of time, namely the network gateways are congested, the network gateway with good network quality of the double WAN ports or the two network gateways corresponding to the network gateways with good network quality of the WAN ports needs to be searched by accessing the resource management server, a bandwidth lease request message is sent, the idle network gateway replies the bandwidth lease request of the congested network gateway, and the idle network gateway serves as a forwarding route after negotiation is successful.
Assuming that the WAN ports A, B of network gateway X are congested, the dual WAN ports each send an octave mapping to request a bandwidth lease.
And (3) port A forwarding data processing:
the octave mapping relationship between the extranet and the WAN port A is as follows:
Figure BDA0001544033430000171
the old source IP address is an IP address (private IP address) of a device initiating a Task of Task1 by an intranet, the new source IP address is a public network IP address allocated to a gateway X by an operator A, the old source TCP/UDP port is a local TCP/UDP port number of the device, the new source TCP/UDP port number is an idle port number generated locally by X, the old destination IP address is a website server IP address, and the new destination IP address is a public network IP address allocated to a gateway Y by the operator A.
The home gateway X changes the old source IP, the old destination IP address and the old source port number of the Task1 access request Packet1 into a new source IP address, a new destination IP address and a new port number according to the octave mapping relation, and forwards the Packet to the gateway Y through the A line
If the home gateway Y agrees with the bandwidth lease request of the X, sending a bandwidth lease configuration confirmation message, and establishing a ten-tuple mapping relationship, namely:
Figure BDA0001544033430000181
the old source IP address/source port number is extracted by Packet1, the new source IP address is a public network IP address allocated to gateway Y by operator a, the old destination IP address is a public network IP address allocated to gateway Y by operator B, and the ingress port B/egress port a means that packets are switched in from a port of gateway Y connected to operator B and switched out from a port connected to operator a. The new destination IP address is the public network IP address that operator a assigns to gateway X when returning the data packet.
The home gateway Y changes the old source IP and the old source port number of the Task1 access request Packet1 to the new source IP address and the new port number, and accesses the Packet to the web server through the B line.
B port forwarding data processing:
the octave mapping relationship between the outer net B is as follows:
Figure BDA0001544033430000182
the old source IP address is an IP address (private IP address) of a device initiating a Task of Task1 by an intranet, the old source TCP/UDP port is a local TCP/UDP port number of the device, the new source IP address is a public network IP address allocated to a gateway X by an operator B, the new source TCP/UDP port number is an idle port number generated locally by X, the old destination IP address is a website server IP address, and the new IP address is a public network IP address allocated to a gateway Y by the operator B.
The home gateway X changes the old source IP, the old destination IP address and the old source port number of the Task1 access request Packet1 into a new source IP address, a new destination IP address and a new port number according to the octave mapping relation, and forwards the Packet to the gateway Y through the A line.
If the home gateway Y agrees with the bandwidth lease request of the X, sending a bandwidth lease configuration confirmation message, and establishing a ten-tuple mapping relationship, namely:
Figure BDA0001544033430000191
the old source IP address and the old source port number are extracted by the service request data packet, the new source IP address is a public network IP address distributed to the gateway Y by the operator B, the old destination IP address is a public network IP address distributed to the gateway Y by the operator A, and the new destination IP address is an IP address of the target server. At this time, the network gateway Y sends the service request packet to the target server through the B port. The home gateway Y changes the old source IP and old source port number of the service request Packet1 to the new source IP address and new port number, and accesses the Packet to the web server through the B-line.
When the network gateway Y forwards the service response packet sent by the target server to the network gateway X, the new destination IP address is a public network IP address allocated to the network gateway X by the operator B, and the access port is an access port B and an access port a, that is, the corresponding service packet is received through the WAN port B, and the service response packet is sent through the WAN port a.
Fig. 4 is a device for implementing service connection, which is applied to a network gateway, where wan ports of the network gateway are respectively connected to different service providers; the method comprises the following steps:
the detection processing unit 100 is configured to, when it is detected that a network delay of the wan port of the first service provider connected to the network gateway is greater than a set threshold, access the resource management server, and determine, according to network quality information of each network gateway stored in the resource management server, an idle network gateway in an idle state of the wan port connected to the first service provider;
a request sending unit 110, configured to send bandwidth lease request information to the idle network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of the first service provider and a target server through the idle network gateway;
a data packet sending unit 120, configured to send, when receiving the bandwidth lease acknowledgement information sent by the idle network gateway, a service request data packet to be sent to the idle network gateway through a wan port connected to a second service provider, so that the idle network gateway sends the service request data packet to be sent to the target server through the wan port connected to the first service provider.
When the data packet sending unit sends the service request data packet to be sent to the idle network gateway through the wan port connected to the second service provider, the data packet sending unit is specifically configured to:
acquiring network parameter information of the idle network gateway; confirming an octave mapping relation between an external network and the network gateway according to the network parameter information of the idle network gateway and the network parameter information of the equipment initiating the service request; configuring routing parameter information of a service request data packet to be sent according to the octave mapping relation; and sending the service request data packet to be sent to the idle network gateway through a wide area network port connected with a second service provider according to the routing parameter information.
Optionally, in another embodiment of the present invention, the apparatus further includes:
a data packet receiving unit, configured to receive a service response data packet sent by the idle network gateway through a wan port connected to the second service provider, and send the service response data packet to the device initiating the service request through a wan port connected to the first service provider; wherein the service response data packet is a service response data packet fed back by the target server in response to the service request of the network gateway.
Specifically, please refer to the contents of the above method embodiment for the specific working contents of each unit, which are not described herein again.
Fig. 5 is another apparatus for implementing service connection according to an embodiment of the present invention, which is applied to a network gateway, and includes:
a monitoring processing unit 200, configured to monitor network quality of each wan port respectively connected to different service providers in real time, and send monitored network quality information to the resource management server;
the request processing unit 210 is configured to, when receiving bandwidth lease request information sent by a congested network gateway, determine whether a network bandwidth can be leased to the congested network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of a first service provider and a target server through the network gateway;
a request confirmation unit 220, configured to send bandwidth lease confirmation information to the congested network gateway when it is confirmed that the network bandwidth can be leased to the congested network gateway;
the first forwarding unit 230 is configured to receive a service request data packet sent by the congested network gateway through a wan port connected to a second service provider, and send the service request data packet to the target server through the wan port connected to the first service provider.
When the first forwarding unit sends the service request packet to the target server through a wan port connected to the first service provider, the first forwarding unit is specifically configured to:
sending the service request data packet to the target server through a wide area network port connected with the first service provider according to the routing parameter information of the service request data packet; the routing parameter information is configured for the service request data packet by the congested network gateway and includes the routing parameter information of the service request data packet.
Optionally, in another embodiment of the present invention, the apparatus further includes:
and the second forwarding unit is used for receiving a service response data packet which is sent by the target server and corresponds to the service request data packet, and sending the service response data packet to the congestion network gateway through a wide area network port connected with the second service provider.
Specifically, please refer to the contents of the above method embodiment for the specific working contents of each unit, which are not described herein again.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. A method for realizing service connection is characterized in that the method is applied to a network gateway, and the network gateway is provided with a plurality of wide area network ports; the wide area network ports of the network gateway are respectively connected with different service providers; the method comprises the following steps:
when detecting that the network time delay of the network gateway connected with the wide area network port of the first service provider is larger than a set threshold value, accessing a resource management server, and confirming an idle network gateway connected with the wide area network port of the first service provider in an idle state according to network quality information of each network gateway stored in the resource management server;
sending bandwidth lease request information to the idle network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of the first service provider and a target server through the idle network gateway;
when receiving the bandwidth lease confirmation information sent by the idle network gateway, sending a service request data packet to be sent to a second service provider in the network gateway through a wide area network port connected with the second service provider, and sending the service request data packet to be sent to the idle network gateway through a wide area network port connected with the second service provider in the idle network gateway, so that the idle network gateway sends the service request data packet to be sent to the target server through a wide area network port connected with the first service provider.
2. The method of claim 1, wherein the sending the service request packet to be sent to the idle network gateway through a wan port connected to a second service provider comprises:
acquiring network parameter information of the idle network gateway;
confirming an octave mapping relation between an external network and the network gateway according to the network parameter information of the idle network gateway and the network parameter information of the equipment initiating the service request;
configuring routing parameter information of a service request data packet to be sent according to the octave mapping relation;
and sending the service request data packet to be sent to the idle network gateway through a wide area network port connected with a second service provider according to the routing parameter information.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
receiving a service response data packet sent by the idle network gateway through a wide area network port connected with the second service provider; the service response data packet is received by the network port of the idle network gateway connected with the first service provider, and the target server responds to the service request of the network gateway and feeds back the service response data packet.
4. A method for realizing service connection is characterized in that the method is applied to a network gateway, and the network gateway is a network gateway which is connected with a wide area network port of a first service provider and is in an idle state; the network gateway is provided with a plurality of wide area network ports; the network gateway monitors the network quality of each wide area network port respectively connected with different service providers in real time and sends the monitored network quality information to the resource management server; the method comprises the following steps:
when bandwidth lease request information sent by a congested network gateway is received, determining whether the network bandwidth can be leased to the congested network gateway; the congestion network gateway is a network gateway which is connected with a wide area network port of the first service provider and has network time delay larger than a set threshold value; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port connected with a first service provider and a target server through the network gateway;
when the fact that the network bandwidth can be leased to the congested network gateway is confirmed, bandwidth lease confirmation information is sent to the congested network gateway;
and receiving a service request data packet sent by the congestion network gateway to a second service provider through a wide area network port connected with the second service provider in the congestion network gateway, and sending the service request data packet to the target server through a wide area network port connected with the first service provider.
5. The method of claim 4, wherein sending the service request packet to the target server via a Wide Area Network (WAN) port connected to the first service provider comprises:
sending the service request data packet to the target server through a wide area network port connected with the first service provider according to the routing parameter information of the service request data packet; the routing parameter information is configured for the service request data packet by the congested network gateway and includes the routing parameter information of the service request data packet.
6. The method according to claim 4 or 5, characterized in that the method further comprises:
and receiving a service response data packet which is sent by the target server and corresponds to the service request data packet, and sending the service response data packet to the congestion network gateway through a wide area network port connected with the second service provider.
7. The device for realizing the service connection is characterized by being applied to a network gateway, wherein the network gateway is provided with a plurality of wide area network ports; the wide area network ports of the network gateway are respectively connected with different service providers; the device includes:
the detection processing unit is used for accessing the resource management server when detecting that the network time delay of the network gateway connected with the wide area network port of the first service provider is greater than a set threshold value, and confirming an idle network gateway connected with the wide area network port of the first service provider in an idle state according to the network quality information of each network gateway stored in the resource management server;
a request sending unit, configured to send bandwidth lease request information to the idle network gateway; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port of the first service provider and a target server through the idle network gateway;
and the data packet sending unit is used for sending the service request data packet to be sent to a second service provider in the network gateway through a wide area network port connected with the second service provider when receiving the bandwidth lease confirmation information sent by the idle network gateway, and then sending the service request data packet to be sent to the idle network gateway through a wide area network port connected with the second service provider in the idle network gateway, so that the idle network gateway sends the service request data packet to be sent to the target server through a wide area network port connected with the first service provider.
8. The apparatus of claim 7, wherein when the packet sending unit sends the service request packet to be sent to the idle network gateway through a wan port connected to a second service provider, the packet sending unit is specifically configured to:
acquiring network parameter information of the idle network gateway; confirming an octave mapping relation between an external network and the network gateway according to the network parameter information of the idle network gateway and the network parameter information of the equipment initiating the service request; configuring routing parameter information of a service request data packet to be sent according to the octave mapping relation; and sending the service request data packet to be sent to the idle network gateway through a wide area network port connected with a second service provider according to the routing parameter information.
9. The apparatus of claim 7 or 8, further comprising:
a data packet receiving unit, configured to receive a service response data packet sent by the idle network gateway through a wan port connected to the second service provider; the service response data packet is received by the network port of the idle network gateway connected with the first service provider, and the target server responds to the service request of the network gateway and feeds back the service response data packet.
10. The device for realizing service connection is applied to a network gateway, wherein the network gateway is a network gateway which is connected with a wide area network port of a first service provider and is in an idle state; the network gateway is provided with a plurality of wide area network ports; the device includes:
the monitoring processing unit is used for monitoring the network quality of each wide area network port respectively connected with different service providers in real time and sending the monitored network quality information to the resource management server;
the device comprises a request processing unit, a bandwidth lease unit and a bandwidth lease unit, wherein the request processing unit is used for confirming whether the network bandwidth can be leased to the congested network gateway or not when bandwidth lease request information sent by the congested network gateway is received; the congestion network gateway is a network gateway which is connected with a wide area network port of the first service provider and has network time delay larger than a set threshold value; the bandwidth lease request information is used for requesting to establish service connection between a wide area network port connected with a first service provider and a target server through the network gateway;
the request confirmation unit is used for sending bandwidth lease confirmation information to the congested network gateway when confirming that the network bandwidth can be leased to the congested network gateway;
the first forwarding unit is configured to receive a service request data packet sent by the congested network gateway through a wan port connected to a second service provider in the congested network gateway, and send the service request data packet to the target server through a wan port connected to the first service provider.
11. The apparatus of claim 10, wherein when the first forwarding unit sends the service request packet to the target server through a wan port connected to the first service provider, the first forwarding unit is specifically configured to:
sending the service request data packet to the target server through a wide area network port connected with the first service provider according to the routing parameter information of the service request data packet; the routing parameter information is configured for the service request data packet by the congested network gateway and includes the routing parameter information of the service request data packet.
12. The apparatus of claim 10 or 11, further comprising:
and the second forwarding unit is used for receiving a service response data packet which is sent by the target server and corresponds to the service request data packet, and sending the service response data packet to the congestion network gateway through a wide area network port connected with the second service provider.
CN201810022663.1A 2018-01-10 2018-01-10 Method and device for realizing service connection Active CN108270689B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810022663.1A CN108270689B (en) 2018-01-10 2018-01-10 Method and device for realizing service connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810022663.1A CN108270689B (en) 2018-01-10 2018-01-10 Method and device for realizing service connection

Publications (2)

Publication Number Publication Date
CN108270689A CN108270689A (en) 2018-07-10
CN108270689B true CN108270689B (en) 2021-06-01

Family

ID=62773429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810022663.1A Active CN108270689B (en) 2018-01-10 2018-01-10 Method and device for realizing service connection

Country Status (1)

Country Link
CN (1) CN108270689B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114285763B (en) * 2021-11-26 2023-05-30 中国联合网络通信集团有限公司 Data acquisition method, device and computer readable storage medium
CN114079672B (en) * 2022-01-07 2022-04-15 广州市成格信息技术有限公司 Multifunctional gateway multi-channel data intelligent distribution method and system
CN116760836B (en) * 2023-08-16 2023-10-31 中国电信股份有限公司 Distributed service enabling method, device, system, communication equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882802A (en) * 2012-10-23 2013-01-16 厦门四信通信科技有限公司 Relation method of load balance of multi-WAN (Wide Area Network) port equipment
CN103188752A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Network switching method achieving zero packet loss of mobile terminal under novel routing system
CN104094564A (en) * 2011-12-05 2014-10-08 适应性频谱和信号校正股份有限公司 Systems and methods for traffic load balancing on multiple wan backhauls and multiple distinct lan networks
CN203933655U (en) * 2014-05-05 2014-11-05 天津赞普科技股份有限公司 A kind of safe Multi-channel load balancing equipment
CN106130913A (en) * 2016-09-08 2016-11-16 深圳市磊科实业有限公司 A kind of multi-operator is the route selecting method of many WAN mouth router based on strategy in the case of accessing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8769121B2 (en) * 2009-03-15 2014-07-01 Daren French Multi-session web acceleration

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104094564A (en) * 2011-12-05 2014-10-08 适应性频谱和信号校正股份有限公司 Systems and methods for traffic load balancing on multiple wan backhauls and multiple distinct lan networks
CN103188752A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Network switching method achieving zero packet loss of mobile terminal under novel routing system
CN102882802A (en) * 2012-10-23 2013-01-16 厦门四信通信科技有限公司 Relation method of load balance of multi-WAN (Wide Area Network) port equipment
CN203933655U (en) * 2014-05-05 2014-11-05 天津赞普科技股份有限公司 A kind of safe Multi-channel load balancing equipment
CN106130913A (en) * 2016-09-08 2016-11-16 深圳市磊科实业有限公司 A kind of multi-operator is the route selecting method of many WAN mouth router based on strategy in the case of accessing

Also Published As

Publication number Publication date
CN108270689A (en) 2018-07-10

Similar Documents

Publication Publication Date Title
US7673048B1 (en) Methods and apparatus for establishing a computerized device tunnel connection
US9173117B2 (en) Enhancing a mobile backup channel to address a node failure in a wireline network
US10097645B2 (en) Method and apparatus of performing peer-to-peer communication establishment and connection change-over
US7739384B2 (en) System and method for load balancing
JP6147338B2 (en) Method and system for enabling rerouting for home network after connectivity failure
CN108270689B (en) Method and device for realizing service connection
JP2018521573A (en) SDN security
CN111385203B (en) Data transmission method, device and equipment based on hybrid cloud and storage medium
CN103986638B (en) The method and apparatus of many public network links of ADVPN tunnel binding
US9825815B2 (en) System and method for aggregating and estimating the bandwidth of multiple network interfaces
WO2012065531A1 (en) Method, device, and system for implementing relay selection
CN111435922B (en) Bandwidth sharing method
WO2013040970A1 (en) Relay node selecting method and device
CN103152444B (en) The network address translation of trunking scheme and message transmitting method and device, system
JP4433206B2 (en) How to establish and maintain a connection
JP2020113970A (en) Method for remotely controlling video camera and video monitoring system
TW201517601A (en) Media stream providing device and method for connecting thereto, media streaming system, and computer-readable medium
CN113726648B (en) Multipath communication method, device, electronic equipment and computer readable medium
WO2014101159A1 (en) Method, device and server for setting and processing interactive connectivity establishment address
JP3727572B2 (en) Content distribution network, address notification terminal, and communication control device
JP2002051041A (en) Method for investigating and notifying cause to network fault and terminal used to realize the method
CN108307149B (en) Video proxy system and monitoring method
EP3065352A1 (en) Data transmission method, device and system
US20090274057A1 (en) Systems, Methods and Software for Identifying a Preferred Egress Gateway in a Bypass Network for Accessing a Content Server in Another Network
JP2004248257A (en) Communication system and terminal

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