CN109309627B - Load sharing method, system and computer readable storage medium - Google Patents

Load sharing method, system and computer readable storage medium Download PDF

Info

Publication number
CN109309627B
CN109309627B CN201710636450.3A CN201710636450A CN109309627B CN 109309627 B CN109309627 B CN 109309627B CN 201710636450 A CN201710636450 A CN 201710636450A CN 109309627 B CN109309627 B CN 109309627B
Authority
CN
China
Prior art keywords
forwarding
platform
load sharing
user
message
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
CN201710636450.3A
Other languages
Chinese (zh)
Other versions
CN109309627A (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201710636450.3A priority Critical patent/CN109309627B/en
Priority to PCT/CN2018/097511 priority patent/WO2019020114A1/en
Publication of CN109309627A publication Critical patent/CN109309627A/en
Application granted granted Critical
Publication of CN109309627B publication Critical patent/CN109309627B/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

Landscapes

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

Abstract

The invention discloses a load sharing method. The load sharing method is applied to a load sharing system, the load sharing system comprises a forwarding platform and a control platform, and the load sharing method comprises the following steps: receiving a control message sent by the forwarding platform, and extracting user information according to the control message; calculating through a preset load sharing algorithm according to the user information, and determining an optimal component of user equipment which is accessed to the user information and corresponds to the user information in the forwarding platform; and accessing the user equipment to the optimal assembly so that the optimal assembly executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information. The invention also discloses a load sharing system and a computer readable storage medium. The invention can realize the load sharing of the forwarding platform and improve the utilization rate of the components in the forwarding platform.

Description

Load sharing method, system and computer readable storage medium
Technical Field
The present invention relates to the field of communications, and in particular, to a method, a system, and a computer-readable storage medium for load sharing.
Background
With the development of Software Defined Networking (SDN) technology and Network Function Virtualization (NFV) technology, a metropolitan area Network (metro) Network evolves from a traditional Network-centric architecture towards a data center-centric Network architecture, and a traditional Network element device also evolves from specialization towards generalization. While the traditional network element device evolves from specialization to generalization, two decouples mainly need to be solved: control and forwarding are decoupled, and software and hardware are decoupled.
The broadband access gateway BNG plays a very important role as a traditional broadband access gateway device in the user broadband access service and scenario. Generally, the main requirements for BNG devices on user access are user authentication, access control, traffic scheduling, etc. However, with the endless layering of various internet services, the requirements on the number of sessions of users supported by the BNG device, the user access bandwidth, the QoS/QoS (Quality of Service/Hierarchical Quality of Service) capabilities supported by the users are increasing, and especially the requirements on the external Service opening and programmability provided by the BNG device are increasing. For the above reasons, it is necessary for the BNG device to implement the above two decoupling based on the architecture of SDN/NFV, and therefore, the decoupling of BNG forwarding and control has become a trend. However, after the BNG forwarding and control are decoupled, when the user equipment accesses the forwarding platform for load sharing, the ports of the same Virtual Local Area Network (VLAN) can only be connected to the components in the same forwarding platform, which results in a low utilization rate of the components in the forwarding platform.
Disclosure of Invention
The present invention mainly aims to provide a load sharing method, system and computer readable storage medium, which aims to realize load sharing of a forwarding platform and improve the utilization rate of components in the forwarding platform.
In order to achieve the above object, the present invention provides a load sharing method, which is applied in a load sharing system, wherein the load sharing system includes a forwarding platform and a control platform, and the load sharing method includes:
receiving a control message sent by the forwarding platform, and extracting user information according to the control message;
calculating through a preset load sharing algorithm according to the user information, and determining an optimal component of user equipment which is accessed to the user information and corresponds to the user information in the forwarding platform;
and accessing the user equipment to the optimal assembly so that the optimal assembly executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information.
Optionally, the load sharing system further includes a network security system, where the control packet and the data packet are derived from an initial packet sent to the forwarding platform when a user equipment performs broadband dialing, and the user equipment is accessed to the optimal component, so that the optimal component executes a flow policy on the data packet corresponding to the control packet in the forwarding platform, and performs flow forwarding on the data packet according to a result of the flow policy and the user information, and the method includes:
accessing the user equipment to the optimal component;
responding to the initial message, generating a corresponding proposal message and sending the proposal message to the user equipment, so that the user equipment and the control platform perform interaction with a message protocol corresponding to the proposal message through the optimal component to negotiate and use a network security system authentication mode;
initiating an authentication request to the network security system according to the negotiation result and the user information so that the network security system performs authentication and authorization processing on the user and feeds back corresponding user authorization information;
and obtaining a broadband access user table according to the user authorization information and the user information, issuing the broadband access user table to the optimal component, so that the optimal component executes a flow strategy on the data message corresponding to the control message, and performing flow forwarding on the data message according to the flow strategy result and the broadband access user table.
Optionally, the best component includes a plurality of ports, and the step of accessing the user equipment to the best component includes:
when the state of a first port in a plurality of ports is normal, accessing the user equipment to the first port;
and when the state of a first port in the plurality of ports is abnormal, accessing the user equipment to a second port in the plurality of ports, wherein the state of the second port is normal.
In addition, in order to achieve the above object, the present invention further provides a load sharing method, where the load sharing method is applied to a load sharing system, the load sharing system includes a forwarding platform and a control platform, and the load sharing method includes the following steps:
the forwarding platform sends a control message to the control platform;
the control platform extracts user information according to the control message;
the control platform calculates according to the user information through a preset load sharing algorithm, determines an optimal component of user equipment which is accessed to the user information in the forwarding platform, and accesses the user equipment to the optimal component;
and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the user information.
Optionally, the best component includes a plurality of ports, and the step of accessing the user equipment to the best component includes:
when the state of a first port in a plurality of ports is normal, accessing the user equipment to the first port;
and when the state of a first port in the plurality of ports is abnormal, accessing the user equipment to a second port in the plurality of ports, wherein the state of the second port is normal.
Optionally, the load sharing system further includes a network security system, where the control packet and the data packet are derived from an initial packet corresponding to the broadband dialing mode sent to the forwarding platform when the user equipment performs broadband dialing, and the control platform performs calculation according to the user information by using a preset load sharing algorithm, determines an optimal component of the user equipment corresponding to the user information accessed in the forwarding platform, and accesses the user equipment to the optimal component, and includes:
the control platform responds to the initial message, generates a corresponding proposal message and sends the proposal message to the user equipment, so that the user equipment and the control platform interact with a message protocol corresponding to the proposal message through the optimal component to negotiate to use a network security system authentication mode;
the control platform initiates an authentication request to the network security system according to the negotiation result and the user information, so that the network security system performs authentication and authorization processing on the user and feeds back corresponding user authorization information;
the control platform obtains a broadband access user table according to the user authorization information and the user information and issues the broadband access user table to the optimal component;
the step of executing a flow strategy on the data message corresponding to the control message in the forwarding platform by the optimal component in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information comprises the following steps:
and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the broadband access user table.
Optionally, the step of executing, by an optimal component in the forwarding platform, a flow policy on the data packet corresponding to the control packet in the forwarding platform, and performing flow forwarding on the data packet according to the flow policy result and the broadband access user table includes:
matching the flow characteristics of the data messages corresponding to the control messages by the optimal components in the forwarding platform, and carrying out flow classification according to the flow characteristics so as to execute a flow strategy;
and the optimal component in the forwarding platform performs stream forwarding on the data message according to the stream strategy result and the broadband access user table.
Optionally, before the step of sending, by the forwarding platform, the control packet to the control platform, the method includes:
the forwarding platform receives an initial message which is sent after the user equipment broadband dialing and corresponds to the broadband dialing mode, and distinguishes whether the initial message is a control message or a data message according to the protocol type of the initial message and a preset flow table;
packaging the control message, and sending the packaged control message to the control platform through a corresponding preset tunnel;
judging whether a broadband access user table corresponding to a user exists in the forwarding platform, if so, executing the steps on the data message: and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the broadband access user table.
Optionally, the step of extracting, by the control platform, the user information according to the control packet includes:
and the control platform carries out corresponding de-encapsulation on the encapsulated control message and extracts user information according to the de-encapsulated control message.
In addition, to achieve the above object, the present invention further provides a load sharing system, including: the system comprises a control platform, a forwarding platform and a load sharing program, wherein the load sharing program realizes the steps of the load sharing method when being executed by the control platform and the forwarding platform.
Further, to achieve the above object, the present invention also provides a computer readable storage medium having a load sharing program stored thereon, which when executed by a processor, implements the steps of the load sharing method as described above.
The invention provides a load sharing method, a load sharing system and a computer readable storage medium. The load sharing method is applied to a load sharing system, the load sharing system comprises a forwarding platform and a control platform, and the load sharing method comprises the following steps: receiving a control message sent by the forwarding platform, and extracting user information according to the control message; calculating through a preset load sharing algorithm according to the user information, and determining an optimal component of the user equipment which is accessed to the user information and corresponds to the user information in the forwarding platform; and accessing the user equipment to the optimal assembly so that the optimal assembly executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information. By the above mode, the present invention is based on the decoupling of the forwarding platform and the control platform, at this time, the forwarding platform has the foundation of resource pooling, and the important characteristic of resource pooling is dynamic load sharing of services in the forwarding platform, when the control platform receives a control message sent by the forwarding platform, user information can be extracted, and calculation is performed according to the user information through a preset load sharing algorithm, so as to determine an optimal component for accessing the user in the forwarding platform, the preset load sharing algorithm helps the user determine a component which is most suitable for the user equipment to access in the forwarding platform based on the current user equipment access condition, then the user equipment is accessed in the optimal component, the optimal component executes a flow policy on a data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow policy result and the user information, therefore, the load sharing of the forwarding platform is realized, and the utilization rate of components in the forwarding platform is improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a load sharing method according to a first embodiment of the present invention;
fig. 3 is a detailed flowchart illustrating that the user equipment is accessed to the optimal component in the embodiment of the present invention, so that the optimal component executes a flow policy on a data packet corresponding to the control packet in the forwarding platform, and performs flow forwarding on the data packet according to a result of the flow policy and the user information;
FIG. 4 is a flowchart illustrating a load sharing method according to a second embodiment of the present invention;
FIG. 5 is a flowchart illustrating a load sharing method according to a third embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a detailed flow of executing a flow policy on a data packet corresponding to the control packet in the forwarding platform by an optimal component in the forwarding platform, and performing flow forwarding on the data packet according to a result of the flow policy and the broadband access user table in the embodiment of the present invention;
FIG. 7 is a flowchart illustrating a load sharing method according to a fourth embodiment of the present invention;
fig. 8 is a timing chart according to a fourth embodiment of the load sharing method of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the prior art, after the BNG forwarding platform is decoupled from the control platform, when the user equipment accesses the forwarding platform to share the load, the ports of the same Virtual Local Area Network (VLAN) can only be connected to the components in the same forwarding platform, which results in a low utilization rate of the components in the forwarding platform.
In order to solve the above technical problem, the present invention provides a load sharing method, where the load sharing method is applied to a load sharing system, the load sharing system includes a forwarding platform and a control platform, and the load sharing method includes: receiving a control message sent by the forwarding platform, and extracting user information according to the control message; calculating through a preset load sharing algorithm according to the user information, and determining an optimal component of the user equipment which is accessed to the user information and corresponds to the user information in the forwarding platform; and accessing the user equipment to the optimal assembly so that the optimal assembly executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information. By the above mode, the present invention is based on the decoupling of the forwarding platform and the control platform, at this time, the forwarding platform has the foundation of resource pooling, and the important characteristic of resource pooling is dynamic load sharing of services in the forwarding platform, when the control platform receives a control message sent by the forwarding platform, user information can be extracted, and calculation is performed according to the user information through a preset load sharing algorithm, so as to determine an optimal component for accessing the user in the forwarding platform, the preset load sharing algorithm helps the user determine a component which is most suitable for the user equipment to access in the forwarding platform based on the current user equipment access condition, then the user equipment is accessed in the optimal component, the optimal component executes a flow policy on a data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow policy result and the user information, therefore, the load sharing of the forwarding platform is realized, and the utilization rate of components in the forwarding platform is improved.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the present invention may be a Personal Computer (PC), or a terminal Device with a broadband dial function, such as an RG (Residential Gateway), a CPE (Customer Premise Equipment), a VoIP (Voice over Internet Protocol), an IPTV (Internet Protocol Television), an STB (Set Top Box), an IAD (Integrated Access Device), and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the terminal may further include a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WiFi module, and the like. Such as light sensors, motion sensors, and other sensors, among others. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display screen according to the brightness of ambient light, and a proximity sensor that may turn off the display screen and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), detect the magnitude and direction of gravity when the mobile terminal is stationary, and can be used for applications (such as horizontal and vertical screen switching, related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer and tapping) and the like for recognizing the attitude of the mobile terminal; of course, the mobile terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which are not described herein again.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a load sharing program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the load sharing program stored in the memory 1005 and perform the following operations:
receiving a control message sent by the forwarding platform, and extracting user information according to the control message;
calculating through a preset load sharing algorithm according to the user information, and determining an optimal component of the user equipment which is accessed to the user information and corresponds to the user information in the forwarding platform;
and accessing the user equipment to the optimal assembly so that the optimal assembly executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information.
Further, the processor 1001 may call the load sharing program stored in the memory 1005, and further perform the following operations:
accessing the user equipment to the optimal component;
responding to the initial message, generating a corresponding proposal message and sending the proposal message to the user equipment, so that the user equipment and the control platform perform interaction with a message protocol corresponding to the proposal message through the optimal component to negotiate and use a network security system authentication mode;
initiating an authentication request to the network security system according to the negotiation result and the user information so that the network security system performs authentication and authorization processing on the user and feeds back corresponding user authorization information;
and obtaining a broadband access user table according to the user authorization information and the user information, issuing the broadband access user table to the optimal component, so that the optimal component executes a flow strategy on the data message corresponding to the control message, and performing flow forwarding on the data message according to the flow strategy result and the broadband access user table.
Further, the processor 1001 may call the load sharing program stored in the memory 1005, and further perform the following operations:
when the state of a first port in a plurality of ports is normal, accessing the user equipment to the first port;
and when the state of a first port in the plurality of ports is abnormal, accessing the user equipment to a second port in the optimal component, wherein the state of the second port is normal.
Further, the processor 1001 may call the load sharing program stored in the memory 1005, and further perform the following operations:
the forwarding platform sends a control message to the control platform;
the control platform extracts user information according to the control message;
the control platform calculates according to the user information through a preset load sharing algorithm, determines an optimal component of user equipment which is accessed to the user information and corresponds to the user information in the forwarding platform, and accesses the user equipment to the optimal component;
and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the user information.
Further, the processor 1001 may call the load sharing program stored in the memory 1005, and further perform the following operations:
when the state of a first port in a plurality of ports is normal, accessing the user equipment to the first port;
and when the first port is abnormal in state, accessing the user equipment to a second port with a normal state in a plurality of ports.
Further, the processor 1001 may call the load sharing program stored in the memory 1005, and further perform the following operations:
the control platform responds to the initial message, generates a corresponding proposal message and sends the proposal message to the user equipment, so that the user equipment and the control platform interact with a message protocol corresponding to the proposal message through the optimal component to negotiate to use a network security system authentication mode;
the control platform initiates an authentication request to the network security system according to the negotiation result and the user information, so that the network security system performs authentication and authorization processing on the user and feeds back corresponding user authorization information;
the control platform obtains a broadband access user table according to the user authorization information and the user information and issues the broadband access user table to the optimal component;
the step of executing a flow strategy on the data message corresponding to the control message in the forwarding platform by the optimal component in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information comprises the following steps:
and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the broadband access user table.
Further, the processor 1001 may call the load sharing program stored in the memory 1005, and further perform the following operations:
matching the flow characteristics of the data messages corresponding to the control messages by the optimal components in the forwarding platform, and carrying out flow classification according to the flow characteristics so as to execute a flow strategy;
and the optimal component in the forwarding platform performs stream forwarding on the data message according to the stream strategy result and the broadband access user table.
Further, the processor 1001 may call the load sharing program stored in the memory 1005, and further perform the following operations:
the forwarding platform receives an initial message which is sent after the user equipment broadband dialing and corresponds to the broadband dialing mode, and distinguishes whether the initial message is a control message or a data message according to the protocol type of the initial message and a preset flow table;
packaging the control message, and sending the packaged control message to the control platform through a corresponding preset tunnel;
judging whether a broadband access user table corresponding to a user exists in the forwarding platform, if so, executing the steps on the data message: and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the broadband access user table.
Further, the processor 1001 may call the load sharing program stored in the memory 1005, and further perform the following operations:
and the control platform carries out corresponding de-encapsulation on the encapsulated control message and extracts user information according to the de-encapsulated control message.
Referring to fig. 2, fig. 2 is a flowchart illustrating a load sharing method according to a first embodiment of the present invention.
In this embodiment of the present invention, the load sharing method is applied to a load sharing system, where the load sharing system includes a forwarding platform and a control platform, and the load sharing method includes:
step S10, receiving the control message sent by the forwarding platform, and extracting user information according to the control message;
in the embodiment of the present invention, the load sharing method is applied to a load sharing system, and the load sharing system includes a forwarding platform and a control platform. The forwarding platform refers to a part used for receiving and forwarding a data packet in the system, and may include a forwarding plane of a BNG (broadband Network Gateway) and a forwarding plane of a vBNG (Virtual broadband Network Gateway), and is mainly responsible for forwarding and controlling user traffic and executing a flow policy related to a user. The control platform refers to a part used for transmitting instructions and calculating table entries in the system, and may include a BNG control plane and a vBNG control plane, and mainly performs protocol negotiation for broadband user access, user authentication, access control, user management, and the like.
In the embodiment of the present invention, when the Control platform receives the Control packet sent by the forwarding platform, user information, including Media Access Control (MAC) information and access link information of the user, is extracted according to the Control packet.
Step S20, calculating by a preset load sharing algorithm according to the user information, and determining the best component of the user equipment accessed to the user information in the forwarding platform;
in the embodiment of the invention, the control platform can calculate the optimal component accessed to the user in the forwarding platform according to the user information and the preset load sharing algorithm. For convenience of description, in this embodiment, 6 user access ports are taken as an example for description, and are respectively denoted as P1, P2, P3, P4, P5, and P6, further, 2forwarding components are divided, and are respectively denoted as T1 and T2, assuming that T1 includes three access ports P1, P2, and P3, and T2 includes three access ports P4, P5, and P6, corresponding syntax expressions are respectively T1(P1, P2, P3), and T2(P4, P5, and P6). According to a grouping algorithm, the forwarding components are automatically divided into a plurality of backup components, which are respectively recorded as B1, B2, B3, B4, B5, B6 and the like, wherein the syntax of the backup components is B1(P1, P2, P3), B2(P2, P3, P1), B3(P3, P1, P2), B4(P4, P5, P6), B5(P5, P6, P4), B6(P6, P4, P5) and the like. Of course, in the specific embodiment, the number of the user access ports, the forwarding components and the backup components is not limited to this embodiment, and the data in this embodiment is only for convenience of description. In a specific embodiment, the port numbers in the forwarding component and the backup component are determined according to actual situations, and furthermore, the port in the forwarding component is not distinguished from the port in the backup component, but represents a group, and the port in the backup component is stateful, such as B1(P1, P2, P3), where P1 is a primary port, and when the P1 state is closed or abnormal, a next port in the backup component is automatically selected as a user equipment access port. It should be noted that which backup component the user equipment should access specifically is calculated by a preset load sharing algorithm, that is, the calculated optimal component is one of the backup components. It should be further noted that, in order to avoid that the user equipment cannot be accessed due to abnormal port states, a plurality of ports are provided in the optimal component determined by the load sharing algorithm, and when a first port of the plurality of ports is in a normal state, the user equipment is accessed to the first port; and when the first port is abnormal in state, accessing the user equipment to a second port with a normal state in a plurality of ports. Specifically, the preset load sharing algorithm may be based on MAC information of the user, or user message information (such as 802.1P information), or access link information (such as VLAN information) of the user, and of course, these information may also be considered comprehensively to form a comprehensive load sharing algorithm. For example, modulo is performed according to the MAC information of the user, and load sharing is performed according to the modulo result, and the basic syntax of the backup component is: b { (P1, P2, P3), mod (mac) }. In addition, it should be noted that each backup component needs to have a virtual MAC, and virtual MACs of different backup components in the same forwarding component are different. Thus, the basic syntax of the backup component is: b { (Px, Py, Pz), Mod (MAC), VMAC }, where B is the backup component, MAC is the user's MAC address, Px, Py, Pz are the user access ports, and VMAC is the virtual MAC address of the backup component. Therefore, the best component accessed to the user in the forwarding platform, namely the backup component which is most suitable for the user equipment to access is determined according to the load sharing algorithm.
Step S30, accessing the user equipment to the optimal component, so that the optimal component executes a flow policy on the data packet corresponding to the control packet in the forwarding platform, and performs flow forwarding on the data packet according to the flow policy result and the user information.
In this embodiment of the present invention, the load sharing system further includes a network security system, where the control packet and the data packet are derived from an initial packet corresponding to a broadband dialing mode sent to the forwarding platform when a user equipment performs broadband dialing, and further, referring to fig. 3, fig. 3 is a detailed flow diagram illustrating that the user equipment is accessed to the optimal component, so that the optimal component executes a flow policy on the data packet corresponding to the control packet in the forwarding platform, and performs flow forwarding on the data packet according to a result of the flow policy and the user information, where step S30 includes:
step S31, the user equipment is accessed to the optimal component;
step S32, responding to the initial packet, generating a corresponding proposed packet, and sending the proposed packet to the user equipment, so that the user equipment interacts with the control platform through the optimal component according to a packet protocol corresponding to the proposed packet, and negotiates to use a network security system authentication method;
step S33, an authentication request is sent to the network security system according to the negotiation result and the user information, so that the network security system authenticates and authorizes the user and feeds back corresponding user authorization information;
step S34, obtaining a broadband access user table according to the user authorization information and the user information, and issuing the broadband access user table to the optimal component, so that the optimal component executes a flow policy on the data packet corresponding to the control packet, and performs flow forwarding on the data packet according to the flow policy result and the broadband access user table.
In the embodiment of the invention, the load sharing system further comprises a network security system, wherein the network security system refers to an authentication, authorization and accounting (AAA) system. Wherein, AAA is short for Authentication, Authorization and Accounting, and is a security management mechanism for access control in network security, and provides three security services of Authentication, Authorization and Accounting. Specifically, authentication is to verify the identity of a user and determine whether the user is a valid user; authorization is to authorize the authenticated user which services they can use; the charging is to record the resource condition of the network service used by the user, and the information is used as the basis for charging. In addition, the control message is derived from an initial message which is sent after the user equipment broadband dialing and corresponds to the broadband dialing mode. The broadband dialing mode includes a Point-to-Point Protocol over Ethernet (PPPoE) dialing and a Dynamic Host Configuration Protocol (DHCP) dialing, and after the user equipment performs the broadband dialing, the user equipment sends a corresponding initial message to the forwarding platform, and specifically, after the PPPoE dialing, the corresponding initial message is a PADI (PPPoE Active Discovery initial) message; after the DHCP is dialed, the corresponding initial message is a DHCP Discover message.
In the embodiment of the present invention, after the control platform calculates the optimal component of the forwarding platform, which is accessed to the user, according to the load sharing algorithm, the control platform accesses the optimal component to the user equipment, then responds to the initial packet, and generates a corresponding Offer packet to send to the user equipment, and specifically, the Offer packets corresponding to the PADI packet and the DHCP Discover packet are a PADO (PPPoE Active Discovery Offer) packet and a DHCP Offer packet, respectively. Furthermore, the user equipment and the control platform perform interaction of corresponding message protocols through the accessed optimal component, and a network security system authentication mode is negotiated and used in the interaction process. The message protocols corresponding to the PADO message and the DHCP Offer message are a PPPoE protocol and a DHCP protocol, respectively.
Further, in order to obtain a broadband access user table for stream forwarding, an authentication request is initiated to the AAA system according to the negotiation result and the user information, so that the AAA system authenticates and authorizes the user, and feeds back corresponding user authorization information, thereby obtaining the broadband access user table according to the user authorization information and the user information, wherein the broadband access user table includes an MAC address, an IP address, and user authorization information of the user. Further, the broadband access user table is sent to the optimal component, so that the optimal component executes flow strategies, such as QoS strategies and security strategies, on the data messages corresponding to the control messages, and performs flow forwarding on the data messages according to the flow strategy results and the broadband access user table.
The invention provides a load sharing method, which is applied to a load sharing system, wherein the load sharing system comprises a forwarding platform and a control platform, and the load sharing method comprises the following steps: receiving a control message sent by the forwarding platform, and extracting user information according to the control message; calculating through a preset load sharing algorithm according to the user information, and determining an optimal component of the user equipment which is accessed to the user information and corresponds to the user information in the forwarding platform; and accessing the user equipment to the optimal assembly so that the optimal assembly executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information. By the above mode, the present invention is based on the decoupling of the forwarding platform and the control platform, at this time, the forwarding platform has the foundation of resource pooling, and the important characteristic of resource pooling is dynamic load sharing of services in the forwarding platform, when the control platform receives a control message sent by the forwarding platform, user information can be extracted, and calculation is performed according to the user information through a preset load sharing algorithm, so as to determine an optimal component for accessing the user in the forwarding platform, the preset load sharing algorithm helps the user determine a component which is most suitable for the user equipment to access in the forwarding platform based on the current user equipment access condition, then the user equipment is accessed in the optimal component, the optimal component executes a flow policy on a data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow policy result and the user information, therefore, the load sharing of the forwarding platform is realized, and the utilization rate of components in the forwarding platform is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating a load sharing method according to a second embodiment of the present invention.
In this embodiment of the present invention, the load sharing method is applied to a load sharing system, where the load sharing system includes a forwarding platform and a control platform, and the load sharing method includes:
step S100, the forwarding platform sends a control message to the control platform;
step S200, the control platform extracts user information according to the control message;
step S300, the control platform calculates according to the user information through a preset load sharing algorithm, determines an optimal component of user equipment which is accessed to the user information in the forwarding platform, and accesses the user equipment to the optimal component;
step S400, the best component in the forwarding platform executes a flow strategy to the data message corresponding to the control message in the forwarding platform, and performs flow forwarding to the data message according to the flow strategy result and the user information.
In the embodiment of the present invention, the load sharing method is applied to a load sharing system, and the load sharing system includes a forwarding platform and a control platform. The forwarding platform refers to a part used for receiving and forwarding a data packet in the system, and may include a forwarding plane of a BNG (broadband Network Gateway) and a forwarding plane of a vBNG (Virtual broadband Network Gateway), and is mainly responsible for forwarding and controlling user traffic and executing a flow policy related to a user. The control platform refers to a part used for transmitting instructions and calculating table entries in the system, and may include a BNG control plane and a vBNG control plane, and mainly performs protocol negotiation for broadband user access, user authentication, access control, user management, and the like.
In the embodiment of the present invention, the load sharing method includes: the forwarding platform sends a control message to the control platform, and then the control platform extracts user information according to the control message, wherein the user information comprises MAC information, access link information and the like of a user.
Further, the control platform calculates the optimal component accessed to the user in the forwarding platform through a preset load sharing algorithm according to the user information, and can help the user to determine the component which is most suitable for the user equipment to access in the forwarding platform. For convenience of description, in this embodiment, 6 user access ports are taken as an example for description, and are respectively denoted as P1, P2, P3, P4, P5, and P6, further, 2forwarding components are divided and are respectively denoted as T1 and T2, and assuming that T1 includes three access ports of P1, P2, and P3, and T1 includes three access ports of P4, P5, and P6, corresponding syntax expressions are respectively denoted as T1(P1, P2, P3), and T2(P4, P5, P6). According to a grouping algorithm, the forwarding components are automatically divided into a plurality of backup components, which are respectively marked as B1, B2, B3, B4, B5, B6 and the like, wherein the syntax of the backup components is B1(P1, P2, P3), B2(P2, P3, P1), B3(P3, P1, P2), B4(P4, P5, P6), B5(P5, P6, P4), B6(P6, P4, P5) and the like. Of course, in the specific embodiment, the number of the user access ports, the forwarding components and the backup components is not limited to this embodiment, and the data in this embodiment is only for convenience of description. In a specific embodiment, the port numbers in the forwarding component and the backup component are determined according to actual situations, and furthermore, the port in the forwarding component is not distinguished from the port in the backup component, but represents a group, and the port in the backup component is stateful, such as B1(P1, P2, P3), where P1 is a primary port, and when the P1 state is closed or abnormal, a next port in the backup component is automatically selected as a user equipment access port. It should be noted that which backup component the user equipment should access specifically is calculated by a preset load sharing algorithm, that is, the calculated optimal component is one of the backup components. It should be further noted that, in order to avoid that the user equipment cannot be accessed due to abnormal port states, a plurality of ports are provided in the optimal component determined by the load sharing algorithm, and when a first port of the plurality of ports is in a normal state, the user equipment is accessed to the first port; and when the first port is abnormal in state, accessing the user equipment to a second port with a normal state in a plurality of ports. Specifically, the preset load sharing algorithm may be based on MAC information of the user, or user message information (such as 802.1P information), or access link information (such as VLAN information) of the user, and of course, these information may also be considered comprehensively to form a comprehensive load sharing algorithm. For example, modulo is performed according to the MAC information of the user, and load sharing is performed according to the modulo result, and the basic syntax of the backup component is: b { (P1, P2, P3), mod (mac) }. In addition, it should be noted that each backup component needs to have a virtual MAC, and virtual MACs of different backup components in the same forwarding component are different. Thus, the basic syntax of the backup component consists of: b { (Px, Py, Pz), Mod (MAC), VMAC }, where B is the backup component, MAC is the user's MAC address, Px, Py, Pz are the user access ports, and VMAC is the virtual MAC address of the backup component. Therefore, the best component accessed to the user in the forwarding platform, namely the backup component which is the most suitable for the user equipment to access is determined according to the load sharing algorithm.
And further, accessing the user equipment to the optimal component, executing a flow strategy on the data message corresponding to the control message through the optimal component, and performing flow forwarding on the data message according to a flow strategy result. The invention realizes the load sharing of the forwarding platform and improves the utilization rate of components in the forwarding platform.
Further, referring to fig. 5, fig. 5 is a schematic flow chart of a load sharing method according to a third embodiment of the present invention.
Based on the second embodiment shown in fig. 4, the load sharing system further includes a network security system, where the control message and the data message are derived from an initial message corresponding to the broadband dialing mode and sent to the forwarding platform when the user equipment performs broadband dialing, and the load sharing method further includes:
step S500, the control platform responds to the initial message, generates a corresponding proposal message and sends the proposal message to the user equipment, so that the user equipment and the control platform perform interaction of a message protocol corresponding to the proposal message through the optimal component to negotiate and use a network security system authentication mode;
step S600, the control platform initiates an authentication request to the network security system according to the negotiation result and the user information, so that the network security system performs authentication and authorization processing on the user and feeds back corresponding user authorization information;
in order to obtain the broadband access user table and thus perform stream forwarding, in the embodiment of the present invention, first, the control platform needs to perform interaction of a corresponding message protocol, and the broadband access user table can be obtained only by corresponding user authorization information fed back after the user is authenticated and authorized by the network security system.
Specifically, after the user equipment accesses to the optimal component, the optimal component responds to the proposed message corresponding to the initial message, generates a corresponding message protocol and sends the message protocol to the user equipment, so that the user equipment performs interaction of the message protocol with the control platform through the optimal component to negotiate and use a network security system authentication mode.
Further, the control platform initiates an authentication request to the network security system according to the negotiation result and the user information, and the network security system performs authentication and authorization processing on the user to obtain user authorization information. The network security system refers to AAA, which is abbreviated as Authentication, Authorization, and Accounting, and is a security management mechanism for performing access control in network security, and provides three security services, namely Authentication, Authorization, and Accounting. Specifically, the authentication is to verify the identity of the user and judge whether the user is a legal user; authorization is to authorize the authenticated user which services they can use; the charging is to record the resource condition of the network service used by the user, and the information is used as the basis for charging.
Step S700, the control platform obtains a broadband access user table according to the user authorization information and the user information, and issues the broadband access user table to the optimal component.
Further, a broadband access user table is obtained according to the user authorization information and the user information, and is sent to the optimal component, wherein the broadband access user table comprises an MAC address, an IP address and user authorization information of a user.
At this time, step S400 includes:
step S410, the optimal component in the forwarding platform executes a flow policy on the data packet corresponding to the control packet in the forwarding platform, and performs flow forwarding on the data packet according to the flow policy result and the broadband access user table.
Further, referring to fig. 6, fig. 6 is a schematic diagram of a detailed flow that an optimal component in the forwarding platform performs a flow policy on a data packet corresponding to the control packet and performs flow forwarding on the data packet according to the embodiment of the present invention, where step S410 includes:
step S411, the optimal component in the forwarding platform matches the flow characteristics to the data message corresponding to the control message, and performs flow classification according to the flow characteristics, thereby executing a flow strategy;
step S412, the best component in the forwarding platform performs flow forwarding on the data message according to the flow strategy result and the broadband access user table.
In the embodiment of the invention, the optimal component in the forwarding platform matches the flow characteristics to the data message corresponding to the control message, and performs flow classification according to the flow characteristics so as to execute the flow strategy. The flow strategy is to classify the user traffic, classify the messages with a certain common characteristic into a class, and provide the same QoS service for the same type of traffic, thereby providing differential service for different service types. For example, speed limiting, filtering, packet statistics, redirection (policy routing), etc. may be performed according to different flow classifications. In addition, the flow policy includes a QoS policy, a security policy, and the like.
Further, the best component in the forwarding platform performs stream forwarding on the data message according to the stream strategy result and the broadband access user table.
Referring to fig. 7, fig. 7 is a flowchart illustrating a load sharing method according to a fourth embodiment of the present invention.
Based on the third embodiment shown in fig. 5, the load sharing method further includes:
step S800, the forwarding platform receives an initial message which is sent after the broadband dialing of the user equipment and corresponds to the broadband dialing mode, and distinguishes whether the initial message is a control message or a data message according to the protocol type of the initial message and a preset flow table;
step S900, packaging the control message, and sending the packaged control message to the control platform through a corresponding preset tunnel;
in the embodiment of the invention, after the user performs broadband dialing, the corresponding initial message is sent to the forwarding platform, at this time, whether the initial message is a control message or a data message needs to be judged according to the protocol type and the preset flow table of the initial message, and only the control message can be sent to the control platform through the forwarding platform for processing. The preset flow table may be an OpenFlow flow table prestored in the forwarding platform, and each flow table entry of the OpenFlow flow table is composed of 3 parts: header Fields (headers Fields) for packet matching, Counters (Counters) for counting the number of matching packets, and Actions (Actions) showing how the matching packets are processed. And when the judgment is made, the header content of the received initial message is matched according to the header field.
And when the initial message is a control message, packaging the control message to ensure the safety of the message, and sending the packaged control message to a control platform through a corresponding preset tunnel. The Encapsulation is a process of adding necessary protocol information to data before network transmission, and the Encapsulation protocol includes a GRE (Generic Routing Encapsulation) protocol, an L2F (Level 2Forwarding protocol, second layer Forwarding protocol), an L2VPN (Level 2Virtual Private network) Encapsulation protocol, a trunk Encapsulation protocol, and the like, and the corresponding preset tunnels include a GRE tunnel, an L2F tunnel, an L2VPN tunnel, a trunk tunnel, and the like.
At this time, step S200 includes:
step S210, the control platform performs corresponding decapsulation on the encapsulated control packet, and extracts user information according to the decapsulated control packet.
In the embodiment of the invention, after the forwarding platform sends the encapsulated control message to the control platform, the control platform carries out corresponding decapsulation on the encapsulated control message and extracts user information according to the decapsulated control message. The decapsulation is the reverse process of encapsulation, which refers to a process of removing protocol control information layer by layer.
Step S1000, judging whether a broadband access user table corresponding to a user exists in the forwarding platform, if so, executing step S410 to the data message: and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the broadband access user table.
In the embodiment of the invention, when the data message is distinguished from the initial message, whether the broadband access user table corresponding to the user exists in the forwarding platform is further judged. When the forwarding platform has the broadband access user table corresponding to the user, the optimal component in the forwarding platform executes flow strategies, such as QoS strategies, security strategies and the like, on the data message, and performs flow forwarding on the data message according to the flow strategy result and the broadband access user table of the user. When the forwarding platform does not have the broadband access user table of the user, the data message is discarded, and of course, this situation only exists in the initial stage, and the forwarding platform does not receive the broadband access user table corresponding to the user yet.
Further, referring to fig. 8, fig. 8 is a timing diagram of a load sharing method according to a fourth embodiment of the present invention.
As shown in fig. 8, the forwarding platform includes a first user table management module, a control packet encapsulation module, a flow classification module and a data packet forwarding module, and the control platform includes a second user table management module, a packet protocol processing module, a control packet decapsulation module and a load sharing policy module.
Specifically, when the forwarding platform receives a control message sent during broadband dialing of the user equipment, the control message is encapsulated in the control message encapsulation module, the encapsulated control message is sent to the control platform through a preset tunnel, the encapsulated control message is decapsulated through a control message decapsulation module in the control platform, and corresponding user information is extracted. Further, a load sharing policy is requested to the load sharing policy module according to the user information, so that calculation is performed in the load sharing policy module through a preset load sharing algorithm, an optimal component of the user equipment, which is accessed to the forwarding platform and corresponds to the user information, is determined, and the user equipment is accessed to the optimal component. Furthermore, the control message is processed correspondingly in the message protocol processing module, and a corresponding proposal message is generated and sent to the user equipment, so that the user equipment can carry out interaction with the message protocol corresponding to the proposal message through the optimal group price and the control platform.
Further, a message protocol processing module in the control platform initiates an authentication request to the network security system according to user information, so that the network security system performs authentication and authorization processing on the user, and feeds back corresponding user authorization information to the message protocol processing module. Further, a broadband access user table is obtained according to the user authorization information and the user information, and the broadband access user table is issued to the optimal component.
Furthermore, a flow classification module in the forwarding platform matches flow characteristics to the data message, and performs flow classification according to the flow characteristics, so as to execute a flow strategy; and according to the flow strategy result and the broadband access user table, a data message forwarding module in a forwarding platform performs flow forwarding on the data message.
The present invention further provides a load sharing system, which includes: a control platform, a forwarding platform and a load sharing program, wherein the load sharing program when executed by the control platform and the forwarding platform realizes the steps of the load sharing method according to any one of the above embodiments.
The specific embodiment of the load sharing system of the present invention is basically the same as the embodiments of the load sharing method, and will not be described herein again.
The present invention also proposes a computer readable storage medium having a load sharing program stored thereon, which when executed by a processor implements the steps of the load sharing method according to any one of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the load sharing method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or the portions contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (11)

1. A load sharing method is characterized in that the load sharing method is applied to a load sharing system, the load sharing system comprises a forwarding platform and a control platform, and the load sharing method comprises the following steps:
receiving a control message sent by the forwarding platform, and extracting user information according to the control message;
calculating through a preset load sharing algorithm according to the user information, and determining an optimal component of the user equipment which is accessed to the user information and corresponds to the user information in the forwarding platform;
accessing the user equipment to the optimal component, so that the optimal component executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the user information;
wherein, the calculating according to the user information by a preset load sharing algorithm to determine the best component of the user equipment accessed to the user information corresponding to the user information in the forwarding platform comprises:
determining a plurality of backup assemblies according to a grouping algorithm and a forwarding assembly in the forwarding platform, wherein the forwarding assembly and the backup assembly respectively comprise a plurality of ports, and a first port in the plurality of ports in the backup assembly is a main port;
and calculating through the preset load sharing algorithm according to the user information, and determining the optimal component accessed to the user equipment in the plurality of backup components.
2. The load sharing method according to claim 1, wherein the load sharing system further includes a network security system, the control packet and the data packet are derived from an initial packet sent to the forwarding platform when a user equipment performs broadband dialing, the step of accessing the user equipment to the optimal component so that the optimal component performs a flow policy on the data packet corresponding to the control packet in the forwarding platform, and performing flow forwarding on the data packet according to the flow policy result and the user information includes:
accessing the user equipment to the best component;
responding to the initial message, generating a corresponding proposal message and sending the proposal message to the user equipment, so that the user equipment interacts with the control platform through the optimal component and a message protocol corresponding to the proposal message to negotiate and use a network security system authentication mode;
initiating an authentication request to the network security system according to the negotiation result and the user information so that the network security system performs authentication and authorization processing on the user and feeds back corresponding user authorization information;
and obtaining a broadband access user table according to the user authorization information and the user information, issuing the broadband access user table to the optimal component, so that the optimal component executes a flow strategy on the data message corresponding to the control message, and performing flow forwarding on the data message according to the flow strategy result and the broadband access user table.
3. The load sharing method of claim 1 wherein the optimal component includes a plurality of ports, and the step of accessing the user equipment to the optimal component includes:
when the state of a first port in a plurality of ports is normal, accessing the user equipment to the first port;
and when the first port is abnormal in state, accessing the user equipment to a second port with a normal state in a plurality of ports.
4. A load sharing method is characterized in that the load sharing method is applied to a load sharing system, the load sharing system comprises a forwarding platform and a control platform, and the load sharing method comprises the following steps:
the forwarding platform sends a control message to the control platform;
the control platform extracts user information according to the control message;
the control platform calculates according to the user information through a preset load sharing algorithm, determines an optimal component of user equipment which is accessed to the user information in the forwarding platform, and accesses the user equipment to the optimal component;
the best component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the user information;
the determining the optimal component of the user equipment accessed to the user information corresponding to the user information in the forwarding platform by calculating according to the user information through a preset load sharing algorithm comprises the following steps:
determining a plurality of backup assemblies according to a grouping algorithm and a forwarding assembly in the forwarding platform, wherein the forwarding assembly and the backup assembly respectively comprise a plurality of ports, and a first port in the plurality of ports in the backup assembly is a main port;
and calculating through the preset load sharing algorithm according to the user information, and determining the optimal component accessed to the user equipment in the plurality of backup components.
5. The load sharing method of claim 4 wherein the optimal component includes a plurality of ports, and the step of accessing the user equipment to the optimal component includes:
when the state of a first port in a plurality of ports is normal, accessing the user equipment to the first port;
and when the first port is abnormal in state, accessing the user equipment to a second port with a normal state in a plurality of ports.
6. The load sharing method according to claim 4, wherein the load sharing system further includes a network security system, the control message and the data message are derived from an initial message corresponding to the broadband dialing mode sent to the forwarding platform when the user equipment performs broadband dialing, the control platform performs calculation according to the user information by using a preset load sharing algorithm, determines an optimal component of the user equipment corresponding to the user information accessed in the forwarding platform, and accesses the user equipment to the optimal component, and the method further includes:
the control platform responds to the initial message, generates a corresponding proposal message and sends the proposal message to the user equipment, so that the user equipment and the control platform interact with a message protocol corresponding to the proposal message through the optimal component to negotiate to use a network security system authentication mode;
the control platform initiates an authentication request to the network security system according to the negotiation result and the user information, so that the network security system performs authentication and authorization processing on the user and feeds back corresponding user authorization information;
the control platform obtains a broadband access user table according to the user authorization information and the user information and issues the broadband access user table to the optimal component;
the step of executing a flow strategy on the data message corresponding to the control message in the forwarding platform by the optimal component in the forwarding platform, and performing flow forwarding on the data message according to the flow strategy result and the user information comprises the following steps:
and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the broadband access user table.
7. The load sharing method of claim 6, wherein the step of executing a flow policy on the data packet corresponding to the control packet in the forwarding platform by the optimal component in the forwarding platform and performing flow forwarding on the data packet according to the flow policy result and the broadband access user table comprises:
matching the flow characteristics of the data messages corresponding to the control messages by the optimal components in the forwarding platform, and carrying out flow classification according to the flow characteristics so as to execute a flow strategy;
and the optimal component in the forwarding platform performs stream forwarding on the data message according to the stream strategy result and the broadband access user table.
8. The load sharing method of claim 6, wherein before the step of the forwarding platform sending the control packet to the control platform, the method comprises:
the forwarding platform receives an initial message which is sent after the user equipment broadband dialing and corresponds to the broadband dialing mode, and distinguishes whether the initial message is a control message or a data message according to the protocol type of the initial message and a preset flow table;
packaging the control message, and sending the packaged control message to the control platform through a corresponding preset tunnel;
judging whether a broadband access user table corresponding to a user exists in the forwarding platform, if so, executing the steps on the data message: and the optimal component in the forwarding platform executes a flow strategy on the data message corresponding to the control message in the forwarding platform, and performs flow forwarding on the data message according to the flow strategy result and the broadband access user table.
9. The load sharing method of claim 8, wherein the step of the control platform extracting the user information according to the control packet comprises:
and the control platform carries out corresponding de-encapsulation on the encapsulated control message and extracts user information according to the de-encapsulated control message.
10. A load sharing system, characterized in that the load sharing system comprises: a control platform, a forwarding platform and a load sharing program, which when executed by the control platform and the forwarding platform implement the steps of the load sharing method as claimed in any one of claims 4 to 9.
11. A computer-readable storage medium, having a load sharing program stored thereon, which when executed by a processor, implements the steps of the load sharing method according to any one of claims 4 to 9.
CN201710636450.3A 2017-07-27 2017-07-27 Load sharing method, system and computer readable storage medium Active CN109309627B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710636450.3A CN109309627B (en) 2017-07-27 2017-07-27 Load sharing method, system and computer readable storage medium
PCT/CN2018/097511 WO2019020114A1 (en) 2017-07-27 2018-07-27 Load sharing method and system, and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710636450.3A CN109309627B (en) 2017-07-27 2017-07-27 Load sharing method, system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109309627A CN109309627A (en) 2019-02-05
CN109309627B true CN109309627B (en) 2022-05-20

Family

ID=65041043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710636450.3A Active CN109309627B (en) 2017-07-27 2017-07-27 Load sharing method, system and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN109309627B (en)
WO (1) WO2019020114A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937540A (en) * 2006-09-29 2007-03-28 杭州华为三康技术有限公司 Link load sharing method and relay device
CN105262698A (en) * 2015-10-28 2016-01-20 华为技术有限公司 Load sharing method, device and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095597B (en) * 2011-10-28 2017-04-26 华为技术有限公司 Load balancing method and device
CN105337819B (en) * 2014-08-15 2020-05-22 中国电信股份有限公司 Data processing method of broadband access gateway, broadband access gateway and network system
US9705775B2 (en) * 2014-11-20 2017-07-11 Telefonaktiebolaget Lm Ericsson (Publ) Passive performance measurement for inline service chaining
CN110958272B (en) * 2015-06-04 2021-10-15 华为技术有限公司 Identity authentication method, identity authentication system and related equipment
CN105634956B (en) * 2015-12-31 2018-11-16 华为技术有限公司 A kind of message forwarding method, device and system
CN110896371B (en) * 2016-02-14 2022-07-26 华为技术有限公司 Virtual network equipment and related method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1937540A (en) * 2006-09-29 2007-03-28 杭州华为三康技术有限公司 Link load sharing method and relay device
CN105262698A (en) * 2015-10-28 2016-01-20 华为技术有限公司 Load sharing method, device and system

Also Published As

Publication number Publication date
WO2019020114A1 (en) 2019-01-31
CN109309627A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US10122622B2 (en) Exchanging application metadata for application context aware service insertion in service function chain
US11095478B2 (en) Access control method, apparatus, and system
US8488569B2 (en) Communication device
CN107995052B (en) Method and apparatus for common control protocol for wired and wireless nodes
US11606223B2 (en) Broadband remote access server (BRAS) system-based packet encapsulation
EP2225663B1 (en) Providing services to packet flows in a network
JP6946607B2 (en) Communication systems, session management function entities, and programs
WO2018233485A1 (en) Session management method and device
WO2019033920A1 (en) Method and device enabling network side to identify and control remote user equipment
US20050249194A1 (en) System and method for enabling mobile edge services
CN102158409B (en) Retransmission control method for IP (Internet Protocol) message and equipment thereof
CA3046995C (en) System and method for dynamic network function virtualization processing
CN106656648B (en) Application flow dynamic protection method and system based on home gateway and home gateway
CN106416146B (en) Communication apparatus, communication method, and communication system
WO2011082584A1 (en) Implementing method, network and terminal for processing data packet classification
US20160080532A1 (en) Method for generating input parameter and device
CN111262762B (en) vCPE tenant-based SFC service chain multi-WAN service realization method and system
CN109309627B (en) Load sharing method, system and computer readable storage medium
US20200162476A1 (en) System and method for providing proximity alert for trusted visitor
WO2018068768A1 (en) Broadband service control method and apparatus
US20230413353A1 (en) Inter-plmn user plane integration
WO2012083803A1 (en) Priority inheritance method and system for quality of service in identifier network
CN114826745A (en) Method for realizing user authentication in transparent scene
CN107888991A (en) Network link processing method, device and computer-readable recording medium
JP2012070458A (en) Priority control system, priority control device, priority control method, and priority control program

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