CN112260913B - Access method and system for realizing distributed broadband - Google Patents

Access method and system for realizing distributed broadband Download PDF

Info

Publication number
CN112260913B
CN112260913B CN202011513925.8A CN202011513925A CN112260913B CN 112260913 B CN112260913 B CN 112260913B CN 202011513925 A CN202011513925 A CN 202011513925A CN 112260913 B CN112260913 B CN 112260913B
Authority
CN
China
Prior art keywords
message
forwarding
access
logic
programmable switch
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
CN202011513925.8A
Other languages
Chinese (zh)
Other versions
CN112260913A (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.)
Guangdong Communications and Networks Institute
Original Assignee
Guangdong Communications and Networks Institute
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 Guangdong Communications and Networks Institute filed Critical Guangdong Communications and Networks Institute
Priority to CN202011513925.8A priority Critical patent/CN112260913B/en
Publication of CN112260913A publication Critical patent/CN112260913A/en
Application granted granted Critical
Publication of CN112260913B publication Critical patent/CN112260913B/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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/287Remote access server, e.g. BRAS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a distributed broadband access method, which comprises the following steps: receiving a message, and judging whether the message is a protocol message or not; if the message is a protocol message, triggering and executing the roaming logic of the protocol message to realize distributed access to the message; otherwise, judging the message as a forwarding message, and triggering and executing the roaming logic of the forwarding message to realize the distributed access message. The invention also discloses a distributed broadband access system, and the method and the system disclosed by the invention can solve the problems of equipment complexity, high reliability and performance requirements, expensive equipment, easy performance bottleneck point generation in the use process and the like in the conventional BRAS system.

Description

Access method and system for realizing distributed broadband
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to an access method and system for a distributed broadband.
Background
A BRAS (broadband remote access server) is an access gateway for broadband applications, and is located at an edge layer of an ISP (Internet service provider) network. The main functions include: user access, user management, AAA (authentication, authorization, accounting), user bandwidth management, service selection, firewall, VPN, and other functions.
In a traditional BRAS system, a control function and a forwarding function are both realized on one device, so that the device is required to realize all BRAS control functions and forwarding functions, and the problems of complex realization of the device, high requirements on reliability and performance and high cost of the device are caused. Meanwhile, as the traffic increases, the device becomes a performance bottleneck point, requiring frequent upgrade or replacement of the device.
With the development of BRAS technology, the conventional BRAS is developing to the vbars. The vBRAS performs decoupling separation on the control function and the forwarding function, and the control function performs unified control on the multiple forwarding function units. In such a system, although the above problems of the control function of the conventional BRAS are solved, the problems of the forwarding function are still not solved.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide an access method for implementing a distributed broadband, which can solve the problems of complexity of equipment, high reliability and performance requirements, expensive equipment, easy occurrence of performance bottleneck point in the use process, etc. in the existing BRAS system.
In order to solve the above technical problem, a first aspect of the present invention discloses an access method for implementing distributed broadband, the method being applied to a distributed control system, the system including a logic management unit for managing a plurality of programmable switches, the method including: controlling a programmable switch to register and generate registration information in a logic control unit, wherein the registration information at least comprises forwarding logic capability information of the programmable switch; and pre-issuing roaming logics of different access message types to the registered programmable switch through a logic control unit, wherein the message types comprise an online protocol message, an offline protocol message and a forwarding message.
In some embodiments, the method comprises: receiving a message, and judging whether the message is a protocol message or not; if the message is a protocol message, triggering and executing roaming logic of the protocol message to realize distributed access message; otherwise, judging the message as a forwarding message, and triggering and executing the roaming logic of the forwarding message to realize the distributed access message.
In some embodiments, the protocol packet includes an online protocol packet, and if the packet is a protocol packet, the triggering of executing the roaming logic of the protocol packet to implement the distributed access packet includes: acquiring an access message type according to a received online protocol message, and inquiring whether forwarding logic information exists according to the access message type; if the forwarding logic information exists, packaging the on-line protocol message by using a programmable switch identifier for receiving the on-line protocol message; and completing the access process according to the access protocol message, generating a forwarding table entry of the forwarding message according to the forwarding logic information, and issuing the forwarding table entry to the selected programmable switch.
In some embodiments, querying whether forwarding logic information exists according to the type of the access packet, and then further comprising: if no forwarding logic information exists, inquiring a roaming table according to the type of the access message; if the roaming list is inquired, packaging a target programmable switch identification used in the roaming list item in an online protocol message; and completing the access process according to the access protocol message, generating a forwarding table entry of the forwarding message according to the forwarding logic information, and issuing the forwarding table entry to the selected programmable switch.
In some embodiments, if there is no forwarding logic information, querying a roaming table according to the type of the access packet, and then: if the roaming list is not inquired, packaging the online protocol message with a programmable switch identifier for receiving the online protocol message; analyzing the online protocol message to generate an access message type; selecting a programmable switch according to the forwarding logic information of the access message type; if the programmable switch selected according to the forwarding logic information of the access message type is not the programmable switch receiving the online protocol message, issuing a roaming list item of the access message type to the programmable switch; issuing forwarding logic information to the programmable switch and generating notification information; responding to the notification information, and storing forwarding logic information of the access message type of the programmable switch; and completing the access process according to the access protocol message, generating a forwarding table entry of the forwarding message according to the forwarding logic information, and issuing the forwarding table entry to the selected programmable switch.
In some embodiments, the protocol packet includes a offline protocol packet, and if the packet is a protocol packet, the triggering of executing the roaming logic of the protocol packet to implement the distributed access packet includes: acquiring an access message type according to a received offline protocol message, and inquiring whether forwarding logic information exists according to the access message type; if the forwarding logic information exists, analyzing the offline protocol message to perform user offline processing, and informing the programmable switch to delete the forwarding table entry of the forwarding message; and when the last user of the access message type on the programmable switch is offline, recovering forwarding logic information of the access message type on the programmable switch, and informing the programmable switch to delete the forwarding logic information according to the forwarding logic information.
In some embodiments, determining that the packet is a forwarding packet, and triggering execution of the roaming logic of the forwarding packet to implement a distributed access packet includes: acquiring an access message type according to a received forwarding message, searching a forwarding table item of the access message type, and judging whether forwarding logic information exists in the access message type; if the access message type has forwarding logic information, forwarding the message according to a forwarding table entry.
In some embodiments, determining whether the access packet type has forwarding logic information further includes: if the access message type does not have forwarding logic information, whether a roaming list item exists or not is checked according to the access message type of the forwarding message; if the roaming list item exists, forwarding to the roaming programmable switch according to the roaming list item.
According to a third aspect of the present invention, a distributed broadband access system is disclosed, the system comprising: the programmable switch is used for receiving the message; the logic control unit is used for judging whether the message is a protocol message or not; and the access control unit is used for triggering and executing the roaming logic of the protocol message to realize the distributed access message when the message is the protocol message, or triggering and executing the roaming logic of the forwarding message to realize the distributed access message when the message is judged to be the forwarding message.
According to a fourth aspect of the present invention, there is disclosed a distributed broadband access apparatus, comprising: a memory storing executable program code; a processor coupled with the memory; the processor calls the executable program code stored in the memory to execute the distributed broadband access method as described above.
Compared with the prior art, the invention has the beneficial effects that:
the invention can aim at the problems that the traditional BRAS and vRRAS need special BRAS equipment to carry out access and forwarding service, the equipment is complex in design and is easy to become a performance bottleneck, and the like, but utilizes the programmability of the programmable exchanger to dynamically trigger and send access forwarding logic to the broadband access related message passing through the programmable exchanger, thereby completing the access and forwarding processes on the programmable exchanger, and simultaneously, the invention can realize the high-efficiency use of the network resources of the whole network through the roaming function. Therefore, special BRAS equipment is not needed any more, the broadband access and forwarding functions are dispersed on a switch accessed by a user, the performance bottleneck of the BRAS equipment is eliminated, and the network investment cost is saved.
Drawings
Fig. 1 is a schematic flowchart of a method for implementing access of a distributed broadband according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for accessing a distributed broadband according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for accessing a distributed broadband according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a method for accessing a distributed broadband according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for accessing a distributed broadband according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a distributed broadband access system according to an embodiment of the present invention;
fig. 7 is a schematic diagram of another distributed broadband access system according to an embodiment of the present disclosure;
fig. 8 is a schematic diagram of another distributed broadband access system according to an embodiment of the present disclosure;
fig. 9 is a schematic diagram of another distributed broadband access system according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a distributed broadband access device according to an embodiment of the present invention.
Detailed Description
For better understanding and implementation, 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 terms "comprises," "comprising," and any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not expressly listed or inherent to such process, method, article, or apparatus.
The invention takes the programmable exchanger as a main design concept, wherein the programmable exchanger is a novel exchanger which can program the message forwarding by using a high-level language and define the complete flow of a data packet. The programmability of the programmable data switch for the forwarding function brings the following advantages: the method is beneficial to the network provider to carry out faster iterative development, quickly push out new functions, and even directly repair the bugs of the data forwarding function program found in the existing product by patching; the network management system can help network owners to realize specific network behaviors most suitable for self requirements, a large number of software developers owned by a large number of large-scale operators can easily learn to program, test and debug network equipment with a forwarding function, the network is changed into a programmable platform, and the network is managed in a programmable mode; further, for network chip vendors, the programmable data plane enables them to focus on designing and improving reusable packet processing architectures and base modules rather than entangling intricate details and unusual behavior in a particular protocol.
The embodiment of the invention discloses a distributed broadband access method and a distributed broadband access system, which can be used for programming message forwarding by using a programmable switch, are beneficial to a network provider to carry out faster iterative development and rapidly push out a new function, even find a data forwarding function program bug in the existing product directly by patching and repair, and can solve the problems of equipment complexity, high reliability and performance requirements, expensive equipment, easy performance bottleneck point and the like in the existing BRAS system by carrying out programmable processing on an online protocol message, an offline protocol message and a forwarding message.
Example one
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an access method for implementing a distributed broadband according to an embodiment of the present invention. The access method for implementing distributed broadband is applied to a distributed control system, where the system includes a logic management unit for managing a plurality of programmable switches, and the embodiment of the present invention is not limited to the application system. As shown in fig. 1, the access method for implementing distributed broadband may include the following operations:
101. and controlling the programmable switch to register and generate registration information in the logic control unit, wherein the registration information at least comprises forwarding logic information of the programmable switch.
As an access to initialize the distributed broadband, capability information of forwarding logic needs to be deployed for the programmable switch. The logic control unit manages a plurality of programmable switch forwarding logics, and registration information is registered and generated in the logic control unit by the programmable switches. The concrete implementation is as follows: and receiving a registration request of a forwarding management component of the programmable switch, and analyzing the identification and the logic capability of the programmable switch from the request message. And requesting a logic resource management component of the logic control unit to add the logic capability of the programmable switch, wherein the request message carries the identification and the logic capability of the programmable switch.
102. And pre-issuing roaming logics of different access message types to the registered programmable switch through a logic control unit, wherein the message types comprise an online protocol message, an offline protocol message and a forwarding message.
The concrete implementation is as follows: and requesting to allocate roaming logic of the programmable switch to a logic resource management component of the logic control unit, wherein the roaming logic of the programmable switch requests to be added to a forwarding management component of the programmable switch. Wherein the logic resource management component of the logic control unit is embodied to provide functionality for adding programmable switch logic capability. Receiving a request for adding the logic capability of the programmable switch of a logic management component of the logic control unit, analyzing the programmable switch identification and the logic capability from the request message, generating a logic capability entry, filling the logic capability entry with the programmable switch identification and the logic capability, then adding the logic capability entry into a database of the logic capability of the programmable switch, and the database can be inquired into the logic capability entry of the programmable switch by taking the programmable switch identification as an index.
And further, for providing the ability to delete programmable switch logic. Receiving a request for deleting the logic capability of the programmable switch from a logic management component of the logic control unit, analyzing a programmable switch identifier from the request message, inquiring a logic capability database of the programmable switch through the programmable switch identifier, and deleting an entry from the database if the entry can be inquired.
And further for providing the functionality of distributing programmable switch roaming logic. Receiving a roaming logic request of the programmable switch for distribution of a logic management component of the logic control unit, wherein the request message carries the programmable switch identifier. Inquiring the logic capability database of the programmable switch through the programmable switch identification, acquiring the logic capability of the programmable switch, distributing roaming logic from the logic capability, recalculating the logic capability after distributing the roaming logic, and updating the logic capability of the programmable switch stored in the logic capability database of the programmable switch by using the logic capability. And returning to the roaming logic distributed by the logic management component of the logic control unit.
And further, the function of recovering the programmable switch roaming logic is provided. Receiving a request for recovering the roaming logic of the programmable switch from a logic management component of the logic control unit, wherein the request message carries the identifier of the programmable switch. And inquiring the logic capability database of the programmable switch through the programmable switch identification to acquire the logic capability of the programmable switch, returning the roaming logic to be recovered to the logic capability, recalculating the logic capability after the roaming logic is recovered, and updating the logic capability of the programmable switch stored in the logic capability database of the programmable switch by using the logic capability.
And further for providing the functionality of distributing programmable switch access type forwarding logic. And receiving a logic request for forwarding the access type of the programmable switch distributed by a logic management component of the logic control unit, wherein the request message carries the programmable switch identifier and the access type. Inquiring a programmable switch logic capability database through the programmable switch identification to obtain the logic capability of the programmable switch, distributing specific access type forwarding logic from the logic capability, recalculating the logic capability after distributing the access type forwarding logic, and updating the logic capability of the programmable switch stored in the programmable switch logic capability data by using the logic capability. And returning the access type forwarding logic distributed by the logic management component of the logic control unit.
And further, the method is also used for providing the function of recovering the programmable switch access type forwarding logic. And receiving a logic request for forwarding the access type of the recovery programmable switch of a logic management component of the logic control unit, wherein the request message carries the programmable switch identification and the access type. And inquiring the programmable switch logic capability database through the programmable switch identification to obtain the logic capability of the programmable switch, returning the access type forwarding logic to be recovered to the logic capability, recalculating the logic capability of the recovered access type forwarding logic, and using the logic capability to follow the logic capability of the programmable switch stored in the new programmable switch logic database.
Further, the method is also used for providing a function of inquiring whether the programmable switch access type forwarding logic exists. And receiving a request of a logic management component of the logic control unit for inquiring whether the access type forwarding logic of the programmable switch exists, wherein the request message carries the programmable switch identification and the access type. Inquiring a logic capability database of the programmable switch through the programmable switch identification to obtain the logic capability of the programmable switch, then inquiring whether the logic capability is allocated with the forwarding logic of the access type through the access type, if so, returning to the logic management component of the logic control unit, if not, returning to the logic management component of the logic control unit, and if not, returning to the logic management component of the logic control unit, accessing to the type forwarding logic of the access type.
And further, the function of inquiring the access type forwarding logic information of the programmable switch is also provided. And receiving a request for inquiring the access type forwarding logic information of a logic management component of the logic control unit, wherein the request information carries the programmable switch identifier and the access type. The logic capacity database of the programmable switch is inquired through the programmable switch identification to obtain the logic capacity of the programmable switch, then the access type forwarding logic is obtained through the access type inquiry logic capacity, the access type forwarding logic information is generated through the access type forwarding logic, and then the access type forwarding logic information is returned to the logic management component of the logic control unit.
And further, the function of inquiring the roaming logic information of the programmable switch is also provided. And receiving a request of a logic management component of the logic control unit for inquiring the roaming logic information of the programmable switch, wherein the request message carries the identifier of the programmable switch. The logic capacity database of the programmable switch is inquired through the programmable switch identification to obtain the logic capacity of the programmable switch, then the roaming logic of the programmable switch is obtained from the logic capacity, the roaming logic information of the programmable switch is generated through the roaming logic, and then the roaming logic information of the programmable switch is returned to the logic management component of the logic control unit.
And further, the method is also used for providing the function of adding the roaming table entry of the programmable switch. And receiving a request of adding a roaming table item of the programmable switch from a logic management component of the logic control unit, wherein the request message carries a programmable switch identifier, an access type and a target programmable switch identifier. A roaming entry is generated, the programmable switch identification, the access type, and the destination programmable switch identification are populated into the roaming entry, and the roaming entry is added to a programmable switch roaming entry database that can be queried as an index to the programmable switch roaming entry by the programmable switch identification and the access type.
And further, the method is also used for providing the function of deleting the roaming table entry of the programmable switch. And receiving a request of a logic management component of the logic control unit for deleting the roaming table entry of the programmable switch, wherein the request message carries the identifier of the programmable switch and the access type. The programmable switch identification and the access type are used as indexes to delete roaming entries in a programmable switch roaming entry database.
And further, the method is also used for providing a function of inquiring the roaming table entry of the programmable switch. And receiving a request of a logic management component of the logic control unit for deleting the roaming table entry of the programmable switch, wherein the request message carries the identifier of the programmable switch and the access type. The programmable exchanger mark and the access type are used as index to the programmable exchanger roaming list database to inquire the roaming item, if the roaming item is inquired, the roaming item is returned to the logic management component of the logic control unit, otherwise, the roaming item is returned to the logic management component of the logic control unit.
Therefore, according to the method provided by the embodiment, the access and forwarding services of the traditional BRAS and vRRAS which require special BRAS equipment can be achieved, the equipment is complex in design and is easy to become a performance bottleneck and other problems, but the programmability of the programmable switch is utilized to dynamically trigger and issue the access forwarding logic to the broadband access related message passing through the programmable switch, so that the access and forwarding processes are completed on the programmable switch, and meanwhile, the network resources of the whole network can be efficiently used through the roaming function. Therefore, special BRAS equipment is not needed any more, the broadband access and forwarding functions are dispersed on a switch accessed by a user, the performance bottleneck of the BRAS equipment is eliminated, and the network investment cost is saved.
Example two
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a distributed broadband access method according to an embodiment of the present invention. The access method of the distributed broadband is applied to a distributed control system, the system includes a logic management unit for managing a plurality of programmable switches, and the embodiment of the invention is not limited to the application system. As shown in fig. 2, the access method of the distributed broadband may include the following operations:
201. and receiving the message and judging whether the message is a protocol message or not.
The programmable switch receives the message and judges whether the accessed message is a message related to the protocol or not according to the field in the message.
202. If the message is a protocol message, the roaming logic of the protocol message is triggered and executed to realize the distributed access message.
The protocol messages comprise an online protocol message and an offline protocol message. As a specific implementation, when the protocol packet is an online protocol packet. Firstly, acquiring an access message type according to a received online protocol message, and inquiring whether forwarding logic information exists according to the access message type; if the forwarding logic information exists, packaging the on-line protocol message by using a programmable switch identifier for receiving the on-line protocol message; and completing the access process according to the access protocol message, generating a forwarding table entry of the forwarding message according to the forwarding logic information, and issuing the forwarding table entry to the selected programmable switch. After inquiring whether forwarding logic information exists according to the type of the access message, the method also comprises the following steps: if no forwarding logic information exists, inquiring a roaming table according to the type of the access message; if the roaming list is inquired, packaging a target programmable switch identification used in the roaming list item in the online protocol message; and completing the access process according to the access protocol message, generating a forwarding table entry of the forwarding message according to the forwarding logic information, and issuing the forwarding table entry to the selected programmable switch. If there is no forwarding logic information, the root access message type inquires the roaming table, and then the following steps are included: if the roaming list is not inquired, packaging the online protocol message with a programmable switch identifier for receiving the online protocol message; analyzing an online protocol message to generate an access message type, selecting a programmable switch according to forwarding logic information of the access message type, if the programmable switch is selected to be not the programmable switch receiving the online protocol message according to the forwarding logic information of the access message type, issuing a roaming table item of the access message type to the programmable switch, issuing forwarding logic information to the programmable switch, generating notification information, responding to the notification information, storing the forwarding logic information of the access message type of the programmable switch, completing an access process according to the access protocol message, generating a forwarding table item of the forwarding message according to the forwarding logic information, and issuing the forwarding table item to the selected programmable switch.
Illustratively, as a specific implementation manner, as shown in fig. 3, the implementation of the distributed access packet by the roaming logic that triggers execution of the protocol packet is specifically implemented as follows:
step 301: and receiving a protocol message by the programmable switch, wherein the protocol message is an online protocol message.
Step 302: and acquiring an access message type on the programmable switch according to the received on-line protocol message, and then inquiring whether forwarding logic exists on the programmable switch by using the access message type.
Step 303: it is determined at the programmable switch whether access-type forwarding logic is present and, if so, processing proceeds to step 304, otherwise, processing proceeds to step 306.
Step 304: and encapsulating the programmable switch identification in the online protocol message, wherein the identification is the identification of the programmable switch receiving the online protocol message.
Step 305: the uplink protocol message is sent to the access control unit for processing via the programmable switch, and the process goes to step 316.
Step 306: a roaming table is queried at the programmable switch based on the access type.
Step 307: if the roaming list item is obtained by querying the roaming list item according to the access type on the programmable switch, go to step 308, otherwise go to step 309.
Step 308: the programmable switch identification that is the destination programmable switch in the roaming entry is encapsulated in the upload protocol message and the process proceeds to step 305.
Step 309: and encapsulating the programmable switch identification by the online protocol message, wherein the identification is the programmable switch identification for receiving the online protocol message and is uploaded to the logic control unit.
Step 310: the logic control unit receives the on-line protocol message sent by the programmable switch, analyzes the on-line protocol message, deduces the access type from the field of the on-line protocol message, and selects the programmable switch for the access type forwarding logic.
Step 311: if the programmable switch selected by the logic control unit for the access type forwarding logic is not the switch receiving the on-line protocol packet, go to step 312, otherwise go to step 313.
Step 312: when the programmable switch selected by the logic control unit for the access type forwarding logic is not the programmable switch receiving the online protocol message, the roaming table entry of the access type needs to be issued on the selected programmable switch. The process goes to step 313 after the roaming list item is issued.
Step 313: and the logic control unit issues forwarding logic to the selected programmable switch.
Step 314: and after the logic control unit issues the forwarding logic, issuing notification information to the access control unit to enable the access control unit to perform online processing, wherein the notification information comprises an online protocol message, forwarding logic information and a selected programmable switch identifier.
Step 315: and after receiving the on-line notification information, the access control unit stores forwarding logic information of the access type on the programmable switch.
Step 316: the access control unit completes the access process according to the access protocol message, generates the forwarding table entry of the forwarding message according to the forwarding logic information, and sends the forwarding table entry to the selected programmable switch.
As a specific implementation manner, when the protocol message is an offline protocol message, the roaming logic executing the protocol message is triggered to realize a distributed access message, firstly, the type of the access message is obtained according to the received offline protocol message, whether forwarding logic information exists is inquired according to the type of the access message, if the forwarding logic information exists, the offline protocol message is analyzed to perform user offline processing, and a programmable switch is notified to delete a forwarding table entry of the forwarding message, when the last user of the type of the access message on the programmable switch is offline, the forwarding logic information of the type of the access message on the programmable switch is recovered, and the programmable switch is notified to delete the forwarding logic information according to the forwarding logic information.
Illustratively, as a specific implementation manner, as shown in fig. 4, the implementation of the distributed access packet by the roaming logic that triggers execution of the protocol packet is specifically implemented as follows:
step 401: and receiving a protocol message by the programmable switch, wherein the protocol message is an offline protocol message.
Step 402: and acquiring the type of the access message on the programmable switch according to the received offline message, and then inquiring whether forwarding logic information exists on the programmable switch or not according to the type of the access message.
Step 403: and judging whether the forwarding logic of the access type of the offline protocol message exists, if not, turning to the step 404, otherwise, turning to the step 406.
Step 404: and judging whether the roaming list item of the access type of the offline protocol message exists or not, if so, turning to the step 406, and otherwise, turning to the step 405.
Step 405: and discarding the offline protocol message under the condition that the roaming table entry of the access type of the offline protocol message does not exist.
Step 406: the programmable switch transmits the offline protocol message to the access control unit for processing.
Step 407: the access control unit analyzes the message after receiving the offline protocol message, carries out offline processing of the user and informs the programmable switch to delete the forwarding table entry of the forwarding message.
Step 408: when the last user of the access control unit judges the access type on the programmable switch goes offline, the logic control unit is informed to recover the forwarding logic information of the access type on the programmable switch.
Step 409: the logic control unit receives a forwarding logic request of the access control unit, wherein the logic request comprises an access message type and an identification of the programmable switch, and the logic control unit acquires logic information of the programmable switch according to the identification of the programmable switch.
Step 410: if the logic switch has roaming list item, deleting the roaming list item, and informing the programmable switch which issues the roaming list item to delete the roaming list item.
Step 411: and the logic control unit recovers the forwarding logic resource of the programmable switch and informs the programmable switch to delete the forwarding message forwarding logic.
203. Otherwise, judging the message as a forwarding message, and triggering and executing the roaming logic of the forwarding message to realize the distributed access message.
The concrete implementation is as follows: and acquiring the type of the access message according to the received forwarding message, searching the forwarding table entry of the type of the access message, judging whether the type of the access message has forwarding logic information or not, and if the type of the access message has the forwarding logic information, forwarding the access message according to the forwarding table entry. Further, if the access message type does not have forwarding logic information, whether a roaming list item exists is checked according to the access message type of the forwarding message; if the roaming list item exists, forwarding to the roaming programmable switch according to the roaming list item.
Illustratively, as one embodiment, as shown in figure 5,
step 501: the programmable switch receives the forwarding message, analyzes part of fields of the forwarding message and obtains the type of the access message.
Step 502: and searching a forwarding table entry of the access message type on the programmable switch, if the forwarding logic of the access message type does not exist, marking the query result as miss, if the forwarding logic of the access message type exists, but the forwarding table entry of the user cannot be hit by the query, marking the query result as miss, and otherwise, marking the query result as hit.
Step 503: the query structure is interpreted and if a hit goes to step 504, otherwise step 505 is forwarded.
Step 504: and forwarding the forwarding message according to the forwarding table entry.
Step 505: and checking a roaming table entry according to the type of the access message of the forwarding message.
Step 506: if the roaming list item inquiry result is a hit, go to step 507, otherwise go to step 508.
Step 507: and forwarding to the roaming programmable switch according to the roaming table entry.
Step 508: and discarding the forwarding message.
According to the method provided by the embodiment, the access and forwarding service can be performed by aiming at the problem that the traditional BRAS and vRRAS require special BRAS equipment, the equipment is complex in design and is easy to become a performance bottleneck and the like, but the programmability of the programmable switch is utilized to dynamically trigger and send the access forwarding logic to the broadband access related message passing through the programmable switch, so that the access and forwarding processes are completed on the programmable switch, and meanwhile, the network resources of the whole network can be efficiently used through the roaming function. Therefore, special BRAS equipment is not needed any more, the broadband access and forwarding functions are dispersed on a switch accessed by a user, the performance bottleneck of the BRAS equipment is eliminated, and the network investment cost is saved.
EXAMPLE III
Referring to fig. 6, fig. 6 is a schematic diagram of a distributed broadband access system according to an embodiment of the present invention. The access method for implementing distributed broadband is applied to a distributed control system, where the system includes a logic management unit for managing a plurality of programmable switches, and the embodiment of the present invention is not limited to the application system. As shown in fig. 6, the access method for implementing distributed broadband may include the following operations:
programmable switch 603 for receiving messages.
The logic control unit 601 is configured to determine whether the packet is a protocol packet.
An access control unit 602, configured to trigger execution of a roaming logic of the protocol packet to implement a distributed access packet if the packet is a protocol packet, and trigger execution of a roaming logic of a forwarding packet to implement a distributed access packet if the packet is determined to be a forwarding packet.
Among other things, the logic control unit 601 and the access control unit 602 can manage a plurality of programmable switches 603.
Logic control unit 601 includes a logic management component for receiving registration requests from the forwarding management component of the programmable switch, parsing out the identification and logic capabilities of the programmable switch from the request message. And requesting a logic resource management component of the logic control unit to add the logic capability of the programmable switch, wherein the request message carries the identification and the logic capability of the programmable switch. And requesting the logic resource management unit of the logic control unit to allocate the roaming logic of the programmable switch, wherein the roaming logic of the programmable switch requests to be added to the forwarding management component of the programmable switch.
Furthermore, the logic management component is further configured to receive an online protocol packet reported by a forwarding component of the programmable switch, and analyze the online protocol packet to obtain an access type and an identifier of the programmable switch receiving the online protocol packet. And requesting a logic resource management component of the logic control unit to inquire whether the access type forwarding logic of the programmable switch exists, wherein the request message carries the access type and the identification of the programmable switch. Receiving the query result, if not, using the forwarding logic of the access type of the programmable switch to query the logic resource management component whether the roaming list item exists, wherein the query request carries the programmable switch identifier and the access type for receiving the online protocol message, returning the query result, and if the roaming list item does not exist, triggering the forwarding logic of the application access type to process.
Further, the logic management component is further configured to request a forwarding logic for allocating an access type to the logic resource management component of the logic control unit, where the request message carries the access type. The logic resource management component returns the forwarding logic requested for allocation and the selected programmable switch. And issuing the forwarding logic of the access type to the forwarding management component of the selected programmable switch. Checking whether the selected programmable switch is the same as the programmable switch receiving the on-line protocol message, if not, triggering the processing of generating the roaming list item, otherwise, triggering the access control component of the access control unit to request the access processing.
Furthermore, the logic management component is also configured to request the logic resource management component of the logic control unit to query roaming logic information of the programmable switch, where the request message carries a programmable switch identifier for receiving the online protocol packet. After the roaming logic information is inquired, a roaming table entry is generated according to the logic information and added to a logic resource management component of the logic control unit, and the roaming table entry is issued to a forwarding management component of the programmable switch receiving the on-line protocol. Next, the access control component of the access control unit is triggered to request access processing.
Further, the logic management component is further configured to request the logic resource management component of the logic control unit to query forwarding logic information, where the request message carries an access type and an identifier of the programmable switch where the forwarding logic is located, and after returning the forwarding logic information of the access type, request the access control component of the access control unit to get online, and the request message carries an online protocol packet, forwarding logic information, and an identifier of the programmable switch where the forwarding logic is located.
Further, the logic management component is further configured to receive a forwarding logic request for deleting the programmable switch from the access management component of the access control unit, parse the access type and the programmable switch identifier from the request packet, and request the logic resource management component of the logic control unit to delete the forwarding logic of the programmable switch, where the request message carries the access type and the programmable switch identifier. If the forwarding logic of the programmable switch has the roaming list item, the roaming list item is requested to be deleted, and the request carries the programmable switch identification and the access type.
In one embodiment, the logic control unit further comprises a logic resource management component for providing functionality for adding programmable switch logic capability. Receiving a request for adding the logic capability of the programmable switch of a logic management component of the logic control unit, analyzing the programmable switch identification and the logic capability from the request message, generating a logic capability entry, filling the logic capability entry with the programmable switch identification and the logic capability, then adding the logic capability entry into a database of the logic capability of the programmable switch, and the database can be inquired into the logic capability entry of the programmable switch by taking the programmable switch identification as an index.
Further, the logic resource management component is also operative to provide functionality for deleting programmable switch logic capabilities. Receiving a request for deleting the logic capability of the programmable switch from a logic management component of the logic control unit, analyzing a programmable switch identifier from the request message, inquiring a logic capability database of the programmable switch through the programmable switch identifier, and deleting an entry from the database if the entry can be inquired.
Further, the logic resource management component is also operative to provide functionality for allocating programmable switch roaming logic. Receiving a roaming logic request of the programmable switch for distribution of a logic management component of the logic control unit, wherein the request message carries the programmable switch identifier. Inquiring the logic capability database of the programmable switch through the programmable switch identification, acquiring the logic capability of the programmable switch, distributing roaming logic from the logic capability, recalculating the logic capability after distributing the roaming logic, and updating the logic capability of the programmable switch stored in the logic capability database of the programmable switch by using the logic capability. And returning to the roaming logic distributed by the logic management component of the logic control unit.
Further, the logical resource management component is also operative to provide functionality for reclaiming programmable switch roaming logic. Receiving a request for recovering the roaming logic of the programmable switch from a logic management component of the logic control unit, wherein the request message carries the identifier of the programmable switch. And inquiring the logic capability database of the programmable switch through the programmable switch identification to acquire the logic capability of the programmable switch, returning the roaming logic to be recovered to the logic capability, recalculating the logic capability after the roaming logic is recovered, and updating the logic capability of the programmable switch stored in the logic capability database of the programmable switch by using the logic capability.
Further, the logical resource management component is also operative to provide functionality for assigning programmable switch access type forwarding logic. And receiving a logic request for forwarding the access type of the programmable switch distributed by a logic management component of the logic control unit, wherein the request message carries the programmable switch identifier and the access type. Inquiring a programmable switch logic capability database through the programmable switch identification to obtain the logic capability of the programmable switch, distributing specific access type forwarding logic from the logic capability, recalculating the logic capability after distributing the access type forwarding logic, and updating the logic capability of the programmable switch stored in the programmable switch logic capability data by using the logic capability. And returning the access type forwarding logic distributed by the logic management component of the logic control unit.
Further, the logical resource management component is also operative to provide functionality to reclaim programmable switch access-type forwarding logic. And receiving a logic request for forwarding the access type of the recovery programmable switch of a logic management component of the logic control unit, wherein the request message carries the programmable switch identification and the access type. And inquiring the programmable switch logic capability database through the programmable switch identification to obtain the logic capability of the programmable switch, returning the access type forwarding logic to be recovered to the logic capability, recalculating the logic capability of the recovered access type forwarding logic, and using the logic capability to follow the logic capability of the programmable switch stored in the new programmable switch logic database.
Further, the logical resource management component is also operative to provide functionality for querying the programmable switch access type forwarding logic for the presence. And receiving a request of a logic management component of the logic control unit for inquiring whether the access type forwarding logic of the programmable switch exists, wherein the request message carries the programmable switch identification and the access type. Inquiring a logic capability database of the programmable switch through the programmable switch identification to obtain the logic capability of the programmable switch, then inquiring whether the logic capability is allocated with the forwarding logic of the access type through the access type, if so, returning to the logic management component of the logic control unit, if not, returning to the logic management component of the logic control unit, and if not, returning to the logic management component of the logic control unit, accessing to the type forwarding logic of the access type.
Further, the logic resource management component is also configured to provide functionality for querying programmable switch access type forwarding logic information. And receiving a request for inquiring the access type forwarding logic information of a logic management component of the logic control unit, wherein the request information carries the programmable switch identifier and the access type. The logic capacity database of the programmable switch is inquired through the programmable switch identification to obtain the logic capacity of the programmable switch, then the access type forwarding logic is obtained through the access type inquiry logic capacity, the access type forwarding logic information is generated through the access type forwarding logic, and then the access type forwarding logic information is returned to the logic management component of the logic control unit.
Further, the logic resource management component is also configured to provide functionality for querying programmable switch roaming logic information. And receiving a request of a logic management component of the logic control unit for inquiring the roaming logic information of the programmable switch, wherein the request message carries the identifier of the programmable switch. The logic capacity database of the programmable switch is inquired through the programmable switch identification to obtain the logic capacity of the programmable switch, then the roaming logic of the programmable switch is obtained from the logic capacity, the roaming logic information of the programmable switch is generated through the roaming logic, and then the roaming logic information of the programmable switch is returned to the logic management component of the logic control unit.
Further, the logical resource management component is also operative to provide functionality for adding a programmable switch roaming table entry. And receiving a request of adding a roaming table item of the programmable switch from a logic management component of the logic control unit, wherein the request message carries a programmable switch identifier, an access type and a target programmable switch identifier. A roaming entry is generated, the programmable switch identification, the access type, and the destination programmable switch identification are populated into the roaming entry, and the roaming entry is added to a programmable switch roaming entry database that can be queried as an index to the programmable switch roaming entry by the programmable switch identification and the access type.
Further, the logical resource management component is also operative to provide functionality for deleting programmable switch roaming entries. And receiving a request of a logic management component of the logic control unit for deleting the roaming table entry of the programmable switch, wherein the request message carries the identifier of the programmable switch and the access type. The programmable switch identification and the access type are used as indexes to delete roaming entries in a programmable switch roaming entry database.
Further, the logical resource management component is also operative to provide functionality for querying programmable switch roaming entries. And receiving a request of a logic management component of the logic control unit for deleting the roaming table entry of the programmable switch, wherein the request message carries the identifier of the programmable switch and the access type. The programmable exchanger mark and the access type are used as index to the programmable exchanger roaming list database to inquire the roaming item, if the roaming item is inquired, the roaming item is returned to the logic management component of the logic control unit, otherwise, the roaming item is returned to the logic management component of the logic control unit.
The access control unit 602 includes an access management component, and the access management component is configured to receive an access request of an online protocol packet sent by a logic management component of the logic control unit, where the request message carries the online protocol packet, a programmable switch identifier, and access type forwarding logic information. And completing an access function according to the on-line protocol message, forwarding logic information according to the access type to generate a forwarding table, and requesting a forwarding table management component of the access control unit to add a forwarding table, wherein the request message carries the programmable switch identifier, the access user identifier and the forwarding table. And requesting a forwarding management component of the programmable switch to add a forwarding table entry, wherein the request message carries an access type, a user identifier and the forwarding table entry.
Furthermore, the access management component is configured to receive a offline protocol packet sent by a forwarding unit of the programmable switch, and parse the access type and the programmable switch identifier where the access type forwarding logic is located from the offline protocol packet. And completing offline processing through the offline protocol message, requesting a forwarding table item management component of the access control unit to delete the forwarding table item, wherein the request message carries the programmable switch identifier and the access user identifier. And requesting a forwarding management component of the programmable switch to delete the forwarding table entry, wherein the request message carries the access type and the access user identifier. And a forwarding table management component to the access control unit requests to inquire whether the number of forwarding table entries of the access type of the programmable switch is null or not, and a request message carries the programmable switch identifier and the access type. And if the number of the returned forwarding table entries is empty, informing a logic management component of the logic control unit to recover the forwarding logic of the programmable switch, wherein the request message carries the programmable switch identifier and the access type.
Access control unit 602 also includes a forwarding table entry management component for providing programmable switch access-type forwarding table entry addition functionality. Receiving a request for adding the programmable switch access type forwarding table entry of an access management component of an access control unit, analyzing a programmable switch identifier from a request message, and accessing a user identifier and a forwarding table entry. And generating a forwarding entry, filling the programmable switch identifier, the access user identifier and the forwarding entry into the forwarding entry, then adding the forwarding entry into a forwarding entry database, and using the programmable switch identifier and the access user identifier as indexes to query the forwarding entry data to obtain the forwarding entry.
Further, the forwarding table entry management component is further configured to provide programmable switch access type forwarding table entry deletion functionality. Receiving a request for deleting the access type forwarding table entry of the programmable switch of an access management component of the access control unit, analyzing the programmable switch identification and the access user identification from the request message, and deleting the forwarding table entry of the forwarding table entry database by using the programmable switch identification and the access user identification as indexes.
The programmable switch 603 includes a forwarding management component, which is configured to receive a request for adding a roaming logic of the programmable switch from a logic management component of the logic control unit, parse the roaming logic from the request message, and request the forwarding component of the programmable switch to add the roaming logic.
Further, the forwarding management component is also configured to receive a request for deleting the roaming logic of the programmable switch from the logic management component of the logic control unit, and request the forwarding component of the programmable switch to delete the roaming logic.
Further, the forwarding management component is further configured to receive a request for adding the programmable switch access type forwarding logic of the logic management component of the logic control unit, parse the access type and the forwarding logic in the request message, and request the forwarding component of the programmable switch to add the access type forwarding logic.
Further, the forwarding management component is further configured to receive a request for deleting the access type forwarding logic of the programmable switch from the logic management component of the logic control unit, analyze the access type in the request message, and request the forwarding component of the programmable switch to delete the access type forwarding logic.
Furthermore, the forwarding management component is further configured to receive a request for adding a roaming table entry of the programmable switch from the logic management component of the logic control unit, and parse the access type and the destination programmable switch identifier in the request message to request the forwarding management component of the programmable switch to add the roaming table entry.
Further, the forwarding management component is further configured to receive a request for deleting a roaming table entry of the programmable switch from the logic management component of the logic control unit, parse the access type in the request message, and request the forwarding management component of the programmable switch to delete the roaming table entry.
Further, the forwarding management component is further configured to receive a request for adding a forwarding table entry of an access type of the programmable switch from the access management component of the access control unit, parse the access type, access the user identifier and the forwarding table entry from the request message, and request the forwarding component of the programmable switch to add the forwarding table entry.
Further, the forwarding management component is further configured to receive a request for deleting an access type forwarding table entry of the programmable switch from the access management component of the access control unit, parse the access type and the access user identifier from the request message, and request the forwarding component of the programmable switch to delete the forwarding table entry.
Programmable switch 603 also includes a forwarding component that identifies received messages. Firstly, judging whether to forward the message, if so, identifying the message as the forwarding message, otherwise, judging whether to access the related protocol message, if so, continuously judging whether the message is an on-line protocol message or an off-line protocol message, if so, identifying the message as the on-line protocol message, and if so, identifying the message as the off-line protocol message.
Further, the forwarding component is further configured to, if the forwarding component identifies that the forwarding component is a forwarding message, parse the forwarding message to obtain an access type, query a forwarding table entry of the access type, if the forwarding table entry is hit, forward the message according to the forwarding table entry, otherwise query a roaming table entry according to the access type, if the forwarding table entry is hit, forward the message according to the roaming table entry, and otherwise discard the message.
Further, the forwarding component is further configured to, if the protocol packet is identified as an online protocol packet, parse an access type from the protocol packet, and search whether a forwarding logic exists according to the access type. If the programmable switch exists, the identifier of the programmable switch is encapsulated into a message and is sent to an access management component of an access control unit; if not, the roaming list item is searched according to the access type, if yes, the target programmable exchanger mark in the roaming list item is packaged into the protocol message and sent to the access management component of the access control unit, otherwise, the mark of the programmable exchanger is packaged into the message and sent to the logic management component of the logic control unit.
Further, the forwarding component is further configured to, if the protocol packet is identified as an offline protocol packet, parse an access type from the protocol packet, and search whether a forwarding logic exists according to the access type. If the programmable switch exists, the identifier of the programmable switch is encapsulated into a message and is sent to an access management component of an access control unit; if not, the roaming list item is searched according to the access type, if yes, the target programmable exchanger in the roaming list item is packaged into the protocol message and sent to the access management component of the access control unit, otherwise, the message is discarded.
Further, the forwarding component is configured to receive a request for adding programmable switch roaming logic from a forwarding management component of the programmable switch, retrieve roaming logic from the request message, and store the roaming logic in the component.
Further, the forwarding component is configured to receive a request to delete programmable switch roaming logic from a forwarding management component of the programmable switch to delete roaming logic from storage on the component.
Further, the forwarding component is configured to receive a request of adding the programmable switch access type forwarding logic from the forwarding management component of the programmable switch, obtain the access type and the forwarding logic from the request message, and store the access type and the forwarding logic in the component.
The forwarding component is further configured to receive a request of the forwarding management component of the programmable switch to delete the access type forwarding logic of the programmable switch, obtain the access type from the request message, and delete the forwarding logic from the storage through the access type.
Further, the forwarding component is further configured to receive a request for adding a roaming table entry of the programmable switch from the forwarding management component of the programmable switch, acquire the access type and the destination programmable switch identifier in the request message, and generate a roaming table entry to be added to the roaming logic.
Further, the forwarding component is further configured to receive a request of the forwarding management component of the programmable switch to delete the roaming table entry of the programmable switch, acquire the access type in the request message, and delete the roaming table entry from the roaming logic according to the access type.
Further, the forwarding component is further configured to receive a request for adding a forwarding entry of an access type of the programmable switch from a forwarding management component of the programmable switch, acquire the access type, an access user identifier and the forwarding entry from the request message, find the forwarding logic according to the access type, and add the access user identifier and the forwarding entry to the forwarding logic.
Further, the forwarding component is further configured to receive a request of the forwarding management component of the programmable switch for deleting the forwarding table entry of the access type of the programmable switch, acquire the access type and the access user identifier in the request message, find the forwarding logic according to the access type, and delete the forwarding table entry from the forwarding logic according to the access user identifier.
According to the system provided by the embodiment, the access and forwarding service can be performed by aiming at the special BRAS equipment required by the traditional BRAS and vRRAS, the equipment is complex in design and is easy to become the problems of performance bottleneck and the like, but the programmability of the programmable switch is utilized to dynamically trigger and send the access forwarding logic to the broadband access related message passing through the programmable switch, so that the access and forwarding processes are completed on the programmable switch, and meanwhile, the network resources of the whole network can be efficiently used through the roaming function. Therefore, special BRAS equipment is not needed any more, the broadband access and forwarding functions are dispersed on a switch accessed by a user, the performance bottleneck of the BRAS equipment is eliminated, and the network investment cost is saved.
Example four
Fig. 7 is a schematic diagram illustrating an access method of the distributed broadband by using a specific networking application. In conventional BRAS networking, a subscriber is connected to a switch and then to a BRAS device, which is in turn connected to a CR (core router). The BRAS device is omitted in this embodiment and the switch may be directly connected to the CR. The access types of users 1 and 2 connected with the switch1 in the networking are different, and the logic control unit and the access control unit are deployed in the existing IT facility.
Fig. 8 is a schematic flow chart of the protocol message on line by the method user 1. As shown in fig. 8, the method includes:
step 801: the user1 goes online and sends an online protocol message.
Step 802: the switch1 receives the online protocol message of the user1, acquires the access type of the user1, and by the access type query, the forwarding logic of the access type does not exist in the switch1, and the roaming table entry does not exist in the switch1 by the access type query, so that the programmable switch identifier of the switch1 is encapsulated by the online protocol message of the user1, and the message is sent to the logic control unit.
Step 803: the logic control unit receives an online protocol message of the user1, acquires the access type and the programmable switch identification of the user1, selects the programmable switch in which the forwarding logic is located as the switch1, and issues the forwarding logic of the user1 access type to the switch 1.
Step 804: the logical control unit requests the user1 to go online from the access control unit.
Step 805: the access control unit receives a user on-line request of the user1, completes the user on-line of the user1, and issues a forwarding table entry of the user1 to the shock 1.
Further, as shown in fig. 9, it is a schematic flow chart of the online protocol message of the user 2. As shown in fig. 9, the method includes:
step 901: the user2 goes online and sends the online protocol message
Step 902: the switch1 receives the online protocol message of the user2, acquires the access type of the user2, and by the access type query, the forwarding logic of the access type does not exist in the switch1, and the roaming table entry does not exist in the switch1 by the access type query, so that the programmable switch identifier of the switch1 is encapsulated by the online protocol message of the user2, and the message is sent to the logic control unit.
Step 903: the edit control unit receives an online protocol message of the user2, acquires an access type and a programmable switch identifier of the user2, selects a programmable switch where forwarding logic is located as a switch2 due to the exhaustion of logic resources of the switch1, and issues forwarding logic of a user2 access type to the switch 2.
Step 904: the logic control unit issues a user2 access type roaming entry to the switch1, and the destination programmable switch is the switch 2.
Step 905: the logical control unit requests the user2 to go online from the access control unit.
Step 906: the access control unit receives a user on-line request of the user2, completes the user on-line of the user2, and issues a forwarding table entry of the user2 to the shock 2.
According to the method provided by the embodiment, the access and forwarding service can be performed by aiming at the problem that the traditional BRAS and vRRAS require special BRAS equipment, the equipment is complex in design and is easy to become a performance bottleneck and the like, but the programmability of the programmable switch is utilized to dynamically trigger and send the access forwarding logic to the broadband access related message passing through the programmable switch, so that the access and forwarding processes are completed on the programmable switch, and meanwhile, the network resources of the whole network can be efficiently used through the roaming function. Therefore, special BRAS equipment is not needed any more, the broadband access and forwarding functions are dispersed on a switch accessed by a user, the performance bottleneck of the BRAS equipment is eliminated, and the network investment cost is saved.
EXAMPLE five
Referring to fig. 10, fig. 10 is a schematic structural diagram of a distributed broadband access device according to an embodiment of the present invention. The distributed broadband access apparatus described in fig. 10 may be applied to a distributed broadband access system, and the embodiment of the present invention is not limited to the application system of distributed broadband access. As shown in fig. 10, the apparatus may include:
a memory 1001 in which executable program code is stored;
a processor 1002 coupled to a memory 1001;
the processor 1002 invokes executable program code stored in the memory 1001 for performing the distributed broadband access method described in the first embodiment.
EXAMPLE six
The embodiment of the invention discloses a computer readable storage medium which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the distributed broadband access method described in the first embodiment.
EXAMPLE seven
The embodiment of the invention discloses a computer program product, which comprises a non-transitory computer readable storage medium storing a computer program, and the computer program is operable to make a computer execute the distributed broadband access method described in the first embodiment or the second embodiment.
The above-described embodiments are only illustrative, and the modules described as separate components may or may not be physically separate, and the components displayed as modules may or may not be physical modules, may be located in one place, or may be distributed on a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above detailed description of the embodiments, those skilled in the art will clearly understand that the embodiments may be implemented by software plus a necessary general hardware platform, and may also be implemented by hardware. Based on such understanding, the above technical solutions may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, where the storage medium includes a Read-Only Memory (ROM), a Random Access Memory (RAM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a Compact Disc-Read-Only Memory (CD-ROM), or other disk memories, CD-ROMs, or other magnetic disks, A tape memory, or any other medium readable by a computer that can be used to carry or store data.
Finally, it should be noted that: the method and apparatus for accessing a distributed broadband disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used for illustrating the technical solutions of the present invention, rather than limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art; the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. An access method for implementing distributed broadband, the method being applied to a distributed control system including a logic management unit for managing a plurality of programmable switches, the method comprising:
controlling a programmable switch to register and generate registration information in a logic control unit, wherein the registration information at least comprises forwarding logic information of the programmable switch;
pre-issuing roaming logics of different access message types to the registered programmable switch through a logic control unit, wherein the message types comprise an online protocol message, an offline protocol message and a forwarding message;
receiving a message, and judging whether the message is a protocol message or not;
if the message is a protocol message, triggering and executing roaming logic of the protocol message to realize distributed access message;
otherwise, judging the message as a forwarding message, and triggering and executing the roaming logic of the forwarding message to realize the distributed access message.
2. The access method for implementing distributed broadband according to claim 1, wherein the protocol packet includes an online protocol packet, and if the packet is a protocol packet, triggering the roaming logic executing the protocol packet to implement the distributed access packet includes:
acquiring an access message type according to a received online protocol message, and inquiring whether forwarding logic information exists according to the access message type;
if the forwarding logic information exists, packaging the on-line protocol message by using a programmable switch identifier for receiving the on-line protocol message;
and completing the access process according to the access protocol message, generating a forwarding table entry of the forwarding message according to the forwarding logic information, and issuing the forwarding table entry to the selected programmable switch.
3. The access method for implementing distributed broadband according to claim 2, wherein the querying whether there is forwarding logic information according to the type of the access packet further comprises:
if no forwarding logic information exists, inquiring a roaming table according to the type of the access message;
if the roaming list is inquired, packaging a target programmable switch identification used in the roaming list item in an online protocol message;
and completing the access process according to the access protocol message, generating a forwarding table entry of the forwarding message according to the forwarding logic information, and issuing the forwarding table entry to the selected programmable switch.
4. The access method according to claim 3, wherein if there is no forwarding logic information, querying a roaming table according to the type of the access packet, and then further comprising:
if the roaming list is not inquired, packaging the online protocol message with a programmable switch identifier for receiving the online protocol message;
analyzing the online protocol message to generate an access message type;
selecting a programmable switch according to the forwarding logic information of the access message type;
if the programmable switch selected according to the forwarding logic information of the access message type is not the programmable switch receiving the online protocol message, issuing a roaming list item of the access message type to the programmable switch;
issuing forwarding logic information to the programmable switch and generating notification information;
responding to the notification information, and storing forwarding logic information of the access message type of the programmable switch;
and completing the access process according to the access protocol message, generating a forwarding table entry of the forwarding message according to the forwarding logic information, and issuing the forwarding table entry to the selected programmable switch.
5. The access method according to claim 1, wherein the protocol packet includes a offline protocol packet, and if the packet is a protocol packet, the triggering of the roaming logic executing the protocol packet to implement the distributed access packet includes:
acquiring an access message type according to a received offline protocol message, and inquiring whether forwarding logic information exists according to the access message type;
if the forwarding logic information exists, analyzing the offline protocol message to perform user offline processing, and informing the programmable switch to delete the forwarding table entry of the forwarding message;
and when the last user of the access message type on the programmable switch is offline, recovering forwarding logic information of the access message type on the programmable switch, and informing the programmable switch to delete the forwarding logic information according to the forwarding logic information.
6. The access method for implementing distributed broadband according to claim 1, wherein the determining that the packet is a forwarding packet and triggering the roaming logic that executes the forwarding packet to implement the distributed access packet comprises:
acquiring the type of an access message according to the received forwarding message;
searching a forwarding table item of the access message type, and judging whether forwarding logic information exists in the access message type;
if the access message type has forwarding logic information, forwarding the message according to a forwarding table entry.
7. The access method for implementing distributed broadband according to claim 6, wherein determining whether the access packet type has forwarding logic information further comprises:
if the access message type does not have forwarding logic information, whether a roaming list item exists or not is checked according to the access message type of the forwarding message;
if the roaming list item exists, forwarding to the roaming programmable switch according to the roaming list item.
8. A distributed broadband access system, the system comprising:
the programmable switch is used for registering and generating registration information in a logic control unit, wherein the registration information at least comprises forwarding logic information of the programmable switch;
the logic control unit is used for pre-issuing roaming logic of different access message types to the registered programmable switch, wherein the message types comprise an online protocol message, an offline protocol message and a forwarding message;
the programmable switch is also used for receiving messages;
the logic control unit is also used for judging whether the message is a protocol message;
and the access control unit is used for triggering and executing the roaming logic of the protocol message to realize the distributed access message when the message is the protocol message, otherwise, judging that the message is a forwarding message, and triggering and executing the roaming logic of the forwarding message to realize the distributed access message.
9. A distributed broadband access apparatus, comprising:
a memory storing executable program code;
a processor coupled with the memory;
the processor calls the executable program code stored in the memory to execute the access method for implementing distributed broadband according to any one of claims 1 to 7.
CN202011513925.8A 2020-12-21 2020-12-21 Access method and system for realizing distributed broadband Active CN112260913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011513925.8A CN112260913B (en) 2020-12-21 2020-12-21 Access method and system for realizing distributed broadband

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011513925.8A CN112260913B (en) 2020-12-21 2020-12-21 Access method and system for realizing distributed broadband

Publications (2)

Publication Number Publication Date
CN112260913A CN112260913A (en) 2021-01-22
CN112260913B true CN112260913B (en) 2021-04-02

Family

ID=74225857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011513925.8A Active CN112260913B (en) 2020-12-21 2020-12-21 Access method and system for realizing distributed broadband

Country Status (1)

Country Link
CN (1) CN112260913B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685026A (en) * 2012-08-31 2014-03-26 中兴通讯股份有限公司 Virtual network access method and system
CN107666419A (en) * 2016-07-28 2018-02-06 中兴通讯股份有限公司 A kind of virtual broadband cut-in method, controller and system
CN110557331A (en) * 2019-07-15 2019-12-10 中移(杭州)信息技术有限公司 User offline control method, controller, forwarding equipment and user access system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257420A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Point-to-point protocol accessing method, system as well as access node equipment
CN102739549B (en) * 2012-07-13 2015-10-21 华为技术有限公司 Receive the method for message, the method sending message and device
CN104702607B (en) * 2015-03-12 2018-10-09 新华三技术有限公司 A kind of access authentication method of software defined network, device and system
CN106330704B (en) * 2015-06-26 2019-12-06 新华三技术有限公司 Message forwarding method and device
CN112218345B (en) * 2016-08-24 2022-02-25 华为技术有限公司 Policy control method, network element, system and storage medium
CN107171852B (en) * 2017-06-15 2019-11-08 烽火通信科技股份有限公司 Two layer services based on OpenFlow configure system and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685026A (en) * 2012-08-31 2014-03-26 中兴通讯股份有限公司 Virtual network access method and system
CN107666419A (en) * 2016-07-28 2018-02-06 中兴通讯股份有限公司 A kind of virtual broadband cut-in method, controller and system
CN110557331A (en) * 2019-07-15 2019-12-10 中移(杭州)信息技术有限公司 User offline control method, controller, forwarding equipment and user access system

Also Published As

Publication number Publication date
CN112260913A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
RU2462840C2 (en) Method to select access gateway, system and execution unit to select gateway of package domain of mobile communication network
CN109361526B (en) Policy-controlled routing method, PCRF/PCF and DRA
CN110324245B (en) Method and device for forwarding message based on integrated flow table
RU2560821C2 (en) Communication system, control device, communication method and programme
CN108090064A (en) A kind of data query method, apparatus, data storage server and system
CN104040964B (en) Method, device and data center network across service area communication
WO2017185251A1 (en) Vnfm determining method and network function virtualization orchestrator
CN111885216B (en) DNS query method, device, equipment and storage medium
CN110445886A (en) A kind of method and system realizing domain name access and accelerating
CN109729183A (en) Request processing method, device, equipment and storage medium
CN112217856A (en) Address acquisition method, device, equipment and storage medium of application example
CN112533177A (en) Method, device, apparatus and medium for providing and discovering moving edge calculation
EP4278594A1 (en) Prioritising network function nodes
CN100455135C (en) Mobile terminal positioning method and system
CN104429048A (en) Object version management
CN110213365B (en) User access request processing method based on user partition and electronic equipment
US8224933B2 (en) Method and apparatus for case-based service composition
CN112260913B (en) Access method and system for realizing distributed broadband
US20190028880A1 (en) Method for accessing context data by network service component, apparatus, and system
CN110661896B (en) Method for determining mapping address of data stream and server
CN113542409B (en) Management system and processing method for instances of RocktMQ message queues
KR20210043654A (en) Method, apparatus and storage medium for resource organization
CN107623580B (en) Task processing method, device and system in content distribution network
CN103685367A (en) Offline download system and offline download method
CN112468400A (en) Fault positioning method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant