Communication Method and Device
By implementing packet interaction between AP, AC and GW in the campus network, the access point SRv6 Locator is automatically configured, which solves the heavy and complexity of manual configuration, and realizes the effective deployment of SRv6 technology and the optimization of campus network.
Patent Information
- Application Number
- CN202211015285.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2042-08-23
AI Technical Summary
In campus networks, the application of SRv6 technology is limited by the layer two links, which makes it impossible to achieve end-to-end SRv6 deployment and application-based end-to-end network engineering. The workload of managers to manually configure access points SRv6 Locator is huge and complex.
Through packet interaction between AP, AC and GW, the access point SRv6 Locator is automatically configured. The specific steps include the AP sending SRv6-capable packets to the AC, the AC assigns the Locator value to the AP, the AP exchanges the Locator value with the GW, and generates a location route.
It realizes automatic configuration of access point SRv6 Locator, avoiding the heavy and complexity of manual configuration by managers, and supports the effective deployment of SRv6 technology and the optimization of campus network.
Smart Images

Figure CN115499888B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technologies, and in particular, to a communication method and apparatus. Background Art
[0002] Internet Protocol Version 6 (IPv6) Segment Routing (SRv6) means implementing SR based on the IPv6 forwarding plane.
[0003] The encapsulation format of an SRv6 packet is: encapsulating a new IPv6 basic header and a Segment Routing Header (SRH) in front of the original data packet; or inserting an SRH into the IPv6 header of the IPv6 packet. Among them, the SRH includes the segment identifiers (SIDs) of all segments that the forwarding path needs to pass through, that is, the SID list. The SID can be used to define a certain network function, represent a certain network instruction, and is in the form of an IPv6 address, which does not correspond to the interface address on any device.
[0004] SRv6 provides a flexible and efficient control means for the network, with the characteristics of simple deployment and easy expansion, and can better implement traffic scheduling and path optimization, ensure the quality of critical services, balance traffic distribution, improve the utilization rate of dedicated lines, and reduce line costs.
[0005] Currently, the SRv6 technology can be used in campus networks, such as Figure 1 shown Figure 1 is a schematic diagram of a WLAN campus network. In Figure 1 , the Leaf node is a three-layer network gateway node, and its connection with the access point AP is usually a layer-2 link. When the campus network evolves to SRv6, if the layer-2 link is maintained technically, the technical advantages of SRv6 will be reduced. For example, the end-to-end deployment of SRv6 cannot be completed; it is not convenient to implement application-based end-to-end network engineering.
[0006] To implement SRv6 on the Layer 2 link between the three-layer gateway node and the access point, a full static configuration scheme can be adopted, that is, the administrator manually configures SRv6 Locators for each access point accessing the three-layer gateway node and the three-layer gateway node respectively, and the SRv6 Locators of each access point are different. In the WLAN wireless environment, an Access Controller (AC) controls hundreds or thousands of Access Points (APs). Relying solely on the administrator to manually configure the SRv6 Locator of the access point is a huge workload and the configuration is complex. Summary of the Invention
[0007] In view of this, the present application provides a communication method and device to solve the problem that when the SRv6 technology is applied in the campus network, it is necessary to automatically configure the SRv6 Locator of the access point, and avoid the problem that the configuration work is heavy and complex due to the administrator manually configuring the SRv6 Locator of the access point.
[0008] In a first aspect, the present application provides a communication method, which is applied to an AP. The AP accesses a GW and is managed by an AC. The method includes:
[0009] Sending a first message to the AC, the first message including an SRv6 support information element, and the SRv6 support information element including a first function value indicating that the AP supports SRv6;
[0010] Receiving a second message sent by the AC after determining that the AP supports SRv6 according to the first function value. The second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value assigned by the AC to the AP;
[0011] Sending a third message to the GW, the third message including a first SRv6 location option, and the first SRv6 location option including the first Locator value, so that the GW generates a first location route to the AP according to the first Locator value;
[0012] Receiving a fourth message sent by the GW, the fourth message including a second SRv6 location option, and the second SRv6 location option including a second Locator value of the GW;
[0013] Generating a second location route to the GW according to the second Locator value.
[0014] In a second aspect, the present application provides a communication method, which is applied to an AC. The method includes:
[0015] Receive a first message sent by a managed AP, where the first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6;
[0016] Determine that the AP supports SRv6 according to the first function value;
[0017] If a configuration request sent by the AP is received and it is determined that SRv6 should be configured in the AP, send a second message to the AP, where the second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value assigned by the AC to the AP, so that the AP sends a third message to an accessed GW, and the third message includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value.
[0018] In a third aspect, the present application provides a communication method, which is applied to a GW, an AP has accessed the GW and is managed by an AC, and the method includes:
[0019] Receive the third message sent by the AP, where the third message includes a first SRv6 location option, and the first SRv6 location option includes a first Locator value assigned by the AC to the AP;
[0020] Send a fourth message to the AP, where the fourth message includes a second SRv6 location option, and the second SRv6 location option includes a second Locator value of the GW, so that the AP generates a second location route to the GW according to the second Locator value;
[0021] Generate a first location route to the AP according to the first Locator value.
[0022] In a fourth aspect, the present application provides a communication device, which is applied to an AP, the AP accesses a GW and is managed by an AC, and the device includes:
[0023] A sending unit, configured to send a first message to the AC, where the first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6;
[0024] A receiving unit, configured to receive a second message sent by the AC after determining that the AP supports SRv6 according to the first function value, where the second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value assigned by the AC to the AP;
[0025] The sending unit is further configured to send a third message to the GW, where the third message includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value, so that the GW generates a first location-based route to the AP according to the first Locator value;
[0026] The receiving unit is further configured to receive a fourth message sent by the GW, where the fourth message includes a second SRv6 location option, and the second SRv6 location option includes the second Locator value of the GW;
[0027] The generating unit is configured to generate a second location-based route to the GW according to the second Locator value.
[0028] In a fifth aspect, the present application provides a communication device, which is applied to an AC, and the device includes:
[0029] A receiving unit, configured to receive a first message sent by a managed AP, where the first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6;
[0030] A determining unit, configured to determine that the AP supports SRv6 according to the first function value;
[0031] A sending unit, configured to, if the receiving unit receives a configuration request sent by the AP and determines that SRv6 should be configured in the AP, send a second message to the AP, where the second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value allocated by the AC for the AP, so that the AP sends a third message to the accessed GW, and the third message includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value.
[0032] In a sixth aspect, the present application provides a communication device, which is applied to a GW and is managed by an AC, and an AP has accessed the GW, and the device includes:
[0033] A receiving unit, configured to receive a third message sent by the AP, where the third message includes a first SRv6 location option, and the first SRv6 location option includes a first Locator value allocated by the AC for the AP;
[0034] A sending unit, configured to send a fourth message to the AP, where the fourth message includes a second SRv6 location option, and the second SRv6 location option includes a second Locator value of the GW, so that the AP generates a second location route to the GW according to the second Locator value;
[0035] A generating unit, configured to generate a first location route to the AP according to the first Locator value.
[0036] In a seventh aspect, the present application provides a network device, including a processor and a machine-readable storage medium. The machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to execute the method provided in the first aspect of the present application.
[0037] In an eighth aspect, the present application provides a network device, including a processor and a machine-readable storage medium. The machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to execute the method provided in the second aspect of the present application.
[0038] In a ninth aspect, the present application provides a network device, including a processor and a machine-readable storage medium. The machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to execute the method provided in the third aspect of the present application
[0039] Therefore, by applying the communication method and device provided in the present application, the AP sends a first message to the AC, and the first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6; the AP receives a second message sent by the AC after determining that the AP supports SRv6 according to the first function value, and the second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value of the AP allocated by the AC for the AP; the AP sends a third message to the GW, and the third message includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value, so that the GW generates a first location route to the AP according to the first Locator value; the AP receives a fourth message sent by the GW, and the fourth message includes a second SRv6 location option, and the second SRv6 location option includes a second Locator value of the GW; according to the second Locator value, the AP generates a second location route to the GW.
[0040] In this way, through the message interaction between the AP and the AC, and between the AP and the GW, the AC assigns different Locator values to each AP under its management. The AP and the GW exchange their respective Locator values and Function values, and generate a Locator route to the peer end. This solves the problem that the manual configuration of the access point SRv6 Locator by the management personnel is heavy and complex, and realizes the deployment of WLAN wireless services based on the emerging SRv6 technology, so as to make full use of the advantages brought by the SRv6 technology. Description of the Drawings
[0041] Figure 1 It is a schematic diagram of an existing campus network;
[0042] Figure 2 It is a flowchart of a communication method provided by an embodiment of the present application;
[0043] Figure 3 It is a schematic diagram of a campus network provided by an embodiment of the present application;
[0044] Figure 4 It is a schematic diagram of the SRv6 support information element format provided by an embodiment of the present application;
[0045] Figure 5 It is a schematic diagram of the SRv6 location information element format provided by an embodiment of the present application;
[0046] Figure 6 It is a schematic diagram of the SRv6 location option format provided by an embodiment of the present application;
[0047] Figure 7 It is a flowchart of another communication method provided by an embodiment of the present application;
[0048] Figure 8 It is a flowchart of yet another communication method provided by an embodiment of the present application;
[0049] Figure 9 It is a structural diagram of a communication device provided by an embodiment of the present application;
[0050] Figure 10 It is a structural diagram of another communication device provided by an embodiment of the present application;
[0051] Figure 11 It is a structural diagram of yet another communication device provided by an embodiment of the present application;
[0052] Figure 12 It is the hardware structure of a network device provided by an embodiment of the present application. Detailed Embodiments
[0053] Exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.
[0054] The terms used in the present application are for the purpose of describing particular embodiments only and are not intended to limit the present application. The singular forms "a", "the", and "said" used in the present application and the appended claims are also intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
[0055] It should be understood that although the terms first, second, third, etc. may be used in the present application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "when" or "while" or "in response to determining".
[0056] A communication method provided by an embodiment of the present application will be described in detail below. Refer to Figure 2 , Figure 2 which is a flowchart of a communication method provided by an embodiment of the present application. This method is applied to an AP. The communication method provided by the embodiment of the present application may include the following steps.
[0057] Step 210: Send a first message to the AC, where the first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6;
[0058] Specifically, as Figure 3 shown, Figure 3 is a schematic diagram of a campus network provided by an embodiment of the present application. In Figure 3 there are network devices such as an AP, an AC, a three-layer gateway (abbreviation: GW), and a core switch. The number of the above network devices is multiple in an actual network deployment. For the purpose of describing the provided communication method in the embodiment of the present application, the number of the above network devices is simplified to one.
[0059] The dotted lines and arrows in the figure indicate the process of a network device at one end sending packets to a network device at the other end. The process of sending each packet will be described accordingly later.
[0060] Configure a Layer 3 interface on the AP. This Layer 3 interface is used for SRv6 service forwarding to the GW. This Layer 3 interface enables automatic IPv6 address configuration. Through stateless autoconfiguration with the GW using ND, an IPv6 address is obtained. In the embodiment of this application, assume that the Layer 3 interface is interface VLAN 4092.
[0061] According to the existing CAPWAP protocol regulations, after the AP selects one management AC from multiple ACs, the AP enters the stage of establishing a CAPWAP tunnel with the selected AC (hereinafter referred to as the AC for short).
[0062] The AP generates and sends a first packet to the AC. This first packet includes an SRv6 support information element (SRv6 Support message element). The SRv6 support information element includes a first function value indicating that the AP supports the SRv6.
[0063] Among them, the first packet can specifically be a Join Request stipulated by the existing CAPWAP protocol. In the embodiment of this application, a new TLV structure is added to the existing Join Request. This TLV structure carries the SRv6 support information element.
[0064] As Figure 4 shown, Figure 4 is a schematic diagram of the SRv6 support information element format provided by the embodiment of this application. In Figure 4 , the SRv6 support information element includes a Type field, a Length field, and a Function Type (Func Type) field. The Type field and the Length field each occupy 1 byte. The value of the Type field is a value to be assigned by the standard organization. For example: 60; The Function Type field (which can be called the first function type field here) is the value field of the TLV structure and is used to carry the first function value.
[0065] The embodiment of this application defines two types of first function values. The first type: The first function value is the VLAN identifier to which the AP belongs. This VLAN identifier is used to indicate that there is a service VLAN division within the AP and is used to indicate the SID type. The second type: The first function value is a fixed value. For example: 1. This fixed value is used to indicate that there is no service VLAN division within the AP and is used to indicate the SID type.
[0066] Among them, the above SID types are all End.DT2U. End.DT2U is used to indicate that the network device performs decapsulation processing on service packets and performs layer 2 or layer 3 forwarding according to the destination MAC address included in the inner packet after decapsulation. This SID type is a SID type specified by the existing SRv6 protocol and will not be elaborated here.
[0067] It can be understood that the above join request still executes the service that the AP requests the AC to provide through this packet as specified by the existing CAPWAP protocol. For example, the AP requests to establish a CAPWAP tunnel with the AC.
[0068] After receiving the join request, the AC checks whether it can provide the requested service for the AP. If the AC can provide the requested service for the AP, the AC generates and sends a Join Response to the AP. The AC returns the check result to the AP through the Result Code field included in the join response and completes the establishment of the CAPWAP tunnel.
[0069] At the same time, the AC also obtains the SRv6 support information element from the join request and obtains the first function value from the SRv6 support information element. According to the first function value, the AC determines that the AP has the ability to support SRv6.
[0070] After receiving the join response, the AP obtains the detection result of the AC from the join response and completes the establishment of the CAPWAP tunnel.
[0071] After the AP and the AC complete the establishment of the CAPWAP tunnel, the AP enters the software version download stage. The AP downloads the software version of the AP from the AC through the CAPWAP tunnel. Then, the AP enters the download configuration stage.
[0072] The AP generates and sends a Configuration Status Request to the AC to request the AC to send the corresponding configuration to it. For example, CAPWAP Timers, Decryption Error Report Period, AC IPv4List, AC IPv6 List, Vendor Specific Payload, etc.
[0073] Step 220: Receive a second packet sent by the AC after determining that the AP supports SRv6 according to the first function value. The second packet includes an SRv6 Locator information element, and the SRv6 Locator information element includes a first Locator value assigned by the AC to the AP;
[0074] Specifically, after the AC receives the configuration status request, it obtains the configuration information requested by the AP from the configuration status request. According to the configuration information, it updates the corresponding local configuration. The AC generates and sends a second message to the AP, and the second message includes the updated configuration information.
[0075] Meanwhile, according to the description in step 210, it can be known that the AC has previously determined that the AP has the ability to support SRv6 through the join request. After the AC receives the configuration status request, if the AC wants to deploy SRv6 within the AP, the second message further includes an SRv6 Locator message element, and the SRv6 Locator message element includes the first Locator value assigned by the AC to the AP.
[0076] It should be noted that when the AC assigns the first Locator value to the AP, it needs to assign different first Locator values to each AP under its management. In the embodiment of the present application, it is described by taking the AC managing one AP as an example. In actual applications, when the AC manages hundreds or thousands of APs, it needs to assign different first Locator values to each AP.
[0077] The second message can specifically be a ConfigurationStatus Response specified by the existing CAPWAP protocol. As Figure 5 shown, Figure 5 is a schematic diagram of the format of the SRv6 Locator message element provided by the embodiment of the present application.
[0078] In Figure 5 the SRv6 Locator message element includes a Type field, a Length field, a Locator Size field, a Function Type field, and a Locator field. The Type field and the Length field each occupy 1 byte, and the value of the Type field is a value to be assigned by the standard organization, for example: 61; the Locator Size field and the Function Type field each occupy 1 octet (i.e., 8 bits). The Locator Size field is used to indicate the number of bits of the Locator (1 - 128). The content and type carried by the Function Type field are the same as the content and type carried by the aforementioned first Function Type field, and will not be repeated here, that is, it is used to carry the first function value. The Locator field occupies 1 - 16 octets, indicating the minimum number of bytes of the Locator, and the trailing spare bits are filled with 0.
[0079] It can be understood that after the AP obtains the first Locator value, it can generate a local Local SID entry, form its own SID, and add a forwarding entry corresponding to the Local SID entry to the local FIB6 table according to the foregoing first function value and the first Locator value.
[0080] Optionally, according to the first function value and the first Locator value, the AP generates a local first Local SID entry, which includes a Locator field, a function operation instruction field, and a function type field. As shown in Table 1 below.
[0081] Table 1 First Local SID Entry
[0082]
[0083]
[0084] Among them, the Locator field stores the first Locator value, the function operation instruction field stores the first function value, and the function type field stores the SID type indicated by the first function value.
[0085] According to the description in the foregoing step 210, the first function value includes two types. When generating the Local SID entry, two corresponding entries are generated. As shown in Tables 2 and 3 below. Table 2 is the first function value with business VLAN division in the AP; Table 3 is the first function value without business VLAN division in the AP.
[0086] Table 2 First Local SID Entry
[0087] Locator field Functional operation instruction field Function type field A0:B0:01:02:: / 64 VLAN xxxx End-DT2U
[0088] Table 3 First Local SID Entry
[0089] Locator field Functional operation instruction field Function type field A0:B0:01:02:: / 64 1 End-DT2U
[0090] After the AP generates the first Local SID entry, in the local forwarding information table (FIB6), a first forwarding entry corresponding to the first Local SID entry is added. The first forwarding entry includes a destination address field, a next hop field, an output interface field, and a marking field. As shown in Table 4 below.
[0091] Table 4 First Forwarding Entry
[0092] Destination address field Next hop field Output interface field Tag field SID of AP 127.0.0.1 Internal loopback interface Temporarily noted as F
[0093] Among them, the destination address field stores the SID of the AP, and the SID of the AP is composed of the first Locator value and the first function value. The next-hop field, the outgoing interface field, and the label field all store preset values (which can also be called special values), and the preset value stored in the label field is used to indicate that the received SRv6 packet is to be processed by SRv6 forwarding.
[0094] The first Local SID entry may also exist in the local forwarding information table.
[0095] Step 230: Send a third packet to the GW. The third packet includes a first SRv6 locator option, and the first SRv6 locator option includes the first Locator value, so that the GW generates a first locator route to the AP according to the first Locator value.
[0096] Specifically, according to the description of step 220, after the AP obtains the first Locator value, while performing the optional processes involved in step 220, it also generates and sends a third packet to the sending GW. The third packet includes a first SRv6 locator option (SRv6 Locator option), and the first SRv6 locator option includes the aforementioned first Locator value.
[0097] It can be understood that the first SRv6 locator option also includes the aforementioned first function value. The first function value and the first Locator value can form the SID of the AP.
[0098] Among them, the third packet can specifically be a Router Solicitation (abbreviated as RS) stipulated by the existing IPv6 ND protocol. In the embodiment of the present application, an option is added to the existing Router Solicitation, and the added option carries the SRv6 locator option.
[0099] Such as Figure 6 shown, Figure 6 is a schematic diagram of the SRv6 locator option format provided by the embodiment of the present application. In Figure 6Among them, the SRv6 locator option includes a Type field, a Length field, a Locator Size field, a function type field, and a Locator field. The Type field, the Locator Size field, and the function type field each occupy 1 octet (i.e., 8 bits). The value of the Type field is to be assigned by the standard organization. For example: 140. The Locator Size field is used to indicate the number of bits of the Locator (1 - 128). The content and type carried by the function type field are the same as those carried by the aforementioned first function type field, and will not be repeated here, that is, it is used to carry the first function value; the Length field is the length of the variable option, including the Type field and the Length field, and occupies 8 octets; the Locator field occupies 1 - 16 octets, indicating the minimum number of bytes of the Locator, and the trailing spare bits are filled with 0.
[0100] After the GW receives the third packet, it obtains the first SRv6 locator option from the third packet, and obtains the first Locator value from the first SRv6 locator option.
[0101] The GW obtains the first Locator value of the AP, generates and sends a fourth packet to the AP. The fourth packet includes a second SRv6 locator option, and the second SRv6 locator option includes the second Locator value of the GW.
[0102] It can be understood that the second SRv6 locator option also includes the second function value of the GW. The second function value and the second Locator value can form the SID of the GW.
[0103] Using the first Locator value, the GW generates a first locator route to the AP, that is, the first Locator route. In subsequent embodiments, the process of the GW generating the first locator route will be described and will not be repeated here.
[0104] Step 240: Receive the fourth packet sent by the GW. The fourth packet includes a second SRv6 locator option, and the second SRv6 locator option includes the second Locator value that constitutes the GW.
[0105] Specifically, according to the description of step 230, the GW generates and sends a fourth packet to the AP. After the AP receives the fourth packet, it obtains the second SRv6 locator option from the fourth packet, and obtains the second Locator value of the GW from the second SRv6 locator option.
[0106] Among them, the fourth message can specifically be the Router Advertisement (abbreviated as RA for short) stipulated by the existing IPv6 ND protocol. In the embodiment of the present application, an option is added to the existing Router Advertisement, and the added option carries the SRv6 positioning option.
[0107] It can be understood that the structure of the second SRv6 positioning option is the same as that of the first SRv6 positioning option described in step 230, and will not be repeated here. The second SRv6 positioning option includes a second function type field and a second positioning field. The second function type field carries a second function value, and the second positioning field carries a second Locator value.
[0108] Step 250: Generate a second positioning route to the GW according to the second Locator value.
[0109] Specifically, according to the description in step 240, after the AP obtains the second Locator value, it generates a second positioning route to the GW.
[0110] Optionally, the AP generates a second positioning route to the GW according to the second Locator value. The specific process is as follows:
[0111] The AP obtains the MAC address and IPv6 address of the GW from the local. Among them, the MAC address and IPv6 address of the GW can be obtained during the process of ND stateless automatic configuration of the IPv6 address with the GW. According to the MAC address, IPv6 address of the GW and the second Locator value, the AP generates a first positioning entry. The first positioning entry includes a MAC address field, an IPv6 address field, and a Locator field.
[0112] Among them, the MAC address field stores the MAC address of the GW, the IPv6 address field stores the IPv6 address of the upper three-layer interface VLAN 4092 on the GW (this IPv6 address is the link-local address of VLAN 4092), and the Locator field stores the second Locator value. The upper three-layer interface VLAN 4092 on the GW is docked with the upper three-layer interface VLAN 4092 on the AP. As shown in Table 5 below.
[0113] Table 5 First positioning entry
[0114] MAC address field IPv6 address field Locator field ACD5-D447-0702 A:B:C:D:AED5:D4FF:FE47:702 A0:B0:01:01:: / 64
[0115] Using the first positioning table entry, the AP generates a second positioning route (herein referred to as the second positioning route, and the positioning route generated in the GW to reach the AP is referred to as the first positioning route), and the second positioning route includes a destination address field, a next hop field, and an outbound interface field. Among them, the destination address field stores the second Locator value, the next hop field stores the IPv6 address of the Layer 3 interface VLAN 4092 on the GW, and the outbound interface field stores the identifier of the AP local Layer 3 interface connected to the IPv6 address of the GW. As shown in Table 6 below.
[0116] Table 6 Second positioning route
[0117] Destination address field (GW Locator) Next hop field (NextHop) Output interface (Interface) A0:B0:01:01:: / 64 A:B:C:D:AED5:D4FF:FE47:702 VLAN 4092
[0118] Among them, the outbound interface VLAN 4092 is the Layer 3 interface on the AP that sends and receives RS and RA with the GW.
[0119] It is understandable that after the AP generates the first forwarding table entry and the second positioning route, it can perform table lookup, encapsulation, and decapsulation processing on the service message according to the existing forwarding process, and then forward it. This is only briefly described here.
[0120] For example, the AP receives a first service message sent by a terminal, the service message includes a destination MAC address, a source MAC address, a VLAN tag, and an inner message, wherein the destination MAC address is the MAC address of the GW, the source MAC address is the MAC address of the terminal, and the inner message is an IP message.
[0121] If the AP recognizes that the destination MAC address is different from its own MAC address, the AP performs Layer 2 forwarding on the first service message. Based on the destination MAC address, the AP searches the local MAC table and determines from the local MAC table that the first service message needs to be forwarded to the GW through the SRv6 tunnel (the SRv6 tunnel may not have an explicit tunnel interface, but SRv6 forwarding can be implemented during the forwarding process). Based on the destination address of the SRv6 tunnel, the AP searches for the positioning route and obtains the next hop and outgoing interface from the positioning route.
[0122] The AP first encapsulates an IPv6 header in the outer layer of the first service message. The IPv6 header includes a source IP address and a destination IP address.
[0123] The source IP address is the SID of the AP, the Locator value of the SID is the Locator value of the AP, and the Function value of the SID is the VLAN ID assigned to the AP. The destination IP address is the SID of the GW, the Locator value of the SID is the Locator value of the GW, and the Function value of the SID is the VLAN ID assigned to the GW.
[0124] The AP encapsulates the destination MAC address, source MAC address, and VLAN tag again in the outer layer of the IPv6 header to obtain a second service packet. Among them, the destination MAC address is the MAC address of the corresponding interface on the GW, the source MAC address is the MAC address of the AP, and the VLAN tag is the VLAN identifier to which the outgoing interface belongs.
[0125] The AP forwards the second service packet to the three-layer interface on the GW through the SRv6 tunnel.
[0126] Similarly, after the AP receives the first service packet sent by the GW through the SRv6 tunnel, it looks up the local FIB6 table according to the destination IP address included in the first service packet. If the corresponding forwarding entry is found, the next hop, outgoing interface, and label are obtained from the forwarding entry. According to the label, the AP determines to perform SRv6 forwarding processing on the received first service packet.
[0127] At the same time, the AP also obtains the corresponding Local SID entry from the FIB6 table. The function type, that is, End-DT2U, is obtained from the Local SID entry. According to the indication of End-DT2U, the AP performs decapsulation processing on the IPv6 header of the first service packet to obtain a third service packet.
[0128] The AP identifies the destination MAC address included in the third service packet and forwards it according to the destination MAC address.
[0129] Therefore, by applying the communication method provided in this application, the AP sends a first packet to the AC, and the first packet includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6; the AP receives a second packet sent by the AC after determining that the AP supports SRv6 according to the first function value, and the second packet includes an SRv6 positioning information element, and the SRv6 positioning information element includes a first Locator value of the AP assigned by the AC to the AP; the AP sends a third packet to the GW, and the third packet includes a first SRv6 positioning option, and the first SRv6 positioning option includes the first Locator value, so that the GW generates a first positioning route to the AP according to the first Locator value; the AP receives a fourth packet sent by the GW, and the fourth packet includes a second SRv6 positioning option, and the second SRv6 positioning option includes a second Locator value of the GW; according to the second function value and the second Locator value, the AP generates a second positioning route to the GW.
[0130] In this way, through the message interaction between the AP and the AC, and between the AP and the GW, the AC assigns different Locator values to each managed AP. The AP and the GW exchange their respective Locator values and Function values, and generate a Locator route to the peer end. This solves the problem that the manual configuration of the access point SRv6 Locator by the management personnel is heavy and complex, and realizes the deployment of WLAN wireless services based on the emerging SRv6 technology, so as to make full use of the advantages brought by the SRv6 technology.
[0131] Next, another communication method provided by the embodiments of the present application will be described in detail. Refer to Figure 7 , Figure 7 which is a flowchart of another communication method provided by the embodiments of the present application. This method is applied to the AC. The communication method provided by the embodiments of the present application may include the following steps.
[0132] Step 710: Receive a first message sent by a managed AP. The first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6.
[0133] Step 720: Determine that the AP supports SRv6 according to the first function value.
[0134] Step 730: If a configuration request sent by the AP is received and it is determined that SRv6 should be configured in the AP, send a second message to the AP. The second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value assigned by the AC to the AP, so that the AP sends a third message to the accessed GW. The third message includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value.
[0135] It can be understood that in the foregoing steps 210 and 220 of the embodiment, the process of how the AP and the AC interact with the first message and the second message and how the AC assigns the first Locator value to the AP has been described in detail, and will not be repeated here.
[0136] Optionally, the SRv6 support information element includes a first function type field, and the first function type field carries the first function value.
[0137] The SRv6 location information element includes a first function type field and a first location field. The first function type field carries the first function value, and the first location field carries the first Locator value.
[0138] Optionally, the first function value is the VLAN identifier to which the AP belongs. The VLAN identifier is used to indicate that there is a service VLAN division within the AP and is used to indicate the SID type; or; the second function value is a fixed value, and the fixed value is used to indicate that there is no service VLAN division within the AP and is used to indicate the SID type.
[0139] In this way, through the message interaction between the AP and the AC, the AC assigns different Locator values to each AP under management. This solves the problem that the configuration work is heavy and complex due to the manual configuration of the access point SRv6 Locator by the management personnel. The WLAN wireless service deployment based on the emerging SRv6 technology is realized, so that the advantages brought by the SRv6 technology can be fully utilized.
[0140] Next, a further communication method provided by the embodiments of the present application will be described in detail. Refer to Figure 8 , Figure 8 which is a flowchart of a further communication method provided by the embodiments of the present application. This method is applied to the GW. The communication method provided by the embodiments of the present application may include the following steps.
[0141] Step 810: Receive a third message sent by the AP. The third message includes a first SRv6 location option, and the first SRv6 location option includes a first Locator value assigned by the AC to the AP;
[0142] Specifically, a three-layer interface is configured on the GW. This three-layer interface is used for SRv6 service forwarding with the AP. The three-layer interface enables stateless autoconfiguration of ND and dynamically assigns an IPv6 address to the three-layer interface on the AP connected to the GW (that is, the interface VLAN 4092 configured on the AP). In the embodiments of the present application, it is assumed that the three-layer interface is interface VLAN 4092.
[0143] After the AP obtains the first Locator value assigned to it by the AC, it generates and sends a third message to the GW. The third message includes a first SRv6 location option (SRv6 Locator option), and the first SRv6 location option includes the first Locator value.
[0144] It can be understood that the first SRv6 location option further includes the aforementioned first function value. The first function value and the first Locator value can form the SID of the AP. The format of the third message and the SRv6 location option has been described in detail in step 230 of the foregoing embodiment, and will not be repeated here.
[0145] After receiving the third message, the GW obtains the first SRv6 location option from the third message and obtains the first Locator value from the first SRv6 location option.
[0146] Step 820: Send a fourth packet to the AP. The fourth packet includes a second SRv6 location option, and the second SRv6 location option includes a second Locator value of the GW, so that the AP generates a second location route to the GW according to the second Locator value.
[0147] Specifically, the administrator also specifies an SRv6 Locator and a function value for the GW in advance, for example, a second Locator value and a second function value.
[0148] After the GW obtains the first Locator value of the AP, it generates and sends a fourth packet to the AP. The fourth packet includes a second SRv6 location option, and the second SRv6 location option includes a second Locator value of the GW.
[0149] It can be understood that the second SRv6 location option also includes a second function value of the GW. The second function value and the second Locator value can form the SID of the GW.
[0150] In the above-mentioned embodiment steps 230 and 240, the formats of the fourth packet and the SRv6 location option have been described in detail, and will not be repeated here.
[0151] After receiving the fourth packet, the AP obtains the second SRv6 location option from the fourth packet, and obtains the second Locator value of the GW from the second SRv6 location option. The AP generates a second location route to the GW according to the second Locator value.
[0152] In the above-mentioned step 250, the process of the AP generating the second location route has been described in detail, and will not be repeated here.
[0153] It can be understood that after the GW obtains the second Locator value and the second function value, it can generate a local Local SID entry according to the second Locator value and the second function value, form its own SID, and add a forwarding entry corresponding to the Local SID entry to the local FIB6 table.
[0154] Optionally, according to the second function value and the second Locator value, the GW generates a local second Local SID entry. The second Local SID entry includes a Locator field, a function operation instruction field, and a function type field. The format of the second Local SID entry is the same as that of the previous first Local SID entry.
[0155] Among them, the Locator field stores the second Locator value, the function operation instruction field stores the second function value, and the function type field stores the SID type indicated by the second function value.
[0156] According to the description of the foregoing step 210, the function value includes two types. When generating the Local SID entry, two corresponding entries are generated. That is, there is a second Local SID entry corresponding to the second function value with service VLAN division in the GW, and a second Local SID entry corresponding to the second function value without service VLAN division in the GW.
[0157] After the GW generates the second Local SID entry, in the local forwarding information table (FIB6), a second forwarding entry corresponding to the second Local SID entry is added. The second forwarding entry includes a destination address field, a next-hop field, an output interface field, and a flag field. The format of the second forwarding entry is the same as that of the foregoing first forwarding entry.
[0158] Among them, the destination address field stores the SID of the GW, and the SID of the GW is composed of the second Locator value and the second function value. The next-hop field, the output interface field, and the flag field all store preset values (which can also be called special values). The preset value stored in the flag field is used to indicate that the received SRv6 packet is to be processed by SRv6 forwarding.
[0159] The second Local SID entry can also exist in the local forwarding information table.
[0160] Step 830: Generate a first positioning route to the AP according to the first Locator value.
[0161] Specifically, according to the description of step 820, after the GW obtains the first Locator value, it generates a first positioning route to the AP.
[0162] Optionally, the GW generates a first positioning route to the AP according to the first Locator value. The specific process is as follows:
[0163] The GW obtains the MAC address and IPv6 address of the AP; among them, the MAC address and IPv6 address of the AP can be obtained during the process of ND stateless automatic configuration of the IPv6 address with the GW. According to the MAC address, IPv6 address of the AP and the first Locator value, the GW generates a second positioning entry, and the second positioning entry includes a MAC address field, an IPv6 address field, and a Locator field.
[0164] Among them, the MAC address field stores the MAC address of the AP, the IPv6 address field stores the IPv6 address of the Layer 3 interface VLAN 4092 on the AP (this IPv6 address is the link-local address of VLAN 4092), and the Locator field stores the first Locator value. The Layer 3 interface VLAN 4092 on the GW is docked with the Layer 3 interface VLAN 4092 on the AP. The format of the second location entry is the same as that of the aforementioned first location entry.
[0165] Using the second location entry, the GW generates a first location route (only referred to as the first location route here, and the location route generated within the AP to reach the GW is called the second location route). This first location route includes a destination address field, a next-hop field, and an outgoing interface field. Among them, the destination address field stores the first Locator value, the next-hop field stores the IPv6 address of the Layer 3 interface VLAN 4092 on the AP, and the outgoing interface field stores the identifier of the local Layer 3 interface on the GW that is docked with the IPv6 address of the AP. The format of the first location route is the same as that of the aforementioned second location route.
[0166] In this way, through the message interaction between the AP and the GW, the AP and the GW exchange their respective Locator values and Function values, and generate a Locator route to the peer end. The WLAN wireless service deployment based on the emerging SRv6 technology is realized, so that the advantages brought by the SRv6 technology can be fully utilized.
[0167] It can be understood that after the GW generates the second forwarding entry and the first location route, it can perform table lookup, encapsulation, and decapsulation processing on the service message according to the existing forwarding process, and then forward it. Only a brief description is given here.
[0168] After receiving the first service message sent by the AP through the SRv6 tunnel, the GW looks up the local FIB6 table according to the destination IP address included in the first service message. If the corresponding forwarding entry is found, the next-hop, outgoing interface, and label are obtained from the forwarding entry. According to the label, the GW determines to perform SRv6 forwarding processing on the received first service message.
[0169] The GW also obtains the corresponding Local SID entry from the FIB6 table. The function type, that is, End-DT2U, is obtained from the Local SID entry. According to the indication of End-DT2U, the GW performs IPv6 header decapsulation processing on the first service message to obtain the second service message.
[0170] The AP identifies the destination MAC address included in the second service packet. If the destination MAC address is the same as the MAC address of the three-layer interface VLAN 4092 associated with the VSI instance bound by the Local SID entry, the GW performs a de-layer 2 encapsulation operation on the second service packet to obtain an inner packet. The inner packet can be an IP packet, for example, an IPv4 or IPv6 packet. The GW forwards the inner packet by looking up the IPv4 or IPv6 VPN routing forwarding table associated with the three-layer interface VLAN 4092 based on the destination address included in the IP packet.
[0171] If the destination MAC address is different from the MAC address of the three-layer interface VLAN 4092 associated with the VSI instance bound by the Local SID entry, the GW looks up the MAC address table associated with the VSI instance bound by the Local SID entry and forwards the second service packet according to the MAC table entry.
[0172] It should be noted that if the second service packet is an ARP packet or an IPv6 ND packet, the GW also performs ARP or IPv6 ND learning and learns an ARP or IPv6 ND table entry. The ARP or IPv6 ND table entry includes an IP address (the IP address of the terminal sending the ARP packet or IPv6 ND packet), a MAC address (the MAC address of the terminal sending the ARP packet or IPv6 ND packet), a VLAN identifier (the service VLAN ID), and an outgoing interface (the SRv6 tunnel interface between the GW and the AP).
[0173] Based on the same inventive concept, an embodiment of the present application also provides a communication device corresponding to the communication method. Refer to Figure 9 , Figure 9 A communication device provided in an embodiment of the present application, the device is applied to an AP, the AP is connected to a GW and managed by an AC, and the device includes:
[0174] A sending unit 910, configured to send a first packet to the AC, the first packet includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6;
[0175] A receiving unit 920, configured to receive a second packet sent by the AC after determining that the AP supports SRv6 according to the first function value, the second packet includes an SRv6 positioning information element, and the SRv6 positioning information element includes a first Locator value allocated by the AC for the AP;
[0176] The sending unit 910 is further configured to send a third packet to the GW, where the third packet includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value, so that the GW generates a first location route to the AP according to the first Locator value;
[0177] The receiving unit 920 is further configured to receive a fourth packet sent by the GW, where the fourth packet includes a second SRv6 location option, and the second SRv6 location option includes the second Locator value of the GW;
[0178] The generating unit 930 is configured to generate a second location route to the GW according to the second Locator value.
[0179] Optionally, the generating unit 930 is further configured to generate a local first Local SID entry according to the first function value and the first Locator value, where the first Local SID entry includes a Locator field, a function operation instruction field, and a function type field;
[0180] The apparatus further includes an adding unit (not shown in the figure), configured to add a first forwarding entry corresponding to the first Local SID entry in the local forwarding information table, where the first forwarding entry includes a destination address field, a next-hop field, an outgoing interface field, and a marking field;
[0181] Wherein, the Locator field stores the first Locator value, the function operation instruction field stores the first function value, and the function type field stores the SID type indicated by the first function value;
[0182] The destination address field stores the SID of the AP, and the next-hop field, the outgoing interface field, and the marking field all store preset values, and the preset value stored in the marking field is used to indicate that the received SRv6 packet is subjected to SRv6 forwarding processing;
[0183] The SID of the AP is composed of the first Locator value and the first function value.
[0184] Optionally, the generating unit 930 is specifically configured to obtain the MAC address and IPv6 address of the GW;
[0185] Generate a first location table entry, where the first location table entry includes a MAC address field, an IPv6 address field, and a Locator field. The MAC address field stores the MAC address of the GW, the IPv6 address field stores the IPv6 address of the GW, and the Locator field stores the second Locator value;
[0186] Generate the second location route by using the first location table entry. The second location route includes a destination address field, a next-hop field, and an outgoing interface field. The destination address field stores the second Locator value, the next-hop field stores the IPv6 address of the GW, and the outgoing interface field stores the local interface identifier of the AP corresponding to the connection with the IPv6 address of the GW.
[0187] Optionally, the first function value is the VLAN identifier to which the AP belongs. The VLAN identifier is used to indicate that there is a service VLAN division within the AP and is used to indicate the SID type;
[0188] Or;
[0189] The first function value is a fixed value, and the fixed value is used to indicate that there is no service VLAN division within the AP and is used to indicate the SID type;
[0190] The second SRv6 location option further includes a second function value, and the second function value is the VLAN identifier of the WLAN wireless service within the GW. The VLAN identifier is used to indicate that there is a service VLAN division for the WLAN wireless service within the GW and is used to indicate the SID type;
[0191] Or;
[0192] The second function value is a fixed value, and the fixed value is used to indicate that there is no service VLAN division for the WLAN wireless service within the GW and is used to indicate the SID type.
[0193] Optionally, the SRv6 support information element includes a first function type field, and the first function type field carries the first function value;
[0194] The SRv6 location information element includes the first function type field and a first location field. The first function type field carries the first function value, and the first location field carries the first Locator value;
[0195] The first SRv6 location option includes the first function type field and the first location field;
[0196] The second SRv6 location option includes a second function type field and a second location field. The second function type field carries the second function value, and the second location field carries the second Locator value.
[0197] Therefore, by applying the communication device provided in this application, the AP sends a first message to the AC. The first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6. The AP receives a second message sent by the AC after determining that the AP supports SRv6 according to the first function value. The second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value of the AP assigned by the AC to the AP. The AP sends a third message to the GW. The third message includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value, so that the GW generates a first location route to the AP according to the first Locator value. The AP receives a fourth message sent by the GW. The fourth message includes a second SRv6 location option, and the second SRv6 location option includes a second Locator value of the GW. According to the second Locator value, the AP generates a second location route to the GW.
[0198] In this way, through the message interaction between the AP and the AC, and between the AP and the GW, the AC assigns different Locator values to each managed AP. The AP and the GW exchange their respective Locator values and Function values, and generate a Locator route to the peer end. It solves the problem that the configuration work is heavy and complex due to the manual configuration of the SRv6 Locator of the access point by the administrator. It realizes the WLAN wireless service deployment based on the emerging SRv6 technology, so as to make full use of the advantages brought by the SRv6 technology.
[0199] Based on the same inventive concept, an embodiment of this application also provides a communication device corresponding to the communication method. See Figure 10 , Figure 10 Another communication device provided by an embodiment of this application. The device is applied to the AC. The AP is connected to the GW and managed by the AC. The device includes:
[0200] A receiving unit 1010, configured to receive a first message sent by a managed AP. The first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports the SRv6.
[0201] A determining unit 1020, configured to determine that the AP supports SRv6 according to the first function value.
[0202] A sending unit 1030, configured to, if the receiving unit 1010 receives a configuration request sent by the AP and determines that SRv6 should be configured in the AP, send a second message to the AP, where the second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value allocated by the AC for the AP, so that the AP sends a third message to an accessed GW, and the third message includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value.
[0203] Optionally, the SRv6 support information element includes a first function type field, and the first function type field carries the first function value;
[0204] The SRv6 location information element includes the first function type field and a first location field, the first function type field carries the first function value, and the first location field carries the first Locator value.
[0205] Optionally, the first function value is a VLAN identifier of the AP, and the VLAN identifier is used to indicate that there is a service VLAN division in the AP and is used to indicate the SID type;
[0206] Or;
[0207] The first function value is a fixed value, and the fixed value is used to indicate that there is no service VLAN division in the AP and is used to indicate the SID type.
[0208] In this way, through message interaction between the AP and the AC, the AC allocates different Locator values to each managed AP, solving the problem that the manual configuration of the SRv6 Locator of the access point by the administrator is heavy and complex, and realizing the deployment of WLAN wireless services based on the emerging SRv6 technology, so as to make full use of the advantages brought by the SRv6 technology.
[0209] Based on the same inventive concept, an embodiment of the present application further provides a communication device corresponding to the communication method. Refer to Figure 11 , Figure 11 Another communication device provided by an embodiment of the present application, the device is applied to a GW, the AP has accessed the GW and is managed by the AC, and the device includes:
[0210] A receiving unit 1110, configured to receive the third message sent by the AP, where the third message includes a first SRv6 location option, and the first SRv6 location option includes a first Locator value allocated by the AC for the AP;
[0211] A sending unit 1120, configured to send a fourth packet to the AP, where the fourth packet includes a second SRv6 positioning option, and the second SRv6 positioning option includes a second Locator value of the GW, so that the AP generates a second positioning route to the GW according to the second Locator value;
[0212] A generating unit 1130, configured to generate a first positioning route to the AP according to the first Locator value
[0213] Optionally, the generating unit 1130 is specifically configured to obtain the MAC address and IPv6 address of the AP;
[0214] Generate a second positioning entry, where the second positioning entry includes a MAC address field, an IPv6 address field, and a Locator field, the MAC address field stores the MAC address of the AP, the IPv6 address field stores the IPv6 address of the AP, and the Locator field stores the first Locator value;
[0215] Generate the first positioning route by using the second positioning entry, where the first positioning route includes a destination address field, a next-hop field, and an output interface field, the destination address field stores the first Locator value, the next-hop field stores the IPv6 address of the AP, and the output interface field stores the local interface identifier of the GW corresponding to the IPv6 address of the AP.
[0216] Optionally, the second SRv6 positioning option further includes a second function value, and the generating unit 1130 is further configured to generate a local second Local SID entry according to the second function value and the second Locator value, where the second Local SID entry includes a Locator field, a function operation instruction field, and a function type field;
[0217] The device further includes: an adding unit (not shown in the figure), configured to add a second forwarding entry corresponding to the second Local SID entry in the local forwarding information table, where the second forwarding entry includes a destination address field, a next-hop field, an output interface field, and a marking field;
[0218] Wherein, the Locator field stores the second Locator value, the function operation instruction field stores the second function value, and the function type field stores the SID type indicated by the second function value;
[0219] The destination address field stores the SID of the GW, and the next-hop field, the outgoing interface field, and the label field all store preset values. The preset value stored in the label field is used to indicate that the received SRv6 packet is to be processed by SRv6 forwarding.
[0220] The SID of the GW consists of the second Locator value and the second function value.
[0221] Optionally, the first function value is the VLAN identifier of the AP. The VLAN identifier is used to indicate that there is a service VLAN division within the AP and is also used to indicate the SID type.
[0222] Or;
[0223] The first function value is a fixed value. The fixed value is used to indicate that there is no service VLAN division within the AP and is also used to indicate the SID type.
[0224] The second function value is the VLAN identifier of the WLAN wireless service within the GW. The VLAN identifier is used to indicate that there is a service VLAN division for the WLAN wireless service within the GW and is also used to indicate the SID type.
[0225] Or;
[0226] The second function value is a fixed value. The fixed value is used to indicate that there is no service VLAN division for the WLAN wireless service within the GW and is also used to indicate the SID type.
[0227] Optionally, the first SRv6 locator option includes a first function type field and a first locator field. The first function type field carries the first function value, and the first locator field carries the first Locator value.
[0228] The second SRv6 locator option includes a second function type field and a second locator field. The second function type field carries the second function value, and the second locator field carries the second Locator value.
[0229] In this way, through the packet interaction between the AP and the GW, the AP and the GW exchange their respective Locator values and Function values, and generate a Locator route to the peer end. The deployment of the WLAN wireless service based on the emerging SRv6 technology is realized, so that the advantages brought by the SRv6 technology can be fully utilized.
[0230] Based on the same inventive concept, an embodiment of the present application further provides a network device, such as Figure 12As shown, it includes a processor 1210, a transceiver 1220, and a machine-readable storage medium 1230. The machine-readable storage medium 1230 stores machine-executable instructions that can be executed by the processor 1210. The processor 1210 is prompted by the machine-executable instructions to execute the communication method provided by the embodiments of the present application. The foregoing Figure 9 , Figure 10 , Figure 11 The communication device shown can be implemented by using the hardware structure of the network device as shown in Figure 12 .
[0231] The above computer-readable storage medium 1230 may include a random access memory (English: Random Access Memory, abbreviated as: RAM), and may also include a non-volatile memory (English: Non-volatile Memory, abbreviated as: NVM), such as at least one disk memory. Optionally, the computer-readable storage medium 1230 may also be at least one storage device located far from the foregoing processor 1210.
[0232] The above processor 1210 may be a general-purpose processor, including a central processing unit (English: Central Processing Unit, abbreviated as: CPU), a network processor (English: Network Processor, abbreviated as: NP), etc.; it may also be a digital signal processor (English: Digital Signal Processor, abbreviated as: DSP), an application-specific integrated circuit (English: Application Specific Integrated Circuit, abbreviated as: ASIC), a field-programmable gate array (English: Field-Programmable Gate Array, abbreviated as: FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0233] In the embodiments of the present application, the processor 1210 reads the machine-executable instructions stored in the machine-readable storage medium 1230, and is prompted by the machine-executable instructions to be able to implement the processor 1210 itself and call the transceiver 1220 to execute the communication method described in the foregoing embodiments of the present application.
[0234] In addition, the embodiments of the present application provide a machine-readable storage medium 1230. The machine-readable storage medium 1230 stores machine-executable instructions. When called and executed by the processor 1210, the machine-executable instructions prompt the processor 1210 itself and call the transceiver 1220 to execute the communication method described in the foregoing embodiments of the present application.
[0235] For the implementation processes of the functions and effects of each unit in the above device, please refer to the implementation processes of the corresponding steps in the above method for details, which will not be elaborated here.
[0236] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial descriptions of the method embodiments. The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this application. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0237] For the embodiments of the communication device and the machine-readable storage medium, since the method content involved is basically similar to the foregoing method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial descriptions of the method embodiments.
[0238] The above are only the preferred embodiments of this application and are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this application shall be included within the scope of protection of this application.
Claims
1. A communication method, characterized in that, the method is applied to an AP, the AP is connected to a GW and managed by an AC, and the method includes: sending a first message to the AC, the first message including an SRv6 support information element, and the SRv6 support information element including a first function value indicating that the AP supports SRv6; receiving a second message sent by the AC after determining that the AP supports SRv6 according to the first function value, the second message including an SRv6 location information element, and the SRv6 location information element including a first Locator value assigned by the AC to the AP; sending a third message to the GW, the third message including a first SRv6 location option, and the first SRv6 location option including the first Locator value, so that the GW generates a first location route to the AP according to the first Locator value; receiving a fourth message sent by the GW, the fourth message including a second SRv6 location option, and the second SRv6 location option including a second Locator value of the GW; generating a second location route to the GW according to the second Locator value.
2. The method according to claim 1, characterized in that, the method further includes: generating a local first Local SID entry according to the first function value and the first Locator value, the first Local SID entry including a Locator field, a function operation instruction field, and a function type field; adding a first forwarding entry corresponding to the first Local SID entry in a local forwarding information table, the first forwarding entry including a destination address field, a next hop field, an output interface field, and a marking field; wherein, the Locator field stores the first Locator value, the function operation instruction field stores the first function value, and the function type field stores the SID type indicated by the first function value; the destination address field stores the SID of the AP, the next hop field, the output interface field, and the marking field all store preset values, and the preset value stored in the marking field is used to indicate performing SRv6 forwarding processing on the received SRv6 message; the SID of the AP is composed of the first Locator value and the first function value.
3. The method according to claim 1, characterized in that, the generating a second location route to the GW according to the second Locator value specifically includes: obtaining the MAC address and IPv6 address of the GW; generating a first location entry, the first location entry including a MAC address field, an IPv6 address field, and a Locator field, the MAC address field storing the MAC address of the GW, the IPv6 address field storing the IPv6 address of the GW, and the Locator field storing the second Locator value; Generate the second location route by using the first location entry. The second location route includes a destination address field, a next hop field, and an output interface field. The destination address field stores the second Locator value. The next hop field stores the IPv6 address of the GW. The output interface field stores the local interface identifier of the AP corresponding to the connection with the IPv6 address of the GW.
4. The method according to claim 1, wherein, the first function value is the VLAN identifier to which the AP belongs. The VLAN identifier is used to indicate that there is a service VLAN division within the AP and is used to indicate the SID type; or; the first function value is a fixed value. The fixed value is used to indicate that there is no service VLAN division within the AP and is used to indicate the SID type; the second SRv6 location option further includes a second function value. The second function value is the VLAN identifier of the WLAN wireless service within the GW. The VLAN identifier is used to indicate that there is a service VLAN division for the WLAN wireless service within the GW and is used to indicate the SID type; or; the second function value is a fixed value. The fixed value is used to indicate that there is no service VLAN division for the WLAN wireless service within the GW and is used to indicate the SID type.
5. The method according to claim 4, wherein, the SRv6 support information element includes a first function type field that carries the first function value; the SRv6 location information element includes the first function type field and a first location field. The first function type field carries the first function value, and the first location field carries the first Locator value; the first SRv6 location option includes the first function type field and the first location field; the second SRv6 location option includes a second function type field and a second location field. The second function type field carries the second function value, and the second location field carries the second Locator value.
6. A communication method, wherein, the method is applied to an AC. The method includes: Receiving a first message sent by a managed AP. The first message includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6; Determining that the AP supports SRv6 according to the first function value; If a configuration request sent by the AP is received and it is determined that SRv6 should be configured within the AP, then send a second message to the AP. The second message includes an SRv6 location information element, and the SRv6 location information element includes a first Locator value assigned by the AC to the AP, so that the AP sends a third message to the accessed GW. The third message includes a first SRv6 location option, and the first SRv6 location option includes the first Locator value.
7. The method according to claim 6, wherein, The SRv6 support information element includes a first function type field that carries the first function value; The SRv6 location information element includes the first function type field and a first location field. The first function type field carries the first function value, and the first location field carries the first Locator value.
8. The method according to claim 6, wherein, the first function value is the VLAN identifier of the AP, and the VLAN identifier is used to indicate that there is a service VLAN division within the AP and is used to indicate the SID type; or; the first function value is a fixed value, and the fixed value is used to indicate that there is no service VLAN division within the AP and is used to indicate the SID type.
9. A communication method, wherein, the method is applied to a GW, the AP has accessed the GW and is managed by an AC. The method includes: receiving a third packet sent by the AP, the third packet including a first SRv6 location option, and the first SRv6 location option including the first Locator value assigned by the AC to the AP; sending a fourth packet to the AP, the fourth packet including a second SRv6 location option, and the second SRv6 location option including the second Locator value of the GW, so that the AP generates a second location route to the GW according to the second Locator value; generating a first location route to the AP according to the first Locator value.
10. The method according to claim 9, wherein, the generating a first location route to the AP according to the first Locator value specifically includes: obtaining the MAC address and IPv6 address of the AP; generating a second location entry, the second location entry including a MAC address field, an IPv6 address field, and a Locator field. The MAC address field stores the MAC address of the AP, the IPv6 address field stores the IPv6 address of the AP, and the Locator field stores the first Locator value; using the second location entry to generate the first location route, the first location route including a destination address field, a next hop field, and an output interface field. The destination address field stores the first Locator value, the next hop field stores the IPv6 address of the AP, and the output interface field stores the local interface identifier of the GW corresponding to the IPv6 address of the AP.
11. The method according to claim 9, wherein, the second SRv6 location option further includes a second function value, and the method further includes: generating a local second Local SID entry according to the second function value and the second Locator value, the second Local SID entry including a Locator field, a function operation instruction field, and a function type field; In the local forwarding information table, add a second forwarding table entry corresponding to the second Local SID table entry. The second forwarding table entry includes a destination address field, a next hop field, an output interface field, and a flag field. Among them, the Locator field stores the second Locator value, the function operation instruction field stores the second function value, and the function type field stores the SID type indicated by the second function value. The destination address field stores the SID of the GW, and the next hop field, the output interface field, and the flag field all store preset values. The preset value stored in the flag field is used to indicate that SRv6 forwarding processing is to be performed on the received SRv6 packet. The SID of the GW is composed of the second Locator value and the second function value.
12. The method according to claim 11, characterized in that, The first function value is the VLAN identifier of the AP. The VLAN identifier is used to indicate that there is a service VLAN division in the AP and is used to indicate the SID type. Or; The first function value is a fixed value. The fixed value is used to indicate that there is no service VLAN division in the AP and is used to indicate the SID type. The second function value is the VLAN identifier of the WLAN wireless service in the GW. The VLAN identifier is used to indicate that there is a service VLAN division in the WLAN wireless service in the GW and is used to indicate the SID type. Or; The second function value is a fixed value. The fixed value is used to indicate that there is no service VLAN division in the WLAN wireless service in the GW and is used to indicate the SID type.
13. The method according to claim 9, characterized in that, The first SRv6 positioning option includes a first function type field and a first positioning field. The first function type field carries the first function value, and the first positioning field carries the first Locator value. The second SRv6 positioning option includes a second function type field and a second positioning field. The second function type field carries the second function value, and the second positioning field carries the second Locator value.
14. A communication device, characterized in that, The device is applied to an AP. The AP is connected to a GW and managed by an AC. The device includes: A sending unit, configured to send a first packet to the AC. The first packet includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6. A receiving unit, configured to receive a second packet sent by the AC after determining that the AP supports SRv6 according to the first function value. The second packet includes an SRv6 positioning information element, and the SRv6 positioning information element includes a first Locator value assigned by the AC to the AP. The sending unit is further configured to send a third packet to the GW, where the third packet includes a first SRv6 locator option, and the first SRv6 locator option includes the first Locator value, so that the GW generates a first locator-based route to the AP according to the first Locator value; The receiving unit is further configured to receive a fourth packet sent by the GW, where the fourth packet includes a second SRv6 locator option, and the second SRv6 locator option includes the second Locator value of the GW; The generating unit is configured to generate a second locator-based route to the GW according to the second Locator value.
15. A communication device, characterized in that the device is applied to an AC, and the device includes: a receiving unit, configured to receive a first packet sent by a managed AP, where the first packet includes an SRv6 support information element, and the SRv6 support information element includes a first function value indicating that the AP supports SRv6; a determining unit, configured to determine that the AP supports SRv6 according to the first function value; a sending unit, configured to, if the receiving unit receives a configuration request sent by the AP and determines that SRv6 should be configured in the AP, send a second packet to the AP, where the second packet includes an SRv6 locator information element, and the SRv6 locator information element includes a first Locator value allocated by the AC for the AP, so that the AP sends a third packet to the accessed GW, and the third packet includes a first SRv6 locator option, and the first SRv6 locator option includes the first Locator value.
16. A communication device, characterized in that the device is applied to a GW, the AP has accessed the GW and is managed by an AC, and the device includes: a receiving unit, configured to receive the third packet sent by the AP, where the third packet includes a first SRv6 locator option, and the first SRv6 locator option includes the first Locator value allocated by the AC for the AP; a sending unit, configured to send a fourth packet to the AP, where the fourth packet includes a second SRv6 locator option, and the second SRv6 locator option includes the second Locator value of the GW, so that the AP generates a second locator-based route to the GW according to the second Locator value; a generating unit, configured to generate a first locator-based route to the AP according to the first Locator value.
Citation Information
Patent Citations
Reducing feedback delay for network coding in wireless backhaul communication networks
CN114631275A
Receiver-based precision congestion control
US20210112002A1