WO2018228069A1 - 基于bras系统的报文封装方法及装置 - Google Patents

基于bras系统的报文封装方法及装置 Download PDF

Info

Publication number
WO2018228069A1
WO2018228069A1 PCT/CN2018/084945 CN2018084945W WO2018228069A1 WO 2018228069 A1 WO2018228069 A1 WO 2018228069A1 CN 2018084945 W CN2018084945 W CN 2018084945W WO 2018228069 A1 WO2018228069 A1 WO 2018228069A1
Authority
WO
WIPO (PCT)
Prior art keywords
user access
user
information
bras
header
Prior art date
Application number
PCT/CN2018/084945
Other languages
English (en)
French (fr)
Inventor
陈杰
余舟毅
郭红涛
曹倩
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP18816807.4A priority Critical patent/EP3627773B1/en
Priority to EP22187035.5A priority patent/EP4142224A1/en
Priority to KR1020207001119A priority patent/KR102388195B1/ko
Priority to JP2019569742A priority patent/JP6982104B2/ja
Publication of WO2018228069A1 publication Critical patent/WO2018228069A1/zh
Priority to US16/714,037 priority patent/US11018892B2/en
Priority to US17/313,242 priority patent/US11606223B2/en
Priority to JP2021188039A priority patent/JP7282146B2/ja
Priority to US18/172,597 priority patent/US11909551B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • H04L12/2856Access arrangements, e.g. Internet access
    • H04L12/2869Operational details of access network equipments
    • H04L12/287Remote access server, e.g. BRAS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0892Network architectures or network communication protocols for network security for authentication of entities by using authentication-authorization-accounting [AAA] servers or protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Definitions

  • the present application relates to the field of communications technologies, and in particular, to a packet encapsulation method and apparatus based on a Broadband Remote Access Server (BRAS) system.
  • BRAS Broadband Remote Access Server
  • BRAS-Control Plane BRAS-CP
  • the traditional control plane functions such as routing and multicast of the traditional BRAS system, as well as the forwarding plane functions such as traffic forwarding and traffic statistics, are still implemented by the multiple BRAS devices.
  • the multiple BRAS devices form a broadband remote access server.
  • User plane BRAS-User Plane, BRAS-UP.
  • the BRAS-CP and the BRAS-UP transmit the user access protocol packets through the Virtual Extensible Local Area Network (VXLAN).
  • VXLAN Virtual Extensible Local Area Network
  • the BRAS-CP needs to obtain the user access information from the user access protocol packet to authenticate the user access location. Therefore, when the BRAS-UP receives the user access protocol packet, the BRAS-UP receives the user access protocol packet.
  • the user access information is carried in the encapsulated packet when the user access protocol packet is encapsulated by the VXLAN encapsulation.
  • the BRAS-UP can encapsulate the user access protocol packet in two ways.
  • the first method is to encapsulate user access protocol packets by using standard VXLAN.
  • the BRAS-UP can add a user information header between the VXLAN header and the user access protocol message.
  • the user information header is used to store user access information.
  • the BRAS-UP follows the standard.
  • the VXLAN encapsulation encapsulates the user information header and user access protocol packets to obtain encapsulated packets.
  • the second method is to encapsulate the user access protocol packet by using the VXLAN Generic Protocol Extension (VXLAN GPE) mechanism, wherein the BRAS-UP can put the next protocol in the VXLAN GPE header (VXLAN GPE) mechanism, wherein the BRAS-UP can put the next protocol in the VXLAN GPE header (VXLAN GPE) header (VXLAN GPE) mechanism (VXLAN GPE) mechanism, wherein the BRAS-UP can put the next protocol in the VXLAN GPE header (VXLAN GPE) header (VXLAN GPE) header (VXLAN GPE) mechanism, wherein the BRAS-UP can put the next protocol in the VXLAN GPE header (VXLAN GPE header (VXLAN GPE) header (VXLAN GPE) mechanism, wherein the BRAS-UP can put the next protocol in the VXLAN GPE header (VXLAN GPE header (VXLAN GPE) header (VXLAN GPE) mechanism, wherein the BRAS-UP can
  • the user access protocol packet is encapsulated in the first manner
  • the user information header is added, which is equivalent to modifying the standard VXLAN encapsulation, resulting in no compatibility of the encapsulated packet.
  • the NSH Context header is four-byte aligned and the length is variable, and the number of bytes occupied by the NSH itself is relatively large, plus
  • the VXLAN GPE mechanism is used for encapsulation, the number of bytes included in other headers is larger. The number of bytes occupied by the encapsulated packet is larger, and the encapsulation is smaller than the user access protocol packet with a small number of bytes. The cost is large.
  • the present invention provides a packet encapsulation method and apparatus based on the BRAS system, in order to solve the problem that the encapsulated packets caused by the VXLAN encapsulation in the related art are not compatible and the encapsulation cost is too large when the VXLAN GPE encapsulation is used.
  • the technical solution is as follows:
  • a message encapsulation method based on a BRAS system where the method includes:
  • the VXLAN GPE encapsulation structure includes a VXLAN GPE header, and the value of the encapsulation protocol field of the VXLAN GPE header is a preset value, where the preset value is used to indicate that the VXLAN GPE encapsulation structure includes a user information header.
  • the user information header is used to store the user access information, and the user information header is located after the VXLAN GPE header and adjacent to the VXLAN GPE head, and the user information header is occupied.
  • the number of bytes is less than or equal to 12 bytes.
  • the VXLAN GPE encapsulation structure has good backward compatibility, the VXLAN GPE encapsulation of the user access protocol packet is based on the user access information, which solves the problem of carrying the VXLAN encapsulation in the related art.
  • the user accesses the information and the standard VXLAN package has been modified to cause incompatibility problems.
  • the VXLAN GPE encapsulation structure is located after the VXLAN GPE header and is associated with the VXLAN.
  • the GPE header is adjacent to the user information header, and the number of bytes of the user information header is less than or equal to 12 bytes, that is, the number of bytes occupied by the user information header will be less than the number of bytes carried by the user.
  • the user access information includes user access port information, where the user information header includes a first field, and the first field is used to store user access port information.
  • the user access information includes user access port information
  • the user information header may include only the first field, which is used to store user access port information, to further save packaging overhead.
  • the first field can occupy 4 bytes.
  • the user information header includes only the first field for storing the user access port information, since all the bytes of the user information header are used to carry the user access information, the method is used in relation to the related art.
  • the user access information further includes a protocol type of the user access protocol packet, where the user information header further includes a second field, where the second field is used to indicate the user access protocol packet Type of agreement.
  • the second field may be set to a different value during encapsulation to encapsulate the user access protocol packets of different protocol types.
  • the second field can occupy 1 byte.
  • the user access information further includes a packet type of the user access protocol packet, where the user information header further includes a third field, where the third field is used to indicate the user access protocol report.
  • the message type of the text is used to indicate the user access protocol report.
  • a third field may be defined in the user information header, which is used to indicate the packet type of the user access protocol packet, so that when the encapsulated packet is sent to the BRAS-CP, The BRAS-CP can decapsulate the encapsulated packets more conveniently, which reduces the parsing complexity of the BRAS-CP packets, and enables the BRAS-CP to focus more on the processing of the access protocol.
  • the third field can occupy 1 byte.
  • the method further includes:
  • Receiving the encapsulated reply message sent by the BRAS-CP, after the encapsulated reply message is the BRAS-CP, after verifying the user access information, according to the user access protocol message The same encapsulation method is obtained by performing VXLAN GPE encapsulation on the reply packet based on the user access information.
  • the BRAS-CP can generate a reply packet and use the user access information in the same manner as the user access protocol packet. Encapsulate the reply message. For the BRAS-CP, the effect of saving packaging overhead, reducing processing difficulty, and improving transmission efficiency is also achieved.
  • a BRAS system-based message encapsulating device in a second aspect, is provided, and the BRAS system-based message encapsulating device has a function of implementing the BRAS system-based message encapsulation method behavior in the first aspect.
  • the BRAS system-based message encapsulation device includes at least one module, and the at least one module is configured to implement the BRAS system-based message encapsulation method provided by the foregoing first aspect.
  • a third aspect provides a packet encapsulation system, where the packet encapsulation system includes a BRAS-UP and a BRAS-CP;
  • the BRAS-UP is configured to acquire user access information corresponding to the user access protocol packet when receiving a user access protocol packet;
  • the BRAS-UP is further configured to perform a virtual extended LAN protocol extension VXLAN GPE encapsulation on the user access protocol message based on the user access information, and send the encapsulated user access protocol message to the The BRAS-CP;
  • the VXLAN GPE encapsulation structure includes a VXLAN GPE header, and the value of the encapsulation protocol field of the VXLAN GPE header is a preset value, where the preset value is used to indicate that the VXLAN GPE encapsulation structure includes a user information header.
  • the user information header is used to store the user access information, and the user information header is located after the VXLAN GPE header and adjacent to the VXLAN GPE head, and the user information header is occupied.
  • the number of bytes is less than or equal to 12 bytes;
  • the BRAS-CP is configured to decapsulate the encapsulated user access protocol packet after receiving the encapsulated user access protocol packet, to obtain the user access information and the user. Access protocol message;
  • the BRAS-CP is further configured to verify the user access information, and generate a reply message after the verification, according to the same encapsulation manner as the user access protocol message, based on the user access information pair.
  • the reply message is encapsulated, and the encapsulated reply message is sent to the BRAS-UP.
  • a BRAS system-based message encapsulating device in a fourth aspect, includes a processor and a memory, and the memory is used for storing a BRAS system-based message encapsulation.
  • the device executes the program of the BRAS system-based message encapsulation method provided by the foregoing first aspect, and stores data related to the BRAS system-based message encapsulation method provided by the foregoing first aspect.
  • the processor is configured to execute a program stored in the memory.
  • the operating device of the storage device may further include a communication bus for establishing a connection between the processor and the memory.
  • a computer readable storage medium stores instructions that, when run on a computer, cause the computer to execute the BRAS system based message of the first aspect described above Packaging method.
  • a computer program product comprising instructions for causing a computer to perform the BRAS system based message encapsulation method of the first aspect described above when provided on a computer.
  • the technical solution provided by the application provides the VXLAN GPE encapsulation of the user access protocol message based on the user access information after receiving the user access protocol message.
  • the VXLAN GPE encapsulation structure includes a VXLAN GPE header, and the value of the encapsulation protocol field of the VXLAN GPE header is a preset value, where the preset value is used to indicate that the VXLAN GPE encapsulation structure includes a user information header, the user information.
  • the header is used to store user access information, and the user information header is located after the VXLAN GPE header and adjacent to the VXLAN GPE header, and the number of bytes occupied by the user information header is less than or equal to 12 bytes.
  • the packet encapsulated by the VXLAN GPE encapsulation structure has good backward compatibility. Therefore, the VXLAN encapsulation in the related art is incompatible due to the modification of the standard VXLAN encapsulation.
  • the problem since the number of bytes occupied by the user information header added in the VXLAN GPE encapsulation structure is less than or equal to 12 bytes, the minimum number of bytes occupied by the NSH that does not carry the user access information is also 12 bytes. That is, the number of bytes occupied by the user information header is smaller than the number of bytes occupied by the NSH when the user access information is carried.
  • the NSH is introduced when the VXLAN GPE encapsulation is used in the related art, and the NSH is adopted. Carrying user access information saves packaging overhead. At the same time, for some BRAS devices that use high-performance forwarding chips, the problem that the processing of the encapsulated message header is too long or the processing difficulty is avoided is avoided.
  • FIG. 1A is a structural diagram of an NSH provided by an embodiment of the present invention.
  • 1B is an implementation environment diagram of a packet encapsulation method based on a BRAS system according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • 3A is a flowchart of a packet encapsulation method based on a BRAS system according to an embodiment of the present invention
  • 3B is a structural diagram of a VXLAN GPE package provided by an embodiment of the present invention.
  • FIG. 3C is a structural diagram of a VXLAN GPE head according to an embodiment of the present invention.
  • FIG. 3D is a structural diagram of a user information header according to an embodiment of the present invention.
  • FIG. 3E is a schematic structural diagram of a header of a packet after being encapsulated according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a user equipment going online in an IPoE access scenario in a BRAS system according to an embodiment of the present invention
  • FIG. 5A is a schematic structural diagram of a packet encapsulation apparatus based on a BRAS system according to an embodiment of the present invention.
  • FIG. 5B is a schematic structural diagram of another BRAS system-based message encapsulating apparatus according to an embodiment of the present invention.
  • BRAS system A system consisting of multiple BRAS devices, which is mainly used to implement two functions.
  • the forwarding plane function is used to implement aggregation and forwarding of multiple services.
  • user management and control functions are used to cooperate with the authentication system, the charging system, the customer management system, and the service policy control system. User access authentication, billing, and management.
  • BRAS-CP The user management and control functions implemented by multiple BRAS devices in the traditional BRAS system are separated and separated by a dedicated server or server cluster.
  • the dedicated server or server cluster is the BRAS-CP.
  • BRAS-UP It consists of multiple BRAS devices, which are used to implement traditional control plane functions such as routing and multicast in traditional BRAS systems, as well as forwarding plane functions such as traffic forwarding and traffic statistics.
  • NSH is added by the device or application with service classification function when encapsulating packets.
  • the NSH generally consists of three parts. The first part is the basic header information of the NSH, which occupies a total of 4 bytes. The second part is the service path information, which occupies 4 bytes. The service path information is determined by the device that adds the NSH, and is used to indicate the service path of the encapsulated packet. The third part is metadata information, which is the metadata required by the network device on the service path of the encapsulated message.
  • the NSH basic header information of the first part includes version information (Ver), O bit bit, C bit bit, 6 R bit bits, length information (Length) field, and metadata format type (Metadata Type). , MD Type) and Next Protocol fields, which are also referred to as encapsulation protocol fields.
  • the O bit is used to indicate whether the content of the encapsulated packet is operation and maintenance information. When the O bit is taken as 1, the content of the encapsulated packet is the operation and maintenance information.
  • the C bit is used to indicate whether the third part of the metadata information contains user-defined metadata. When the C bit is taken as 1, the third part of the metadata information includes user-defined metadata.
  • the 6 R bit bits are reserved.
  • the value of the Length field is used to indicate the number of bytes occupied by the NSH, and the Length field itself occupies 6 bits.
  • the second part of the service path information includes a Service Path Identifier (SPI) and a Service Index (SI).
  • SPI Service Path Identifier
  • SI Service Index
  • the BRAS-UP when the BRAS-UP encapsulates the user access protocol packet by using the VXLAN GPE, it is implemented by introducing the NSH after the VXLAN GPE header.
  • the user access information is stored in the third part.
  • the third part is four-byte aligned and variable in length.
  • the third part of the NSH When the third part of the NSH is used to carry user access information, the third part is before. 4 bytes are used to store basic information, and user access information is stored from the 5th byte.
  • the user access information is 6 bytes. Since the third part is four-byte aligned, it will actually occupy 8 bytes. That is, when the user access information is 6 bytes, the NSH will occupy at least 20 bytes.
  • FIG. 1B is a schematic diagram of an implementation environment of a packet encapsulation method based on a BRAS system according to an embodiment of the present invention.
  • the implementation environment includes a user equipment 101, a BRAS-UP 102, and a BRAS-CP 103.
  • a Core Router (CR) 104 an Authentication Authorization Accounting (AAA) server 105, and a Dynamic Host Configuration Protocol (DHCP) server 106.
  • AAA Authentication Authorization Accounting
  • DHCP Dynamic Host Configuration Protocol
  • the user equipment 101 can establish a communication connection with the BRAS-UP 102
  • the BRAS-UP 102 can establish a communication connection with the CR 104
  • the CR 104 can establish a communication connection with the BRAS-CP 103, that is, through the BRAS-UP 102 and A communication connection between the CRs 104 and a communication connection between the BRAS-CP 103 and the CR 104, and VXLAN-based communication between the BRAS-UP 102 and the BRAS-CP 103 can be realized.
  • the BRAS-CP 103 can also establish a communication connection with the AAA server 105 and the DHCP server 106, respectively.
  • the user equipment 101 can connect to the Internet through a communication connection with the BRAS-UP 102 and a communication connection between the BRAS-UP 102 and the CR 104, thereby acquiring network services.
  • the user access protocol message can be sent to the BRAS-UP 102 through the communication connection with the BRAS-UP 102, and the BRAS-UP 102 can receive the received message.
  • the user information header storing the user access information is added before the user access protocol packet, and the user information header and the user access protocol packet are encapsulated, and then the encapsulated packet is sent to the CR 104 via the CR 104.
  • the BRAS-CP 103, the BRAS-CP 103 can decapsulate the received encapsulated packet to obtain user access information, and interact with the AAA server 105 and the DHCP server 106 according to the user access information, so as to The user equipment 101 performs authentication, charging, and the like.
  • the BRAS-UP 102 and the BRAS-CP 103 are based on the VXLAN, the user access protocol message is transmitted. Therefore, the BRAS-UP 102 and the BRAS-CP 103 respectively include a VXLAN Tunnel End Point (VTEP).
  • the BRAS-CP 103 also includes an Access module. Specifically, the VTEP of the BRAS-UP 102 is mainly configured to perform VXLAN GPE encapsulation on the user access protocol packet, decapsulate the received packet after the encapsulation, and send the decapsulated reply packet to the user equipment. 101.
  • the VTEP of the BRAS-CP 103 is mainly responsible for decapsulating the received user access protocol packet after the encapsulation and the VXLAN GPE encapsulation of the response packet generated by the Access module.
  • the Access module is mainly responsible for the user access protocol packet. The processing is performed to generate an authentication request message carrying the user access information, and the authentication request message is sent to the AAA server 105 to authenticate the user equipment 101. In addition, the Access module may apply for address allocation to the DHCP server 106 after the authentication of the AAA server 105 is passed, and generate a reply message according to the obtained assigned address.
  • the user equipment 101 accesses the broadband, and the BRAS system begins to charge the user equipment 101.
  • FIG. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention. Both BRAS-UP and BRAS-CP in Figure 1B can be implemented by the computer device shown in Figure 2.
  • the computer device includes at least one processor 201, a communication bus 202, a memory 203, and at least one communication interface 204.
  • the processor 201 can be a general purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more for controlling the execution of the program of the present application. integrated circuit.
  • CPU general purpose central processing unit
  • ASIC application-specific integrated circuit
  • Communication bus 202 can include a path for communicating information between the components described above.
  • the memory 203 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM), or other information that can store information and instructions.
  • ROM read-only memory
  • RAM random access memory
  • Type of dynamic storage device or Electro Scientific Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc Storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being Any other medium accessed by the computer, but is not limited thereto.
  • Memory 203 may be present independently and coupled to processor 201 via communication bus 202.
  • the memory 203 can also be integrated with the processor 201.
  • the communication interface 204 uses devices such as any transceiver for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
  • devices such as any transceiver for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.
  • RAN Radio Access Network
  • WLAN Wireless Local Area Networks
  • processor 201 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG.
  • a computer device can include multiple processors, such as processor 201 and processor 205 shown in FIG. Each of these processors can be a single-CPU processor or a multi-core processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
  • the computer device may further include an output device 206 and an input device 207.
  • Output device 206 is in communication with processor 201 and can display information in a variety of ways.
  • the output device 206 can be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector.
  • Input device 207 is in communication with processor 201 and can receive user input in a variety of ways.
  • input device 207 can be a mouse, keyboard, touch screen device, or sensing device, and the like.
  • the computer device described above may be a general purpose computer device or a special purpose computer device.
  • the computer device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device.
  • PDA personal digital assistant
  • Embodiments of the invention do not limit the type of computer device.
  • the memory 203 is used to store program code for executing the solution of the present application, and is controlled by the processor 201 for execution.
  • the processor 201 is configured to execute the program code 208 stored in the memory 203.
  • One or more software modules may be included in program code 208.
  • the BRAS-UP or BRAS-CP shown in FIG. 1B may encapsulate the received message through one or more software modules in the processor 201 and the program code 208 in the memory 203.
  • VXLAN GPE encapsulation for the received user access protocol packets by the BRAS-UP will be described next with reference to FIGS. 3A-3E. The process is described in detail.
  • FIG. 3A is a flowchart of a packet encapsulation method based on a BRAS system according to an embodiment of the present invention. As shown in FIG. 3A, the packet encapsulation method is used in a BRAS-UP, and the method includes the following steps:
  • Step 301 Receive a user access protocol packet sent by the user equipment.
  • the user equipment When the user equipment accesses the broadband through dialing or other means, the user equipment can send a user access protocol message to the BRAS-UP through the access network.
  • Step 302 Acquire user access information corresponding to the user access protocol packet.
  • the BRAS-UP When the BRAS-UP receives the user access protocol packet, the BRAS-UP can determine the user access port information corresponding to the user access protocol packet according to the port that receives the user access protocol packet, and the BRAS-UP can also The corresponding protocol type and packet type are determined according to the user access protocol message.
  • the user access information may include a user access port information indicating a port for receiving the user access protocol packet, a protocol type of the user access protocol packet, and a specific packet of the user access protocol packet. Types of.
  • Step 303 Perform VXLAN GPE encapsulation on the user access protocol packet based on the user access information.
  • the BRAS-UP may add a user information header in front of the user access protocol packet, where the user information header is used to store user access information corresponding to the user access protocol packet. Afterwards, the BRAS-UP can set the value of the Next Protocol field of the VXLAN GPE header in the VXLAN GPE encapsulation structure, that is, the value of the encapsulation protocol field, to a preset value, which is used to indicate that the VXLAN GPE encapsulation structure includes user information. Header, and the user information header is located after the VXLAN GPE header and adjacent to the VXLAN GPE header.
  • the BRAS-UP can also set the value of the flag bit in the VXLAN GPE encapsulation structure specifically for indicating whether the Next Protocol field is valid, and the preset value is used to indicate the current VXLAN GPE encapsulation structure.
  • the Next Protocol field is valid.
  • the VXLAN GPE encapsulation structure includes a Layer 2 (L2) header, an Internet Protocol (IP) header, and a User Datagram Protocol (UDP) header.
  • L2 header is an external Ethernet header and occupies 14 bytes or 18 bytes, corresponding to the Media Access Control (MAC) address used by the Ethernet.
  • the IP header occupies 20 bytes
  • the UDP header occupies 8 bytes
  • the VXLAN GPE header occupies 8 bytes.
  • the NSH when the user access protocol packet is encapsulated by the VXLAN GPE, the NSH is further included after the VXLAN GPE header. According to the foregoing description, when the user access information is 6 bytes, the NSH includes at least 20 byte.
  • the VXLAN GPE header includes a Next Protocol field, which generally occupies 1 byte, and the value of the Next Protocol field is used to indicate that it is adjacent to the VXLAN GPE header.
  • the protocol type of the content that is located after the VXLAN GPE header.
  • the value of the Next Protocol field is different, the protocol type of the part that is located after the VXLAN GPE header and adjacent to the VXLAN GPE header is different, and the type of the user access protocol packet obtained by the encapsulation is different.
  • the value of the Next Protocol field and the corresponding protocol type are as shown in Table 1. As shown in Table 1, when the value of the Next Protocol field is 0-5, there are specific protocol types. .
  • the value of the Next Protocol field is 4, it means that the NSH is followed by the VXLAN GPE header.
  • the user access protocol packet after encapsulation is the NSH packet.
  • any value may be taken as a preset value from the value range of 6-253, and the protocol type corresponding to the preset value is defined as a user information header, that is, when When the Next Protocol field takes the preset value, it indicates that the Next Protocol field is followed by the user information header.
  • the encapsulated User Access Protocol message is the message containing the user information header. Text.
  • the value of the preset value is defined as 6.
  • the value of the Next Protocol field and the corresponding protocol type are as shown in Table 2. That is, if the BRAS-UP wants to add a user information header to the adjacent location after the VXLAN GPE header when the user access protocol message is encapsulated, the BRAS-UP needs to have the VXLAN GPE header.
  • the value of the Next Protocol field is set to 6.
  • the user information header may also be referred to as a Control-Plane User-Plane Separated Header (CU Separated Header).
  • an identifier field is also included in the VXLAN GPE header, and the identifier field occupies 1 byte.
  • the identifier field includes three reserved R bit bits, version information (Ver), I bit bit, P bit bit, and O bit bit.
  • the fifth bit from the number in the identifier field is the P bit bit.
  • VNI VXLAN Network Identifier
  • the foregoing describes the BRAS-UP setting of the VXLAN GPE header when VXLAN GPE encapsulation is performed on the user access protocol message and the added user information header.
  • the BRAS-UP Before setting the VXLAN GPE header, the BRAS-UP first needs to store the user access information in the user information header. Next, a specific implementation process of storing user access information in the user information header in the embodiment of the present invention will be described.
  • the user information header includes a first field.
  • the BRAS-UP can store the user access port information in the user access information in the first field.
  • the first field can occupy 4 bytes. In the first field, in addition to storing user access port information, more user access information can be stored.
  • the user information header may further include a second field, where the value of the second field may be used to indicate a protocol type of the encapsulated user access protocol message.
  • the value of the second field is also limited, and the value in one byte can satisfy the value of the second field. Therefore, the first The two fields can occupy 1 byte.
  • the second field can be located before the first field.
  • the second field may be defined as a Next Protocol field, and the value of the Next Protocol field in the user information header and the corresponding protocol type may be defined, as shown in Table 3.
  • Table 3 The value of the Next Protocol field in the user information header and the corresponding protocol type.
  • IPv4 Internet Protocol Version 4
  • IPv6 Internet Protocol Version 6
  • Ethernet Ethernet
  • the BRAS-UP can access users of different protocol types by taking different values of the Next Protocol field in the header of the user information.
  • the protocol packet is encapsulated, that is, according to the value of the Next Protocol field in the header of the user information, the BRAS-UP can encapsulate not only the Point-to-Point Protocol over Ethernet (PPPoE).
  • the Layer 3 Ethernet packet in the access scenario can also encapsulate Layer 3 Ethernet packets in the Internet Protocol over Ethernet (IPoE) access scenario, and can also encapsulate the Layer 2 tunneling protocol.
  • Layer 2 Tunneling Protocol (L2TP) accesses Layer 3 packets in the scenario to ensure the scalability of the protocol type of encapsulated packets.
  • the user information header may further include a third field, where the value of the third field may be used to indicate a packet type of the encapsulated user access protocol packet.
  • the value of the third field is also limited, and the value in one byte can satisfy the value of the third field. Therefore, the value is The third field can occupy 1 byte.
  • the third field may be located before the first field, and the message type refers to the most specific type of the encapsulated message, and the protocol type such as PPPoE or IPv4 cannot be used as the message type, that is, Yes, the packet type corresponding to the value of the third field cannot be defined as a protocol type such as PPPoE or IPv4.
  • the value of the third field and the definition of the corresponding packet type may be as shown in Table 4. It should be noted that the value of the third field and the corresponding packet type shown in Table 4 are only an example given in the embodiment of the present invention, and do not mean that all possible values and message types have been exhausted.
  • Table 4 Values of the third field in the user information header and the corresponding packet type
  • the value of the third field indicates the packet type of the encapsulated packet in detail, so when the BRAS-UP is to be encapsulated
  • the BRAS-CP can more easily decapsulate the encapsulated packet, which reduces the complexity of the BRAS-CP packet parsing and enables the BRAS-CP to focus more on the packet. Handling of access protocols.
  • the user information header may include only the first field, or may include the first field and the second field, or may include the first field and the third field, of course, the user information header
  • the department may also include the first field, the second field, and the third field at the same time.
  • the structure of the user information header may be as shown in FIG. 3D, wherein the first field occupies 4 bytes, and the second field occupies 1 byte, the third field also occupies 1 byte, and the second field and the third field are both located before the first field.
  • the BRAS -UP encapsulates the received user access protocol packet based on the foregoing VXLAN GPE encapsulation structure and user information header, and the header of the encapsulated packet is as shown in FIG. 3E.
  • the BRAS-UP may perform VXLAN GPE encapsulation on the user access protocol packet based on the user access information.
  • the value of the encapsulation protocol field of the VXLAN GPE header in the VXLAN GPE encapsulation structure is a preset value, where the preset value is used to indicate that the VXLAN GPE encapsulation structure includes a user information header, and the user information header is located at the VXLAN GPE header. After the part and adjacent to the VXLAN GPE header, the number of bytes occupied by the user information header is less than or equal to 12 bytes.
  • the packet encapsulated by the VXLAN GPE encapsulation structure has good backward compatibility.
  • the VXLAN encapsulation in the related technology is incompatible due to the modification of the standard VXLAN encapsulation. problem.
  • the NSH that does not carry the user access information must include at least 12 bytes, that is, The number of bytes occupied by the user information header is smaller than the number of bytes occupied by the NSH when the user access information is received. Therefore, the NSH is introduced to carry user access information when the VXLAN GPE encapsulation is used in the related art, thereby saving Packaging overhead.
  • the problem that the processing of the encapsulated message header is too long or the processing difficulty is avoided is avoided.
  • the number of bytes occupied by the user information header provided in the embodiment of the present invention may all be used to carry user access information, at least 12 bytes cannot be stored when the user access information is transmitted by using the NSH. In terms of user access information, transmission efficiency is improved.
  • the foregoing embodiment mainly describes the encapsulation process of the received user access protocol packet by the BRAS-UP.
  • the BRAS-UP can send the encapsulated message to the BRAS-CP, and the BRAS-CP can generate a reply message after the authentication is passed.
  • the VXLAN GPE encapsulation of the replies to the user access protocol packets according to the foregoing embodiment may be performed, and the replies are VXLAN GPE encapsulated based on the user access information, and The reply message after encapsulation is sent to the BRAS-UP.
  • the method for performing VXLAN GPE encapsulation of the user access protocol packet based on the user access information of the BRAS-UP is mainly introduced.
  • the following describes the IPoE access scenario in the BRAS system as an example to illustrate the BRAS-UP and the BRAS-CP.
  • the specific process of accessing the user equipment to the broadband through the interaction protocol with the user equipment, the AAA server, and the DHCP server is based on the packet encapsulation method provided by the embodiment of the present invention.
  • FIG. 4 is a flowchart of a user equipment going online in an IPoE access scenario in a BRAS system according to an embodiment of the present invention. As shown in FIG. 4, the method includes the following steps:
  • Step 401 The user equipment sends a user access protocol packet to the BRAS-UP through the Access Network.
  • Step 402 When receiving the user access protocol packet, the BRAS-UP obtains the user access information corresponding to the user access protocol packet, and performs the user access protocol packet based on the user access information.
  • VXLAN GPE package When receiving the user access protocol packet, the BRAS-UP obtains the user access information corresponding to the user access protocol packet, and performs the user access protocol packet based on the user access information.
  • the VTEP of the BRAS-UP is encapsulated in the VXLAN GPE of the user access protocol packet by using the packet encapsulation method described in the foregoing embodiment.
  • packet encapsulation method For the specific encapsulation method, reference may be made to the foregoing embodiment, and details are not described herein again.
  • Step 403 The BRAS-UP sends the encapsulated User Access Protocol message to the BRAS-CP.
  • VTEP is also included in BRAS-CP.
  • the VTEP of the BRAS-UP sends the encapsulated User Access Protocol message to the VTEP of the BRAS-CP.
  • Step 404 The BRAS-CP processes the received user access protocol packet after the encapsulation, and generates an authentication request packet carrying the user access information.
  • the VTEP of the BRAS-CP may decapsulate the encapsulated user access protocol packet to obtain the user access information and the user access protocol packet. . Afterwards, the VTEP of the BRAS-CP can send the obtained user access information and the user access protocol message to the access module of the BRAS-CP, and the access module processes the user access protocol packet and generates the user interface.
  • the authentication request message of the incoming information, the authentication request message is a message generated by the Access module for requesting authentication from the AAA server.
  • Step 405 The BRAS-CP sends the authentication request message to the AAA server.
  • Step 406 The AAA server authenticates the user equipment based on the received authentication request message.
  • the AAA server may authenticate the user equipment corresponding to the user access information based on the user access information carried in the authentication request message.
  • Step 407 After the authentication is passed, the AAA server may send an authentication reply to the BRAS-CP.
  • Step 408 After receiving the authentication reply sent by the AAA server, the BRAS-CP sends an address request to the DHCP server.
  • the authentication response may be sent to the Access module of the BRAS-CP.
  • the Access module of the BRAS-CP may send an address request to the DHCP server to request DHCP.
  • the server performs address assignment.
  • Step 409 When receiving the address request, the DHCP server allocates an address to the user equipment.
  • the DHCP server can look up the legally available IP address from its own pool of IP addresses.
  • Step 410 The DHCP server sends a response message carrying the assigned address to the BRAS-CP.
  • Step 411 When the BRAS-CP receives the response message sent by the DHCP server, the BRAS-CP generates a response message based on the response message, and performs VXLAN GPE encapsulation on the response message.
  • the access module of the BRAS-CP may generate a reply message based on the IP address carried in the response message, and then the access module of the BRAS-CP may send the reply message to the BRAS-CP.
  • VTEP The VTEP of the BRAS-CP uses the packet encapsulation method provided in the foregoing embodiment, and encapsulates the reply packet based on the user access information obtained in the decapsulation in step 404.
  • Step 412 Send the reply message after the encapsulation to the user equipment through the BRAS-UP.
  • the BRAS-UP may perform VXLAN GPE encapsulation on the user access protocol packet based on the user access information, and the BRAS-CP may be based on the user access information,
  • the generated reply message is encapsulated in VXLAN GPE.
  • the value of the encapsulation protocol field of the VXLAN GPE header in the VXLAN GPE encapsulation structure is a preset value, where the preset value is used to indicate that the VXLAN GPE encapsulation structure includes a user information header, and the user information header is used to store the The user accesses the information, and the user information header is located after the VXLAN GPE header and adjacent to the VXLAN GPE header, and the number of bytes occupied by the user information header is less than or equal to 12 bytes.
  • the number of bytes occupied by the user information header added in the VXLAN GPE encapsulation structure is less than or equal to 12 bytes, and the minimum number of bytes occupied by the NSH that does not carry the user access information is also 12 bytes. That is, the number of bytes occupied by the user information header is smaller than the number of bytes occupied by the NSH when the user access information is carried. Therefore, the NSH is introduced to carry the user access information when the VXLAN GPE encapsulation is used in the related art. , saving packaging overhead.
  • the problem that the processing of the encapsulated packet header is too long or the processing difficulty is avoided is avoided.
  • the number of bytes occupied by the user information header provided in the embodiment of the present invention may all be used to carry user access information, at least 12 bytes cannot be stored when the user access information is transmitted by using the NSH. In terms of user access information, transmission efficiency is improved.
  • FIG. 5A is a packet encapsulating apparatus based on a BRAS system according to an embodiment of the present invention.
  • the packet encapsulating apparatus based on the BRAS system is configured to execute the packet encapsulation method shown in FIG. 3A, as shown in FIG. 5A.
  • the device includes an acquisition module 501 and a packaging module 502:
  • the obtaining module 501 is configured to perform step 302 in the foregoing embodiment
  • the encapsulation module 502 is configured to perform step 303 in the foregoing embodiment.
  • the user access information includes user access port information, where the user information header includes a first field, and the first field is used to store user access information.
  • the user access information further includes a protocol type of the user access protocol packet, where the user information header further includes a second field, where the second field is used to indicate a protocol type of the user access protocol packet.
  • the user access information further includes a packet type of the user access protocol packet, where the user information header further includes a third field, where the third field is used to indicate the packet type of the user access protocol packet.
  • the apparatus further includes:
  • the sending module 503 is configured to send the encapsulated user access protocol message to the broadband remote access server control plane BRAS-CP, so that the BRAS-CP is based on the user access carried in the encapsulated user access protocol packet.
  • Information for verification is configured to send the encapsulated user access protocol message to the broadband remote access server control plane BRAS-CP, so that the BRAS-CP is based on the user access carried in the encapsulated user access protocol packet.
  • the receiving module 504 is configured to receive the encapsulated reply message sent by the BRAS-CP, and the encapsulated reply message is the same encapsulation method as the user access protocol packet after the BRAS-CP authenticates the user access information.
  • the VXLAN GPE encapsulation of the reply message is based on the user access information.
  • the BRAS-UP may perform VXLAN GPE encapsulation on the user access protocol message based on the user access information, and the BRAS-CP may generate a reply based on the user access information.
  • the message is encapsulated in VXLAN GPE.
  • the value of the encapsulation protocol field of the VXLAN GPE header in the VXLAN GPE encapsulation structure is a preset value, where the preset value is used to indicate that the VXLAN GPE encapsulation structure includes a user information header, and the user information header is used to store the The user accesses the information, and the user information header is located after the specified field and adjacent to the specified field, and the number of bytes occupied by the user information header is less than or equal to 12 bytes.
  • the number of bytes occupied by the user information header added in the VXLAN GPE encapsulation structure is less than or equal to 12 bytes, and the minimum number of bytes occupied by the NSH that does not carry the user access information is also 12 bytes.
  • the number of bytes occupied by the user information header is smaller than the number of bytes occupied by the NSH when the user access information is carried. Therefore, the NSH is introduced to carry the user access information when the VXLAN GPE encapsulation is used in the related art. , saving packaging overhead.
  • the problem that the processing of the encapsulated packet header is too long or the processing difficulty is avoided is avoided.
  • the number of bytes occupied by the user information header provided in the embodiment of the present invention may all be used to carry user access information, at least 12 bytes cannot be stored when the user access information is transmitted by using the NSH. In terms of user access information, transmission efficiency is improved.
  • the embodiment of the present invention further provides a packet encapsulation system.
  • the packet encapsulation system includes a BRAS-UP and a BRAS-CP, wherein the BRAS-UP may include multiple BRAS devices, and the BRAS-CP may be a dedicated server or a server cluster;
  • the BRAS-UP is configured to acquire user access information corresponding to the user access protocol packet when receiving the user access protocol packet;
  • the BRAS-UP is further configured to perform a virtual extended LAN protocol extension VXLAN GPE encapsulation on the user access protocol message based on the user access information, and send the encapsulated user access protocol message to the BRAS-CP;
  • the VXLAN GPE encapsulation structure includes a VXLAN GPE header, and the value of the encapsulation protocol field of the VXLAN GPE header is a preset value, where the preset value is used to indicate that the VXLAN GPE encapsulation structure includes a user information header and a user information header.
  • the part is used for storing user access information, and the user information header is located after the VXLAN GPE header and adjacent to the VXLAN GPE header, and the number of bytes occupied by the user information header is less than or equal to 12 bytes.
  • the BRAS-CP is configured to decapsulate the encapsulated user access protocol packet after receiving the encapsulated user access protocol packet, and obtain the user access information and the user access protocol packet.
  • the BRAS-CP is also used to authenticate the user access information, and generate a reply message after the authentication.
  • the packet is encapsulated based on the user access information in the same encapsulation manner as the user access protocol packet, and the packet is encapsulated.
  • the subsequent reply message is sent to the BRAS-UP.
  • the BRAS-UP may perform VXLAN GPE encapsulation on the user access protocol message based on the user access information
  • the BRAS-CP may perform VXLAN GPE on the generated reply message based on the user access information.
  • the value of the encapsulation protocol field of the VXLAN GPE header in the VXLAN GPE encapsulation structure is a preset value, where the preset value is used to indicate that the VXLAN GPE encapsulation structure includes a user information header, and the user information header is used to store the The user accesses the information, and the user information header is located after the specified field and adjacent to the specified field, and the number of bytes occupied by the user information header is less than or equal to 12 bytes.
  • the number of bytes occupied by the user information header added in the VXLAN GPE encapsulation structure is less than or equal to 12 bytes, and the minimum number of bytes occupied by the NSH that does not carry the user access information is also 12 bytes. That is, the number of bytes occupied by the user information header is smaller than the number of bytes occupied by the NSH when the user access information is carried. Therefore, the NSH is introduced to carry the user access information when the VXLAN GPE encapsulation is used in the related art. , saving packaging overhead.
  • the problem that the processing of the encapsulated packet header is too long or the processing difficulty is avoided is avoided.
  • the number of bytes occupied by the user information header provided in the embodiment of the present invention may all be used to carry user access information, at least 12 bytes cannot be stored when the user access information is transmitted by using the NSH. In terms of user access information, transmission efficiency is improved.
  • the packet encapsulation device of the BRAS system provided in the foregoing embodiment performs packet encapsulation, only the division of the foregoing functional modules is illustrated. In actual applications, the foregoing functions may be allocated according to requirements. Different functional modules are completed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
  • the BRAS system-based packet encapsulation device and the BRAS system-based packet encapsulation method are provided in the same embodiment. For details, refer to the method embodiment, and details are not described herein.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be from a website site, computer, server or data center Transfer to another website site, computer, server, or data center by wire (eg, coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.).
  • the computer readable storage medium can be any available media that can be accessed by a computer or a data storage device such as a server, data center, or the like that includes one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a digital versatile disc (DVD)), or a semiconductor medium (for example, a solid state disk (SSD)). )Wait.
  • a magnetic medium for example, a floppy disk, a hard disk, a magnetic tape
  • an optical medium for example, a digital versatile disc (DVD)
  • DVD digital versatile disc
  • SSD solid state disk
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请公开了一种基于BRAS系统的报文封装方法及装置,属于通信技术领域。该方法包括:当接收到用户接入协议报文时,获取用户接入协议报文对应的用户接入信息;基于用户接入信息,对用户接入协议报文进行VXLAN GPE封装;其中,VXLAN GPE封装结构中VXLAN GPE头部的封装协议字段的数值为预设数值,预设数值用于指示封装结构中包括用户信息头部,用户信息头部用于存放用户接入信息,紧跟在VXLAN GPE头部之后,且占用的字节数小于或等于12字节。本申请采用上述封装结构封装报文,封装后的报文具有向后兼容性。另外,由于用户信息头部的字节数小于携带用户接入信息时NSH的字节数,因此,节省了封装开销。

Description

基于BRAS系统的报文封装方法及装置 技术领域
本申请涉及通信技术领域,特别涉及一种基于宽带远程接入服务器(Broadband Remote Access Server,BRAS)系统的报文封装方法及装置。
背景技术
随着家庭宽带用户数量的激增和超高清电视(4K)、虚拟现实(Virtual Reality,VR)等新业务的高速发展,传统的BRAS系统面临着资源利用率低、管理维护复杂等巨大挑战。为此,通信运营商提出了将转发与控制功能分离的BRAS系统。也即是,将传统的BRAS系统中通过多台BRAS设备实现的用户管理和控制功能集中分离出来,通过一个专用的服务器或服务器集群来实现,该专用的服务器或服务器集群称为宽带远程接入服务器控制平面(BRAS-Control Plane,BRAS-CP)。而传统的BRAS系统的路由、组播等传统控制面功能以及流量转发、流量统计等转发面功能则仍由该多台BRAS设备来实现,此时,该多台BRAS设备组成宽带远程接入服务器用户平面(BRAS-User Plane,BRAS-UP)。在转发与控制功能分离的BRAS系统中,BRAS-CP和BRAS-UP之间通过虚拟可扩展局域网(Virtual Extensible Local Area Network,VXLAN)来传输用户接入协议报文。其中,由于用户接入网络时,BRAS-CP需要从用户接入协议报文中获取用户接入信息,以对用户接入位置进行认证,因此,当BRAS-UP接收到用户接入协议报文,并通过VXLAN封装对用户接入协议报文进行封装时,需要在封装的报文中携带用户接入信息。
由于标准的VXLAN封装中,没有合适的位置可以用于携带用户接入信息,因此,在相关技术中,BRAS-UP可以通过两种方式对用户接入协议报文进行封装。第一种方式是采用标准的VXLAN对用户接入协议报文进行封装。在封装之前,BRAS-UP可以在VXLAN头部与用户接入协议报文之间增加一个用户信息头部,该用户信息头部即用于存放用户接入信息,之后,BRAS-UP按照标准的VXLAN封装将增加的用户信息头部和用户接入协议报文进行封装,得到封装后的报文。第二种方式是采用虚拟可扩展局域网通用协议扩展(VXLAN Generic Protocol Extension,VXLAN GPE)机制对用户接入协议报文进行封装,其中,BRAS-UP可以将VXLAN GPE头部中的下一个协议(Next Protocol)字段设置为第一数值,该Next Protocol字段又可以称为封装协议字段,第一数值用于指示VXLAN GPE头部之后相邻的字段为网络服务头部(Network Service Header,NSH),且NSH的Context头部中可以存放用户接入信息。比如,第一数值可以为4。
然而,当通过第一种方式对用户接入协议报文进行封装时,由于增加了用户信息头部,因此,相当于对标准的VXLAN封装进行了修改,导致封装后的报文没有兼容性。当通过第二种方式对用户接入协议报文进行封装时,由于NSH的Context头部是四字节对齐且长度是可变的,并且NSH本身占用的字节数就比较多,再加上采用VXLAN GPE机制封装时其他头部包括的字节数,封装后的报文的头部占用的字节数会更多,而相对于占用字节数较小的用 户接入协议报文,封装开销较大。
发明内容
为了解决相关技术中采用VXLAN封装导致的封装后的报文没有兼容性以及采用VXLAN GPE封装时封装开销过大的问题,本申请提供了一种基于BRAS系统的报文封装方法及装置。所述技术方案如下:
第一方面,提供了一种基于BRAS系统的报文封装方法,所述方法包括:
当接收到用户接入协议报文时,获取所述用户接入协议报文对应的用户接入信息;
基于所述用户接入信息,对所述用户接入协议报文进行虚拟可扩展局域网通用协议扩展VXLAN GPE封装;
其中,VXLAN GPE封装结构中包括VXLAN GPE头部,所述VXLAN GPE头部的封装协议字段的数值为预设数值,所述预设数值用于指示所述VXLAN GPE封装结构中包括用户信息头部,所述用户信息头部用于存放所述用户接入信息,且所述用户信息头部位于所述VXLAN GPE头部之后且与所述VXLAN GPE头部相邻,所述用户信息头部占用的字节数小于或等于12字节。
需要说明的是,由于VXLAN GPE封装结构具有较好的向后兼容性,因此,基于用户接入信息对该用户接入协议报文进行VXLAN GPE封装,解决了相关技术中采用VXLAN封装时由于携带用户接入信息而对标准的VXLAN封装进行了修改导致的无法兼容的问题。并且,由于在本发明实施例中,将VXLAN GPE封装结构中的VXLAN GPE头部的封装协议字段的数值设置为预设数值之后,该VXLAN GPE封装结构中位于VXLAN GPE头部之后且与该VXLAN GPE头部相邻的将是用户信息头部,而用户信息头部的字节数小于或等于12个字节,也即是,该用户信息头部所占的字节数将小于携带用户接入信息时NSH所占的字节数,因此,相对于相关技术中采用VXLAN GPE封装时将用户接入信息存放在NSH中,节省了封装开销。
可选地,所述用户接入信息包括用户接入端口信息,所述用户信息头部包括第一字段,所述第一字段用于存放用户接入端口信息。
其中,用户接入信息包括用户接入端口信息,用户信息头部中可以只包括该第一字段,用于存放用户接入端口信息,以进一步地节省封装开销。可选地,该第一字段可以占用4个字节。另外,如果用户信息头部中只包括用于存放用户接入端口信息的第一字段,由于该用户信息头部的全部字节均用于携带用户接入信息,因此,相对于相关技术中采用NSH传输用户接入信息时,有至少12字节无法存放用户接入信息,提高了传输效率。
可选地,所述用户接入信息还包括用户接入协议报文的协议类型,所述用户信息头部还包括第二字段,所述第二字段用于指示所述用户接入协议报文的协议类型。
在本发明实施例中,通过定义用户信息头部中的第二字段,在封装时,可以对该第二字段取不同的值,来对不同协议类型的用户接入协议报文进行封装,保证了封装报文的协议类型的可扩展性。其中,该第二字段可以占用1个字节。
可选地,所述用户接入信息还包括用户接入协议报文的报文类型,所述用户信息头部还包括第三字段,所述第三字段用于指示所述用户接入协议报文的报文类型。
在本发明实施例中,还可以在用户信息头部中定义第三字段,用于指示用户接入协议报文的报文类型,这样,当将封装之后的报文发送至BRAS-CP时,BRAS-CP可以更方便的对 该封装之后的报文进行解封装,降低了BRAS-CP对报文的解析复杂度,使BRAS-CP能够更专注于对接入协议的处理。其中,该第三字段可以占用1个字节。
可选地,所述基于所述用户接入信息,对所述用户接入协议报文进行虚拟可扩展局域网通用协议扩展VXLAN GPE封装之后,还包括:
将封装之后的用户接入协议报文发送至宽带远程接入服务器控制平面BRAS-CP,以使所述BRAS-CP基于所述封装之后的用户接入协议报文中携带的用户接入信息进行验证;
接收所述BRAS-CP发送的封装之后的回复报文,所述封装之后的回复报文是所述BRAS-CP对所述用户接入信息进行验证之后,按照与所述用户接入协议报文相同的封装方式,基于所述用户接入信息对回复报文进行VXLAN GPE封装得到的。
需要说明的是,当将封装之后的用户接入协议报文发送至BRAS-CP之后,BRAS-CP可以生成回复报文,并按照与用户接入协议报文相同的方式,基于用户接入信息对回复报文进行封装。对于BRAS-CP而言,同样达到了节省封装开销、降低处理难度和提升传输效率的效果。
第二方面,提供了一种基于BRAS系统的报文封装装置,所述基于BRAS系统的报文封装装置具有实现上述第一方面中基于BRAS系统的报文封装方法行为的功能。所述基于BRAS系统的报文封装装置包括至少一个模块,该至少一个模块用于实现上述第一方面所提供的基于BRAS系统的报文封装方法。
第三方面,提供了一种报文封装系统,所述报文封装系统包括BRAS-UP和BRAS-CP;
所述BRAS-UP用于当接收到用户接入协议报文时,获取所述用户接入协议报文对应的用户接入信息;
所述BRAS-UP还用于基于所述用户接入信息,对所述用户接入协议报文进行虚拟可扩展局域网通用协议扩展VXLAN GPE封装,并将封装之后的用户接入协议报文发送至所述BRAS-CP;
其中,VXLAN GPE封装结构中包括VXLAN GPE头部,所述VXLAN GPE头部的封装协议字段的数值为预设数值,所述预设数值用于指示所述VXLAN GPE封装结构中包括用户信息头部,所述用户信息头部用于存放所述用户接入信息,且所述用户信息头部位于所述VXLAN GPE头部之后且与所述VXLAN GPE头部相邻,所述用户信息头部占用的字节数小于或等于12字节;
所述BRAS-CP用于当接收到所述封装之后的用户接入协议报文之后,对所述封装之后的用户接入协议报文进行解封装,得到所述用户接入信息和所述用户接入协议报文;
所述BRAS-CP还用于对所述用户接入信息进行验证,并在验证之后生成回复报文,按照与所述用户接入协议报文相同的封装方式,基于所述用户接入信息对所述回复报文进行封装,将封装之后的回复报文发送至BRAS-UP。
第四方面,提供了一种基于BRAS系统的报文封装装置,所述基于BRAS系统的报文封装装置的结构中包括处理器和存储器,所述存储器用于存储支持基于BRAS系统的报文封装装置执行上述第一方面所提供的基于BRAS系统的报文封装方法的程序,以及存储用于实现 上述第一方面所提供的基于BRAS系统的报文封装方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述存储设备的操作装置还可以包括通信总线,该通信总线用于该处理器与存储器之间建立连接。
第五方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的基于BRAS系统的报文封装方法。
第六方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的基于BRAS系统的报文封装方法。
上述第二方面、第三方面、第四方面、第五方面和第六方面所获得的技术效果与第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。
本申请提供的技术方案带来的有益效果是:当接收到用户接入协议报文之后,可以基于用户接入信息,对该用户接入协议报文进行VXLAN GPE封装。其中,VXLAN GPE封装结构中包括VXLAN GPE头部,该VXLAN GPE头部的封装协议字段的数值为预设数值,该预设数值用于指示VXLAN GPE封装结构中包括用户信息头部,该用户信息头部用于存放用户接入信息,且该用户信息头部位于指VXLAN GPE头部之后且与VXLAN GPE头部相邻,该用户信息头部占用的字节数小于或等于12字节。由于采用VXLAN GPE封装结构对报文进行封装,封装之后的报文具有很好的向后兼容性,因此,解决了相关技术中采用VXLAN封装时由于对标准的VXLAN封装进行了修改导致的无法兼容的问题。另外,由于在该VXLAN GPE封装结构中添加的用户信息头部的所占字节数小于或等于12字节,而未携带用户接入信息的NSH所占的最少字节数也得12字节,也即是,该用户信息头部所占的字节数将小于携带用户接入信息时NSH所占的字节数,因此,相对于相关技术中采用VXLAN GPE封装时引入NSH,并通过NSH携带用户接入信息,节省了封装开销。同时,对于某些采用高性能转发芯片的BRAS设备,避免了由于封装后的报文头部过长导致的无法处理或者是处理难度加大的问题。
附图说明
图1A是本发明实施例提供的NSH结构图;
图1B是本发明实施例提供的一种基于BRAS系统的报文封装方法的实施环境图;
图2是本发明实施例提供的一种计算机设备的结构示意图;
图3A是本发明实施例提供的一种基于BRAS系统的报文封装方法的流程图;
图3B是本发明实施例提供的VXLAN GPE封装结构图;
图3C是本发明实施例提供的VXLAN GPE头部结构图;
图3D是本发明实施例提供的用户信息头部结构图;
图3E是本发明实施例提供的封装之后的报文的头部结构图;
图4是本发明实施例提供的一种BRAS系统中IPoE接入场景下用户设备上线的流程图;
图5A是本发明实施例提供的一种基于BRAS系统的报文封装装置的结构示意图。
图5B是本发明实施例提供的另一种基于BRAS系统的报文封装装置的结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
为了后续便于说明,在对本发明实施例进行详细的解释说明之前,先对本发明实施例中涉及的名词进行解释。
BRAS系统:由多台BRAS设备组成的系统,该系统主要用于实现两方面的功能。一方面,转发面功能,用于实现多种业务的汇聚与转发,另一方面,用户管理和控制功能,用于与认证系统、计费系统和客户管理系统及服务策略控制系统相配合以实现用户接入的认证、计费和管理等。
BRAS-CP:将传统的BRAS系统中通过多台BRAS设备实现的用户管理和控制功能集中分离出来,通过一个专用的服务器或服务器集群来实现,该专用的服务器或服务器集群即为BRAS-CP。
BRAS-UP:由多台BRAS设备组成,专门用于实现传统的BRAS系统的路由、组播等传统控制面功能以及流量转发、流量统计等转发面功能。
NSH:NSH是由具有服务分类功能的设备或应用在封装报文时添加。NSH一般包括三部分内容,第一部分为NSH基本头信息,一共占用4个字节。第二部分为服务路径信息,占用4个字节,该服务路径信息是由添加该NSH的设备确定的,用于指示该封装后的报文所要途径的服务路径。第三部分为元数据信息,该元数据信息是该封装后的报文所要途径的服务路径上的网络设备所需要的元数据。
如图1A所示,其中,第一部分的NSH基本头信息包括版本信息(Ver)、O bit位、C bit位、6个R bit位、长度信息(Length)字段、元数据格式类型(Metadata Type,MD Type)以及Next Protocol字段,该Next Protocol字段又称为封装协议字段。其中,O bit位用于指示封装的报文的内容是否为操作维护信息,当O bit位取1时,表示封装的报文的内容为操作维护信息。C bit位用于指示第三部分的元数据信息中是否包含有用户自定义元数据,当C bit位取1时,表示第三部分的元数据信息中包含有用户自定义的元数据。6个R bit位是预留的。Length字段的取值用于指示NSH所占的字节数,且该Length字段本身占用6个bit。MD Type用于指示第三部分的元数据格式是否为固定长度,当MD Type=0x1,表示第三部分的元数据格式为4个字节的固定长度,当MD Type=0x2,表示第三部分的元数据格式为变长的大于4个字节的。
第二部分的服务路径信息包括服务路径标识(Service Path Identifier,SPI)和服务索引(Service Index,SI)。其中服务路径标识占用3个字节,服务索引占用1个字节。
第三部分为长度可变的上下文报头(Variable Length Context Header),该长度可变的上下文报头中存放的信息即为元数据信息。基于前述描述可知,当MD Type=0x1,该部分为固定长度,只占4个字节,当MD Type=0x2,该部分为4字节对齐、长度可变的。
在相关技术中,当BRAS-UP采用VXLAN GPE对用户接入协议报文进行封装时,即是通过在VXLAN GPE头部之后引入NSH来实现的。用户接入信息即被存放在第三部分中,此 时,第三部分是四字节对齐且长度可变的,当通过NSH的第三部分来携带用户接入信息时,第三部分的前4个字节用于存放基本信息,从第5个字节开始存放用户接入信息。假设用户接入信息为6个字节,由于第三部分是四字节对齐的,那么,实际上占用的将是8个字节。也即是,当用户接入信息为6个字节时,该NSH至少将占用20个字节。
在对本发明实施例中涉及的名词进行解释之后,接下来对本发明实施例涉及的实施环境进行说明。
图1B是本发明实施例提供的一种基于BRAS系统的报文封装方法的实施环境图,如图1B中所示,该实施环境中包括用户设备101、BRAS-UP 102、BRAS-CP 103、核心路由器(Core Router,CR)104、认证授权计费(Authentication Authorization Accounting,AAA)服务器105以及动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)服务器106。其中,用户设备101可以与BRAS-UP 102建立通信连接,BRAS-UP 102可以与CR 104建立通信连接,而CR 104可以与BRAS-CP 103建立通信连接,也即是,通过BRAS-UP 102与CR 104之间的通信连接以及BRAS-CP 103与CR 104之间的通信连接,BRAS-UP 102与BRAS-CP 103之间可以实现基于VXLAN的通信。另外,BRAS-CP 103还可以分别与AAA服务器105、DHCP服务器106之间建立通信连接。
需要说明的是,用户设备101可以通过与BRAS-UP 102之间的通信连接以及BRAS-UP102与CR 104之间的通信连接来连接到互联网,从而获取网络服务。当用户设备101通过拨号或者是其他方式接入宽带时,可以通过与BRAS-UP 102之间的通信连接向BRAS-UP 102发送用户接入协议报文,而BRAS-UP 102可以在接收到的用户接入协议报文之前添加存放有用户接入信息的用户信息头部,并将该用户信息头部和用户接入协议报文进行封装,之后,将封装之后的报文经由CR 104发送至BRAS-CP 103,BRAS-CP 103可以将接收到的封装之后的报文进行解封装,以获取用户接入信息,并根据该用户接入信息与AAA服务器105、DHCP服务器106进行交互,以对用户设备101进行认证、计费等。
还需要说明的是,由于BRAS-UP 102和BRAS-CP 103之间是基于VXLAN来传输用户接入协议报文。因此,BRAS-UP 102和BRAS-CP 103中分别包括VXLAN隧道端点(VXLAN Tunnel End Point,VTEP)。另外,BRAS-CP 103中还包括接入(Access)模块。具体的,BRAS-UP 102的VTEP主要负责对用户接入协议报文进行VXLAN GPE封装以及对收到的封装之后的回复报文进行解封装,并将解封装之后的回复报文发送给用户设备101。而BRAS-CP 103的VTEP主要负责对接收到的封装之后的用户接入协议报文进行解封装以及对Access模块生成的回复报文进行VXLAN GPE封装,Access模块主要负责对用户接入协议报文进行处理,生成携带有用户接入信息的认证请求报文,并将该认证请求报文发送至AAA服务器105,以对用户设备101进行认证。除此之外,Access模块还可以在AAA服务器105的认证通过之后,向DHCP服务器106申请地址分配,并根据获取到分配地址生成回复报文。通过用户设备101、BRAS-UP 102、BRAS-CP 103、AAA服务器105、DHCP服务器106之间的协议交互,用户设备101接入宽带,BRAS系统开始对用户设备101进行计费。
图2是本发明实施例提供的一种计算机设备的结构示意图。图1B中的BRAS-UP以及BRAS-CP均可以通过图2所示的计算机设备来实现。参见图2,该计算机设备包括至少一个 处理器201,通信总线202,存储器203以及至少一个通信接口204。
处理器201可以是一个通用中央处理器(Central Processing Unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。
通信总线202可包括一通路,在上述组件之间传送信息。
存储器203可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM))或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器203可以是独立存在,通过通信总线202与处理器201相连接。存储器203也可以和处理器201集成在一起。
通信接口204,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(RAN),无线局域网(Wireless Local Area Networks,WLAN)等。
在具体实现中,作为一种实施例,处理器201可以包括一个或多个CPU,例如图2中所示的CPU0和CPU1。
在具体实现中,作为一种实施例,计算机设备可以包括多个处理器,例如图2中所示的处理器201和处理器205。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
在具体实现中,作为一种实施例,计算机设备还可以包括输出设备206和输入设备207。输出设备206和处理器201通信,可以以多种方式来显示信息。例如,输出设备206可以是液晶显示器(liquid crystal display,LCD),发光二级管(light emitting diode,LED)显示设备,阴极射线管(cathode ray tube,CRT)显示设备,或投影仪(projector)等。输入设备207和处理器201通信,可以以多种方式接收用户的输入。例如,输入设备207可以是鼠标、键盘、触摸屏设备或传感设备等。
上述的计算机设备可以是一个通用计算机设备或者是一个专用计算机设备。在具体实现中,计算机设备可以是台式机、便携式电脑、网络服务器、掌上电脑(Personal Digital Assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备或者嵌入式设备。本发明实施例不限定计算机设备的类型。
其中,存储器203用于存储执行本申请方案的程序代码,并由处理器201来控制执行。处理器201用于执行存储器203中存储的程序代码208。程序代码208中可以包括一个或多个软件模块。图1B中所示的BRAS-UP或BRAS-CP可以通过处理器201以及存储器203中的程序代码208中的一个或多个软件模块,来对接收到的报文进行封装。
通过上述描述,对本发明实施例涉及的名词以及实施环境进行解释说明之后,接下来将结合附图3A-3E,对于BRAS-UP对接收到的用户接入协议报文进行VXLAN GPE封装的具 体实现过程进行详细说明。
图3A是本发明实施例提供的一种基于BRAS系统的报文封装方法的流程图,如图3A所示,该报文封装方法用于BRAS-UP中,该方法包括以下步骤:
步骤301:接收用户设备发送的用户接入协议报文。
当用户设备通过拨号或者是其他方式接入宽带时,该用户设备可以通过接入网络(Access Network)向BRAS-UP发送用户接入协议报文。
步骤302:获取用户接入协议报文对应的用户接入信息。
当BRAS-UP接收到用户接入协议报文时,可以根据接收该用户接入协议报文的端口,确定该用户接入协议报文对应的用户接入端口信息,并且,BRAS-UP还可以根据该用户接入协议报文确定对应的协议类型和报文类型。其中,该用户接入信息可以包括用于指示接收该用户接入协议报文的端口的用户接入端口信息、用户接入协议报文的协议类型以及该用户接入协议报文具体的报文类型。
步骤303:基于用户接入信息,对用户接入协议报文进行VXLAN GPE封装。
当获取到用户接入信息之后,BRAS-UP可以在该用户接入协议报文前增加用户信息头部,该用户信息头部用于存放该用户接入协议报文对应的用户接入信息,之后,BRAS-UP可以将VXLAN GPE封装结构中的VXLAN GPE头部的Next Protocol字段,也即封装协议字段的数值设置为预设数值,该预设数值用于指示VXLAN GPE封装结构中包括用户信息头部,且该用户信息头部位于该VXLAN GPE头部之后并与该VXLAN GPE头部相邻。同时,BRAS-UP还可以将VXLAN GPE封装结构中专门用于指示该Next Protocol字段是否有效的标志位的取值设置为预设取值,该预设取值用于指示在当前VXLAN GPE封装结构中该Next Protocol字段有效。
需要说明的是,如图3B所示,VXLAN GPE封装结构包括二层(Layer 2,L2)头部、互联网协议(Internet Protocol,IP)头部、用户数据报协议(User Datagram Protocol,UDP)头部以及VXLAN GPE头部。其中,L2头部为外部以太网头,占用14字节或18字节,对应的是以太网所使用的媒体访问控制(Media Access Control,MAC)地址。IP头部占用20字节,UDP头部占用8字节,VXLAN GPE头部占用8字节。在相关技术中,当采用VXLAN GPE对用户接入协议报文进行封装时,在VXLAN GPE头部之后还包括NSH,基于前述描述,当用户接入信息为6字节时,该NSH至少包括20字节。
进一步地,如图3C所示,VXLAN GPE头部中包括Next Protocol字段,该Next Protocol字段一般占用1个字节,并且,该Next Protocol字段的取值用于指示与VXLAN GPE头部相邻且位于该VXLAN GPE头部之后的部分内容的协议类型。当Next Protocol字段的取值不同时,位于该VXLAN GPE头部之后且与该VXLAN GPE头部相邻的部分的协议类型就不同,由此封装得到的用户接入协议报文的类型也就不同。当前,在相关技术中,Next Protocol字段的取值以及对应的协议类型如表1中所示,由表1可见,当Next Protocol字段的取值为0-5时,均对应有具体的协议类型。当Next Protocol字段的取值为4时,表示在该VXLAN GPE头部之后紧跟的是NSH。在这种情况下,封装之后的用户接入协议报文即为NSH的报文。但是,对于6-253之间的数值,还没有定义具体的协议类型。因此,在本发明实施例中,可以从该6-253的数值范围内取任一数值作为预设数值,并将该预设数值对应的协议类型定义为用户信息头部,也即是,当Next Protocol字段取该预设数值时,表示该Next Protocol字段 之后紧跟的是用户信息头部,在这种情况下,封装之后的用户接入协议报文即为包含有用户信息头部的报文。
表1相关技术中Next Protocol字段的取值以及对应的协议类型
Figure PCTCN2018084945-appb-000001
假设在本发明实施例中,定义该预设数值的取值为6,此时,该Next Protocol字段的取值以及对应的协议类型如表2中所示。也即是,如果BRAS-UP在封装用户接入协议报文时,想要在该VXLAN GPE头部之后相邻的位置上增加用户信息头部,那么,BRAS-UP需要将该VXLAN GPE头部的Next Protocol字段的取值设置为6。其中,该用户信息头部也可以称为控制平面-用户平面分离头部(Control-Plane User-Plane Separated Header,CU Separated Header)。
表2本发明实施例中Next Protocol字段的取值以及对应的协议类型
Figure PCTCN2018084945-appb-000002
还需要说明的是,如图3C所示,在VXLAN GPE头部中还包括标识域,该标识域占用1个字节。其中,该标识域包括3个预留的R bit位、版本信息(Ver)、I bit位、P bit位和O bit位。其中,该标识域中从0数起的第5位为P bit位,当P bit位的取值为1时,表示在该VXLAN GPE头部中的Next Protocol字段有意义,当P bit位的取值为0时,则表示在该VXLAN GPE头部中的Next Protocol字段无意义。因此,当BRAS-UP将Next Protocol字段的取值设置为 预设数值之后,还需要将P bit位的取值设置为1,这样,才能使Next Protocol字段的取值有意义。
除上述介绍的Next Protocol字段和标识域,如图3C所示,在VXLAN GPE头部中还包括预留的3个字节以及VXLAN网络标识(VXLAN Network Identifier,VNI)。
前述介绍了当对用户接入协议报文以及增加的用户信息头部进行VXLAN GPE封装时,BRAS-UP对VXLAN GPE头部的设置。在对VXLAN GPE头部进行设置之前,BRAS-UP首先需要将用户接入信息存放在用户信息头部中。接下来将介绍在本发明实施例中,将用户接入信息存入用户信息头部的具体实现过程。
在本发明实施例中,该用户信息头部包括第一字段。BRAS-UP可以将用户接入信息中的用户接入端口信息存放在该第一字段中。可选地,该第一字段可以占用4个字节。在该第一字段中,除了可以存放用户接入端口信息,还可以存放更多其他的用户接入信息。
可选地,该用户信息头部在包括第一字段的同时,还可以包括第二字段,该第二字段的取值可以用于指示被封装的用户接入协议报文的协议类型。可选地,由于协议类型的种类有限,因此,该第二字段的取值的个数也比较有限,1个字节内的取值即可以满足该第二字段的取值,因此,该第二字段可以占用1个字节。另外,该第二字段可以位于第一字段之前。具体的,可以将该第二字段定义为Next Protocol字段,并且可以对该用户信息头部中的Next Protocol字段的取值和对应的协议类型进行定义,如表3所示。
表3用户信息头部中的Next Protocol字段的取值和对应的协议类型
Next Protocol 协议类型
0 预留(Reserved)
1 互联网协议第四版(IPv4)
2 互联网协议第六版(IPv6)
3 以太网(Ethernet)
在本发明实施例中,通过定义该用户信息头部中的Next Protocol字段,BRAS-UP可以通过对该用户信息头部中的Next Protocol字段取不同的值,来对不同协议类型的用户接入协议报文进行封装,也即是,根据该用户信息头部中的Next Protocol字段取值的不同,BRAS-UP不仅可以封装基于以太网的点对点协议(Point-to-Point Protocol over Ethernet,PPPoE)接入场景下的三层以太网报文,也可以封装基于以太网的互联网协议(Internet Protocol over Ethernet,IPoE)接入场景下的三层以太网报文,还可以封装第二层隧道协议(Layer 2 Tunneling Protocol,L2TP)接入场景下的三层报文等,保证了封装报文的协议类型的可扩展性。
可选地,该用户信息头部在包括第一字段的同时,还可以包括第三字段,该第三字段的取值可以用于指示被封装的用户接入协议报文的报文类型。可选地,由于报文类型的种类有限,因此,该第三字段的取值的个数也比较有限,1个字节内的取值即可以满足该第三字段的取值,因此,该第三字段可以占用1个字节。另外,该第三字段可以位于第一字段之前,且该报文类型指的是被封装的报文的最具体的类型,诸如PPPoE、IPv4之类的协议类型不能作为该报文类型,也即是,该第三字段的取值对应的报文类型不能被定义为诸如PPPoE、IPv4之类的协议类型。具体的,该第三字段的取值和对应的报文类型的定义可以如表4所示。需要说明的是,表4中所示的第三字段的取值和对应的报文类型只是本发明实施例给出的一种示例,并不代表已经穷尽所有可能的取值和报文类型。
表4用户信息头部中的第三字段的取值和对应的报文类型
第三字段 报文类型
0x0 Reserved
0x1 PPPoE PADI[RFC2516]
0x2 PPPoE PADR[RFC2516]
0x3 PPPoE SESSION[RFC2516]
0x4 DHCP Discover[RFC2131]
0x5 DHCP Request[RFC2131]
0x6 DHCPv6 Request[RFC3315]
0x7 DHCPv6 Solicit[RFC3315]
0x8 IPv6 RS[RFC4861]
0x9 IPv6 NS[RFC4861]
0xa IPv6 NA[RFC4861]
在本发明实施例中,当该用户信息头部中包括第三字段时,由于第三字段的取值详细的指示出了被封装的报文的报文类型,因此,当BRAS-UP将封装之后的报文发送至BRAS-CP时,BRAS-CP可以更方便的对该封装之后的报文进行解封装,降低了BRAS-CP对报文的解析复杂度,使BRAS-CP能够更专注于对接入协议的处理。
可选地,基于上述描述可知,该用户信息头部可以只包括第一字段,也可以包括第一字段和第二字段,或者,可以包括第一字段和第三字段,当然,该用户信息头部还可以同时包括第一字段、第二字段和第三字段。当该用户信息头部同时包括第一字段、第二字段和第三字段时,该用户信息头部的结构可以如图3D所示,其中,第一字段占用4个字节,第二字段占用1个字节,第三字段也占用1个字节,且第二字段和第三字段均位于第一字段之前。
假设该用户信息头部包括第一字段、第二字段和第三字段,且第一字段占用4个字节、第二字段占用1个字节、第三字段占用1个字节,那么,BRAS-UP基于前述的VXLAN GPE封装结构以及用户信息头部,对接收到的用户接入协议报文进行封装,封装之后的报文的头部如图3E所示。
在本发明实施例中,当BRAS-UP接收到用户接入协议报文之后,可以基于用户接入信息,对该用户接入协议报文进行VXLAN GPE封装。其中,该VXLAN GPE封装结构中VXLAN GPE头部的封装协议字段的数值为预设数值,该预设数值用于指示VXLAN GPE封装结构中包括用户信息头部,该用户信息头部位于VXLAN GPE头部之后且与VXLAN GPE头部相邻,该用户信息头部占用的字节数小于或等于12字节。由于采用VXLAN GPE封装结构对报文进行封装,封装之后的报文具有很好的向后兼容性,因此,解决相关技术中采用VXLAN封装时由于对标准的VXLAN封装进行了修改导致的无法兼容的问题。另外,由于在该VXLAN GPE封装结构中添加的用户信息头部的所占字节数小于或等于12字节,而未携带用户接入信息的NSH最少也得包括12字节,也即是,该用户信息头部所占的字节数将小于携带用户接入信息时NSH所占的字节数,因此,相对于相关技术中采用VXLAN GPE封装时引入NSH来携带用户接入信息,节省了封装开销。同时,对于某些采用高性能转发芯片的BRAS-UP,避免了由于封装后的报文头部过长导致的无法处理或者是处理难度加大的问题。另外,由于本发明实施例中提供的用户信息头部所占的字节数可以全部用于携带用户接入信息,因此, 相对于采用NSH传输用户接入信息时,有至少12字节无法存放用户接入信息而言,提高了传输效率。
上述实施例中主要介绍了BRAS-UP对接收到的用户接入协议报文的封装过程,基于前述实施环境中的描述可知,当BRAS-UP按照上述方式对用户接入协议报文进行封装之后,BRAS-UP可以将封装之后的报文发送至BRAS-CP,而BRAS-CP可以在认证通过之后生成回复报文。当BRAS-CP生成回复报文之后,也可以按照上述实施例中介绍的对用户接入协议报文进行VXLAN GPE封装的方法,基于用户接入信息对该回复报文进行VXLAN GPE封装,并将封装之后的回复报文发送至BRAS-UP。
上述实施例中主要介绍BRAS-UP基于用户接入信息,对用户接入协议报文进行VXLAN GPE封装的方法,下面将以BRAS系统中IPoE接入场景为例,说明BRAS-UP和BRAS-CP如何基于本发明实施例提供的报文封装方法,通过与用户设备、AAA服务器以及DHCP服务器之间的交互协议将用户设备接入宽带的具体流程。
图4是本发明实施例提供的一种BRAS系统中IPoE接入场景下用户设备上线的流程图,如图4所示,包括以下步骤:
步骤401:用户设备通过Access Network向BRAS-UP发送用户接入协议报文。
步骤402:当接收到该用户接入协议报文时,BRAS-UP获取该用户接入协议报文对应的用户接入信息,并基于该用户接入信息,对该用户接入协议报文进行VXLAN GPE封装。
其中,BRAS-UP的VTEP通过前述实施例中介绍的报文封装方法,对该用户接入协议报文进行VXLAN GPE封装,具体的封装方法可以参考前述实施例,在这里不再赘述。
步骤403:BRAS-UP将封装之后的用户接入协议报文发送至BRAS-CP。
其中,由于BRAS-UP和BRAS-CP之间基于VXLAN进行通信,因此,BRAS-CP中也包括VTEP。BRAS-UP的VTEP将封装之后的用户接入协议报文发送至BRAS-CP的VTEP。
步骤404:BRAS-CP对接收到的封装之后的用户接入协议报文进行处理,并生成携带有用户接入信息的认证请求报文。
其中,当BRAS-CP的VTEP接收到封装之后的用户接入协议报文之后,可以对该封装之后的用户接入协议报文进行解封装,从而得到用户接入信息和用户接入协议报文。之后,BRAS-CP的VTEP可以将得到的用户接入信息和用户接入协议报文发送至BRAS-CP的Access模块,Access模块对该用户接入协议报文进行处理,并生成携带有用户接入信息的认证请求报文,该认证请求报文是由Access模块生成用于向AAA服务器请求认证的报文。
步骤405:BRAS-CP将该认证请求报文发送至AAA服务器。
步骤406:AAA服务器基于接收到的认证请求报文对用户设备进行认证。
当AAA服务器接收到该认证请求报文之后,可以基于该认证请求报文中携带的用户接入信息对该用户接入信息对应的用户设备进行认证。
步骤407:当认证通过之后,AAA服务器可以向BRAS-CP发送认证回复。
步骤408:当接收到AAA服务器发送的认证回复之后,BRAS-CP向DHCP服务器发送地址请求。
其中,当AAA服务器对用户设备的认证通过之后,可以向BRAS-CP的Access模块发 送认证回复,当接收到该认证回复之后,BRAS-CP的Access模块可以向DHCP服务器发送地址请求,以请求DHCP服务器进行地址分配。
步骤409:当接收到地址请求时,DHCP服务器为用户设备分配地址。
当接收到地址请求时,DHCP服务器可以从自身的IP地址池中查找合法可用的IP地址。
步骤410:DHCP服务器向BRAS-CP发送携带有分配的地址的响应消息。
步骤411:当BRAS-CP接收到DHCP服务器发送的响应消息时,基于该响应消息,生成回复报文,并对回复报文进行VXLAN GPE封装。
其中,当BRAS-CP的Access模块接收到响应消息时,可以基于该响应消息中携带的IP地址生成回复报文,之后,BRAS-CP的Access模块可以将该回复报文发送给BRAS-CP的VTEP。BRAS-CP的VTEP采用前述实施例中提供的报文封装方法,基于步骤404中解封装时得到的用户接入信息对该回复报文进行封装。
步骤412:将封装之后的回复报文通过BRAS-UP发送给用户设备。
在本发明实施例中,当用户设备接入宽带时,BRAS-UP可以基于用户接入信息,对该用户接入协议报文进行VXLAN GPE封装,BRAS-CP可以基于该用户接入信息,对生成的回复报文进行VXLAN GPE封装。其中,该VXLAN GPE封装结构中VXLAN GPE头部的封装协议字段的数值为预设数值,该预设数值用于指示VXLAN GPE封装结构中包括用户信息头部,该用户信息头部用于存放该用户接入信息,且该用户信息头部位于VXLAN GPE头部之后且与VXLAN GPE头部相邻,该用户信息头部占用的字节数小于或等于12字节。由于在该VXLAN GPE封装结构中添加的用户信息头部的所占字节数小于或等于12字节,而未携带用户接入信息的NSH所占的最少字节数也得12字节,也即是,该用户信息头部所占的字节数将小于携带用户接入信息时NSH所占的字节数,因此,相对于相关技术中采用VXLAN GPE封装时引入NSH来携带用户接入信息,节省了封装开销。同时,对于某些采用高性能转发芯片的BRAS-UP和BRAS-CP,避免了由于封装后的报文头部过长导致的无法处理或者是处理难度加大的问题。另外,由于本发明实施例中提供的用户信息头部所占的字节数可以全部用于携带用户接入信息,因此,相对于采用NSH传输用户接入信息时,有至少12字节无法存放用户接入信息而言,提高了传输效率。
在对本发明实施例的具体实现过程进行详细的解释说明之后,接下来对本发明实施例提供的装置进行说明。
图5A是本发明实施例提供的一种基于BRAS系统的报文封装装置,该基于BRAS系统的报文封装装置用于执行上述图3A中所示的报文封装方法,如图5A所示,该装置包括获取模块501和封装模块502:
获取模块501,用于执行上述实施例中的步骤302;
封装模块502,用于执行上述实施例中的步骤303。
可选地,该用户接入信息包括用户接入端口信息,用户信息头部包括第一字段,第一字段用于存放用户接入信息。
可选地,该用户接入信息还包括用户接入协议报文的协议类型,用户信息头部还包括第二字段,第二字段用于指示用户接入协议报文的协议类型。
可选地,该用户接入信息还包括用户接入协议报文的报文类型,用户信息头部还包括第 三字段,第三字段用于指示用户接入协议报文的报文类型。
可选地,参见图5B,该装置还包括:
发送模块503,用于将封装之后的用户接入协议报文发送至宽带远程接入服务器控制平面BRAS-CP,以使BRAS-CP基于封装之后的用户接入协议报文中携带的用户接入信息进行验证;
接收模块504,用于接收BRAS-CP发送的封装之后的回复报文,封装之后的回复报文是BRAS-CP对用户接入信息进行验证之后,按照与用户接入协议报文相同的封装方式,基于用户接入信息对回复报文进行VXLAN GPE封装得到的。
综上所述,在本发明实施例中,BRAS-UP可以基于用户接入信息,对该用户接入协议报文进行VXLAN GPE封装,BRAS-CP可以基于该用户接入信息,对生成的回复报文进行VXLAN GPE封装。其中,该VXLAN GPE封装结构中VXLAN GPE头部的封装协议字段的数值为预设数值,该预设数值用于指示VXLAN GPE封装结构中包括用户信息头部,该用户信息头部用于存放该用户接入信息,且该用户信息头部位于指定字段之后且与指定字段相邻,该用户信息头部占用的字节数小于或等于12字节。由于在该VXLAN GPE封装结构中添加的用户信息头部的所占字节数小于或等于12字节,而未携带用户接入信息的NSH所占的最少字节数也得12字节,也即是,该用户信息头部所占的字节数将小于携带用户接入信息时NSH所占的字节数,因此,相对于相关技术中采用VXLAN GPE封装时引入NSH来携带用户接入信息,节省了封装开销。同时,对于某些采用高性能转发芯片的BRAS-UP和BRAS-CP,避免了由于封装后的报文头部过长导致的无法处理或者是处理难度加大的问题。另外,由于本发明实施例中提供的用户信息头部所占的字节数可以全部用于携带用户接入信息,因此,相对于采用NSH传输用户接入信息时,有至少12字节无法存放用户接入信息而言,提高了传输效率。
在对本发明实施例提供的基于BRAS系统的报文封装装置介绍之后,本发明实施例还提供了一种报文封装系统。该报文封装系统包括BRAS-UP和BRAS-CP,其中,该BRAS-UP可以包括多台BRAS设备,该BRAS-CP可以为一个专用的服务器或者是服务器集群;
BRAS-UP用于当接收到用户接入协议报文时,获取用户接入协议报文对应的用户接入信息;
BRAS-UP还用于基于用户接入信息,对用户接入协议报文进行虚拟可扩展局域网通用协议扩展VXLAN GPE封装,并将封装之后的用户接入协议报文发送至BRAS-CP;
其中,VXLAN GPE封装结构中包括VXLAN GPE头部,该VXLAN GPE头部的封装协议字段的数值为预设数值,该预设数值用于指示VXLAN GPE封装结构中包括用户信息头部,用户信息头部用于存放用户接入信息,且用户信息头部位于VXLAN GPE头部之后且与VXLAN GPE头部相邻,用户信息头部占用的字节数小于或等于12字节。
BRAS-CP用于当接收到封装之后的用户接入协议报文之后,对封装之后的用户接入协议报文进行解封装,得到用户接入信息和用户接入协议报文;
BRAS-CP还用于对用户接入信息进行验证,并在验证之后生成回复报文,按照与用户接入协议报文相同的封装方式,基于用户接入信息对回复报文进行封装,将封装之后的回复报文发送至BRAS-UP。
在本发明实施例中,BRAS-UP可以基于用户接入信息,对该用户接入协议报文进行VXLAN GPE封装,BRAS-CP可以基于该用户接入信息,对生成的回复报文进行VXLAN GPE封装。其中,该VXLAN GPE封装结构中VXLAN GPE头部的封装协议字段的数值为预设数值,该预设数值用于指示VXLAN GPE封装结构中包括用户信息头部,该用户信息头部用于存放该用户接入信息,且该用户信息头部位于指定字段之后且与指定字段相邻,该用户信息头部占用的字节数小于或等于12字节。由于在该VXLAN GPE封装结构中添加的用户信息头部的所占字节数小于或等于12字节,而未携带用户接入信息的NSH所占的最少字节数也得12字节,也即是,该用户信息头部所占的字节数将小于携带用户接入信息时NSH所占的字节数,因此,相对于相关技术中采用VXLAN GPE封装时引入NSH来携带用户接入信息,节省了封装开销。同时,对于某些采用高性能转发芯片的BRAS-UP和BRAS-CP,避免了由于封装后的报文头部过长导致的无法处理或者是处理难度加大的问题。另外,由于本发明实施例中提供的用户信息头部所占的字节数可以全部用于携带用户接入信息,因此,相对于采用NSH传输用户接入信息时,有至少12字节无法存放用户接入信息而言,提高了传输效率。
需要说明的是:上述实施例提供的基于BRAS系统的报文封装装置在进行报文封装时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的基于BRAS系统的报文封装装置与基于BRAS系统的报文封装方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如:同轴电缆、光纤、数据用户线(Digital Subscriber Line,DSL))或无线(例如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如:软盘、硬盘、磁带)、光介质(例如:数字通用光盘(Digital Versatile Disc,DVD))、或者半导体介质(例如:固态硬盘(Solid State Disk,SSD))等。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述为本申请提供的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (11)

  1. 一种基于BRAS系统的报文封装方法,其特征在于,所述方法包括:
    当接收到用户接入协议报文时,获取所述用户接入协议报文对应的用户接入信息;
    基于所述用户接入信息,对所述用户接入协议报文进行虚拟可扩展局域网通用协议扩展VXLAN GPE封装;
    其中,VXLAN GPE封装结构中包括VXLAN GPE头部,所述VXLAN GPE头部的封装协议字段的数值为预设数值,所述预设数值用于指示所述VXLAN GPE封装结构中包括用户信息头部,所述用户信息头部用于存放所述用户接入信息,且所述用户信息头部位于所述VXLAN GPE头部之后且与所述VXLAN GPE头部相邻,所述用户信息头部占用的字节数小于或等于12字节。
  2. 如权利要求1所述的方法,其特征在于,所述用户接入信息包括用户接入端口信息,所述用户信息头部包括第一字段,所述第一字段用于存放用户接入端口信息。
  3. 如权利要求2所述的方法,其特征在于,所述用户接入信息还包括用户接入协议报文的协议类型,所述用户信息头部还包括第二字段,所述第二字段用于指示所述用户接入协议报文的协议类型。
  4. 如权利要求2或3所述的方法,其特征在于,所述用户接入信息还包括用户接入协议报文的报文类型,所述用户信息头部还包括第三字段,所述第三字段用于指示所述用户接入协议报文的报文类型。
  5. 如权利要求1-4任一所述的方法,其特征在于,所述基于所述用户接入信息,对所述用户接入协议报文进行虚拟可扩展局域网通用协议扩展VXLAN GPE封装之后,还包括:
    将封装之后的用户接入协议报文发送至宽带远程接入服务器控制平面BRAS-CP,以使所述BRAS-CP基于所述封装之后的用户接入协议报文中携带的用户接入信息进行验证;
    接收所述BRAS-CP发送的封装之后的回复报文,所述封装之后的回复报文是所述BRAS-CP对所述用户接入信息进行验证之后,按照与所述用户接入协议报文相同的封装方式,基于所述用户接入信息对回复报文进行VXLAN GPE封装得到的。
  6. 一种基于BRAS系统的报文封装装置,其特征在于,所述装置包括:
    获取模块,用于当接收到用户接入协议报文时,获取所述用户接入协议报文对应的用户接入信息;
    封装模块,用于基于所述用户接入信息,对所述用户接入协议报文进行虚拟可扩展局域网通用协议扩展VXLAN GPE封装;
    其中,VXLAN GPE封装结构中包括VXLAN GPE头部,所述VXLAN GPE头部的封装协议字段的数值为预设数值,所述预设数值用于指示所述VXLAN GPE封装结构中包括用户 信息头部,所述用户信息头部用于存放所述用户接入信息,且所述用户信息头部位于所述VXLAN GPE头部之后且与所述VXLAN GPE头部相邻,所述用户信息头部占用的字节数小于或等于12字节。
  7. 如权利要求6所述的装置,其特征在于,所述用户接入信息包括用户接入端口信息,所述用户信息头部包括第一字段,所述第一字段用于存放用户接入端口信息。
  8. 如权利要求7所述的装置,其特征在于,所述用户接入信息还包括用户接入协议报文的协议类型,所述用户信息头部还包括第二字段,所述第二字段用于指示所述用户接入协议报文的协议类型。
  9. 如权利要求7或8所述的装置,其特征在于,所述用户接入信息还包括用户接入协议报文的报文类型,所述用户信息头部还包括第三字段,所述第三字段用于指示所述用户接入协议报文的报文类型。
  10. 如权利要求6-9任一所述的装置,其特征在于,所述装置还包括:
    发送模块,用于将封装之后的用户接入协议报文发送至宽带远程接入服务器控制平面BRAS-CP,以使所述BRAS-CP基于所述封装之后的用户接入协议报文中携带的用户接入信息进行验证;
    接收模块,用于接收所述BRAS-CP发送的封装之后的回复报文,所述封装之后的回复报文是所述BRAS-CP对所述用户接入信息进行验证之后,按照与所述用户接入协议报文相同的封装方式,基于所述用户接入信息对回复报文进行VXLAN GPE封装得到的。
  11. 一种报文封装系统,其特征在于,所述报文封装系统包括BRAS-UP和BRAS-CP;
    所述BRAS-UP用于当接收到用户接入协议报文时,获取所述用户接入协议报文对应的用户接入信息;
    所述BRAS-UP还用于基于所述用户接入信息,对所述用户接入协议报文进行虚拟可扩展局域网通用协议扩展VXLAN GPE封装,并将封装之后的用户接入协议报文发送至所述BRAS-CP;
    其中,VXLAN GPE封装结构中包括VXLAN GPE头部,所述VXLAN GPE头部的封装协议字段的数值为预设数值,所述预设数值用于指示所述VXLAN GPE封装结构中包括用户信息头部,所述用户信息头部用于存放所述用户接入信息,且所述用户信息头部位于所述VXLAN GPE头部之后且与所述VXLAN GPE头部相邻,所述用户信息头部占用的字节数小于或等于12字节;
    所述BRAS-CP用于当接收到所述封装之后的用户接入协议报文之后,对所述封装之后的用户接入协议报文进行解封装,得到所述用户接入信息和所述用户接入协议报文;
    所述BRAS-CP还用于对所述用户接入信息进行验证,并在验证之后生成回复报文,按照与所述用户接入协议报文相同的封装方式,基于所述用户接入信息对所述回复报文进行封装,将封装之后的回复报文发送至BRAS-UP。
PCT/CN2018/084945 2017-06-16 2018-04-27 基于bras系统的报文封装方法及装置 WO2018228069A1 (zh)

Priority Applications (8)

Application Number Priority Date Filing Date Title
EP18816807.4A EP3627773B1 (en) 2017-06-16 2018-04-27 Bras system-based message encapsulation method and device
EP22187035.5A EP4142224A1 (en) 2017-06-16 2018-04-27 Bras system-based packet encapsulation method and apparatus
KR1020207001119A KR102388195B1 (ko) 2017-06-16 2018-04-27 Bras 시스템 기반 메시지 패키징 방법 및 장치
JP2019569742A JP6982104B2 (ja) 2017-06-16 2018-04-27 Brasシステムベースのパケットカプセル化方法および装置
US16/714,037 US11018892B2 (en) 2017-06-16 2019-12-13 Broadband remote access server (BRAS) system-based packet encapsulation
US17/313,242 US11606223B2 (en) 2017-06-16 2021-05-06 Broadband remote access server (BRAS) system-based packet encapsulation
JP2021188039A JP7282146B2 (ja) 2017-06-16 2021-11-18 Brasシステムベースのパケットカプセル化方法および装置
US18/172,597 US11909551B2 (en) 2017-06-16 2023-02-22 Broadband remote access server (BRAS) system-based packet encapsulation

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710459385.1 2017-06-16
CN201710459385.1A CN109150673B (zh) 2017-06-16 2017-06-16 基于bras系统的报文封装方法、装置及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/714,037 Continuation US11018892B2 (en) 2017-06-16 2019-12-13 Broadband remote access server (BRAS) system-based packet encapsulation

Publications (1)

Publication Number Publication Date
WO2018228069A1 true WO2018228069A1 (zh) 2018-12-20

Family

ID=64659827

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084945 WO2018228069A1 (zh) 2017-06-16 2018-04-27 基于bras系统的报文封装方法及装置

Country Status (6)

Country Link
US (3) US11018892B2 (zh)
EP (2) EP4142224A1 (zh)
JP (2) JP6982104B2 (zh)
KR (1) KR102388195B1 (zh)
CN (2) CN111490923B (zh)
WO (1) WO2018228069A1 (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108259632B (zh) * 2017-05-24 2020-02-11 新华三技术有限公司 一种cgn实现方法及装置
CN109412922B (zh) * 2017-08-15 2021-07-20 华为技术有限公司 一种传输报文的方法、转发设备、控制器及系统
CN111431787B (zh) * 2019-01-10 2022-02-11 中国移动通信有限公司研究院 一种隧道建立方法、装置及计算机可读存储介质
FR3092461A1 (fr) * 2019-02-05 2020-08-07 Orange Procédé d’émission à deux protocoles, procédé de réception et dispositifs et signal correspondants.
CN110830310B (zh) * 2019-11-28 2022-04-26 新华三大数据技术有限公司 一种跨数据中心的灾难备份方法及bras系统
CN113067756A (zh) * 2020-01-02 2021-07-02 中国移动通信有限公司研究院 信息传输方法、装置、控制器及接入设备
CN112511483A (zh) * 2020-03-02 2021-03-16 中兴通讯股份有限公司 一种数据转发方法、设备和存储介质
CN114006860B (zh) * 2020-07-14 2023-12-22 中国电信股份有限公司 用户接入方法、系统和装置
CN112887127B (zh) * 2021-01-12 2022-05-13 烽火通信科技股份有限公司 一种vBRAS设备及实现转控分离的方法
CN112929284A (zh) * 2021-01-29 2021-06-08 烽火通信科技股份有限公司 一种IPv6 VXLAN场景下的ND报文识别方法与系统
US20230198946A1 (en) * 2021-12-21 2023-06-22 Cisco Technology, Inc. Predictive policy enforcement using encapsulated metadata

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230668A (zh) * 2016-07-14 2016-12-14 杭州华三通信技术有限公司 接入控制方法及装置
US20170111209A1 (en) * 2015-10-20 2017-04-20 Cisco Technology, Inc. Triggered in-band operations, administration, and maintenance in a network environment

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4583456B2 (ja) 2005-02-14 2010-11-17 テレフオンアクチーボラゲット エル エム エリクソン(パブル) アクセスドメイン上でデータトラフィックのブリッジングを行う方法、およびノード
CN102611634A (zh) * 2012-04-20 2012-07-25 杭州华三通信技术有限公司 一种接入ip网络的方法和边缘设备
CN104660571A (zh) * 2013-11-25 2015-05-27 上海益尚信息科技有限公司 一种数据包封装控制用户设备接入的方法及装置
US9548896B2 (en) * 2013-12-27 2017-01-17 Big Switch Networks, Inc. Systems and methods for performing network service insertion
US9634936B2 (en) * 2014-06-30 2017-04-25 Juniper Networks, Inc. Service chaining across multiple networks
US9509527B2 (en) * 2014-06-30 2016-11-29 Arista Networks, Inc. Method and system for VXLAN encapsulation offload
CN105721359B (zh) * 2014-12-04 2019-11-15 中兴通讯股份有限公司 Vxlan报文传输方法及装置
CN104993993B (zh) * 2015-05-13 2018-06-15 华为技术有限公司 一种报文处理方法、设备和系统
US10637889B2 (en) * 2015-07-23 2020-04-28 Cisco Technology, Inc. Systems, methods, and devices for smart mapping and VPN policy enforcement
CN106559292B (zh) * 2015-09-29 2020-03-06 新华三技术有限公司 一种宽带接入方法和装置
CN105763416B (zh) * 2016-04-27 2019-06-11 新华三技术有限公司 一种数据传输方法及控制器
CN106789527B (zh) * 2016-12-09 2020-03-03 中国联合网络通信集团有限公司 一种专线网络接入的方法及系统
US10243840B2 (en) 2017-03-01 2019-03-26 Juniper Networks, Inc. Network interface card switching for virtual networks
CN108462683B (zh) * 2017-08-03 2020-04-03 新华三技术有限公司 认证方法和装置
US10887230B2 (en) * 2018-02-27 2021-01-05 Cisco Technology, Inc. In-situ operations, administration, and management (IOAM) and network event correlation for internet of things (IOT)

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170111209A1 (en) * 2015-10-20 2017-04-20 Cisco Technology, Inc. Triggered in-band operations, administration, and maintenance in a network environment
CN106230668A (zh) * 2016-07-14 2016-12-14 杭州华三通信技术有限公司 接入控制方法及装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
F. MAINO ET AL.: "Generic Protocol Extension for VXLAN draft-ietf-nvo3-vxlan-gpe-04", 27 April 2017 (2017-04-27), pages 4 - 15, XP015119362 *

Also Published As

Publication number Publication date
CN111490923B (zh) 2021-10-01
CN111490923A (zh) 2020-08-04
JP2022033791A (ja) 2022-03-02
EP3627773B1 (en) 2022-08-10
EP4142224A1 (en) 2023-03-01
US11018892B2 (en) 2021-05-25
US20210258183A1 (en) 2021-08-19
US20200119941A1 (en) 2020-04-16
US11909551B2 (en) 2024-02-20
CN109150673B (zh) 2020-04-03
US20230198797A1 (en) 2023-06-22
JP6982104B2 (ja) 2021-12-17
CN109150673A (zh) 2019-01-04
KR102388195B1 (ko) 2022-04-19
EP3627773A1 (en) 2020-03-25
US11606223B2 (en) 2023-03-14
JP7282146B2 (ja) 2023-05-26
KR20200015757A (ko) 2020-02-12
EP3627773A4 (en) 2020-07-22
JP2020524443A (ja) 2020-08-13

Similar Documents

Publication Publication Date Title
WO2018228069A1 (zh) 基于bras系统的报文封装方法及装置
US11283650B2 (en) Method for sending virtual extensible local area network packet, computer device, and computer readable medium
US10205657B2 (en) Packet forwarding in data center network
JP6034979B2 (ja) パケット転送方法と装置及びデータセンターネットワーク
WO2019205952A1 (zh) 一种信息处理方法及装置
WO2017133647A1 (zh) 一种报文处理方法、流分类器和业务功能实例
WO2019011203A1 (zh) 设备接入方法、设备及系统
US11588665B2 (en) VXLAN packet encapsulation and policy execution method, and VXLAN device and system
WO2014134919A1 (zh) 同一租户内服务器间的通信控制方法及网络设备
WO2021083332A1 (zh) 发送报文的方法、装置及系统
WO2012088901A1 (zh) 一种虚拟局域网的分配方法以及相关装置
JP2020522190A (ja) パケット転送
CN109246016B (zh) 跨vxlan的报文处理方法和装置
TWI735633B (zh) 資料傳輸的方法、設備、裝置及系統
WO2021139568A1 (zh) 发送应答报文的方法、装置、计算设备和存储介质
CN108934058B (zh) 一种通信方法及装置
CN114157684A (zh) 一种报文处理的方法、设备以及存储介质
JP7211409B2 (ja) ノード、制御システム、通信制御方法及びプログラム
US11909624B2 (en) Communication method, apparatus, device, system, and computer-readable storage medium
US20230179688A1 (en) Variable Frame Headers

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: 18816807

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019569742

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2018816807

Country of ref document: EP

Effective date: 20191219

ENP Entry into the national phase

Ref document number: 20207001119

Country of ref document: KR

Kind code of ref document: A