WO2017012443A2 - Message transmission method, access node, access controller and access system - Google Patents
Message transmission method, access node, access controller and access system Download PDFInfo
- Publication number
- WO2017012443A2 WO2017012443A2 PCT/CN2016/085990 CN2016085990W WO2017012443A2 WO 2017012443 A2 WO2017012443 A2 WO 2017012443A2 CN 2016085990 W CN2016085990 W CN 2016085990W WO 2017012443 A2 WO2017012443 A2 WO 2017012443A2
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- message
- identifier
- access
- access controller
- line
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Definitions
- the embodiments of the present invention relate to communication technologies, and in particular, to a message transmission method, an access node, an access controller, and an access system.
- a message is transmitted between a client device and a relay server through a message propagation path.
- the message may be a Dynamic Host Configuration Protocol (DHCP) message, a router solicitation (RS), or a router advertisement (RA) message.
- DHCP Dynamic Host Configuration Protocol
- RS router solicitation
- RA router advertisement
- each access node (AN) on the message propagation path needs to support the relay function.
- each access node on the message propagation path needs to configure the control plane to implement Relay function.
- Relay function When new services continue to emerge, each access node needs to configure the control plane for each new service, and the operation and maintenance cost and complexity are high.
- the embodiments of the present invention provide a message transmission method, an access node, an access controller, and an access system, which help reduce operation and maintenance costs and complexity.
- a message transmission method comprising:
- the access controller obtains a line identifier according to the first identifier
- the access controller obtains a second message according to the line identifier, where the second message includes the line identifier;
- the access controller sends the second message to a relay server.
- the access controller obtains the second message including the line identifier according to the received first message from the access node.
- the access node does not need to insert a line identification operation on the message from the user.
- the control plane of the access node can be transferred to the access controller, and the control plane of the access node is separated from the access node.
- the access node does not need to support the relay function, which helps to reduce operation and maintenance. Cost and complexity.
- the first message and the second message may be control plane messages.
- the first message may be an open flow message, or the first message is a tunnel message.
- the access controller obtains the line identifier according to the first identifier, and the access controller obtains the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes Corresponding relationship between the first identifier and the line identifier.
- the obtaining, by the access controller, the line identifier according to the first identifier includes: the access controller, according to the first coding rule, encoding the first identifier to obtain the line identifier.
- the first encoding rule may be an encoding method for encoding the first identifier into the line identifier, or the first encoding rule may be to encode the first identifier into the line identifier.
- the index value corresponding to the encoding method may be an encoding method for encoding the first identifier into the line identifier, or the first encoding rule may be to encode the first identifier into the line identifier.
- the first message further includes a first dynamic host configuration protocol (DHCP) message
- the second message is a second DHCP message
- the access controller is configured according to the line identifier.
- Obtaining the second message includes: adding, by the access controller, the line identifier to the first DHCP message, obtaining the second DHCP message, where the second DHCP message includes the line identifier.
- DHCP dynamic host configuration protocol
- the first message further includes a router solicitation (RS) message, where the second message is a first authentication, authorization, and accounting (AAA) message, and the access is performed.
- the controller obtains the second message according to the line identifier include:
- the access controller generates the first AAA message according to the line identifier and the RS message, where the first AAA message includes the line identifier.
- the method further includes:
- the access controller receives a fourth message sent by the relay server, where the fourth message includes a line identifier and Internet Protocol (IP) address information, where the IP address information is an IP address or an IP address prefix;
- IP Internet Protocol
- the access controller obtains the first identifier according to the line identifier
- the access controller obtains a third message according to the first identifier, where the third message includes the first identifier and the IP address information;
- the access controller sends the third message to the access node.
- the first message and the second message are control plane messages.
- the second message may be an openflow message, or the second message may be a tunnel message.
- the relay server may be a device that allocates IP address information to a user, such as an AAA server or a DHCP server capable of IP address information allocation.
- the obtaining, by the access controller, the first identifier according to the line identifier that: the access controller obtains the first identifier according to the line identifier and the corresponding relationship, and the corresponding relationship And including a correspondence between the first identifier and the line identifier.
- the obtaining, by the access controller, the first identifier according to the line identifier that: the access controller encodes the line identifier according to a second coding rule, to obtain the first identifier.
- the second encoding rule may be an encoding method for encoding the line identifier into the first identifier, or the second encoding rule may be to encode the line identifier into the first identifier.
- the index value corresponding to the encoding method may be an encoding method for encoding the line identifier into the first identifier, or the second encoding rule may be to encode the line identifier into the first identifier.
- the fourth message is a third DHCP message
- the access controller obtains the third message according to the first identifier, where the access controller deletes the location included in the third DHCP message. Determining a line identifier, obtaining a fourth DHCP message, where the fourth DHCP message includes the IP address information; The access controller obtains the third message according to the first identifier and the fourth DHCP message, and the third message further includes the fourth DHCP message.
- the fourth message is a second AAA message
- the access controller obtains the third message according to the first identifier
- the access controller is configured according to the second AAA message
- the RA message includes the IP address information
- the access controller obtains the third message according to the first identifier and the RA message
- the third message further includes the RA message.
- the first identifier includes a physical port number
- the line identifier includes at least one of a rack number, a frame number, a slot number, and a physical port number of the access node.
- the physical port number may be used to identify a physical port on the access node that communicates with a user.
- the first identifier includes a tunnel identifier and/or a logical port number, where the line identifier includes a virtual local area network identifier (VID) and a virtual path identifier (virtual) of the access node.
- VID virtual local area network identifier
- VCI virtual path identifier
- VCI virtual channel identifier
- the first identifier includes a Media Access Control (MAC) address or an IP address of the access node, where the line identifier includes an identity identifier of the access node and a cabinet number. at least one.
- MAC Media Access Control
- the first identifier includes a tunnel identifier, where the tunnel identifier is used to identify a tunnel between the access node and the access controller, and the line identifier includes a rack number of the access node. At least one of a frame number, a slot number, a physical port number, a VID, a VPI, a VCI, and an identity.
- the VPI can be used to identify a virtual path on the access node that communicates with the user.
- the VCI can be used to identify virtual channels on the access node that communicate with users.
- a message transmission method comprising:
- the access node receives the second message sent by the user
- the access node obtains a line identifier according to the second message, where the second message includes the line identifier;
- the access node obtains the first identifier according to the line identifier
- the access node sends the first message to an access controller.
- the first identifier corresponding to the line identifier is added to the first message that the access node may send to the access controller, and the control plane of the access node is transferred to the access controller. It helps to reduce the operation and maintenance costs and the complexity of access nodes.
- the obtaining, by the access node, the first identifier according to the line identifier the obtaining, by the access node, the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes the line Corresponding relationship between the identifier and the first identifier.
- the obtaining, by the access node, the first identifier according to the line identifier includes: the access node encoding, according to the first coding rule, the line identifier, to obtain the first identifier.
- the method further includes:
- the fourth message includes the IP address information
- the access node sends the fourth message to the user according to the line identifier.
- the obtaining, by the access node, the line identifier according to the first identifier the obtaining, by the access node, the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes Corresponding relationship between the first identifier and the line identifier.
- the obtaining, by the access node, the line identifier according to the first identifier includes: the access node encoding the first identifier according to a second coding rule, to obtain the line identifier.
- the first identifier may be the same as the first identifier provided by the first aspect
- the line identifier may be the same as the line identifier provided by the first aspect
- an access controller includes:
- a first receiving module configured to receive a first message sent by an access node, where the first message includes First identifier
- a first obtaining module configured to obtain a line identifier according to the first identifier
- a second obtaining module configured to obtain a second message according to the line identifier, where the second message includes the line identifier
- the first sending module is configured to send the second message to the relay server.
- the access controller provided by the third aspect may perform the method provided by the first aspect or any of the possible implementations of the first aspect.
- the access controller provided by the third aspect may be the access controller in the method provided by the second aspect or the possible implementation manner of any of the second aspect,
- the first obtaining module is configured to obtain the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier.
- the first obtaining module is specifically configured to code, according to the first encoding rule, the first identifier to obtain the line identifier.
- the first message further includes a first DHCP message
- the second message is a second DHCP message
- the second obtaining module is specifically configured to: add the line identifier to the first DHCP message. Obtaining the second DHCP message, where the second DHCP message includes the line identifier.
- the first message further includes an RS message, where the second message is a first AAA message, and the second obtaining module is specifically configured to: generate, according to the line identifier and the RS message, the first message An AAA message, the first AAA message including the line identifier.
- the access controller further includes:
- a second receiving module configured to receive a fourth message sent by the relay server, where the fourth message includes a line identifier and Internet Protocol IP address information, where the IP address information is an IP address or an IP address prefix;
- a third obtaining module configured to obtain the first identifier according to the line identifier
- a fourth obtaining module configured to obtain, according to the first identifier, a third message, where the third message includes the first identifier and the IP address information;
- a second sending module configured to send the third message to the access node.
- the third obtaining module is configured to: obtain the first identifier according to the line identifier and the corresponding relationship, where the correspondence includes a correspondence between the first identifier and the line identifier.
- the third obtaining module is specifically configured to: code, according to the second encoding rule, the line identifier to obtain the first identifier.
- the fourth message is a third DHCP message
- the fourth obtaining module is specifically configured to:
- the fourth message is a second AAA message, where the fourth obtaining module is specifically configured to:
- the first identifier may be the same as the first identifier provided by the first aspect
- the line identifier may be the same as the line identifier provided by the first aspect
- a fourth aspect provides an access device, where the access device includes:
- a first receiving module configured to receive a second message sent by the user
- a first obtaining module configured to obtain a line identifier according to the second message, where the second message includes the line identifier
- a second obtaining module configured to obtain a first identifier according to the line identifier
- a third obtaining module configured to obtain, according to the first identifier and the second message, a first message, where the first message includes the first identifier and the second message;
- the first sending module is configured to send the first message to the access controller.
- the access device provided by the fourth aspect may perform the method provided by the second aspect or any possible implementation manner of the second aspect.
- the access device provided by the fourth aspect may be any of the above possibilities The access node in the implementation.
- the second obtaining module is configured to: obtain the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the line identifier and the first identifier.
- the second obtaining module is specifically configured to: code, according to the first encoding rule, the line identifier to obtain the first identifier.
- the access device further includes:
- a second receiving module configured to receive a third message sent by the access controller, where the third message includes Internet Protocol IP address information, a first identifier, and a fourth message, where the IP address information is an IP address or an IP address. An address prefix, where the fourth message includes the IP address information;
- a fourth obtaining module configured to obtain the line identifier according to the first identifier
- the second sending module is configured to send the fourth message to the user according to the line identifier.
- the fourth obtaining module is specifically configured to: obtain the line identifier according to the first identifier and the corresponding relationship, where the correspondence relationship includes a correspondence between the first identifier and the line identifier.
- the fourth obtaining module is specifically configured to: according to the second encoding rule, encode the first identifier to obtain the line identifier.
- the first identifier may be the same as the first identifier provided by the first aspect, and the line identifier may be the same as the line identifier provided by the first aspect.
- an access controller comprising a communication interface, a processor, and a memory for storing the program.
- the processor reads a program in the memory and performs the following operations according to an instruction corresponding to the program:
- the processor included in the access controller may also perform the method provided by the first aspect or any of the possible implementation manners of the first aspect.
- an access device comprising a communication interface, a processor, and a memory for storing the program.
- the processor reads a program in the memory and performs the following operations according to an instruction corresponding to the program:
- the processor may also perform the method provided by the second aspect or any of the possible implementations of the second aspect.
- an access system comprising the access controller and the access device described above.
- the access controller is provided by the access controller provided by any one of the foregoing third aspect or the third aspect, or is provided by any one of the foregoing fifth or fifth possible implementation manners.
- the access device may be the access device provided by any of the foregoing possible implementation manners of the fourth aspect or the fourth aspect, or the connectivity provided by any of the foregoing sixth or sixth possible implementation manners. Into the device.
- 1 is a schematic diagram of an access network
- FIG. 2 is a schematic diagram of an access network according to an embodiment of the present invention.
- FIG. 3 is a flowchart of Embodiment 1 of a message transmission method according to the present invention.
- Embodiment 4 is a flowchart of Embodiment 2 of a message transmission method according to the present invention.
- FIG. 5 is a signaling diagram of Embodiment 3 of a message transmission method according to the present invention.
- FIG. 6 is a signaling diagram of Embodiment 4 of a message transmission method according to the present invention.
- FIG. 7 is a flowchart of Embodiment 5 of a message transmission method according to the present invention.
- FIG. 8 is a flowchart of Embodiment 6 of a message transmission method according to the present invention.
- FIG. 9 is a signaling diagram of Embodiment 7 of a message transmission method according to the present invention.
- FIG. 10 is a signaling diagram of Embodiment 8 of a message transmission method according to the present invention.
- FIG. 11 is a schematic structural diagram of Embodiment 1 of an access controller according to the present invention.
- FIG. 12 is a schematic structural diagram of Embodiment 1 of an access node according to the present invention.
- FIG. 13 is a schematic structural diagram of Embodiment 2 of an access controller according to the present invention.
- FIG. 14 is a schematic structural diagram of Embodiment 2 of an access node according to the present invention.
- the access node has a complete control plane and forwarding plane.
- the control faces the message to insert the option 82, and the forwarding is forwarded to the message.
- a passive optical network (PON) architecture is used as an example, and a customer premises equipment (CPE) or a cable modem (CM) communicates with a relay server through a message.
- the path transmits a message, which may be a Dynamic Host Configuration Protocol (DHCP) message, a router solicitation (RS), or a router advertisement (RA) message.
- DHCP Dynamic Host Configuration Protocol
- RS router solicitation
- RA router advertisement
- Each access node (AN) included in the message propagation path such as an optical network unit (ONU), a cable media converter (CMC), an optical line terminal (optical line) Termination, OLT) needs to support relay function.
- the control of each AN is processed in response to the received message, and the data of each AN is forwarded to the message processed by the control plane.
- each access node needs to configure the control plane for each new service, and the operation and maintenance cost and complexity are high.
- the embodiment of the present invention introduces a Software Defined Network (SDN) technology in the access network architecture, that is, sets an access controller in the access network, as shown in FIG. 2 .
- the control plane and the data plane of the access node are separated, and the function of the control plane of the access node is concentrated.
- the access controller processes messages, such as control plane messages.
- an access controller is added between the OLT and the relay server.
- the control planes of the access nodes such as the ONU, the CMC, or the OLT, are separated from the forwarding plane, and the functions of the control planes of the access nodes, such as DHCP messages, RS messages, or RA messages, are moved to the access controller. .
- the access controller may be an independent device or may be embedded in the OLT.
- the line ID in the embodiment of the present invention may also be referred to as a circuit ID or an access loop identifier (ALI).
- ALI access loop identifier
- the AN is a network node in a Digital Subscriber Line (DSL)/Ethernet.
- DSL Digital Subscriber Line
- Ethernet When the AN is derived from an Asynchronous Transfer Mode (ATM) DSL line, the format of the line identifier is: Access- Node-Identifier atm slot/port:vpi.vci;
- ATM Asynchronous Transfer Mode
- the format of the line identifier is: Access-Node-Identifier eth slot/port[:vlan-id].
- the Access-Node-Identifier is an identifier of the AN, for example, a DSLAM.
- the slot/port is a chassis number, a rack number, a frame number, a slot number, and a sub-AN.
- the line For a PON (passive optical network, PON) system, the line identifies the Line ID information of the ONU part and the Line ID information of the OLT part.
- the format of the line identifier is: when the ONU is from the ATM DSL line, it is Access-Node-Identifier atm slot1/port1/ONUID/slot2/port2:vpi.vci; when the ONU is from the Ethernet DSL/Ethernet line , for Access-Node-Identifier eth slot1/port1/ONUID/slot2/port2[:vlan-id].
- the access-Node-Identifier is the identifier of the OLT
- the slot1/port1 is the chassis number, the rack number, the frame number, the slot number, and the sub-slot of the OLT.
- slot2/port2 is the chassis number, rack number, frame number, and slot on the ONU.
- ONUID/slot2/port2: vpi.vci is the Line ID information of the ONU part
- the Access-Node-Identifier slot1/port1 is the Line ID information of the OLT part.
- the first identifier includes at least one of a physical port number, a tunnel identifier, a MAC address of the access node, an IP address of the access node, and a tunnel identifier of the access node.
- the physical port number may be a preset value corresponding to the first sub-information, or may be a value obtained after being calculated according to the first sub-information.
- the first sub-information includes at least one of a rack number, a frame number, a slot number, and a physical port number of the access node.
- the tunnel identifier may be a preset value that is corresponding to the second sub-information, or may be a value obtained after being calculated according to the second sub-information.
- the second sub-information includes a virtual local area network ID (VID), a virtual path identifier (VPI), and a virtual channel identifier (VCI) of the access node. At least one of them.
- the access node and the access controller can pass through a virtual local area network (VLAN) tunnel, a virtual eXtensible local area network (VxLAN) tunnel, and a multi-protocol label switching (Multi- Protocol Label Switch, MPLS) Tunnel connection such as tunnel.
- the tunnel identifier may be an identifier of the tunnel, for example, the tunnel identifier may be, for example, a VLAN ID, a VxLAN ID, or an MPLS label.
- the access node and the access controller transmit a message through a tunnel, such as a DHCP message, an RS message, or an RA message, and the access node and the access controller may also transmit an open flow through the tunnel (openflow).
- the message, the openflow message may carry a tunnel identifier and a message, such as a DHCP message, an RS message, or an RA message.
- the correspondence relationship includes a correspondence between the first identifier and the line identifier, and the correspondence relationship may be a mapping relationship table or an encoding relationship table.
- the corresponding relationship may be a correspondence relationship shown in Table 1 or Table 2.
- the corresponding relationship in Table 1 is a correspondence between the tunnel identifier and the second sub-information, or a correspondence between the logical port number and the second sub-information.
- the correspondence relationship in Table 2 is the correspondence between the tunnel identifier, the logical port number, and the second sub-information.
- a tunnel is established between the access node and the access controller, where the tunnel identifier is an identifier of a tunnel between the access node and the access controller or a tunnel identifier included in an openflow message. If the tunnel is not established between the access node and the access controller, the tunnel identifier may be a tunnel identifier included in the openflow message.
- the correspondence relationship may be a correspondence relationship shown in Table 3.
- the correspondence relationship in Table 3 is the correspondence between the physical port number and the first sub-information.
- the physical port number is used to identify a physical port on the user side of the access node, that is, a physical port on the access node that communicates with the user.
- the corresponding relationship may be a correspondence relationship shown in Table 4.
- the third sub-information includes at least one of an identity identifier and a cabinet number of the access node.
- the correspondence in Table 4 is the correspondence between the third sub-information and the MAC address of the access node.
- the corresponding relationship may be a correspondence relationship shown in Table 5.
- the correspondence relationship in Table 5 is the correspondence between the third sub-information and the IP address of the access node.
- the line identifier includes at least one of a rack number, a frame number, a slot number, a physical port number, a VID, a VPI, a VCI, and an identity of the access node. And the corresponding relationship includes a correspondence between the identifier of the tunnel and the line identifier.
- IP address AN ID, Chassis or ONU ID
- the access controller in the embodiment of the present invention may obtain the first identifier or the line identifier according to Tables 1 to 5 above. Specifically, the access controller may query the foregoing Table 1 to Table according to the obtained first identifier. One or more of the tables in 5, get the line identification. Alternatively, the access controller may query one or more of the foregoing Tables 1 to 5 according to the obtained line identifier to obtain the first identifier.
- the corresponding relationship in the embodiment of the present invention may include one or more of Table 1, Table 2, Table 3, Table 4, and Table 5. Accordingly, the line identifier may include the first child.
- the information, the second sub-information, and the third sub-information are not exemplified herein.
- FIG. 3 is a flowchart of Embodiment 1 of a message transmission method according to the present invention.
- the executor of this embodiment is an access controller, and the method provided in this embodiment is an uplink message transmission method.
- the uplink message is a message sent by the access node to the access controller.
- the method provided in the first embodiment includes:
- the access controller receives a first message sent by an access node, where the first message includes a first identifier.
- the first message may be an openflow message or a tunnel message.
- the first message may also include a DHCP message, an Extensible Authentication Protocol (EAP) message, or an RS message from the user.
- the tunnel can be a VLAN tunnel, a VXLAN tunnel, or an MPLS tunnel.
- the access controller obtains the line identifier according to the first identifier and the corresponding relationship, where the correspondence includes a correspondence between the first identifier and the line identifier.
- the access controller may pre-store a correspondence between the first identifier and the line identifier.
- the access controller queries the corresponding relationship by using the first identifier to obtain the line identifier.
- 302 may be replaced by: the access controller encoding the first identifier according to an encoding rule to obtain the line identifier.
- the encoding rule may be an encoding method for encoding the first identifier into the line identifier, or the encoding rule may be an encoding method for encoding the first identifier into the line identifier. Index value.
- the access controller obtains a second message according to the line identifier, where the second message includes the line identifier.
- the access controller obtains the second message according to the line identifier, including: the access The controller adds the line identifier to the first DHCP message to obtain the second DHCP message, where the second DHCP message includes the line identifier.
- the access controller obtains the second control plane message according to the line identifier, and includes: the access control
- the first AAA message is generated according to the line identifier and the RS message, and the first AAA message includes the line identifier.
- the access controller obtains the second message according to the line identifier, where the access controller is configured according to the And obtaining, by the line identifier and the third DHCP message, the second AAA message, where the second AAA message includes the line identifier.
- the second AAA message further includes data and/or information included in the third DHCP message.
- the access controller sends the second message to a relay server.
- the relay server is a DHCP server or an AAA server with an IP address allocation function.
- the access controller determines the line identifier according to the first identifier included in the first message, and then adds the line identifier to the first A second message is obtained in the message, and the second message is sent to the relay server.
- the access node forwards the first message to the access controller, and the access controller inserts the Line ID into the first message, so that the access node does not need to support the relay function, so that the access node is not required to be selected.
- 82 performs maintenance, thereby reducing the maintenance amount and maintenance complexity of the option 82 of the access node.
- the access controller may determine the line identifier according to the first identifier included in the first message, so as to implement the purpose of determining the Line ID in the process of receiving the uplink message by the access controller.
- FIG. 4 is a flowchart of Embodiment 2 of a message transmission method according to the present invention.
- the executor of this embodiment is an access node, and the method provided in this embodiment is an uplink message transmission method.
- the uplink message is a message sent by the access node to an access controller.
- the method provided in the second embodiment includes:
- the access node receives the second message sent by the user, and obtains a line identifier.
- the second message may be from a client device or cable modem employed by the user.
- the access node may determine the line identifier according to the port that receives the second message, and the specific method is not described herein again.
- the access node obtains the first identifier according to the line identifier.
- the access node may store a correspondence between the line identifier and the first identifier. relationship.
- the access node queries the corresponding relationship by using the line identifier to obtain the first identifier.
- 402 is replaced by: the access node encoding the line identifier according to an encoding rule, to obtain the first identifier.
- the encoding rule may be an encoding method for encoding the line identifier into the first identifier, or the encoding rule may be an encoding method for encoding the line identifier into the first identifier. Index value.
- the access node obtains a first message according to the first identifier and the second message, where the first message includes the first identifier and the second message.
- the first message is an openflow message or a tunnel message.
- the first message does not include the line identifier.
- the access node sends the first message to an access controller.
- the access node sends the first message including the second message and the first identifier to the access controller.
- the access node does not need to support the relay function. For example, maintenance of the option 82 is not required, which helps to reduce maintenance complexity.
- FIG. 5 is a signaling diagram of Embodiment 3 of a message transmission method according to the present invention.
- the relay server is a DHCP server
- the first message sent by the access node to the access controller is an openflow message.
- the method provided in the third embodiment includes:
- the access node receives a first DHCP message sent by the client device.
- the access node obtains a line identifier by using a line where the first DHCP message is received.
- the line identifier includes the first sub information, the second sub information, and the third sub information.
- the access node obtains the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
- the access node stores a correspondence.
- the correspondence may be one or more of the correspondences shown in Tables 1 to 5 above.
- the correspondence relationship in the third embodiment includes the correspondences shown in Tables 1 to 5.
- the present invention is not limited thereto, and in other feasible embodiments, only some of the entries in Tables 1 to 5 may be set.
- the obtaining, by the access node, the first identifier includes: the access node obtains a line identifier by using a line where the first DHCP message is received; and the access node is configured according to the corresponding And the first sub-information, the second sub-information, and the third sub-information, obtaining the physical port number, the tunnel identifier, a MAC address of the access node, and the access node IP address.
- the access node may further obtain the first identifier according to the coding rule and the line identifier, which is not illustrated herein.
- the access node obtains an openflow message according to the first DHCP message, the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
- the openflow message includes the first DHCP message, the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node. If the access node and the access controller are connected through a tunnel, the access node may further encapsulate the openflow message and send a tunnel encapsulated openflow message to the access controller.
- the access node sends the openflow message to the access controller.
- the access controller obtains the first sub information, the second sub information, and the third sub information.
- the access controller may store the corresponding relationship.
- the correspondence stored by the access controller is the same as the corresponding relationship stored by the access node.
- the access controller may query the corresponding relationship by using the physical port number, the tunnel identifier, the MAC address of the access node, and the IP address of the access node, to obtain the first Sub information, the second sub information, and the third sub information.
- the access controller adds the first sub information, the second sub information, and the third sub information to the first DHCP message to obtain a second DHCP message.
- the second DHCP message includes the first sub information, the second sub information, and the third sub information.
- the access controller sends the second DHCP message to a DHCP server.
- the DHCP server allocates an IP address or an IP address prefix according to the second DHCP message.
- FIG. 6 is a signaling diagram of Embodiment 4 of a message transmission method according to the present invention.
- the relay server is an AAA server
- the first message sent by the access node to the access controller is an openflow message encapsulated by the tunnel.
- the method provided in the fourth embodiment includes:
- the access node receives an RS message sent by a client device.
- the access node obtains the line identifier by using the line where the RS message is received.
- the line identifier includes the first sub information, the second sub information, and the third sub information.
- the access node obtains the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
- the access node stores the correspondence.
- the correspondence may be one or more of the correspondences shown in Tables 1 to 5 above.
- the correspondence relationship in the third embodiment includes the correspondences shown in Tables 1 to 5.
- the present invention is not limited thereto, and in other feasible embodiments, only some of the entries in Tables 1 to 5 may be set.
- the obtaining, by the access node, the first identifier includes: the access node obtains a line identifier by using a line where the first DHCP message is received; and the access node is configured according to the correspondence, the first The sub-information, the second sub-information, and the third sub-information obtain the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
- the access node may further obtain the first identifier according to the coding rule and the line identifier, which is not illustrated herein.
- the access node obtains an openflow message encapsulated by the tunnel according to the RS message, the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
- the openflow message includes the RS message, the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
- the access node tunnel encapsulates the openflow message to obtain an openflow message after tunnel encapsulation.
- the access node sends the tunnel encapsulated openflow message to the access controller.
- the access controller obtains the first sub information, the second sub information, and the third sub information.
- the access controller may store the corresponding relationship.
- the correspondence stored by the access controller is the same as the corresponding relationship stored by the access node.
- the access controller may query the corresponding relationship by using the physical port number, the tunnel identifier, the MAC address of the access node, and the IP address of the access node, and obtain the location.
- the first sub-information, the second sub-information, and the third sub-information are described.
- the access controller generates an AAA message according to the first sub information, the second sub information, the third sub information, and the RS message.
- the AAA message includes the first sub information, the second sub information, and the third sub information.
- the access controller sends the AAA message to an AAA server.
- the AAA message allocates an IP address or an IP address prefix according to the AAA message.
- the RS messages in 601 to 608 can also be replaced with DHCP messages, and the alternate embodiment will not be described in detail herein.
- FIG. 7 is a flowchart of Embodiment 5 of a message transmission method according to the present invention.
- the executor of this embodiment is an access controller, and the method provided in this embodiment is a downlink message transmission method.
- the downlink message is a message sent by the access controller to an access node.
- the method provided in the fifth embodiment includes:
- the access controller receives a first message sent by the relay server, where the first message includes a line identifier and an IP address information, where the IP address information is an IP address or an IP address prefix.
- the IP address information is IP address information allocated by the relay server.
- the access controller obtains the first identifier according to the line identifier.
- the access controller may pre-store a correspondence between the first identifier and the line identifier.
- the access controller uses the line identifier to query the corresponding relationship to obtain the first identifier.
- the access controller encodes the line identifier according to an encoding rule to obtain the first identifier.
- the encoding rule adopted by the access controller is the same as the encoding rule in the second embodiment.
- the access controller obtains a second message according to the first identifier, where the second message includes the first identifier and the IP address information.
- the second message does not include the line identifier.
- the first message is a first DHCP message
- the access controller obtains the second message according to the first identifier, where the access controller deletes the a line identifier, the second DHCP message is obtained, the second DHCP message includes the IP address information, and the access controller obtains the second according to the first identifier and the second DHCP message
- the message, the second message further includes the second DHCP message.
- the first message is an AAA message
- the access controller obtains the second message according to the first identifier, where the access controller obtains the RA according to the AAA message and the IP address information.
- the second message is an openflow message or an openflow message after the tunnel is sealed.
- the access controller sends the second message to an access node.
- the access controller when the access controller sends a downlink message to the access node, the access controller determines the first identifier according to the line identifier, and then removes the line identifier in the first message, and according to The first identifier and the first message with the line identifier removed remove the second message. In this way, the access node does not need to support the relay function, which helps to reduce maintenance complexity.
- FIG. 8 is a flowchart of Embodiment 6 of a message transmission method according to the present invention.
- the executor of this embodiment is an access node, and the method provided in this embodiment is a downlink message transmission method.
- the downlink message is a message sent by the access node to an access controller.
- the method provided in the sixth embodiment includes:
- the access node receives a second message sent by the access controller, where the second message includes the IP address information and the first identifier.
- the IP address information is IP address information that the user is assigned.
- the second message further includes an RA message or a DHCP message, and the RA message and the DHCP message do not include a line identifier and the first identifier. If the relay server is a DHCP server, the second message further includes a DHCP message. If the relay server is an AAA server, the second message further includes an RA message or a DHCP message.
- the access node obtains a line identifier according to the first identifier.
- the access node may store a correspondence.
- the correspondence may be one or more correspondences in Tables 1 to 5.
- the access node queries the corresponding relationship by using the first identifier to obtain the line identifier.
- the access node encodes the first identifier according to an encoding rule to obtain the line identifier.
- the coding rules adopted by the access node may be the same as the coding rules used in the first embodiment.
- the access node obtains a first message according to the second message, where the first message does not include the first identifier, and the first message includes the IP address information.
- the first message may be an RA message or a DHCP message that does not include the line identifier and the first identifier.
- the access node sends the first message to a user according to the line identifier.
- the access node determines the line identifier according to the first identifier included in the second message, and sends a first message that does not include the first identifier to the user according to the line identifier. In this way, the access node does not need to support the relay function, which helps to reduce maintenance complexity.
- FIG. 9 is a signaling diagram of Embodiment 7 of a message transmission method according to the present invention.
- the relay server is specifically a DHCP server, and the access controller sends an openflow message to the access node.
- the method provided in the seventh embodiment includes:
- the access controller receives the first DHCP message sent by the DHCP server.
- the first DHCP message includes a line identifier and IP address information.
- the IP address information is an IP address or an IP address prefix assigned by the DHCP server to the user.
- the line identifier includes the first sub information, the second sub information, and the third sub information.
- the access controller obtains the physical port number, the tunnel identifier, and a MAC address of the access node according to the first DHCP message.
- the access controller stores a correspondence.
- the correspondence may be one or more of the correspondences shown in Tables 1 to 5 above.
- the correspondence relationship in the third embodiment includes the correspondences shown in Tables 1 to 5.
- the present invention is not limited thereto, and in other feasible embodiments, only some of the entries in Tables 1 to 5 may be set.
- the obtaining, by the access controller, the first identifier includes: using, by the access controller, the first sub information, the second sub information, and the third sub And querying the corresponding relationship to obtain the physical port number, the tunnel identifier, and a MAC address of the access node.
- the access controller deletes a line identifier in the first DHCP message, and obtains a second DHCP message.
- the second DHCP message does not include the first sub-information, the second sub-information, and the The third sub-information.
- the access controller obtains an openflow message according to the second DHCP message, the physical port number, the tunnel identifier, and a MAC address of the access node.
- the openflow message includes the second DHCP message, the physical port number, the tunnel identifier, and a MAC address of the access node.
- the access controller sends the openflow message to an access node.
- the access node determines a line identifier according to the physical port number, the tunnel identifier, and a MAC address of the access node.
- the corresponding relationship stored by the access node is the same as the corresponding relationship stored by the access controller.
- the access node obtains the first sub information, the second sub information, and the third according to the correspondence, the physical port number, the tunnel identifier, and the MAC address of the access node. Sub-information.
- the access node sends the second DHCP message to a user according to the line identifier.
- the second DHCP message includes IP address information allocated by the DHCP server for the user.
- FIG. 10 is a signaling diagram of Embodiment 8 of a message transmission method according to the present invention.
- the relay server is specifically an AAA server, and the access controller sends the tunnel encapsulated openflow message to the access node.
- the method provided in the eighth embodiment includes:
- the access controller receives an AAA message sent by the AAA server.
- the AAA message includes a line identifier and IP address information.
- the IP address information is an IP address or an IP address prefix assigned by the AAA server to the user.
- the line identifier includes the first sub information, the second sub information, and the third sub information.
- the access controller obtains the physical port number, the tunnel identifier, and a MAC address of the access node according to the AAA message.
- the access controller stores a correspondence.
- the correspondence may be one or more of the correspondences shown in Tables 1 to 5 above.
- the correspondence relationship in the third embodiment includes the correspondences shown in Tables 1 to 5.
- the present invention is not limited thereto, and in other feasible embodiments, only some of the entries in Tables 1 to 5 may be set.
- the obtaining, by the access controller, the first identifier includes: using the access controller Receiving the first sub-information, the second sub-information, and the third sub-information included in the AAA message, querying the corresponding relationship, and obtaining the physical port number, the tunnel identifier, and the access The MAC address of the node.
- the access controller obtains an RA message according to the AAA message.
- the RA message does not include the first sub information, the second sub information, and the third sub information.
- the RA message includes the IP address information allocated by the AAA server to a user.
- the access controller obtains a tunnel encapsulated openflow message according to the RA message, the physical port number, the tunnel identifier, and a MAC address of the access node.
- the openflow message includes the RA message, the physical port number, the tunnel identifier, and a MAC address of the access node.
- the access controller may perform tunnel encapsulation on the openflow message to obtain an openflow message after the tunnel encapsulation.
- the access controller sends the tunnel encapsulated openflow message to an access node.
- the access node determines a line identifier according to the physical port number, the tunnel identifier, and a MAC address of the access node.
- the corresponding relationship stored by the access node is the same as the corresponding relationship stored by the access controller.
- the access node obtains the first sub information, the second sub information, and the third according to the correspondence, the physical port number, the tunnel identifier, and the MAC address of the access node. Sub-information.
- the access node sends an RA message to the user according to the line identifier.
- FIG. 11 is a schematic structural diagram of Embodiment 1 of an access controller according to the present invention.
- the access controller provided in this embodiment may perform the method provided in the embodiment corresponding to FIG. 3.
- the access controller provided in this embodiment may be the access controller in any one of the embodiments corresponding to FIG. 5 to FIG.
- the access controller provided in this embodiment includes:
- the first receiving module 11 is configured to receive a first message sent by the access node, where the first message includes a first identifier.
- the first obtaining module 12 is configured to obtain a line identifier according to the first identifier.
- the second obtaining module 13 is configured to obtain a second message according to the line identifier, where the second message includes the line identifier;
- the first sending module 14 is configured to send the second message to the relay server.
- the access controller provided by the embodiment of the present invention, after receiving the uplink message, the access controller determines the line identifier according to the first identifier included in the first message, after receiving the first message sent by the access node, Obtaining a second message according to the line identifier.
- the access controller sends the second message to the relay server.
- the access node forwards the first message to the access controller, and the access controller adds a Line ID to the second message, so that the access node does not need to support the relay function, thereby eliminating the need for the access node.
- Option 82 performs maintenance to reduce the maintenance and maintenance complexity of option82 on the access node.
- the access controller may determine the line identifier according to the first identifier included in the first message, so as to implement the purpose of determining the Line ID in the process of receiving the uplink message by the access controller.
- the first identifier is the same as the first identifier mentioned in the foregoing embodiment, and the line identifier is the same as the line identifier mentioned in the foregoing embodiment, and details are not described herein again.
- the first obtaining module 12 is specifically configured to obtain the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier.
- the first obtaining module 12 is specifically configured to code the first identifier according to the first encoding rule to obtain the line identifier.
- the first message further includes a first dynamic host configuration protocol DHCP message
- the second message is a second DHCP message
- the second obtaining module 13 is specifically configured to: add the line identifier to the The first DHCP message obtains the second DHCP message, and the second DHCP message includes the line identifier.
- the first message further includes a route request RS message
- the second message is a first authentication, authorization, and accounting AAA message
- the second obtaining module 13 is specifically configured to: according to the line identifier and the The RS message is generated, and the first AAA message is generated, where the first AAA message includes the line identifier.
- the access controller further includes:
- the second receiving module 15 is configured to receive a fourth message sent by the relay server, where the fourth message includes a line identifier and Internet Protocol IP address information, where the IP address information is an IP address or an IP address prefix;
- a third obtaining module 16 configured to obtain the first identifier according to the line identifier
- the fourth obtaining module 17 is configured to obtain, according to the first identifier, a third message, where the third message includes the first identifier and the IP address information;
- the second sending module 18 is configured to send the third message to the access node.
- the third obtaining module 16 is specifically configured to obtain the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier.
- the third obtaining module 16 is specifically configured to code the line identifier according to the second encoding rule to obtain the first identifier.
- the fourth message is a third DHCP message
- the fourth obtaining module 17 is specifically configured to: delete the line identifier included in the third DHCP message, obtain a fourth DHCP message, and the fourth DHCP
- the message includes the IP address information
- the third message is obtained according to the first identifier and the fourth DHCP message, and the third message further includes the fourth DHCP message.
- the fourth message is a second AAA message
- the fourth obtaining module 17 is specifically configured to: obtain, according to the second AAA message and the IP address information, a router advertisement RA message, where the RA message includes The third address message is obtained according to the first identifier and the RA message, and the third message further includes the RA message.
- FIG. 12 is a schematic structural diagram of Embodiment 1 of an access device according to the present invention.
- the access device provided by this embodiment may perform the method provided by the embodiment corresponding to FIG. 4.
- the access device provided in this embodiment may be an access node in any one of the embodiments corresponding to FIG. 5 to FIG.
- the access device provided in this embodiment includes:
- the first receiving module 21 is configured to receive a second message sent by the user.
- the first obtaining module 20 is configured to obtain a line identifier according to the second message, where the line identifier corresponds to the second message.
- the first obtaining module 20 may obtain the line identifier according to the line where the received second message is located.
- a second obtaining module 22 configured to obtain a first identifier according to the line identifier
- the third obtaining module 23 is configured to obtain, according to the first identifier and the second message, a first message, where the first message includes the first identifier and the second message;
- the first sending module 24 is configured to send the first message to the access controller.
- the access device In the process of sending an uplink message, the access device provided by the embodiment of the present invention is connected to the access device. After receiving the second message of the client device, obtaining the first identifier according to the line identifier corresponding to the second message. The access device obtains the first message according to the first identifier and the second message. The access device wants the access controller to send the first message. The access device does not need to support the relay function, and the maintenance of the option 82 is not required, thereby reducing the maintenance and maintenance complexity of the option 82 of the access device.
- the second obtaining module 22 is specifically configured to obtain the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the line identifier and the first identifier.
- the second obtaining module 22 is specifically configured to code the line identifier according to the first encoding rule to obtain the first identifier.
- the access device further includes:
- the second receiving module 25 is configured to receive a third message sent by the access controller, where the third message includes Internet Protocol IP address information, a first identifier, and a fourth message, where the IP address information is an IP address or An IP address prefix, where the fourth message includes the IP address information;
- a fourth obtaining module 26 configured to obtain the line identifier according to the first identifier
- the second sending module 27 is configured to send the fourth message to the user according to the line identifier.
- the fourth obtaining module 26 is specifically configured to obtain the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier.
- the fourth obtaining module 26 is specifically configured to code the first identifier according to the second encoding rule to obtain the line identifier.
- FIG. 13 is a schematic structural diagram of Embodiment 2 of an access controller according to the present invention.
- the access controller provided in this embodiment may perform the method provided in the embodiment corresponding to FIG. 3.
- the access controller provided in this embodiment may be the access controller in any of the embodiments corresponding to FIG. 5 to FIG.
- For the specific content of the message or the identifier in this embodiment reference may be made to the corresponding content in the embodiment corresponding to FIG. 3 and FIG. 5 to FIG. 11 , and details are not described herein again.
- the access controller provided in this embodiment includes a communication interface, a processor 31, and a memory 32 for storing programs.
- the communication interface, processor 31 and memory 32 are connected by a communication bus 33.
- the processor 31 reads a program in the memory 32 and performs the following operations according to an instruction corresponding to the program:
- the communication interface having the receiving function may be the receiving port 34 in FIG. 13, and the communication interface having the transmitting function may be the transmitting port 35 in FIG.
- the processor included in the access controller may further perform the method provided by any one of the embodiments in FIG. 3 and FIG. 5 to FIG. 10, and details are not described herein again.
- FIG. 14 is a schematic structural diagram of Embodiment 2 of an access device according to the present invention.
- the access device provided by this embodiment may perform the method provided by the embodiment corresponding to FIG. 4.
- the access device provided in this embodiment may be the access device in any of the embodiments corresponding to FIG. 5 to FIG. 10 and FIG.
- For the specific content of the message or the identifier in this embodiment reference may be made to the corresponding content in the embodiment corresponding to FIG. 3, FIG. 5 to FIG. 10, and FIG. 11, and details are not described herein again.
- the embodiment provides an access device communication interface, a processor 41, and a memory 42 for storing programs.
- the communication interface, the processor 41 and the memory 42 are connectable via a communication bus 43.
- the processor 41 reads a program in the memory 42 and performs the following operations according to an instruction corresponding to the program:
- the communication interface having the receiving function may be the receiving port 44 in FIG. 14, and the communication interface having the transmitting function may be the transmitting port 45 in FIG.
- the processor included in the access device may further perform the method provided by any one of the embodiments in FIG. 3 and FIG. 5 to FIG. 10, and details are not described herein again.
- the embodiment of the present invention further provides an access system, and the access system may include any one of the access controllers provided in the embodiment corresponding to FIG. 11 and any one of the access devices provided in the embodiment corresponding to FIG. 12 .
- the access system may include any one of the access control provided by the embodiment corresponding to FIG.
- the disclosed system, apparatus, and method may be implemented in other manners.
- the device embodiments described above are merely illustrative.
- the division of the unit is only a logical function division.
- there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
- the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
- each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
- the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
- the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
- the technical solution of the present invention which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium.
- a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
- the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Provided are a message transmission method, an access node, an access controller and an access system. In the method, messages are not processed by an access node, but rather by an access controller, so that it is not necessary for the access node to support a relay function, reducing operation and maintenance difficulties and costs. In the method, an access controller receives a first message sent by an access node, the first message comprising a first identifier; the access controller obtains a line identifier according to the first identifier; the access controller obtains a second message according to the line identifier, the second message comprising the line identifier; the access controller sends the second message to a relay server.
Description
本申请要求于2015年7月17日提交中国专利局、申请号为CN 201510424501.7、发明名称为“控制面消息传输方法、接入节点、接入控制器及接入系统”的中国专利申请的优先权和2016年3月31日提交中国专利局、申请号为CN 201610201117.5、发明名称为“消息传输方法、接入节点、接入控制器及接入系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application is required to be submitted to the Chinese Patent Office on July 17, 2015, the application number is CN 201510424501.7, and the Chinese patent application titled “Control Surface Message Transmission Method, Access Node, Access Controller and Access System” is preferred. And the priority of the Chinese patent application submitted to the China Patent Office on March 31, 2016, the application number is CN 201610201117.5, and the invention name is “message transmission method, access node, access controller and access system”. The content is incorporated herein by reference.
本发明实施例涉及通信技术,尤其涉及一种消息传输方法、接入节点、接入控制器及接入系统。The embodiments of the present invention relate to communication technologies, and in particular, to a message transmission method, an access node, an access controller, and an access system.
目前,接入网架构中,客户端设备与中继服务器之间通过消息传播路径传输消息。其中,消息可以是动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)消息、路由器请求(router solicitation,RS)或路由器通告(router advertisement,RA)消息等。消息传播过程中,需要消息传播路径上的每个接入节点(access node,AN)支持中继功能,换句话说,消息传播路径上的每个接入节点需要进行控制面的配置,以实现中继功能。当新的业务不断出现,每个接入节点需要针对每个新增的业务进行控制面的配置,运维成本和复杂度较高。Currently, in the access network architecture, a message is transmitted between a client device and a relay server through a message propagation path. The message may be a Dynamic Host Configuration Protocol (DHCP) message, a router solicitation (RS), or a router advertisement (RA) message. During the message propagation process, each access node (AN) on the message propagation path needs to support the relay function. In other words, each access node on the message propagation path needs to configure the control plane to implement Relay function. When new services continue to emerge, each access node needs to configure the control plane for each new service, and the operation and maintenance cost and complexity are high.
发明内容Summary of the invention
本发明实施例提供一种消息传输方法、接入节点、接入控制器及接入系统,有助于降低运维成本和复杂度。The embodiments of the present invention provide a message transmission method, an access node, an access controller, and an access system, which help reduce operation and maintenance costs and complexity.
第一方面,提供了一种消息传输方法,所述方法包括:In a first aspect, a message transmission method is provided, the method comprising:
接入控制器接收接入节点发送的第一消息,所述第一消息包括第一标识;Receiving, by the access controller, a first message sent by the access node, where the first message includes a first identifier;
所述接入控制器根据所述第一标识,获得线路标识;
The access controller obtains a line identifier according to the first identifier;
所述接入控制器根据所述线路标识,获得第二消息,所述第二消息包括所述线路标识;The access controller obtains a second message according to the line identifier, where the second message includes the line identifier;
所述接入控制器向中继服务器发送所述第二消息。The access controller sends the second message to a relay server.
本发明实施例提供的消息传输方法中,接入控制器根据接收到的来自接入节点的第一消息,获得包括线路标识的第二消息。接入节点无需对来自用户的消息进行插入线路标识的操作。这样,接入节点的控制面可转移至接入控制器,实现了接入节点的控制面从所述接入节点分离,比如:接入节点无需支持中继功能,有助于实现降低运维成本和复杂度。In the message transmission method provided by the embodiment of the present invention, the access controller obtains the second message including the line identifier according to the received first message from the access node. The access node does not need to insert a line identification operation on the message from the user. In this way, the control plane of the access node can be transferred to the access controller, and the control plane of the access node is separated from the access node. For example, the access node does not need to support the relay function, which helps to reduce operation and maintenance. Cost and complexity.
其中,所述第一消息和所述第二消息可以为控制面消息。所述第一消息可以是开放流(openflow)消息,或者所述第一消息为隧道报文。The first message and the second message may be control plane messages. The first message may be an open flow message, or the first message is a tunnel message.
可选地,所述接入控制器根据所述第一标识,获得线路标识包括:所述接入控制器根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系。Optionally, the access controller obtains the line identifier according to the first identifier, and the access controller obtains the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes Corresponding relationship between the first identifier and the line identifier.
可选地,所述接入控制器根据所述第一标识,获得线路标识包括:所述接入控制器根据第一编码规则,对所述第一标识进行编码,获得所述线路标识。Optionally, the obtaining, by the access controller, the line identifier according to the first identifier, includes: the access controller, according to the first coding rule, encoding the first identifier to obtain the line identifier.
其中,所述第一编码规则可以是用于将所述第一标识编码成所述线路标识的编码方法,或者所述第一编码规则可以是将所述第一标识编码成所述线路标识的编码方法对应的索引值。The first encoding rule may be an encoding method for encoding the first identifier into the line identifier, or the first encoding rule may be to encode the first identifier into the line identifier. The index value corresponding to the encoding method.
可选地,所述第一消息还包括第一动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)消息,所述第二消息为第二DHCP消息,所述接入控制器根据所述线路标识,获得第二消息包括:所述接入控制器将所述线路标识添加至所述第一DHCP消息,获得所述第二DHCP消息,所述第二DHCP消息包括所述线路标识。Optionally, the first message further includes a first dynamic host configuration protocol (DHCP) message, the second message is a second DHCP message, and the access controller is configured according to the line identifier. Obtaining the second message includes: adding, by the access controller, the line identifier to the first DHCP message, obtaining the second DHCP message, where the second DHCP message includes the line identifier.
可选地,所述第一消息还包括路由请求(router solicitation,RS)消息,所述第二消息为第一认证、授权和计费(Authentication,Authorization and Accounting,AAA)消息,所述接入控制器根据所述线路标识,获得第二消息
包括:Optionally, the first message further includes a router solicitation (RS) message, where the second message is a first authentication, authorization, and accounting (AAA) message, and the access is performed. The controller obtains the second message according to the line identifier
include:
所述接入控制器根据所述线路标识和所述RS消息,生成所述第一AAA消息,所述第一AAA消息包括所述线路标识。The access controller generates the first AAA message according to the line identifier and the RS message, where the first AAA message includes the line identifier.
可选地,所述方法还包括:Optionally, the method further includes:
所述接入控制器接收中继服务器发送的第四消息,所述第四消息包括线路标识和互联网协议(Internet Protocol,IP)地址信息,所述IP地址信息为IP地址或IP地址前缀;The access controller receives a fourth message sent by the relay server, where the fourth message includes a line identifier and Internet Protocol (IP) address information, where the IP address information is an IP address or an IP address prefix;
所述接入控制器根据所述线路标识,获得所述第一标识;The access controller obtains the first identifier according to the line identifier;
所述接入控制器根据所述第一标识,获得第三消息,所述第三消息包括所述第一标识和所述IP地址信息;The access controller obtains a third message according to the first identifier, where the third message includes the first identifier and the IP address information;
所述接入控制器向所述接入节点发送所述第三消息。The access controller sends the third message to the access node.
其中,所述第一消息和所述第二消息为控制面消息。所述第二消息可以是openflow消息,或者所述第二消息可以是隧道报文。所述中继服务器可以是对用户进行IP地址信息分配的设备,比如能够进行IP地址信息分配的AAA服务器或者DHCP服务器。The first message and the second message are control plane messages. The second message may be an openflow message, or the second message may be a tunnel message. The relay server may be a device that allocates IP address information to a user, such as an AAA server or a DHCP server capable of IP address information allocation.
可选地,所述接入控制器根据所述线路标识,获得所述第一标识包括:所述接入控制器根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系。Optionally, the obtaining, by the access controller, the first identifier according to the line identifier, that: the access controller obtains the first identifier according to the line identifier and the corresponding relationship, and the corresponding relationship And including a correspondence between the first identifier and the line identifier.
可选地,所述接入控制器根据所述线路标识,获得所述第一标识包括:所述接入控制器根据第二编码规则,对所述线路标识进行编码,获得所述第一标识。Optionally, the obtaining, by the access controller, the first identifier according to the line identifier, that: the access controller encodes the line identifier according to a second coding rule, to obtain the first identifier. .
其中,所述第二编码规则可以是用于将所述线路标识编码成所述第一标识的编码方法,或者所述第二编码规则可以是将所述线路标识编码成所述第一标识的编码方法对应的索引值。The second encoding rule may be an encoding method for encoding the line identifier into the first identifier, or the second encoding rule may be to encode the line identifier into the first identifier. The index value corresponding to the encoding method.
可选地,所述第四消息为第三DHCP消息,所述接入控制器根据所述第一标识,获得第三消息包括:所述接入控制器删除所述第三DHCP消息包括的所述线路标识,获得第四DHCP消息,所述第四DHCP消息包括所述IP地址信息;
所述接入控制器根据所述第一标识和所述第四DHCP消息,获得所述第三消息,所述第三消息还包括所述第四DHCP消息。Optionally, the fourth message is a third DHCP message, and the access controller obtains the third message according to the first identifier, where the access controller deletes the location included in the third DHCP message. Determining a line identifier, obtaining a fourth DHCP message, where the fourth DHCP message includes the IP address information;
The access controller obtains the third message according to the first identifier and the fourth DHCP message, and the third message further includes the fourth DHCP message.
可选地,所述第四消息为第二AAA消息,所述接入控制器根据所述第一标识,获得第三消息包括:所述接入控制器根据所述第二AAA消息和所述IP地址信息,获得路由器通告(router advertisement,RA)消息,所述RA消息包括所述IP地址信息;所述接入控制器根据所述第一标识和所述RA消息,获得所述第三消息,所述第三消息还包括所述RA消息。Optionally, the fourth message is a second AAA message, and the access controller obtains the third message according to the first identifier, where the access controller is configured according to the second AAA message Obtaining a router advertisement (RA) message, the RA message includes the IP address information, and the access controller obtains the third message according to the first identifier and the RA message The third message further includes the RA message.
可选地,所述第一标识包括物理端口号,所述线路标识包括所述接入节点的机架号、框号、槽位号和物理端口号中的至少一个。其中,所述物理端口号可以用于标识所述接入节点上与用户通信的物理端口。Optionally, the first identifier includes a physical port number, and the line identifier includes at least one of a rack number, a frame number, a slot number, and a physical port number of the access node. The physical port number may be used to identify a physical port on the access node that communicates with a user.
可选地,所述第一标识包括隧道标识和/或逻辑端口号,所述线路标识包括所述接入节点的虚拟局域网标识号(virtual local area network identifier,VID)、虚路径标识符(virtual path identifier,VPI)和虚通道标识符(virtual channel identifier,VCI)中的至少一个。Optionally, the first identifier includes a tunnel identifier and/or a logical port number, where the line identifier includes a virtual local area network identifier (VID) and a virtual path identifier (virtual) of the access node. Path identifier (VPI) and at least one of a virtual channel identifier (VCI).
可选地,所述第一标识包括所述接入节点的媒体接入控制(Media Access Control,MAC)地址或IP地址,所述线路标识包括所述接入节点的身份标识和机柜号中的至少一个。Optionally, the first identifier includes a Media Access Control (MAC) address or an IP address of the access node, where the line identifier includes an identity identifier of the access node and a cabinet number. at least one.
可选地,所述第一标识包括隧道标识,所述隧道标识用于标识所述接入节点与所述接入控制器间的隧道,所述线路标识包括所述接入节点的机架号、框号、槽位号、物理端口号、VID、VPI、VCI和身份标识中的至少一个。Optionally, the first identifier includes a tunnel identifier, where the tunnel identifier is used to identify a tunnel between the access node and the access controller, and the line identifier includes a rack number of the access node. At least one of a frame number, a slot number, a physical port number, a VID, a VPI, a VCI, and an identity.
其中,VPI可用于标识所述接入节点上与用户通信的虚拟路径。VCI可用于标识所述接入节点上与用户通信的虚拟通道。The VPI can be used to identify a virtual path on the access node that communicates with the user. The VCI can be used to identify virtual channels on the access node that communicate with users.
第二方面,提供一种消息传输方法,所述方法包括:In a second aspect, a message transmission method is provided, the method comprising:
接入节点接收用户发送的第二消息;The access node receives the second message sent by the user;
所述接入节点根据所述第二消息,获得线路标识,所述第二消息包括所述线路标识;The access node obtains a line identifier according to the second message, where the second message includes the line identifier;
所述接入节点根据所述线路标识,获得第一标识;
The access node obtains the first identifier according to the line identifier;
所述接入节点根据所述第一标识和所述第二消息,获得第一消息,所述第一消息包括所述第一标识和所述第二消息;Obtaining, by the access node, the first message according to the first identifier and the second message, where the first message includes the first identifier and the second message;
所述接入节点向接入控制器发送所述第一消息。The access node sends the first message to an access controller.
本发明实施例提供的方法中,接入节点可发送给接入控制器的第一消息中添加与线路标识对应的第一标识,实现了所述接入节点的控制面转移至接入控制器,有助于降低运维成本和接入节点的复杂度。In the method provided by the embodiment of the present invention, the first identifier corresponding to the line identifier is added to the first message that the access node may send to the access controller, and the control plane of the access node is transferred to the access controller. It helps to reduce the operation and maintenance costs and the complexity of access nodes.
可选地,所述接入节点根据所述线路标识,获得第一标识包括:所述接入节点根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述线路标识与所述第一标识间的对应关系。Optionally, the obtaining, by the access node, the first identifier according to the line identifier, the obtaining, by the access node, the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes the line Corresponding relationship between the identifier and the first identifier.
可选地,所述接入节点根据所述线路标识,获得第一标识包括:所述接入节点根据第一编码规则,对所述线路标识进行编码,获得所述第一标识。Optionally, the obtaining, by the access node, the first identifier according to the line identifier, includes: the access node encoding, according to the first coding rule, the line identifier, to obtain the first identifier.
可选地,所述方法还包括:Optionally, the method further includes:
所述接入节点接收所述接入控制器发送的第三消息,所述第三消息包括互联网协议IP地址信息、第一标识和第四消息,所述IP地址信息为IP地址或IP地址前缀,所述第四消息包括所述IP地址信息;Receiving, by the access node, a third message sent by the access controller, where the third message includes Internet Protocol IP address information, a first identifier, and a fourth message, where the IP address information is an IP address or an IP address prefix. The fourth message includes the IP address information;
所述接入节点根据所述第一标识,获得所述线路标识;Obtaining, by the access node, the line identifier according to the first identifier;
所述接入节点根据所述线路标识,向用户发送所述第四消息。The access node sends the fourth message to the user according to the line identifier.
可选地,所述接入节点根据所述第一标识,获得所述线路标识包括:所述接入节点根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识和所述线路标识间的对应关系。Optionally, the obtaining, by the access node, the line identifier according to the first identifier, the obtaining, by the access node, the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes Corresponding relationship between the first identifier and the line identifier.
可选地,所述接入节点根据所述第一标识,获得所述线路标识包括:所述接入节点根据第二编码规则,对所述第一标识进行编码,获得所述线路标识。Optionally, the obtaining, by the access node, the line identifier according to the first identifier includes: the access node encoding the first identifier according to a second coding rule, to obtain the line identifier.
第二方面提供的方法中,所述第一标识可以与第一方面提供的第一标识相同,所述线路标识可以与第一方面提供的线路标识相同。In the method provided by the second aspect, the first identifier may be the same as the first identifier provided by the first aspect, and the line identifier may be the same as the line identifier provided by the first aspect.
第三方面,提供了一种接入控制器,所述接入控制器包括:In a third aspect, an access controller is provided, where the access controller includes:
第一接收模块,用于接收接入节点发送的第一消息,所述第一消息包括
第一标识;a first receiving module, configured to receive a first message sent by an access node, where the first message includes
First identifier
第一获得模块,用于根据所述第一标识,获得线路标识;a first obtaining module, configured to obtain a line identifier according to the first identifier;
第二获得模块,用于根据所述线路标识,获得第二消息,所述第二消息包括所述线路标识;a second obtaining module, configured to obtain a second message according to the line identifier, where the second message includes the line identifier;
第一发送模块,用于向中继服务器发送所述第二消息。The first sending module is configured to send the second message to the relay server.
第三方面提供的接入控制器可以执行第一方面或第一方面的任一可能的实现方式提供的方法。第三方面提供的接入控制器可以是第二方面或第二方面的任一中可能的实现方式提供的方法中的接入控制器,The access controller provided by the third aspect may perform the method provided by the first aspect or any of the possible implementations of the first aspect. The access controller provided by the third aspect may be the access controller in the method provided by the second aspect or the possible implementation manner of any of the second aspect,
可选地,所述第一获得模块具体用于根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系。Optionally, the first obtaining module is configured to obtain the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier.
可选地,所述第一获得模块具体用于根据第一编码规则,对所述第一标识进行编码,获得所述线路标识。Optionally, the first obtaining module is specifically configured to code, according to the first encoding rule, the first identifier to obtain the line identifier.
可选地,所述第一消息还包括第一DHCP消息,所述第二消息为第二DHCP消息,所述第二获得模块具体用于:将所述线路标识添加至所述第一DHCP消息,获得所述第二DHCP消息,所述第二DHCP消息包括所述线路标识。Optionally, the first message further includes a first DHCP message, the second message is a second DHCP message, and the second obtaining module is specifically configured to: add the line identifier to the first DHCP message. Obtaining the second DHCP message, where the second DHCP message includes the line identifier.
可选地,所述第一消息还包括RS消息,所述第二消息为第一AAA消息,所述第二获得模块具体用于:根据所述线路标识和所述RS消息,生成所述第一AAA消息,所述第一AAA消息包括所述线路标识。Optionally, the first message further includes an RS message, where the second message is a first AAA message, and the second obtaining module is specifically configured to: generate, according to the line identifier and the RS message, the first message An AAA message, the first AAA message including the line identifier.
可选地,所述接入控制器还包括:Optionally, the access controller further includes:
第二接收模块,用于接收中继服务器发送的第四消息,所述第四消息包括线路标识和互联网协议IP地址信息,所述IP地址信息为IP地址或IP地址前缀;a second receiving module, configured to receive a fourth message sent by the relay server, where the fourth message includes a line identifier and Internet Protocol IP address information, where the IP address information is an IP address or an IP address prefix;
第三获得模块,用于根据所述线路标识,获得所述第一标识;a third obtaining module, configured to obtain the first identifier according to the line identifier;
第四获得模块,用于根据所述第一标识,获得第三消息,所述第三消息包括所述第一标识和所述IP地址信息;a fourth obtaining module, configured to obtain, according to the first identifier, a third message, where the third message includes the first identifier and the IP address information;
第二发送模块,用于向所述接入节点发送所述第三消息。
And a second sending module, configured to send the third message to the access node.
可选地,所述第三获得模块具体用于:根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系。Optionally, the third obtaining module is configured to: obtain the first identifier according to the line identifier and the corresponding relationship, where the correspondence includes a correspondence between the first identifier and the line identifier.
可选地,所述第三获得模块具体用于:根据第二编码规则,对所述线路标识进行编码,获得所述第一标识。Optionally, the third obtaining module is specifically configured to: code, according to the second encoding rule, the line identifier to obtain the first identifier.
可选地,所述第四消息为第三DHCP消息,所述第四获得模块具体用于:Optionally, the fourth message is a third DHCP message, and the fourth obtaining module is specifically configured to:
删除所述第三DHCP消息包括的所述线路标识,获得第四DHCP消息,所述第四DHCP消息包括所述IP地址信息;Deleting the line identifier included in the third DHCP message, obtaining a fourth DHCP message, where the fourth DHCP message includes the IP address information;
根据所述第一标识和所述第四DHCP消息,获得所述第三消息,所述第三消息还包括所述第四DHCP消息。Obtaining the third message according to the first identifier and the fourth DHCP message, where the third message further includes the fourth DHCP message.
可选地,所述第四消息为第二AAA消息,所述第四获得模块具体用于:Optionally, the fourth message is a second AAA message, where the fourth obtaining module is specifically configured to:
根据所述第二AAA消息和所述IP地址信息,获得路由器通告RA消息,所述RA消息包括所述IP地址信息;Obtaining, according to the second AAA message and the IP address information, a router advertisement RA message, where the RA message includes the IP address information;
根据所述第一标识和所述RA消息,获得所述第三消息,所述第三消息还包括所述RA消息。Obtaining the third message according to the first identifier and the RA message, where the third message further includes the RA message.
第三方面提供的方法中,所述第一标识可以与第一方面提供的第一标识相同,所述线路标识可以与第一方面提供的线路标识相同。In the method provided by the third aspect, the first identifier may be the same as the first identifier provided by the first aspect, and the line identifier may be the same as the line identifier provided by the first aspect.
第四方面,提供一种接入装置,所述接入装置包括:A fourth aspect provides an access device, where the access device includes:
第一接收模块,用于接收用户发送的第二消息;a first receiving module, configured to receive a second message sent by the user;
第一获得模块,用于根据所述第二消息,获得线路标识,所述第二消息包括所述线路标识;a first obtaining module, configured to obtain a line identifier according to the second message, where the second message includes the line identifier;
第二获得模块,用于根据所述线路标识,获得第一标识;a second obtaining module, configured to obtain a first identifier according to the line identifier;
第三获得模块,用于根据所述第一标识和所述第二消息,获得第一消息,所述第一消息包括所述第一标识和所述第二消息;a third obtaining module, configured to obtain, according to the first identifier and the second message, a first message, where the first message includes the first identifier and the second message;
第一发送模块,用于向接入控制器发送所述第一消息。The first sending module is configured to send the first message to the access controller.
其中,第四方面提供的接入装置可以执行第二方面或第二方面的任一可能的实现方式提供的方法。第四方面提供的接入装置可以是上述任一可能的
实现方式中的接入节点。The access device provided by the fourth aspect may perform the method provided by the second aspect or any possible implementation manner of the second aspect. The access device provided by the fourth aspect may be any of the above possibilities
The access node in the implementation.
可选地,所述第二获得模块具体用于:根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述线路标识与所述第一标识间的对应关系。Optionally, the second obtaining module is configured to: obtain the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the line identifier and the first identifier.
可选地,所述第二获得模块具体用于:根据第一编码规则,对所述线路标识进行编码,获得所述第一标识。Optionally, the second obtaining module is specifically configured to: code, according to the first encoding rule, the line identifier to obtain the first identifier.
可选地,所述接入装置还包括:Optionally, the access device further includes:
第二接收模块,用于接收所述接入控制器发送的第三消息,所述第三消息包括互联网协议IP地址信息、第一标识和第四消息,所述IP地址信息为IP地址或IP地址前缀,所述第四消息包括所述IP地址信息;a second receiving module, configured to receive a third message sent by the access controller, where the third message includes Internet Protocol IP address information, a first identifier, and a fourth message, where the IP address information is an IP address or an IP address. An address prefix, where the fourth message includes the IP address information;
第四获得模块,用于根据所述第一标识,获得所述线路标识;a fourth obtaining module, configured to obtain the line identifier according to the first identifier;
第二发送模块,用于根据所述线路标识,向用户发送所述第四消息。The second sending module is configured to send the fourth message to the user according to the line identifier.
可选地,所述第四获得模块具体用于:根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识和所述线路标识间的对应关系。Optionally, the fourth obtaining module is specifically configured to: obtain the line identifier according to the first identifier and the corresponding relationship, where the correspondence relationship includes a correspondence between the first identifier and the line identifier.
可选地,所述第四获得模块具体用于:根据第二编码规则,对所述第一标识进行编码,获得所述线路标识。Optionally, the fourth obtaining module is specifically configured to: according to the second encoding rule, encode the first identifier to obtain the line identifier.
第四方面提供的方法中,所述第一标识可以与第一方面提供的第一标识相同,所述线路标识可以与第一方面提供的线路标识相同。In the method provided by the fourth aspect, the first identifier may be the same as the first identifier provided by the first aspect, and the line identifier may be the same as the line identifier provided by the first aspect.
第五方面,提供了一种接入控制器,所述接入控制器包括通信接口、处理器和用于存储程序的存储器。所述处理器读取所述存储器中的程序,并根据与所述程序对应的指令执行如下操作:In a fifth aspect, an access controller is provided, the access controller comprising a communication interface, a processor, and a memory for storing the program. The processor reads a program in the memory and performs the following operations according to an instruction corresponding to the program:
通过所述通信接口,接收接入节点发送的第一消息,所述第一消息包括第一标识;Receiving, by the communication interface, a first message sent by an access node, where the first message includes a first identifier;
根据所述第一标识,获得线路标识;Obtaining a line identifier according to the first identifier;
根据所述线路标识,获得第二消息,所述第二消息包括所述线路标识;Obtaining a second message according to the line identifier, where the second message includes the line identifier;
通过所述通信接口,向中继服务器发送所述第二消息。
Sending the second message to the relay server through the communication interface.
可选地,所述接入控制器包括的所述处理器还可执行第一方面或第一方面的任一可能的实现方式提供的方法。Optionally, the processor included in the access controller may also perform the method provided by the first aspect or any of the possible implementation manners of the first aspect.
第六方面,提供了一种接入装置,所述接入装置包括通信接口、处理器和用于存储程序的存储器。所述处理器读取所述存储器中的程序,并根据与所述程序对应的指令执行如下操作:In a sixth aspect, an access device is provided, the access device comprising a communication interface, a processor, and a memory for storing the program. The processor reads a program in the memory and performs the following operations according to an instruction corresponding to the program:
通过所述通信接口,接收用户发送的第二消息;Receiving, by the communication interface, a second message sent by the user;
根据所述第二消息,获得线路标识,所述第二消息包括所述线路标识;Obtaining, according to the second message, a line identifier, where the second message includes the line identifier;
根据所述线路标识,获得第一标识;Obtaining a first identifier according to the line identifier;
根据所述第一标识和所述第二消息,获得第一消息,所述第一消息包括所述第一标识和所述第二消息;Obtaining, according to the first identifier and the second message, a first message, where the first message includes the first identifier and the second message;
通过所述通信接口,向接入控制器发送所述第一消息。Sending the first message to the access controller over the communication interface.
可选地,所述处理器还可执行第二方面或第二方面的任一可能的实现方式提供的方法。Optionally, the processor may also perform the method provided by the second aspect or any of the possible implementations of the second aspect.
第七方面,提供一种接入系统,所述接入系统包括上述的接入控制器和上述的接入装置。所述接入控制器为上述第三方面或第三方面的任一种可能的实现方式提供的接入控制器,或者为上述第五方面或第五方面的任一种可能的实现方式提供的接入控制器。所述接入装置可以为上述第四方面或第四方面的任一种可能的实现方式提供的接入装置,或者为上述第六方面或第六方面的任一种可能的实现方式提供的接入装置。In a seventh aspect, an access system is provided, the access system comprising the access controller and the access device described above. The access controller is provided by the access controller provided by any one of the foregoing third aspect or the third aspect, or is provided by any one of the foregoing fifth or fifth possible implementation manners. Access controller. The access device may be the access device provided by any of the foregoing possible implementation manners of the fourth aspect or the fourth aspect, or the connectivity provided by any of the foregoing sixth or sixth possible implementation manners. Into the device.
图1为一种接入网的示意图;1 is a schematic diagram of an access network;
图2为本发明实施例提供的一种接入网的示意图;2 is a schematic diagram of an access network according to an embodiment of the present invention;
图3为本发明提供的消息传输方法实施例一的流程图;FIG. 3 is a flowchart of Embodiment 1 of a message transmission method according to the present invention;
图4为本发明提供的消息传输方法实施例二的流程图;4 is a flowchart of Embodiment 2 of a message transmission method according to the present invention;
图5为本发明提供的消息传输方法实施例三的信令图;FIG. 5 is a signaling diagram of Embodiment 3 of a message transmission method according to the present invention;
图6为本发明提供的消息传输方法实施例四的信令图;
FIG. 6 is a signaling diagram of Embodiment 4 of a message transmission method according to the present invention;
图7为本发明提供的消息传输方法实施例五的流程图;FIG. 7 is a flowchart of Embodiment 5 of a message transmission method according to the present invention;
图8为本发明提供的消息传输方法实施例六的流程图;FIG. 8 is a flowchart of Embodiment 6 of a message transmission method according to the present invention;
图9为本发明提供的消息传输方法实施例七的信令图;FIG. 9 is a signaling diagram of Embodiment 7 of a message transmission method according to the present invention;
图10为本发明提供的消息传输方法实施例八的信令图;FIG. 10 is a signaling diagram of Embodiment 8 of a message transmission method according to the present invention;
图11为本发明提供的接入控制器实施例一的结构示意图;FIG. 11 is a schematic structural diagram of Embodiment 1 of an access controller according to the present invention;
图12为本发明提供的接入节点实施例一的结构示意图;FIG. 12 is a schematic structural diagram of Embodiment 1 of an access node according to the present invention;
图13为本发明提供的接入控制器实施例二的结构示意图;FIG. 13 is a schematic structural diagram of Embodiment 2 of an access controller according to the present invention;
图14为本发明提供的接入节点实施例二的结构示意图。FIG. 14 is a schematic structural diagram of Embodiment 2 of an access node according to the present invention.
为使得本发明实施例清楚起见,先对本发明实施例所适用的网络架构、本发明实施例涉及的线路标识、隧道标识、对应关系等进行详细描述。For the sake of clarity of the embodiments of the present invention, the network architecture to which the embodiments of the present invention are applied, the line identifiers, tunnel identifiers, correspondences, and the like in the embodiments of the present invention are described in detail.
传统接入网架构中,接入节点具有完整的控制面、转发面。消息传输过程中,由控制面对消息进行处理以插入option 82,由转发面对消息进行转发。如图1所示,以无源光网络(passive optical network,PON)架构为例,用户驻地设备(customer premises equipment,CPE)或电缆调制解调器(cable modem,CM)与中继服务器之间通过消息传播路径传输消息,所述消息可以为动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)消息、路由器请求(router solicitation,RS)或路由器通告(router advertisement,RA)消息。所述消息传播路径包括的每个接入节点(access node,AN),如光网络单元(optical network unit,ONU)、有线电缆媒介转换器(cable media converter,CMC)、光线路终端(optical line termination,OLT)需要支持中继功能。每个AN的控制面对接收到的消息进行处理,每个AN的数据面对控制面处理后的消息进行转发。传统接入网中,当新的业务不断出现,每个接入节点需要针对每个新增的业务进行控制面的配置,运维成本和复杂度较高。为解决上述问题,本发明实施例在接入网架构中引入基于软件定义网络(Software Defined Network,SDN)技术,即在接入网络中设置接入控制器,如图2所示。接入节点的控制面和数据面分离,且接入节点的控制面的功能集中
至接入控制器。接入控制器对消息,比如控制面消息,进行处理。In the traditional access network architecture, the access node has a complete control plane and forwarding plane. During the message transmission process, the control faces the message to insert the option 82, and the forwarding is forwarded to the message. As shown in FIG. 1 , a passive optical network (PON) architecture is used as an example, and a customer premises equipment (CPE) or a cable modem (CM) communicates with a relay server through a message. The path transmits a message, which may be a Dynamic Host Configuration Protocol (DHCP) message, a router solicitation (RS), or a router advertisement (RA) message. Each access node (AN) included in the message propagation path, such as an optical network unit (ONU), a cable media converter (CMC), an optical line terminal (optical line) Termination, OLT) needs to support relay function. The control of each AN is processed in response to the received message, and the data of each AN is forwarded to the message processed by the control plane. In the traditional access network, when new services are constantly appearing, each access node needs to configure the control plane for each new service, and the operation and maintenance cost and complexity are high. To solve the above problem, the embodiment of the present invention introduces a Software Defined Network (SDN) technology in the access network architecture, that is, sets an access controller in the access network, as shown in FIG. 2 . The control plane and the data plane of the access node are separated, and the function of the control plane of the access node is concentrated.
To the access controller. The access controller processes messages, such as control plane messages.
如图2所示,本发明实施例提供的接入网中,OLT与中继服务器之间增设接入控制器。各个接入节点,如ONU、CMC或OLT,的控制面与转发面进行分离,各个接入节点的控制面的功能,比如DHCP消息、RS消息或RA消息的处理功能被移至接入控制器。各个接入节点无需无需支持控制面功能。其中,接入控制器可以为独立设备,也可以内嵌于OLT中。As shown in FIG. 2, in the access network provided by the embodiment of the present invention, an access controller is added between the OLT and the relay server. The control planes of the access nodes, such as the ONU, the CMC, or the OLT, are separated from the forwarding plane, and the functions of the control planes of the access nodes, such as DHCP messages, RS messages, or RA messages, are moved to the access controller. . There is no need to support the control plane function for each access node. The access controller may be an independent device or may be embedded in the OLT.
本发明实施例中的线路标识(Line ID)也可以称为电路标识(Circuit ID),或接入环路标识(access loop identifier,ALI)。The line ID in the embodiment of the present invention may also be referred to as a circuit ID or an access loop identifier (ALI).
具体的,AN为数字用户线(Digital Subscriber Line,DSL)/以太网中的网络节点,当AN出自于异步传输模式(Asynchronous Transfer Mode;ATM)的DSL线路时,线路标识的格式为:Access-Node-Identifier atm slot/port:vpi.vci;当AN出自于以太网的DSL/以太网线路时,线路标识的格式为:Access-Node-Identifier eth slot/port[:vlan-id]。其中,Access-Node-Identifier为AN,例如DSLAM,的标识,slot/port为AN上的机柜(chassis)号、机架(rack)号、框(frame)号、槽位(slot)号、子槽位(sub-slot)号、端口(port)号的一种或多种的组合;vpi为虚路径标识符;vci为虚通道标识符;格式中的“[]”表示可选,:vlan-id(virtual local area network identifier,虚拟局域网标识)。其中,虚路径可以是DSL线路上的虚路径;虚通道可以是DSL线路上的虚通道。Specifically, the AN is a network node in a Digital Subscriber Line (DSL)/Ethernet. When the AN is derived from an Asynchronous Transfer Mode (ATM) DSL line, the format of the line identifier is: Access- Node-Identifier atm slot/port:vpi.vci; When AN is from an Ethernet DSL/Ethernet line, the format of the line identifier is: Access-Node-Identifier eth slot/port[:vlan-id]. The Access-Node-Identifier is an identifier of the AN, for example, a DSLAM. The slot/port is a chassis number, a rack number, a frame number, a slot number, and a sub-AN. A combination of one or more of a sub-slot number and a port number; vpi is a virtual path identifier; vci is a virtual channel identifier; "[]" in the format indicates optional, :vlan -id(virtual local area network identifier). The virtual path may be a virtual path on the DSL line; the virtual channel may be a virtual channel on the DSL line.
对于PON(passive optical network,PON)系统,线路标识ONU部分Line ID信息和OLT部分Line ID信息。线路标识的格式为:当ONU出自于ATM的DSL线路时,为Access-Node-Identifier atm slot1/port1/ONUID/slot2/port2:vpi.vci;当ONU出自于以太网的DSL/以太网线路时,为Access-Node-Identifier eth slot1/port1/ONUID/slot2/port2[:vlan-id]。其中,Access-Node-Identifier为OLT的标识,slot1/port1为OLT上的机柜(chassis)号、机架(rack)号、框(frame)号、槽位(slot)号、子槽位(sub-slot)号、端口(port)号的一种或多种的组合;slot2/port2为ONU上的机柜(chassis)号、机架(rack)号、框(frame)号、槽位(slot)号、子槽位(sub-slot)号、端口(port)号的一种或多种的组合。ONUID/slot2/port2:vpi.vci为ONU部分Line ID信息,Access-Node-Identifier slot1/port1为OLT部分Line ID信息。
For a PON (passive optical network, PON) system, the line identifies the Line ID information of the ONU part and the Line ID information of the OLT part. The format of the line identifier is: when the ONU is from the ATM DSL line, it is Access-Node-Identifier atm slot1/port1/ONUID/slot2/port2:vpi.vci; when the ONU is from the Ethernet DSL/Ethernet line , for Access-Node-Identifier eth slot1/port1/ONUID/slot2/port2[:vlan-id]. The access-Node-Identifier is the identifier of the OLT, and the slot1/port1 is the chassis number, the rack number, the frame number, the slot number, and the sub-slot of the OLT. One or more combinations of -slot) and port number; slot2/port2 is the chassis number, rack number, frame number, and slot on the ONU. A combination of one or more of a number, a sub-slot number, and a port number. ONUID/slot2/port2: vpi.vci is the Line ID information of the ONU part, and the Access-Node-Identifier slot1/port1 is the Line ID information of the OLT part.
本发明实施例中,第一标识包括物理端口号、隧道标识、接入节点的MAC地址、所述接入节点的IP地址和所述接入节点的隧道标识中的至少一个。所述物理端口号可以是与第一子信息存在对应关系的预设值,也可以是根据所述第一子信息计算后获得的数值。所述第一子信息包括所述接入节点的机架号、框号、槽位号和物理端口号中的至少一个。所述隧道标识可以是与第二子信息存在对应关系的预设值,也可以是根据所述第二子信息计算后获得的数值。所述第二子信息包括所述接入节点的虚拟局域网标识号(virtual local area network ID,VID)、虚路径标识符(virtual path identifier,VPI)和虚通道标识符(virtual channel identifier,VCI)的至少一个。In the embodiment of the present invention, the first identifier includes at least one of a physical port number, a tunnel identifier, a MAC address of the access node, an IP address of the access node, and a tunnel identifier of the access node. The physical port number may be a preset value corresponding to the first sub-information, or may be a value obtained after being calculated according to the first sub-information. The first sub-information includes at least one of a rack number, a frame number, a slot number, and a physical port number of the access node. The tunnel identifier may be a preset value that is corresponding to the second sub-information, or may be a value obtained after being calculated according to the second sub-information. The second sub-information includes a virtual local area network ID (VID), a virtual path identifier (VPI), and a virtual channel identifier (VCI) of the access node. At least one of them.
具体的,接入节点与接入控制器之间可通过隧道虚拟局域网(Virtual Local Area Network,VLAN)隧道、虚拟可扩展局域网(Virtual eXtensible Local Area Network,VxLAN)隧道、多协议标签交换(Multi-Protocol Label Switch,MPLS)隧道等隧道连接。相应的,隧道标识可以是隧道的标识符,比如所述隧道标识例如可以为可以为VLAN ID、VxLAN ID或MPLS标签。本发明实施例中,接入节点和接入控制器之间通过隧道传输消息,如DHCP消息、RS消息或RA消息等,接入节点和接入控制器也可通过隧道传输开放流(openflow)消息,该openflow消息可以携带隧道标识和消息,如DHCP消息、RS消息或RA消息等。Specifically, the access node and the access controller can pass through a virtual local area network (VLAN) tunnel, a virtual eXtensible local area network (VxLAN) tunnel, and a multi-protocol label switching (Multi- Protocol Label Switch, MPLS) Tunnel connection such as tunnel. Correspondingly, the tunnel identifier may be an identifier of the tunnel, for example, the tunnel identifier may be, for example, a VLAN ID, a VxLAN ID, or an MPLS label. In the embodiment of the present invention, the access node and the access controller transmit a message through a tunnel, such as a DHCP message, an RS message, or an RA message, and the access node and the access controller may also transmit an open flow through the tunnel (openflow). The message, the openflow message may carry a tunnel identifier and a message, such as a DHCP message, an RS message, or an RA message.
本发明实施例中,对应关系包括所述第一标识与线路标识间的对应关系,对应关系可以是一种映射关系表,或者是一种编码关系表。In the embodiment of the present invention, the correspondence relationship includes a correspondence between the first identifier and the line identifier, and the correspondence relationship may be a mapping relationship table or an encoding relationship table.
若所述第一标识包括隧道标识或和逻辑端口号中的至少一个,所述线路标识包括所述第二子信息,则所述对应关系可以为表1或表2所示的对应关系。表1中的对应关系为所述隧道标识和所述第二子信息间的对应关系,或者为所述逻辑端口号和所述第二子信息间的对应关系。表2中的对应关系为所述隧道标识、所述逻辑端口号和所述第二子信息间的对应关系。其中,若接入节点与接入控制器之间建立有隧道,所述隧道标识为所述接入节点与所述接入控制器间的隧道的标识或者是openflow消息包括的隧道标识。若接入节点与接入控制器间未建立隧道,所述隧道标识可以是openflow消息包括的隧道标识。If the first identifier includes at least one of a tunnel identifier or a logical port number, and the line identifier includes the second sub-information, the corresponding relationship may be a correspondence relationship shown in Table 1 or Table 2. The corresponding relationship in Table 1 is a correspondence between the tunnel identifier and the second sub-information, or a correspondence between the logical port number and the second sub-information. The correspondence relationship in Table 2 is the correspondence between the tunnel identifier, the logical port number, and the second sub-information. A tunnel is established between the access node and the access controller, where the tunnel identifier is an identifier of a tunnel between the access node and the access controller or a tunnel identifier included in an openflow message. If the tunnel is not established between the access node and the access controller, the tunnel identifier may be a tunnel identifier included in the openflow message.
若所述第一标识包括物理端口号,所述线路标识包括所述第一子信息,
则所述对应关系可以为表3所示的对应关系。表3中的对应关系为所述物理端口号和所述第一子信息间的对应关系。所述物理端口号用于标识所述接入节点上用户侧的物理端口,即所述接入节点上与用户通信的物理端口。If the first identifier includes a physical port number, the line identifier includes the first sub-information,
Then, the correspondence relationship may be a correspondence relationship shown in Table 3. The correspondence relationship in Table 3 is the correspondence between the physical port number and the first sub-information. The physical port number is used to identify a physical port on the user side of the access node, that is, a physical port on the access node that communicates with the user.
若所述第一标识包括所述接入节点的媒体接入控制(Media Access Control,MAC)地址,所述线路标识包括第三子信息,则所述对应关系可以为表4所示的对应关系。所述第三子信息包括所述接入节点的身份标识和机柜号中的至少一个。表4中的对应关系为所述第三子信息和所述接入节点的MAC地址间的对应关系。If the first identifier includes a media access control (MAC) address of the access node, and the line identifier includes a third sub-information, the corresponding relationship may be a correspondence relationship shown in Table 4. . The third sub-information includes at least one of an identity identifier and a cabinet number of the access node. The correspondence in Table 4 is the correspondence between the third sub-information and the MAC address of the access node.
若所述第一标识包括所述接入节点的IP地址,所述线路标识包括所述第三子信息,则所述对应关系可以为表5所示的对应关系。表5中的对应关系为所述第三子信息和所述接入节点的IP地址间的对应关系。If the first identifier includes the IP address of the access node, and the line identifier includes the third sub-information, the corresponding relationship may be a correspondence relationship shown in Table 5. The correspondence relationship in Table 5 is the correspondence between the third sub-information and the IP address of the access node.
若所述第一标识包括所述隧道标识,所述线路标识包括所述接入节点的机架号、框号、槽位号、物理端口号、VID、VPI、VCI和身份标识中的至少一个,则所述对应关系包括所述隧道的标识和所述线路标识间的对应关系。If the first identifier includes the tunnel identifier, the line identifier includes at least one of a rack number, a frame number, a slot number, a physical port number, a VID, a VPI, a VCI, and an identity of the access node. And the corresponding relationship includes a correspondence between the identifier of the tunnel and the line identifier.
表1Table 1
表2Table 2
表3table 3
物理端口Physical port | Rack,Frame,Slot,PortRack, Frame, Slot, Port |
表4Table 4
MAC地址MAC address | AN ID,Chassis或ONU IDAN ID, Chassis or ONU ID |
表5table 5
IP地址IP address | AN ID,Chassis或ONU IDAN ID, Chassis or ONU ID |
本发明实施例中的接入控制器可根据上述表1至表5,获得第一标识或线路标识。具体地,所述接入控制器可根据获得的第一标识,查询上述表1至表
5中的一个或多个表,获得线路标识。或者,所述接入控制器可根据获得的线路标识,查询上述表1至表5中的一个或多个表,获得第一标识。The access controller in the embodiment of the present invention may obtain the first identifier or the line identifier according to Tables 1 to 5 above. Specifically, the access controller may query the foregoing Table 1 to Table according to the obtained first identifier.
One or more of the tables in 5, get the line identification. Alternatively, the access controller may query one or more of the foregoing Tables 1 to 5 according to the obtained line identifier to obtain the first identifier.
可选地,本发明实施例中的对应关系可以包括表1、表2、表3、表4和表5中的一个或多个表,相应地,所述线路标识可以包括所述第一子信息、所述第二子信息和所述第三子信息中一个或多个信息,在此不再逐一举例。Optionally, the corresponding relationship in the embodiment of the present invention may include one or more of Table 1, Table 2, Table 3, Table 4, and Table 5. Accordingly, the line identifier may include the first child. One or more of the information, the second sub-information, and the third sub-information are not exemplified herein.
图3为本发明消息传输方法实施例一的流程图。本实施例的执行主体为接入控制器,本实施例提供的方法为上行消息传输方法。所述上行消息为接入节点发送给所述接入控制器的消息。具体的,本实施例一提供的方法包括:FIG. 3 is a flowchart of Embodiment 1 of a message transmission method according to the present invention. The executor of this embodiment is an access controller, and the method provided in this embodiment is an uplink message transmission method. The uplink message is a message sent by the access node to the access controller. Specifically, the method provided in the first embodiment includes:
301、接入控制器接收接入节点发送的第一消息,所述第一消息包括第一标识。301. The access controller receives a first message sent by an access node, where the first message includes a first identifier.
举例来说,所述第一消息可以openflow消息或隧道消息。所述第一消息还可包括来自用户的DHCP消息、扩展认证协议(Extensible Authentication Protocol,EAP)消息或RS消息。其中,隧道(tunnel)可以为VLAN隧道、VXLAN隧道或MPLS隧道。For example, the first message may be an openflow message or a tunnel message. The first message may also include a DHCP message, an Extensible Authentication Protocol (EAP) message, or an RS message from the user. The tunnel can be a VLAN tunnel, a VXLAN tunnel, or an MPLS tunnel.
302、所述接入控制器根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系。302. The access controller obtains the line identifier according to the first identifier and the corresponding relationship, where the correspondence includes a correspondence between the first identifier and the line identifier.
举例说明,所述接入控制器可预先存储所述第一标识和所述线路标识间的对应关系。所述接入控制器利用所述第一标识查询所述对应关系,获得所述线路标识。For example, the access controller may pre-store a correspondence between the first identifier and the line identifier. The access controller queries the corresponding relationship by using the first identifier to obtain the line identifier.
可选地,302可替换为:所述接入控制器根据编码规则,对所述第一标识进行编码,获得所述线路标识。其中,所述编码规则可以是用于将所述第一标识编码成所述线路标识的编码方法,或者所述编码规则可以是将所述第一标识编码成所述线路标识的编码方法对应的索引值。Optionally, 302 may be replaced by: the access controller encoding the first identifier according to an encoding rule to obtain the line identifier. The encoding rule may be an encoding method for encoding the first identifier into the line identifier, or the encoding rule may be an encoding method for encoding the first identifier into the line identifier. Index value.
303、所述接入控制器根据所述线路标识,获得第二消息,所述第二消息包括所述线路标识。303. The access controller obtains a second message according to the line identifier, where the second message includes the line identifier.
举例说明,若所述第一消息还包括第一DHCP消息,所述第二消息为第二DHCP消息,则所述接入控制器根据所述线路标识,获得第二消息包括:所述接入控制器将所述线路标识添加至所述第一DHCP消息,获得所述第二DHCP消息,所述第二DHCP消息包括所述线路标识。
For example, if the first message further includes a first DHCP message, and the second message is a second DHCP message, the access controller obtains the second message according to the line identifier, including: the access The controller adds the line identifier to the first DHCP message to obtain the second DHCP message, where the second DHCP message includes the line identifier.
若所述第一消息还包括RS消息,所述第二控制面消息为第一AAA消息,则所述接入控制器根据所述线路标识,获得第二控制面消息包括:所述接入控制器根据所述线路标识和所述RS消息,生成所述第一AAA消息,所述第一AAA消息包括所述线路标识。If the first message further includes an RS message, and the second control plane message is the first AAA message, the access controller obtains the second control plane message according to the line identifier, and includes: the access control The first AAA message is generated according to the line identifier and the RS message, and the first AAA message includes the line identifier.
若所述第一消息还包括第三DHCP消息,所述第二消息为第二AAA消息,则所述接入控制器根据所述线路标识,获得第二消息包括:所述接入控制器根据所述线路标识和所述第三DHCP消息,获得所述第二AAA消息,所述第二AAA消息包括所述线路标识。所述第二AAA消息还包括所述第三DHCP消息所包含的数据和/或信息。If the first message further includes a third DHCP message, and the second message is a second AAA message, the access controller obtains the second message according to the line identifier, where the access controller is configured according to the And obtaining, by the line identifier and the third DHCP message, the second AAA message, where the second AAA message includes the line identifier. The second AAA message further includes data and/or information included in the third DHCP message.
304、所述接入控制器向中继服务器发送所述第二消息。304. The access controller sends the second message to a relay server.
举例说明,中继服务器为DHCP服务器或具备IP地址分配功能的AAA服务器。For example, the relay server is a DHCP server or an AAA server with an IP address allocation function.
本发明实施例提供的消息传输方法,接入控制器在接收到接入节点发送的第一消息后,根据该第一消息包括的第一标识确定出线路标识,然后将线路标识添加在第一消息内得到第二消息,并将该第二消息发送给中继服务器。该过程中,接入节点将第一消息转发给接入控制器,由接入控制器对该第一消息插入Line ID,使得接入节点无需支持中继功能,从而无需对接入节点的option 82进行维护,进而实现降低对接入节点的option82的维护量及维护复杂度。同时,接入控制器可根据第一消息包括的第一标识确定出线路标识,从而实现接入控制器接收上行消息的过程中,确定出Line ID的目的。According to the message transmission method provided by the embodiment of the present invention, after receiving the first message sent by the access node, the access controller determines the line identifier according to the first identifier included in the first message, and then adds the line identifier to the first A second message is obtained in the message, and the second message is sent to the relay server. In the process, the access node forwards the first message to the access controller, and the access controller inserts the Line ID into the first message, so that the access node does not need to support the relay function, so that the access node is not required to be selected. 82 performs maintenance, thereby reducing the maintenance amount and maintenance complexity of the option 82 of the access node. At the same time, the access controller may determine the line identifier according to the first identifier included in the first message, so as to implement the purpose of determining the Line ID in the process of receiving the uplink message by the access controller.
图4为本发明消息传输方法实施例二的流程图。本实施例的执行主体为接入节点,本实施例提供的方法为上行消息传输方法。所述上行消息为所述接入节点发送给接入控制器的消息。本实施例二提供的方法包括:FIG. 4 is a flowchart of Embodiment 2 of a message transmission method according to the present invention. The executor of this embodiment is an access node, and the method provided in this embodiment is an uplink message transmission method. The uplink message is a message sent by the access node to an access controller. The method provided in the second embodiment includes:
401、接入节点接收到用户发送的第二消息,获得线路标识。401. The access node receives the second message sent by the user, and obtains a line identifier.
举例说明,所述第二消息可以来自于所述用户所采用的客户端设备或电缆调制解调器。所述接入节点可根据接收到所述第二消息的端口,确定所述线路标识,在此不再对具体方法进行赘述。For example, the second message may be from a client device or cable modem employed by the user. The access node may determine the line identifier according to the port that receives the second message, and the specific method is not described herein again.
402、所述接入节点根据所述线路标识,获得第一标识。402. The access node obtains the first identifier according to the line identifier.
举例说明,所述接入节点可存储有所述线路标识和所述第一标识的对应
关系。所述接入节点利用所述线路标识查询所述对应关系,获得所述第一标识。For example, the access node may store a correspondence between the line identifier and the first identifier.
relationship. The access node queries the corresponding relationship by using the line identifier to obtain the first identifier.
可选地,402可替换为:所述接入节点根据编码规则,对所述线路标识进行编码,获得所述第一标识。其中,所述编码规则可以是用于将所述线路标识编码成所述第一标识的编码方法,或者所述编码规则可以是将所述线路标识编码成所述第一标识的编码方法对应的索引值。Optionally, 402 is replaced by: the access node encoding the line identifier according to an encoding rule, to obtain the first identifier. The encoding rule may be an encoding method for encoding the line identifier into the first identifier, or the encoding rule may be an encoding method for encoding the line identifier into the first identifier. Index value.
403、所述接入节点根据所述第一标识和所述第二消息,获得第一消息,所述第一消息包括所述第一标识和所述第二消息。403. The access node obtains a first message according to the first identifier and the second message, where the first message includes the first identifier and the second message.
其中,所述第一消息为openflow消息或隧道报文。所述第一消息不包括所述线路标识。The first message is an openflow message or a tunnel message. The first message does not include the line identifier.
404、所述接入节点向接入控制器发送所述第一消息。404. The access node sends the first message to an access controller.
本发明实施例提供的消息传输方法,接入节点向接入控制器发送包括第二消息和第一标识的第一消息。所述接入节点可无需支持中继功能,比如无需对option 82进行维护,有助于实现降低维护复杂度。In the message transmission method provided by the embodiment of the present invention, the access node sends the first message including the second message and the first identifier to the access controller. The access node does not need to support the relay function. For example, maintenance of the option 82 is not required, which helps to reduce maintenance complexity.
图5为本发明消息传输方法实施例三的信令图。本实施例中,中继服务器为DHCP服务器,接入节点向接入控制器发送的第一消息为openflow消息。本实施例三提供的方法包括:FIG. 5 is a signaling diagram of Embodiment 3 of a message transmission method according to the present invention. In this embodiment, the relay server is a DHCP server, and the first message sent by the access node to the access controller is an openflow message. The method provided in the third embodiment includes:
501、接入节点接收客户端设备发送的第一DHCP消息。501. The access node receives a first DHCP message sent by the client device.
其中,所述接入节点利用接收所述第一DHCP消息的所在线路,获得线路标识。所述线路标识包括所述第一子信息、所述第二子信息和所述第三子信息。The access node obtains a line identifier by using a line where the first DHCP message is received. The line identifier includes the first sub information, the second sub information, and the third sub information.
502、所述接入节点获得所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址。502. The access node obtains the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
其中,所述接入节点存储对应关系。所述对应关系可以为上述表1至表5所示的对应关系中的一个或多个。本实施例三中的对应关系包括表1至表5所示的对应关系。本发明并不以此为限制,在其他可行的实施方式中,也可仅设置表1至表5中的部分表项。The access node stores a correspondence. The correspondence may be one or more of the correspondences shown in Tables 1 to 5 above. The correspondence relationship in the third embodiment includes the correspondences shown in Tables 1 to 5. The present invention is not limited thereto, and in other feasible embodiments, only some of the entries in Tables 1 to 5 may be set.
举例说明,所述接入节点获得第一标识包括:所述接入节点利用接收所述第一DHCP消息的所在线路,获得线路标识;所述接入节点根据所述对应关
系、所述第一子信息、所述第二子信息和所述第三子信息,获得所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址。For example, the obtaining, by the access node, the first identifier includes: the access node obtains a line identifier by using a line where the first DHCP message is received; and the access node is configured according to the corresponding
And the first sub-information, the second sub-information, and the third sub-information, obtaining the physical port number, the tunnel identifier, a MAC address of the access node, and the access node IP address.
可选地,所述接入节点还可根据编码规则和所述线路标识,获得所述第一标识,在此不再举例说明。Optionally, the access node may further obtain the first identifier according to the coding rule and the line identifier, which is not illustrated herein.
503、接入节点根据所述第一DHCP消息、所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址,获得openflow消息。503. The access node obtains an openflow message according to the first DHCP message, the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
其中,所述openflow消息包括所述第一DHCP消息、所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址。若所述接入节点和所述接入控制器间通过隧道连接,则所述接入节点还可对所述openflow消息进行隧道封装,发送隧道封装后的openflow消息至所述接入控制器。The openflow message includes the first DHCP message, the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node. If the access node and the access controller are connected through a tunnel, the access node may further encapsulate the openflow message and send a tunnel encapsulated openflow message to the access controller.
504、所述接入节点向所述接入控制器发送所述openflow消息。504. The access node sends the openflow message to the access controller.
505、所述接入控制器获得所述第一子信息、所述第二子信息和所述第三子信息。505. The access controller obtains the first sub information, the second sub information, and the third sub information.
其中,所述接入控制器可存储有所述对应关系。所述接入控制器存储的对应关系与所述接入节点存储的对应关系相同。The access controller may store the corresponding relationship. The correspondence stored by the access controller is the same as the corresponding relationship stored by the access node.
举例说明,所述接入控制器可用所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址,查询所述对应关系,获得所述第一子信息、所述第二子信息和所述第三子信息。For example, the access controller may query the corresponding relationship by using the physical port number, the tunnel identifier, the MAC address of the access node, and the IP address of the access node, to obtain the first Sub information, the second sub information, and the third sub information.
506、所述接入控制器将所述第一子信息、所述第二子信息和所述第三子信息添加至所述第一DHCP消息,获得第二DHCP消息。506. The access controller adds the first sub information, the second sub information, and the third sub information to the first DHCP message to obtain a second DHCP message.
其中,所述第二DHCP消息包括所述第一子信息、所述第二子信息和所述第三子信息。The second DHCP message includes the first sub information, the second sub information, and the third sub information.
507、所述接入控制器向DHCP服务器发送所述第二DHCP消息。507. The access controller sends the second DHCP message to a DHCP server.
508、所述DHCP服务器根据所述第二DHCP消息,分配IP地址或IP地址前缀。508. The DHCP server allocates an IP address or an IP address prefix according to the second DHCP message.
图6为本发明消息传输方法实施例四的信令图。本实施例中,中继服务器为AAA服务器,接入节点向接入控制器发送的第一消息为经隧道封装后的openflow消息。本实施例四提供的方法包括:
FIG. 6 is a signaling diagram of Embodiment 4 of a message transmission method according to the present invention. In this embodiment, the relay server is an AAA server, and the first message sent by the access node to the access controller is an openflow message encapsulated by the tunnel. The method provided in the fourth embodiment includes:
601、所述接入节点接收客户端设备发送的RS消息。601. The access node receives an RS message sent by a client device.
其中,所述接入节点利用接收所述RS消息的所在线路,获得线路标识。所述线路标识包括所述第一子信息、所述第二子信息和所述第三子信息。The access node obtains the line identifier by using the line where the RS message is received. The line identifier includes the first sub information, the second sub information, and the third sub information.
602、所述接入节点获得所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址。602. The access node obtains the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
其中,接入节点存储对应关系。所述对应关系可以为上述表1至表5所示的对应关系中的一个或多个。本实施例三中的对应关系包括表1至表5所示的对应关系。本发明并不以此为限制,在其他可行的实施方式中,也可仅设置表1至表5中的部分表项。The access node stores the correspondence. The correspondence may be one or more of the correspondences shown in Tables 1 to 5 above. The correspondence relationship in the third embodiment includes the correspondences shown in Tables 1 to 5. The present invention is not limited thereto, and in other feasible embodiments, only some of the entries in Tables 1 to 5 may be set.
举例说明,所述接入节点获得第一标识包括:所述接入节点利用接收所述第一DHCP消息的所在线路,获得线路标识;所述接入节点根据所述对应关系、所述第一子信息、所述第二子信息和所述第三子信息,获得所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址。For example, the obtaining, by the access node, the first identifier includes: the access node obtains a line identifier by using a line where the first DHCP message is received; and the access node is configured according to the correspondence, the first The sub-information, the second sub-information, and the third sub-information obtain the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
可选地,所述接入节点还可根据编码规则和所述线路标识,获得所述第一标识,在此不再举例说明。Optionally, the access node may further obtain the first identifier according to the coding rule and the line identifier, which is not illustrated herein.
603、接入节点根据所述RS消息、所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址,获得隧道封装后的openflow消息。603. The access node obtains an openflow message encapsulated by the tunnel according to the RS message, the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node.
其中,openflow消息包括所述RS消息、所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址。所述接入节点对所述openflow消息进行隧道封装,获得隧道封装后的openflow消息。The openflow message includes the RS message, the physical port number, the tunnel identifier, a MAC address of the access node, and an IP address of the access node. The access node tunnel encapsulates the openflow message to obtain an openflow message after tunnel encapsulation.
604、所述接入节点向所述接入控制器发送所述隧道封装后的openflow消息。604. The access node sends the tunnel encapsulated openflow message to the access controller.
605、所述接入控制器获得所述第一子信息、所述第二子信息和所述第三子信息。605. The access controller obtains the first sub information, the second sub information, and the third sub information.
其中,所述接入控制器可存储有所述对应关系。所述接入控制器存储的对应关系与所述接入节点存储的对应关系相同。The access controller may store the corresponding relationship. The correspondence stored by the access controller is the same as the corresponding relationship stored by the access node.
举例说明,所述接入控制器可用所述物理端口号、所述隧道标识、所述接入节点的MAC地址和所述接入节点的IP地址,查询所述对应关系,获得所
述第一子信息、所述第二子信息和所述第三子信息。For example, the access controller may query the corresponding relationship by using the physical port number, the tunnel identifier, the MAC address of the access node, and the IP address of the access node, and obtain the location.
The first sub-information, the second sub-information, and the third sub-information are described.
606、所述接入控制器根据所述第一子信息、所述第二子信息、所述第三子信息和所述RS消息,生成AAA消息。606. The access controller generates an AAA message according to the first sub information, the second sub information, the third sub information, and the RS message.
其中,所述AAA消息包括所述第一子信息、所述第二子信息和所述第三子信息。The AAA message includes the first sub information, the second sub information, and the third sub information.
607、所述接入控制器向AAA服务器发送所述AAA消息。607. The access controller sends the AAA message to an AAA server.
608、所述AAA消息根据所述AAA消息,分配IP地址或IP地址前缀。608. The AAA message allocates an IP address or an IP address prefix according to the AAA message.
可选地,601至608中的RS消息还可以替换为DHCP消息,在此不再对替换后的实施例进行详细说明。Optionally, the RS messages in 601 to 608 can also be replaced with DHCP messages, and the alternate embodiment will not be described in detail herein.
图7为本发明消息传输方法实施例五的流程图。本实施例的执行主体为接入控制器,本实施例提供的方法为下行消息传输方法。所述下行消息为所述接入控制器发送给接入节点的消息。具体的,本实施例五提供的方法包括:FIG. 7 is a flowchart of Embodiment 5 of a message transmission method according to the present invention. The executor of this embodiment is an access controller, and the method provided in this embodiment is a downlink message transmission method. The downlink message is a message sent by the access controller to an access node. Specifically, the method provided in the fifth embodiment includes:
701、接入控制器接收中继服务器发送的第一消息,所述第一消息包括线路标识和IP地址信息,所述IP地址信息为IP地址或IP地址前缀。701. The access controller receives a first message sent by the relay server, where the first message includes a line identifier and an IP address information, where the IP address information is an IP address or an IP address prefix.
其中,所述IP地址信息为所述中继服务器分配的IP地址信息。The IP address information is IP address information allocated by the relay server.
702、所述接入控制器根据所述线路标识,获得所述第一标识。702. The access controller obtains the first identifier according to the line identifier.
举例说明,所述接入控制器可预先存储所述第一标识和所述线路标识间的对应关系。所述接入控制器利用所述线路标识查询对应关系,获得第一标识。For example, the access controller may pre-store a correspondence between the first identifier and the line identifier. The access controller uses the line identifier to query the corresponding relationship to obtain the first identifier.
可选地,所述接入控制器根据编码规则,对所述线路标识进行编码,获得所述第一标识。所述接入控制器所采用的编码规则与实施例二中的编码规则相同。Optionally, the access controller encodes the line identifier according to an encoding rule to obtain the first identifier. The encoding rule adopted by the access controller is the same as the encoding rule in the second embodiment.
703、所述接入控制器根据所述第一标识,获得第二消息,所述第二消息包括包括所述第一标识和所述IP地址信息。703. The access controller obtains a second message according to the first identifier, where the second message includes the first identifier and the IP address information.
其中,所述第二消息不包括所述线路标识。The second message does not include the line identifier.
举例说明,所述第一消息为第一DHCP消息,所述接入控制器根据所述第一标识,获得第二消息包括:所述接入控制器删除所述第一DHCP消息包括的所述线路标识,获得第二DHCP消息,所述第二DHCP消息包括所述IP地址信息;所述接入控制器根据所述第一标识和所述第二DHCP消息,获得所述第二
消息,所述第二消息还包括所述第二DHCP消息。For example, the first message is a first DHCP message, and the access controller obtains the second message according to the first identifier, where the access controller deletes the a line identifier, the second DHCP message is obtained, the second DHCP message includes the IP address information, and the access controller obtains the second according to the first identifier and the second DHCP message
The message, the second message further includes the second DHCP message.
或者,所述第一消息为AAA消息,所述接入控制器根据所述第一标识,获得第二消息包括:所述接入控制器根据所述AAA消息和所述IP地址信息,获得RA消息,所述RA消息包括所述IP地址信息;所述接入控制器根据所述第一标识和所述RA消息,获得所述第二消息,所述第二消息还包括所述RA消息。Or the first message is an AAA message, and the access controller obtains the second message according to the first identifier, where the access controller obtains the RA according to the AAA message and the IP address information. The message that the RA message includes the IP address information; the access controller obtains the second message according to the first identifier and the RA message, and the second message further includes the RA message.
其中,所述第二消息为openflow消息或隧道封后的openflow消息。The second message is an openflow message or an openflow message after the tunnel is sealed.
704、所述接入控制器向接入节点发送所述第二消息。704. The access controller sends the second message to an access node.
本发明实施例提供的消息传输方法,接入控制器向接入节点发送下行消息的过程中,接入控制器根据线路标识确定出第一标识,然后去除第一消息中的线路标识,并根据第一标识和去除了线路标识的第一消息获得第二消息。这样,接入节点无需支持中继功能,有助于实现降低维护复杂度。In the message transmission method provided by the embodiment of the present invention, when the access controller sends a downlink message to the access node, the access controller determines the first identifier according to the line identifier, and then removes the line identifier in the first message, and according to The first identifier and the first message with the line identifier removed remove the second message. In this way, the access node does not need to support the relay function, which helps to reduce maintenance complexity.
图8为本发明消息传输方法实施例六的流程图。本实施例的执行主体为接入节点,本实施例提供的方法为下行消息传输方法。所述下行消息为所述接入节点发送给接入控制器的消息。本实施例六提供的方法包括:FIG. 8 is a flowchart of Embodiment 6 of a message transmission method according to the present invention. The executor of this embodiment is an access node, and the method provided in this embodiment is a downlink message transmission method. The downlink message is a message sent by the access node to an access controller. The method provided in the sixth embodiment includes:
801、接入节点接收接入控制器发送的第二消息,所述第二消息包括IP地址信息和第一标识。801. The access node receives a second message sent by the access controller, where the second message includes the IP address information and the first identifier.
其中,所述IP地址信息为用户被分配的IP地址信息。所述第二消息还包括RA消息或DHCP消息,所述RA消息和所述DHCP消息不包括线路标识和所述第一标识。如果中继服务器为DHCP服务器,则所述第二消息还包括DHCP消息。如果中继服务器为AAA服务器,则所述第二消息还包括RA消息或DHCP消息。The IP address information is IP address information that the user is assigned. The second message further includes an RA message or a DHCP message, and the RA message and the DHCP message do not include a line identifier and the first identifier. If the relay server is a DHCP server, the second message further includes a DHCP message. If the relay server is an AAA server, the second message further includes an RA message or a DHCP message.
802、所述接入节点根据所述第一标识,获得线路标识。802. The access node obtains a line identifier according to the first identifier.
举例说明,所述接入节点可存储有对应关系。所述对应关系可为表1至表5中的一个或多个对应关系。For example, the access node may store a correspondence. The correspondence may be one or more correspondences in Tables 1 to 5.
举例说明,所述接入节点利用所述第一标识查询所述对应关系,获得所述线路标识。For example, the access node queries the corresponding relationship by using the first identifier to obtain the line identifier.
可选地,所述接入节点根据编码规则,对所述第一标识进行编码,获得所述线路标识。所述接入节点采用的编码规则可以与实施例一所采用的编码规则相同。
Optionally, the access node encodes the first identifier according to an encoding rule to obtain the line identifier. The coding rules adopted by the access node may be the same as the coding rules used in the first embodiment.
803、所述接入节点根据所述第二消息,获得第一消息,所述第一消息不包括所述第一标识,所述第一消息包括所述IP地址信息。803. The access node obtains a first message according to the second message, where the first message does not include the first identifier, and the first message includes the IP address information.
所述第一消息可以为不包括所述线路标识和所述第一标识的RA消息或DHCP消息。The first message may be an RA message or a DHCP message that does not include the line identifier and the first identifier.
804、所述接入节点根据所述线路标识,向用户发送所述第一消息。804. The access node sends the first message to a user according to the line identifier.
本发明实施例提供的消息传输方法,接入节点根据该第二消息包括的第一标识确定出线路标识,根据所述线路标识向用户发送不包括所述第一标识的第一消息。这样,接入节点无需支持中继功能,有助于实现降低维护复杂度。According to the message transmission method provided by the embodiment of the present invention, the access node determines the line identifier according to the first identifier included in the second message, and sends a first message that does not include the first identifier to the user according to the line identifier. In this way, the access node does not need to support the relay function, which helps to reduce maintenance complexity.
图9为本发明消息传输方法实施例七的信令图。本实施例中,中继服务器具体为DHCP服务器,接入控制器向接入节点发送openflow消息。本实施例七提供的方法包括:FIG. 9 is a signaling diagram of Embodiment 7 of a message transmission method according to the present invention. In this embodiment, the relay server is specifically a DHCP server, and the access controller sends an openflow message to the access node. The method provided in the seventh embodiment includes:
901、接入控制器接收DHCP服务器发送的第一DHCP消息。901. The access controller receives the first DHCP message sent by the DHCP server.
具体的,所述第一DHCP消息包括线路标志和IP地址信息。所述IP地址信息为所述DHCP服务器为用户分配的IP地址或IP地址前缀。所述线路标识包括所述第一子信息、所述第二子信息和所述第三子信息。Specifically, the first DHCP message includes a line identifier and IP address information. The IP address information is an IP address or an IP address prefix assigned by the DHCP server to the user. The line identifier includes the first sub information, the second sub information, and the third sub information.
902、所述接入控制器根据所述第一DHCP消息,获得所述物理端口号、所述隧道标识和所述接入节点的MAC地址。902. The access controller obtains the physical port number, the tunnel identifier, and a MAC address of the access node according to the first DHCP message.
其中,所述接入控制器存储对应关系。所述对应关系可以为上述表1至表5所示的对应关系中的一个或多个。本实施例三中的对应关系包括表1至表5所示的对应关系。本发明并不以此为限制,在其他可行的实施方式中,也可仅设置表1至表5中的部分表项。The access controller stores a correspondence. The correspondence may be one or more of the correspondences shown in Tables 1 to 5 above. The correspondence relationship in the third embodiment includes the correspondences shown in Tables 1 to 5. The present invention is not limited thereto, and in other feasible embodiments, only some of the entries in Tables 1 to 5 may be set.
举例说明,所述接入控制器获得第一标识包括:所述接入控制器利用接收所述第一DHCP消息包括的所述第一子信息、所述第二子信息和所述第三子信息,查询所述对应关系,获得所述物理端口号、所述隧道标识和所述接入节点的MAC地址。For example, the obtaining, by the access controller, the first identifier includes: using, by the access controller, the first sub information, the second sub information, and the third sub And querying the corresponding relationship to obtain the physical port number, the tunnel identifier, and a MAC address of the access node.
903、所述接入控制器删除所述第一DHCP消息中的线路标识,获得第二DHCP消息。903. The access controller deletes a line identifier in the first DHCP message, and obtains a second DHCP message.
其中,所述第二DHCP消息不包括所述第一子信息、所述第二子信息和所
述第三子信息。The second DHCP message does not include the first sub-information, the second sub-information, and the
The third sub-information.
904、所述接入控制器根据所述第二DHCP消息、所述物理端口号、所述隧道标识和所述接入节点的MAC地址,获得openflow消息。904. The access controller obtains an openflow message according to the second DHCP message, the physical port number, the tunnel identifier, and a MAC address of the access node.
所述openflow消息包括所述第二DHCP消息、所述物理端口号、所述隧道标识和所述接入节点的MAC地址。The openflow message includes the second DHCP message, the physical port number, the tunnel identifier, and a MAC address of the access node.
905、所述接入控制器向接入节点发送所述openflow消息。905. The access controller sends the openflow message to an access node.
906、所述接入节点根据所述物理端口号、所述隧道标识和所述接入节点的MAC地址,确定线路标识。906. The access node determines a line identifier according to the physical port number, the tunnel identifier, and a MAC address of the access node.
其中,所述接入节点存储的对应关系与所述接入控制器存储的对应关系相同。所述接入节点根据所述对应关系、所述物理端口号、所述隧道标识和所述接入节点的MAC地址,获得所述第一子信息、所述第二子信息和所述第三子信息。The corresponding relationship stored by the access node is the same as the corresponding relationship stored by the access controller. The access node obtains the first sub information, the second sub information, and the third according to the correspondence, the physical port number, the tunnel identifier, and the MAC address of the access node. Sub-information.
907、所述接入节点根据所述线路标识,向用户发送所述第二DHCP消息。907. The access node sends the second DHCP message to a user according to the line identifier.
其中,所述第二DHCP消息包括所述DHCP服务器为用户分配的IP地址信息。The second DHCP message includes IP address information allocated by the DHCP server for the user.
图10为本发明消息传输方法实施例八的信令图。本实施例中,中继服务器具体为AAA服务器,接入控制器向接入节点发送隧道封装后的openflow消息。本实施例八提供的方法包括:FIG. 10 is a signaling diagram of Embodiment 8 of a message transmission method according to the present invention. In this embodiment, the relay server is specifically an AAA server, and the access controller sends the tunnel encapsulated openflow message to the access node. The method provided in the eighth embodiment includes:
1001、接入控制器接收AAA服务器发送的AAA消息。1001. The access controller receives an AAA message sent by the AAA server.
具体的,所述AAA消息包括线路标志和IP地址信息。所述IP地址信息为所述AAA服务器为用户分配的IP地址或IP地址前缀。所述线路标识包括所述第一子信息、所述第二子信息和所述第三子信息。Specifically, the AAA message includes a line identifier and IP address information. The IP address information is an IP address or an IP address prefix assigned by the AAA server to the user. The line identifier includes the first sub information, the second sub information, and the third sub information.
1002、所述接入控制器根据所述AAA消息,获得所述物理端口号、所述隧道标识和所述接入节点的MAC地址。1002. The access controller obtains the physical port number, the tunnel identifier, and a MAC address of the access node according to the AAA message.
其中,所述接入控制器存储对应关系。所述对应关系可以为上述表1至表5所示的对应关系中的一个或多个。本实施例三中的对应关系包括表1至表5所示的对应关系。本发明并不以此为限制,在其他可行的实施方式中,也可仅设置表1至表5中的部分表项。The access controller stores a correspondence. The correspondence may be one or more of the correspondences shown in Tables 1 to 5 above. The correspondence relationship in the third embodiment includes the correspondences shown in Tables 1 to 5. The present invention is not limited thereto, and in other feasible embodiments, only some of the entries in Tables 1 to 5 may be set.
举例说明,所述接入控制器获得第一标识包括:所述接入控制器利用接
收所述AAA消息包括的所述第一子信息、所述第二子信息和所述第三子信息,查询所述对应关系,获得所述物理端口号、所述隧道标识和所述接入节点的MAC地址。For example, the obtaining, by the access controller, the first identifier includes: using the access controller
Receiving the first sub-information, the second sub-information, and the third sub-information included in the AAA message, querying the corresponding relationship, and obtaining the physical port number, the tunnel identifier, and the access The MAC address of the node.
1003、所述接入控制器根据所述AAA消息,获得RA消息。1003. The access controller obtains an RA message according to the AAA message.
其中,所述RA消息不包括所述第一子信息、所述第二子信息和所述第三子信息。所述RA消息包括所述AAA服务器为用户分配的所述IP地址信息。The RA message does not include the first sub information, the second sub information, and the third sub information. The RA message includes the IP address information allocated by the AAA server to a user.
1004、所述接入控制器根据所述RA消息、所述物理端口号、所述隧道标识和所述接入节点的MAC地址,获得隧道封装后的openflow消息。1004. The access controller obtains a tunnel encapsulated openflow message according to the RA message, the physical port number, the tunnel identifier, and a MAC address of the access node.
其中,openflow消息包括所述RA消息、所述物理端口号、所述隧道标识和所述接入节点的MAC地址。所述接入控制器可对所述openflow消息进行隧道封装,获得所述隧道封装后的openflow消息。The openflow message includes the RA message, the physical port number, the tunnel identifier, and a MAC address of the access node. The access controller may perform tunnel encapsulation on the openflow message to obtain an openflow message after the tunnel encapsulation.
1005、所述接入控制器向接入节点发送所述隧道封装后的openflow消息。1005. The access controller sends the tunnel encapsulated openflow message to an access node.
1006、所述接入节点根据所述物理端口号、所述隧道标识和所述接入节点的MAC地址,确定线路标识。1006. The access node determines a line identifier according to the physical port number, the tunnel identifier, and a MAC address of the access node.
其中,所述接入节点存储的对应关系与所述接入控制器存储的对应关系相同。所述接入节点根据所述对应关系、所述物理端口号、所述隧道标识和所述接入节点的MAC地址,获得所述第一子信息、所述第二子信息和所述第三子信息。The corresponding relationship stored by the access node is the same as the corresponding relationship stored by the access controller. The access node obtains the first sub information, the second sub information, and the third according to the correspondence, the physical port number, the tunnel identifier, and the MAC address of the access node. Sub-information.
1007、所述接入节点根据所述线路标识,向用户发送RA消息。1007. The access node sends an RA message to the user according to the line identifier.
图11为本发明接入控制器实施例一的结构示意图。本实施例提供的接入控制器可以执行图3对应的实施例提供的方法。本实施例提供的接入控制器可以是图5至图10对应的实施例中任一实施例中的接入控制器。本实施例中的消息或标识的具体内容可参见图3、图5至图10对应的实施例中的相应内容,在此不再赘述。本实施例提供的接入控制器包括:FIG. 11 is a schematic structural diagram of Embodiment 1 of an access controller according to the present invention. The access controller provided in this embodiment may perform the method provided in the embodiment corresponding to FIG. 3. The access controller provided in this embodiment may be the access controller in any one of the embodiments corresponding to FIG. 5 to FIG. For the specific content of the message or the identifier in this embodiment, reference may be made to the corresponding content in the embodiment corresponding to FIG. 3 and FIG. 5 to FIG. 10, and details are not described herein again. The access controller provided in this embodiment includes:
第一接收模块11,用于接收接入节点发送的第一消息,所述第一消息包括第一标识。The first receiving module 11 is configured to receive a first message sent by the access node, where the first message includes a first identifier.
第一获得模块12,用于根据所述第一标识,获得线路标识。The first obtaining module 12 is configured to obtain a line identifier according to the first identifier.
第二获得模块13,用于根据所述线路标识,获得第二消息,所述第二消息包括所述线路标识;
The second obtaining module 13 is configured to obtain a second message according to the line identifier, where the second message includes the line identifier;
第一发送模块14,用于向中继服务器发送所述第二消息。The first sending module 14 is configured to send the second message to the relay server.
本发明实施例提供的接入控制器,接收上行消息的过程中,接入控制器在接收到接入节点发送的第一消息后,根据该第一消息包括的第一标识确定出线路标识,根据所述线路标识得到第二消息。所述接入控制器将该第二消息发送给中继服务器。该过程中,接入节点将第一消息转发给接入控制器,由接入控制器对在第二消息中添加Line ID,使得接入节点无需支持中继功能,从而无需对接入节点的option 82进行维护,进而实现降低对接入节点的option82的维护量及维护复杂度。同时,接入控制器可根据第一消息包括的第一标识确定出线路标识,从而实现接入控制器接收上行消息的过程中,确定出Line ID的目的。The access controller provided by the embodiment of the present invention, after receiving the uplink message, the access controller determines the line identifier according to the first identifier included in the first message, after receiving the first message sent by the access node, Obtaining a second message according to the line identifier. The access controller sends the second message to the relay server. In the process, the access node forwards the first message to the access controller, and the access controller adds a Line ID to the second message, so that the access node does not need to support the relay function, thereby eliminating the need for the access node. Option 82 performs maintenance to reduce the maintenance and maintenance complexity of option82 on the access node. At the same time, the access controller may determine the line identifier according to the first identifier included in the first message, so as to implement the purpose of determining the Line ID in the process of receiving the uplink message by the access controller.
其中,所述第一标识与上述实施例中提及的第一标识相同,所述线路标识与上述实施例中提及的线路标识相同,在此不再赘述。The first identifier is the same as the first identifier mentioned in the foregoing embodiment, and the line identifier is the same as the line identifier mentioned in the foregoing embodiment, and details are not described herein again.
举例说明,所述第一获得模块12具体用于根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系。或者所述第一获得模块12具体用于根据第一编码规则,对所述第一标识进行编码,获得所述线路标识。For example, the first obtaining module 12 is specifically configured to obtain the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier. Or the first obtaining module 12 is specifically configured to code the first identifier according to the first encoding rule to obtain the line identifier.
举例说明,所述第一消息还包括第一动态主机配置协议DHCP消息,所述第二消息为第二DHCP消息,所述第二获得模块13具体用于:将所述线路标识添加至所述第一DHCP消息,获得所述第二DHCP消息,所述第二DHCP消息包括所述线路标识。For example, the first message further includes a first dynamic host configuration protocol DHCP message, the second message is a second DHCP message, and the second obtaining module 13 is specifically configured to: add the line identifier to the The first DHCP message obtains the second DHCP message, and the second DHCP message includes the line identifier.
举例说明,所述第一消息还包括路由请求RS消息,所述第二消息为第一认证、授权和计费AAA消息,所述第二获得模块13具体用于:根据所述线路标识和所述RS消息,生成所述第一AAA消息,所述第一AAA消息包括所述线路标识。For example, the first message further includes a route request RS message, the second message is a first authentication, authorization, and accounting AAA message, and the second obtaining module 13 is specifically configured to: according to the line identifier and the The RS message is generated, and the first AAA message is generated, where the first AAA message includes the line identifier.
可选的,所述接入控制器还包括:Optionally, the access controller further includes:
第二接收模块15,用于接收中继服务器发送的第四消息,所述第四消息包括线路标识和互联网协议IP地址信息,所述IP地址信息为IP地址或IP地址前缀;The second receiving module 15 is configured to receive a fourth message sent by the relay server, where the fourth message includes a line identifier and Internet Protocol IP address information, where the IP address information is an IP address or an IP address prefix;
第三获得模块16,用于根据所述线路标识,获得所述第一标识;
a third obtaining module 16, configured to obtain the first identifier according to the line identifier;
第四获得模块17,用于根据所述第一标识,获得第三消息,所述第三消息包括所述第一标识和所述IP地址信息;The fourth obtaining module 17 is configured to obtain, according to the first identifier, a third message, where the third message includes the first identifier and the IP address information;
第二发送模块18,用于向所述接入节点发送所述第三消息。The second sending module 18 is configured to send the third message to the access node.
举例说明,所述第三获得模块16具体用于根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系。或者,所述第三获得模块16具体用于根据第二编码规则,对所述线路标识进行编码,获得所述第一标识。For example, the third obtaining module 16 is specifically configured to obtain the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier. Alternatively, the third obtaining module 16 is specifically configured to code the line identifier according to the second encoding rule to obtain the first identifier.
举例说明,所述第四消息为第三DHCP消息,所述第四获得模块17具体用于:删除所述第三DHCP消息包括的所述线路标识,获得第四DHCP消息,所述第四DHCP消息包括所述IP地址信息;根据所述第一标识和所述第四DHCP消息,获得所述第三消息,所述第三消息还包括所述第四DHCP消息。For example, the fourth message is a third DHCP message, and the fourth obtaining module 17 is specifically configured to: delete the line identifier included in the third DHCP message, obtain a fourth DHCP message, and the fourth DHCP The message includes the IP address information, and the third message is obtained according to the first identifier and the fourth DHCP message, and the third message further includes the fourth DHCP message.
举例说明,所述第四消息为第二AAA消息,所述第四获得模块17具体用于:根据所述第二AAA消息和所述IP地址信息,获得路由器通告RA消息,所述RA消息包括所述IP地址信息;根据所述第一标识和所述RA消息,获得所述第三消息,所述第三消息还包括所述RA消息。For example, the fourth message is a second AAA message, and the fourth obtaining module 17 is specifically configured to: obtain, according to the second AAA message and the IP address information, a router advertisement RA message, where the RA message includes The third address message is obtained according to the first identifier and the RA message, and the third message further includes the RA message.
图12为本发明接入装置实施例一的结构示意图。本实施例提供的接入装置可以执行图4对应的实施例提供的方法。本实施例提供的接入装置可以是图5至图10对应的实施例中任一实施例中的接入节点。本实施例中的消息或标识的具体内容可参见图4、图5至图10对应的实施例中的相应内容,在此不再赘述。本实施例提供的接入装置包括:FIG. 12 is a schematic structural diagram of Embodiment 1 of an access device according to the present invention. The access device provided by this embodiment may perform the method provided by the embodiment corresponding to FIG. 4. The access device provided in this embodiment may be an access node in any one of the embodiments corresponding to FIG. 5 to FIG. For the specific content of the message or the identifier in this embodiment, reference may be made to the corresponding content in the embodiment corresponding to FIG. 4 and FIG. 5 to FIG. 10, and details are not described herein again. The access device provided in this embodiment includes:
第一接收模块21,用于接收用户发送的第二消息;The first receiving module 21 is configured to receive a second message sent by the user.
第一获得模块20,用于根据所述第二消息,获得线路标识,所述线路标识与所述第二消息对应。其中,所述第一获得模块20可根据接收到的第二消息所在的线路,获得所述线路标识。The first obtaining module 20 is configured to obtain a line identifier according to the second message, where the line identifier corresponds to the second message. The first obtaining module 20 may obtain the line identifier according to the line where the received second message is located.
第二获得模块22,用于根据所述线路标识,获得第一标识;a second obtaining module 22, configured to obtain a first identifier according to the line identifier;
第三获得模块23,用于根据所述第一标识和所述第二消息,获得第一消息,所述第一消息包括所述第一标识和所述第二消息;The third obtaining module 23 is configured to obtain, according to the first identifier and the second message, a first message, where the first message includes the first identifier and the second message;
第一发送模块24,用于向接入控制器发送所述第一消息。The first sending module 24 is configured to send the first message to the access controller.
本发明实施例提供的接入装置,在发送上行消息的过程中,接入装置接
收到客户端设备的第二消息后,根据该第二消息对应的线路标识,获得第一标识。所述接入装置根据所述第一标识和所述第二消息,获得第一消息。所述接入装置想所述接入控制器发送所述第一消息。接入装置无需支持中继功能,无需对option 82进行维护,进而实现降低对接入装置的option82的维护量及维护复杂度。In the process of sending an uplink message, the access device provided by the embodiment of the present invention is connected to the access device.
After receiving the second message of the client device, obtaining the first identifier according to the line identifier corresponding to the second message. The access device obtains the first message according to the first identifier and the second message. The access device wants the access controller to send the first message. The access device does not need to support the relay function, and the maintenance of the option 82 is not required, thereby reducing the maintenance and maintenance complexity of the option 82 of the access device.
举例说明,所述第二获得模块22具体用于根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述线路标识与所述第一标识间的对应关系。或者,所述第二获得模块22具体用于根据第一编码规则,对所述线路标识进行编码,获得所述第一标识。For example, the second obtaining module 22 is specifically configured to obtain the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the line identifier and the first identifier. Alternatively, the second obtaining module 22 is specifically configured to code the line identifier according to the first encoding rule to obtain the first identifier.
可选地,所述接入装置还包括:Optionally, the access device further includes:
第二接收模块25,用于接收所述接入控制器发送的第三消息,所述第三消息包括互联网协议IP地址信息、第一标识和第四消息,所述IP地址信息为IP地址或IP地址前缀,所述第四消息包括所述IP地址信息;The second receiving module 25 is configured to receive a third message sent by the access controller, where the third message includes Internet Protocol IP address information, a first identifier, and a fourth message, where the IP address information is an IP address or An IP address prefix, where the fourth message includes the IP address information;
第四获得模块26,用于根据所述第一标识,获得所述线路标识;a fourth obtaining module 26, configured to obtain the line identifier according to the first identifier;
第二发送模块27,用于根据所述线路标识,向用户发送所述第四消息。The second sending module 27 is configured to send the fourth message to the user according to the line identifier.
举例说明,所述第四获得模块26具体用于根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识和所述线路标识间的对应关系。或者,所述第四获得模块26具体用于根据第二编码规则,对所述第一标识进行编码,获得所述线路标识。For example, the fourth obtaining module 26 is specifically configured to obtain the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier. Alternatively, the fourth obtaining module 26 is specifically configured to code the first identifier according to the second encoding rule to obtain the line identifier.
图13为本发明接入控制器实施例二的结构示意图。本实施例提供的接入控制器可以执行图3对应的实施例提供的方法。本实施例提供的接入控制器可以是图5至图11对应的实施例中任一实施例中的接入控制器。本实施例中的消息或标识的具体内容可参见图3、图5至图11对应的实施例中的相应内容,在此不再赘述。FIG. 13 is a schematic structural diagram of Embodiment 2 of an access controller according to the present invention. The access controller provided in this embodiment may perform the method provided in the embodiment corresponding to FIG. 3. The access controller provided in this embodiment may be the access controller in any of the embodiments corresponding to FIG. 5 to FIG. For the specific content of the message or the identifier in this embodiment, reference may be made to the corresponding content in the embodiment corresponding to FIG. 3 and FIG. 5 to FIG. 11 , and details are not described herein again.
本实施例提供的接入控制器包括通信接口、处理器31和用于存储程序的存储器32。通信接口、处理器31和存储器32通过通信总线33连接。所述处理器31读取所述存储器32中的程序,并根据与所述程序对应的指令执行如下操作:The access controller provided in this embodiment includes a communication interface, a processor 31, and a memory 32 for storing programs. The communication interface, processor 31 and memory 32 are connected by a communication bus 33. The processor 31 reads a program in the memory 32 and performs the following operations according to an instruction corresponding to the program:
通过所述通信接口,接收接入节点发送的第一消息,所述第一消息包括
第一标识;Receiving, by the communication interface, a first message sent by an access node, where the first message includes
First identifier
根据所述第一标识,获得线路标识;Obtaining a line identifier according to the first identifier;
根据所述线路标识,获得第二消息,所述第二消息包括所述线路标识;Obtaining a second message according to the line identifier, where the second message includes the line identifier;
通过所述通信接口,向中继服务器发送所述第二消息。Sending the second message to the relay server through the communication interface.
其中,具有接收功能的通信接口可以是图13中的接收端口34,具有发送功能的通信接口可以是图13中的发送端口35。所述接入控制器包括的所述处理器还可执行图3、图5至图10实施例中任一实施例提供的方法,在此不再赘述。The communication interface having the receiving function may be the receiving port 34 in FIG. 13, and the communication interface having the transmitting function may be the transmitting port 35 in FIG. The processor included in the access controller may further perform the method provided by any one of the embodiments in FIG. 3 and FIG. 5 to FIG. 10, and details are not described herein again.
图14为本发明接入装置实施例二的结构示意图。本实施例提供的接入装置可以执行图4对应的实施例提供的方法。本实施例提供的接入装置可以是图5至图10、图12对应的实施例中任一实施例中的接入装置。本实施例中的消息或标识的具体内容可参见图3、图5至图10、图11对应的实施例中的相应内容,在此不再赘述。FIG. 14 is a schematic structural diagram of Embodiment 2 of an access device according to the present invention. The access device provided by this embodiment may perform the method provided by the embodiment corresponding to FIG. 4. The access device provided in this embodiment may be the access device in any of the embodiments corresponding to FIG. 5 to FIG. 10 and FIG. For the specific content of the message or the identifier in this embodiment, reference may be made to the corresponding content in the embodiment corresponding to FIG. 3, FIG. 5 to FIG. 10, and FIG. 11, and details are not described herein again.
本实施例提供的一种接入装置通信接口、处理器41和用于存储程序的存储器42。所述通信接口、所述处理器41和所述存储器42可通过通信总线43连接。所述处理器41读取所述存储器42中的程序,并根据与所述程序对应的指令执行如下操作:The embodiment provides an access device communication interface, a processor 41, and a memory 42 for storing programs. The communication interface, the processor 41 and the memory 42 are connectable via a communication bus 43. The processor 41 reads a program in the memory 42 and performs the following operations according to an instruction corresponding to the program:
通过所述通信接口,接收用户发送的第二消息;Receiving, by the communication interface, a second message sent by the user;
根据所述第二消息,获得线路标识,所述第二消息包括所述线路标识;Obtaining, according to the second message, a line identifier, where the second message includes the line identifier;
根据所述线路标识,获得第一标识;Obtaining a first identifier according to the line identifier;
根据所述第一标识和所述第二消息,获得第一消息,所述第一消息包括所述第一标识和所述第二消息;Obtaining, according to the first identifier and the second message, a first message, where the first message includes the first identifier and the second message;
通过所述通信接口,向接入控制器发送所述第一消息。Sending the first message to the access controller over the communication interface.
其中,具有接收功能的通信接口可以是图14中的接收端口44,具有发送功能的通信接口可以是图14中的发送端口45。所述接入装置包括的所述处理器还可执行图3、图5至图10实施例中任一实施例提供的方法,在此不再赘述。The communication interface having the receiving function may be the receiving port 44 in FIG. 14, and the communication interface having the transmitting function may be the transmitting port 45 in FIG. The processor included in the access device may further perform the method provided by any one of the embodiments in FIG. 3 and FIG. 5 to FIG. 10, and details are not described herein again.
本发明实施例还提供一种接入系统,所述接入系统可包括图11对应的实施例提供的任意一种接入控制器和图12对应的实施例提供的任意一种接入装置。或者,所述接入系统可包括图13对应的实施例提供的任意一种接入控制
器和图14对应的实施例提供的任意一种接入装置。在此不再赘述。The embodiment of the present invention further provides an access system, and the access system may include any one of the access controllers provided in the embodiment corresponding to FIG. 11 and any one of the access devices provided in the embodiment corresponding to FIG. 12 . Alternatively, the access system may include any one of the access control provided by the embodiment corresponding to FIG.
And any of the access devices provided by the embodiment corresponding to FIG. 14. I will not repeat them here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本发明实施例所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the embodiments of the present invention, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;
尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
The above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto;
Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or equivalently replace some of the technical features. Modifications or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the invention.
Claims (24)
- 一种消息传输方法,其特征在于,所述方法包括:A message transmission method, characterized in that the method comprises:接入控制器接收接入节点发送的第一消息,所述第一消息包括第一标识;Receiving, by the access controller, a first message sent by the access node, where the first message includes a first identifier;所述接入控制器根据所述第一标识,获得线路标识;The access controller obtains a line identifier according to the first identifier;所述接入控制器根据所述线路标识,获得第二消息,所述第二消息包括所述线路标识;The access controller obtains a second message according to the line identifier, where the second message includes the line identifier;所述接入控制器向中继服务器发送所述第二消息。The access controller sends the second message to a relay server.
- 根据权利要求1所述的方法,其特征在于,所述接入控制器根据所述第一标识,获得线路标识包括:The method according to claim 1, wherein the obtaining, by the access controller, the line identifier according to the first identifier comprises:所述接入控制器根据所述第一标识和所述线路标识对应关系,获得所述线路标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系;或者The access controller obtains the line identifier according to the first identifier and the line identifier corresponding relationship, where the correspondence relationship includes a correspondence between the first identifier and the line identifier; or所述接入控制器根据第一编码规则,对所述第一标识进行编码,获得所述线路标识。And the access controller encodes the first identifier according to the first coding rule to obtain the line identifier.
- 根据权利要求1或2所述的方法,其特征在于,所述第一消息还包括第一动态主机配置协议DHCP消息,所述第二消息为第二DHCP消息,所述接入控制器根据所述线路标识,获得第二消息包括:The method according to claim 1 or 2, wherein the first message further comprises a first dynamic host configuration protocol DHCP message, the second message is a second DHCP message, and the access controller is The line identifier is obtained, and the second message is obtained:所述接入控制器将所述线路标识添加至所述第一DHCP消息,获得所述第二DHCP消息,所述第二DHCP消息包括所述线路标识。And the access controller adds the line identifier to the first DHCP message to obtain the second DHCP message, where the second DHCP message includes the line identifier.
- 根据权利要求1或2所述的方法,其特征在于,所述第一消息还包括路由请求RS消息或DHCP消息,所述第二消息为第一认证、授权和计费AAA消息,所述接入控制器根据所述线路标识,获得第二消息包括:The method according to claim 1 or 2, wherein the first message further comprises a routing request RS message or a DHCP message, and the second message is a first authentication, authorization, and charging AAA message, and the The controller obtains the second message according to the line identifier, including:所述接入控制器根据所述线路标识和所述RS消息,生成所述第一AAA消息,所述第一AAA消息包括所述线路标识。The access controller generates the first AAA message according to the line identifier and the RS message, where the first AAA message includes the line identifier.
- 根据权利要求1至4任一所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 4, wherein the method further comprises:所述接入控制器接收中继服务器发送的第四消息,所述第四消息包括线路标识和互联网协议IP地址信息,所述IP地址信息为IP地址或IP地址前缀;The access controller receives a fourth message sent by the relay server, where the fourth message includes a line identifier and Internet Protocol IP address information, where the IP address information is an IP address or an IP address prefix;所述接入控制器根据所述线路标识,获得所述第一标识;The access controller obtains the first identifier according to the line identifier;所述接入控制器根据所述第一标识,获得第三消息,所述第三消息包括 所述第一标识和所述IP地址信息;The access controller obtains a third message according to the first identifier, where the third message includes The first identifier and the IP address information;所述接入控制器向所述接入节点发送所述第三消息。The access controller sends the third message to the access node.
- 根据权利要求5所述的方法,其特征在于,所述接入控制器根据所述线路标识,获得所述第一标识包括:The method according to claim 5, wherein the obtaining, by the access controller, the first identifier according to the line identifier comprises:所述接入控制器根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系;或者The access controller obtains the first identifier according to the line identifier and the corresponding relationship, where the correspondence relationship includes a correspondence between the first identifier and the line identifier; or所述接入控制器根据第二编码规则,对所述线路标识进行编码,获得所述第一标识。And the access controller encodes the line identifier according to the second coding rule, to obtain the first identifier.
- 根据权利要求5或6所述的方法,其特征在于,所述第四消息为第三DHCP消息,所述接入控制器根据所述第一标识,获得第三消息包括:The method according to claim 5 or 6, wherein the fourth message is a third DHCP message, and the access controller obtains the third message according to the first identifier, including:所述接入控制器删除所述第三DHCP消息包括的所述线路标识,获得第四DHCP消息,所述第四DHCP消息包括所述IP地址信息;The access controller deletes the line identifier included in the third DHCP message, and obtains a fourth DHCP message, where the fourth DHCP message includes the IP address information;所述接入控制器根据所述第一标识和所述第四DHCP消息,获得所述第三消息,所述第三消息还包括所述第四DHCP消息。The access controller obtains the third message according to the first identifier and the fourth DHCP message, and the third message further includes the fourth DHCP message.
- 根据权利要求5或6所述的方法,其特征在于,所述第四消息为第二AAA消息,所述接入控制器根据所述第一标识,获得第三消息包括:The method according to claim 5 or 6, wherein the fourth message is a second AAA message, and the access controller obtains the third message according to the first identifier, including:所述接入控制器根据所述第二AAA消息和所述IP地址信息,获得路由器通告RA消息,所述RA消息包括所述IP地址信息;And obtaining, by the access controller, a router advertisement RA message according to the second AAA message and the IP address information, where the RA message includes the IP address information;所述接入控制器根据所述第一标识和所述RA消息,获得所述第三消息,所述第三消息还包括所述RA消息。The access controller obtains the third message according to the first identifier and the RA message, and the third message further includes the RA message.
- 一种消息传输方法,其特征在于,所述方法包括:A message transmission method, characterized in that the method comprises:接入节点接收用户发送的第二消息;The access node receives the second message sent by the user;所述接入节点根据所述第二消息,获得线路标识,所述第二消息包括所述线路标识;The access node obtains a line identifier according to the second message, where the second message includes the line identifier;所述接入节点根据所述线路标识,获得第一标识;The access node obtains the first identifier according to the line identifier;所述接入节点根据所述第一标识和所述第二消息,获得第一消息,所述第一消息包括所述第一标识和所述第二消息;Obtaining, by the access node, the first message according to the first identifier and the second message, where the first message includes the first identifier and the second message;所述接入节点向接入控制器发送所述第一消息。The access node sends the first message to an access controller.
- 根据权利要求9所述的方法,其特征在于,所述接入节点根据所述 线路标识,获得第一标识包括:The method of claim 9 wherein said access node is in accordance with said The line identification, obtaining the first identification includes:所述接入节点根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述线路标识与所述第一标识间的对应关系;或者The access node obtains the first identifier according to the line identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the line identifier and the first identifier; or所述接入节点根据第一编码规则,对所述线路标识进行编码,获得所述第一标识。And the access node encodes the line identifier according to the first coding rule, to obtain the first identifier.
- 根据权利要求9或10所述的方法,其特征在于,所述方法还包括:The method according to claim 9 or 10, wherein the method further comprises:所述接入节点接收所述接入控制器发送的第三消息,所述第三消息包括互联网协议IP地址信息、第一标识和第四消息,所述IP地址信息为IP地址或IP地址前缀,所述第四消息包括所述IP地址信息;Receiving, by the access node, a third message sent by the access controller, where the third message includes Internet Protocol IP address information, a first identifier, and a fourth message, where the IP address information is an IP address or an IP address prefix. The fourth message includes the IP address information;所述接入节点根据所述第一标识,获得所述线路标识;Obtaining, by the access node, the line identifier according to the first identifier;所述接入节点根据所述线路标识,向用户发送所述第四消息。The access node sends the fourth message to the user according to the line identifier.
- 根据权利要求11所述的方法,其特征在于,所述接入节点根据所述第一标识,获得所述线路标识包括:The method according to claim 11, wherein the obtaining, by the access node, the line identifier according to the first identifier comprises:所述接入节点根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识和所述线路标识间的对应关系;或者The access node obtains the line identifier according to the first identifier and the corresponding relationship, where the corresponding relationship includes a correspondence between the first identifier and the line identifier; or所述接入节点根据第二编码规则,对所述第一标识进行编码,获得所述线路标识。And the access node encodes the first identifier according to the second coding rule, to obtain the line identifier.
- 一种接入控制器,其特征在于,所述接入控制器包括:An access controller, where the access controller includes:第一接收模块,用于接收接入节点发送的第一消息,所述第一消息包括第一标识;a first receiving module, configured to receive a first message sent by an access node, where the first message includes a first identifier;第一获得模块,用于根据所述第一标识,获得线路标识;a first obtaining module, configured to obtain a line identifier according to the first identifier;第二获得模块,用于根据所述线路标识,获得第二消息,所述第二消息包括所述线路标识;a second obtaining module, configured to obtain a second message according to the line identifier, where the second message includes the line identifier;第一发送模块,用于向中继服务器发送所述第二消息。The first sending module is configured to send the second message to the relay server.
- 根据权利要求13所述的接入控制器,其特征在于,所述第一获得模块具体用于:The access controller according to claim 13, wherein the first obtaining module is specifically configured to:根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系;或者Obtaining, according to the first identifier and the corresponding relationship, the line identifier, where the correspondence includes a correspondence between the first identifier and the line identifier; or根据第一编码规则,对所述第一标识进行编码,获得所述线路标识。 And encoding, according to the first coding rule, the first identifier to obtain the line identifier.
- 根据权利要求13或14所述的接入控制器,其特征在于,所述第一消息还包括第一动态主机配置协议DHCP消息,所述第二消息为第二DHCP消息,所述第二获得模块具体用于:The access controller according to claim 13 or 14, wherein the first message further comprises a first dynamic host configuration protocol DHCP message, the second message is a second DHCP message, and the second obtaining The module is specifically used to:将所述线路标识添加至所述第一DHCP消息,获得所述第二DHCP消息,所述第二DHCP消息包括所述线路标识。And adding the line identifier to the first DHCP message to obtain the second DHCP message, where the second DHCP message includes the line identifier.
- 根据权利要求13或14所述的接入控制器,其特征在于,所述第一消息还包括路由请求RS消息,所述第二消息为第一认证、授权和计费AAA消息,所述第二获得模块具体用于:The access controller according to claim 13 or 14, wherein the first message further includes a routing request RS message, and the second message is a first authentication, authorization, and charging AAA message, where the The second acquisition module is specifically used to:根据所述线路标识和所述RS消息,生成所述第一AAA消息,所述第一AAA消息包括所述线路标识。And generating, according to the line identifier and the RS message, the first AAA message, where the first AAA message includes the line identifier.
- 根据权利要求13至16任一所述的接入控制器,其特征在于,所述接入控制器还包括:The access controller according to any one of claims 13 to 16, wherein the access controller further comprises:第二接收模块,用于接收中继服务器发送的第四消息,所述第四消息包括线路标识和互联网协议IP地址信息,所述IP地址信息为IP地址或IP地址前缀;a second receiving module, configured to receive a fourth message sent by the relay server, where the fourth message includes a line identifier and Internet Protocol IP address information, where the IP address information is an IP address or an IP address prefix;第三获得模块,用于根据所述线路标识,获得所述第一标识;a third obtaining module, configured to obtain the first identifier according to the line identifier;第四获得模块,用于根据所述第一标识,获得第三消息,所述第三消息包括所述第一标识和所述IP地址信息;a fourth obtaining module, configured to obtain, according to the first identifier, a third message, where the third message includes the first identifier and the IP address information;第二发送模块,用于向所述接入节点发送所述第三消息。And a second sending module, configured to send the third message to the access node.
- 根据权利要求17所述的接入控制器,其特征在于,所述第三获得模块具体用于:The access controller according to claim 17, wherein the third obtaining module is specifically configured to:根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述第一标识与所述线路标识间的对应关系;或者Obtaining the first identifier according to the line identifier and the corresponding relationship, where the correspondence relationship includes a correspondence between the first identifier and the line identifier; or根据第二编码规则,对所述线路标识进行编码,获得所述第一标识。And encoding, according to the second coding rule, the line identifier to obtain the first identifier.
- 根据权利要求17或18所述的接入控制器,其特征在于,所述第四消息为第三DHCP消息,所述第四获得模块具体用于:The access controller according to claim 17 or 18, wherein the fourth message is a third DHCP message, and the fourth obtaining module is specifically configured to:删除所述第三DHCP消息包括的所述线路标识,获得第四DHCP消息,所述第四DHCP消息包括所述IP地址信息;Deleting the line identifier included in the third DHCP message, obtaining a fourth DHCP message, where the fourth DHCP message includes the IP address information;根据所述第一标识和所述第四DHCP消息,获得所述第三消息,所述第三消息还包括所述第四DHCP消息。 Obtaining the third message according to the first identifier and the fourth DHCP message, where the third message further includes the fourth DHCP message.
- 根据权利要求17或18所述的接入控制器,其特征在于,所述第四消息为第二AAA消息,所述第四获得模块具体用于:The access controller according to claim 17 or 18, wherein the fourth message is a second AAA message, and the fourth obtaining module is specifically configured to:根据所述第二AAA消息和所述IP地址信息,获得路由器通告RA消息,所述RA消息包括所述IP地址信息;Obtaining, according to the second AAA message and the IP address information, a router advertisement RA message, where the RA message includes the IP address information;根据所述第一标识和所述RA消息,获得所述第三消息,所述第三消息还包括所述RA消息。Obtaining the third message according to the first identifier and the RA message, where the third message further includes the RA message.
- 一种接入装置,其特征在于,所述接入装置包括:An access device, characterized in that the access device comprises:第一接收模块,用于接收用户发送的第二消息;a first receiving module, configured to receive a second message sent by the user;第一获得模块,用于根据所述第二消息,获得线路标识,所述第二消息包括所述线路标识;a first obtaining module, configured to obtain a line identifier according to the second message, where the second message includes the line identifier;第二获得模块,用于根据所述线路标识,获得第一标识;a second obtaining module, configured to obtain a first identifier according to the line identifier;第三获得模块,用于根据所述第一标识和所述第二消息,获得第一消息,所述第一消息包括所述第一标识和所述第二消息;a third obtaining module, configured to obtain, according to the first identifier and the second message, a first message, where the first message includes the first identifier and the second message;第一发送模块,用于向接入控制器发送所述第一消息。The first sending module is configured to send the first message to the access controller.
- 根据权利要求21所述的接入装置,其特征在于,所述第二获得模块具体用于:The access device according to claim 21, wherein the second obtaining module is specifically configured to:根据所述线路标识和对应关系,获得所述第一标识,所述对应关系包括所述线路标识与所述第一标识间的对应关系;或者Obtaining, according to the line identifier and the corresponding relationship, the first identifier, where the correspondence includes a correspondence between the line identifier and the first identifier; or根据第一编码规则,对所述线路标识进行编码,获得所述第一标识。And encoding, according to the first coding rule, the line identifier to obtain the first identifier.
- 根据权利要求21或22所述的接入装置,其特征在于,所述接入装置还包括:The access device according to claim 21 or 22, wherein the access device further comprises:第二接收模块,用于接收所述接入控制器发送的第三消息,所述第三消息包括互联网协议IP地址信息、第一标识和第四消息,所述IP地址信息为IP地址或IP地址前缀,所述第四消息包括所述IP地址信息;a second receiving module, configured to receive a third message sent by the access controller, where the third message includes Internet Protocol IP address information, a first identifier, and a fourth message, where the IP address information is an IP address or an IP address. An address prefix, where the fourth message includes the IP address information;第四获得模块,用于根据所述第一标识,获得所述线路标识;a fourth obtaining module, configured to obtain the line identifier according to the first identifier;第二发送模块,用于根据所述线路标识,向用户发送所述第四消息。The second sending module is configured to send the fourth message to the user according to the line identifier.
- 根据权利要求23所述的接入装置,其特征在于,所述第四获得模块具体用于:The access device according to claim 23, wherein the fourth obtaining module is specifically configured to:根据所述第一标识和对应关系,获得所述线路标识,所述对应关系包括所述第一标识和所述线路标识间的对应关系;或者Obtaining, according to the first identifier and the corresponding relationship, the line identifier, where the correspondence relationship includes a correspondence between the first identifier and the line identifier; or根据第二编码规则,对所述第一标识进行编码,获得所述线路标识。 And encoding, according to the second coding rule, the first identifier to obtain the line identifier.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP22155103.9A EP4109849A3 (en) | 2015-07-17 | 2016-06-16 | Message transmission method, access node, access controller, and access system |
EP16827134.4A EP3322147B1 (en) | 2015-07-17 | 2016-06-16 | Message transmission methods, access controller and access apparatus |
US15/873,507 US11178073B2 (en) | 2015-07-17 | 2018-01-17 | Message transmission method, access node, access controller, and access system |
US17/512,143 US11902183B2 (en) | 2015-07-17 | 2021-10-27 | Message transmission method, access node, access controller, and access system |
Applications Claiming Priority (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510424501 | 2015-07-17 | ||
CN201510424501.7 | 2015-07-17 | ||
CN201610201117.5A CN106357483B (en) | 2015-07-17 | 2016-03-31 | Message transmission method, access node, access controller and access system |
CN201610201117.5 | 2016-03-31 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US15/873,507 Continuation US11178073B2 (en) | 2015-07-17 | 2018-01-17 | Message transmission method, access node, access controller, and access system |
Publications (2)
Publication Number | Publication Date |
---|---|
WO2017012443A2 true WO2017012443A2 (en) | 2017-01-26 |
WO2017012443A3 WO2017012443A3 (en) | 2017-03-23 |
Family
ID=57834864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/085990 WO2017012443A2 (en) | 2015-07-17 | 2016-06-16 | Message transmission method, access node, access controller and access system |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2017012443A2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112312414A (en) * | 2019-07-24 | 2021-02-02 | 中国移动通信有限公司研究院 | Algorithm configuration method, device and equipment and computer readable storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005276122A (en) * | 2004-03-26 | 2005-10-06 | Fujitsu Ltd | Access source authentication method and system |
CN101212398A (en) * | 2006-12-29 | 2008-07-02 | 王立刚 | Access system and method |
CN101257420A (en) * | 2007-03-02 | 2008-09-03 | 华为技术有限公司 | Point-to-point protocol accessing method, system as well as access node equipment |
CN101188614B (en) * | 2007-11-28 | 2011-01-19 | 华为技术有限公司 | A method, system and device for secure control of the user access |
CN103546286B (en) * | 2012-07-13 | 2018-08-24 | 中兴通讯股份有限公司 | Authentication method and device |
-
2016
- 2016-06-16 WO PCT/CN2016/085990 patent/WO2017012443A2/en active Application Filing
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112312414A (en) * | 2019-07-24 | 2021-02-02 | 中国移动通信有限公司研究院 | Algorithm configuration method, device and equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2017012443A3 (en) | 2017-03-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11665134B2 (en) | Message processing method, access controller, and network node | |
JP6722820B2 (en) | Separation of control plane function and forwarding plane function of broadband remote access server | |
EP2725739B1 (en) | Method and apparatus for selecting edge node | |
US7860117B2 (en) | Communication proxy method, device and system | |
US11902183B2 (en) | Message transmission method, access node, access controller, and access system | |
WO2017114157A1 (en) | Method and apparatus for establishing virtual access node in optical access network | |
US10848244B2 (en) | Data provisioning | |
US11265244B2 (en) | Data transmission method, PNF SDN controller, VNF SDN controller, and data transmission system | |
WO2011069419A1 (en) | Method, device and system for processing ipv6 messages | |
CN105453513B (en) | Message forwarding method, forwarding-table item delivery method and the network equipment | |
WO2007124679A1 (en) | Method and system of network communication | |
WO2015196922A1 (en) | Packet processing method and device | |
WO2014040551A1 (en) | Method and device for generating forwarding entries for devices in optical network | |
WO2014114058A1 (en) | Data message forwarding method, customer premises equipment and system | |
WO2012095040A2 (en) | Method for transmitting data in passive optical network, user-side equipment, and system | |
EP3086512A1 (en) | Implementation method and apparatus for vlan to access vf network and fcf | |
WO2017012443A2 (en) | Message transmission method, access node, access controller and access system | |
WO2014079208A1 (en) | Communication method, device and system for trill network | |
CN109905785A (en) | A kind of message forwarding method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16827134 Country of ref document: EP Kind code of ref document: A2 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2016827134 Country of ref document: EP |