Virtual LAN tag processing methods, devices, equipment, media and products
By working collaboratively among edge leaf node devices, and by optimizing VLAN tag rewriting using tag pools and rewriting algorithms, the problem of high tag rewriting complexity is solved, and the efficiency and accuracy of tag planning are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-30
- Publication Date
- 2026-03-10
AI Technical Summary
Existing technologies for rewriting virtual LAN tags are complex and affect tag planning efficiency.
By working collaboratively across multiple edge leaf node devices, the system rewrites duplicate tags based on the virtual local area network tags of the packets to be processed received by other edge leaf node devices, generating unique tags, and optimizes the rewriting process through tag pool updates and rewriting algorithms.
It reduces the complexity of tag rewriting methods, improves the speed and efficiency of tag planning in virtual LANs, reduces human error, and improves the accuracy of rewritten tags.
Smart Images

Figure CN117081887B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication network, and in particular to a virtual local area network label processing method and device, equipment, medium and product. BACKGROUND
[0002] With the development of broadband network technology, new metropolitan area network is more and more widely used. Among them, the virtual local area network (VLAN) label planning is a key link in the communication process of new metropolitan area network.
[0003] In actual application, different optical line terminals (OLT) and different optical network units (ONU) in new metropolitan area network architecture can plan virtual local area network labels for network messages of different users, and handle through label rewriting when different network message virtual local area network labels are repeated.
[0004] However, the label rewriting method in the related art is complex, which affects the label planning efficiency of virtual local area network. SUMMARY
[0005] Therefore, it is necessary to provide a virtual local area network label processing method, device, equipment, medium and product to reduce the complexity of virtual local area network label rewriting method and improve the label planning efficiency of virtual local area network.
[0006] In a first aspect, an embodiment of the present application provides a virtual local area network label processing method applied to any one of a plurality of edge leaf node devices, and the method comprises:
[0007] Receiving different user's to-be-processed messages sent by an access leaf node device;
[0008] Obtaining virtual local area network labels of each to-be-processed message;
[0009] If there is label repetition in each virtual local area network label, rewriting processing is performed on each virtual local area network label with label repetition according to virtual local area network labels of to-be-processed messages received by other edge leaf node devices in the plurality of edge leaf node devices.
[0010] In one embodiment, the method further comprises:
[0011] For any one virtual local area network label, if the same virtual local area network label as the virtual local area network label is found in the label planning table, it is determined that the virtual local area network label of the to-be-processed message has label repetition; the label planning table stores virtual local area network labels of a plurality of other to-be-processed messages.
[0012] In one of the embodiments, the construction process of the label planning table comprises:
[0013] acquiring the virtual local area network label of other to-be-processed messages of different target users;
[0014] generating the label planning table according to the virtual local area network label of each other to-be-processed message.
[0015] In one of the embodiments, the virtual local area network label comprises an outer virtual local area network label; the rewriting processing of the virtual local area network label with label duplication comprises:
[0016] acquiring the outer virtual local area network label of each to-be-processed message from the virtual local area network label of each to-be-processed message;
[0017] for any to-be-processed message, rewriting processing of the outer virtual local area network label with label duplication according to the outer virtual local area network label of the to-be-processed message received by other edge leaf node devices in the plurality of edge leaf node devices; the outer virtual local area network label of the to-be-processed message after rewriting processing and the outer virtual local area network label of other to-be-processed messages are different from each other.
[0018] In one of the embodiments, the rewriting processing of the outer virtual local area network label with label duplication according to the outer virtual local area network label of the to-be-processed message received by other edge leaf node devices in the plurality of edge leaf node devices comprises:
[0019] updating the label pool according to the outer virtual local area network label of the to-be-processed message received by other edge leaf node devices in the plurality of edge leaf node devices, to generate an updated label pool; the label pool comprises a plurality of labels different from each virtual local area network label;
[0020] acquiring a target label from the updated label pool;
[0021] modifying the outer virtual local area network label of the to-be-processed message to the target label, to complete the rewriting processing of the outer virtual local area network label with label duplication.
[0022] In one of the embodiments, the acquiring of the outer virtual local area network label of each to-be-processed message from the virtual local area network label of each to-be-processed message comprises:
[0023] for any to-be-processed message, acquiring the length of the virtual local area network label and the position information of the virtual local area network label from the to-be-processed message;
[0024] According to the length of the virtual local area network label and the position information of the virtual local area network label, the virtual local area network label is acquired from the to-be-processed packet;
[0025] The outer virtual local area network label of the to-be-processed packet is extracted from the virtual local area network label.
[0026] In one embodiment, the method further includes:
[0027] The rewritten virtual local area network label of each to-be-processed packet is added to the label planning table for storage.
[0028] In one embodiment, the method further includes:
[0029] For any to-be-processed packet, the rewritten virtual local area network label of the to-be-processed packet is sent to the forwarding plane device to instruct the forwarding plane device to forward the rewritten virtual local area network label to the control plane device for user authentication.
[0030] In a second aspect, the embodiments of the present application provide a virtual local area network label processing method applied to an access leaf node device, and the method includes:
[0031] Acquiring to-be-processed packets of each user;
[0032] Sending each to-be-processed packet to an edge leaf node device to instruct the edge leaf node device to acquire virtual local area network labels of each to-be-processed packet, and when there is label repetition in each virtual local area network label, performing rewriting processing on each virtual local area network label with label repetition according to virtual local area network labels of to-be-processed packets received by other edge leaf node devices in the plurality of edge leaf node devices.
[0033] In one embodiment, acquiring to-be-processed packets of each user includes:
[0034] Acquiring virtual local area network labels of network packets of each user sent by an optical line terminal;
[0035] For any network packet, encapsulating the virtual local area network label of the network packet to generate a to-be-processed packet.
[0036] In one embodiment, sending each to-be-processed packet to an edge leaf node device includes:
[0037] Constructing a communication tunnel between the edge leaf node device;
[0038] For any to-be-processed packet, sending a border gateway protocol update message carrying the to-be-processed packet to the edge leaf node device through the communication tunnel.
[0039] In a third aspect, an embodiment of the present application provides a virtual local area network label processing apparatus, which comprises:
[0040] a packet receiving module, configured to receive the to-be-processed packets of different users sent by the access leaf node device;
[0041] a label obtaining module, configured to obtain the virtual local area network labels of the to-be-processed packets;
[0042] a rewriting processing module, configured to, when there is label repetition in the virtual local area network labels, rewrite the virtual local area network labels with the virtual local area network labels of the to-be-processed packets received by other edge leaf node devices in the plurality of edge leaf node devices.
[0043] In a fourth aspect, an embodiment of the present application provides a virtual local area network label processing apparatus, which comprises:
[0044] a packet obtaining module, configured to obtain the to-be-processed packets of different users;
[0045] a packet sending module, configured to send the to-be-processed packets to the edge leaf node device, so as to instruct the edge leaf node device to obtain the virtual local area network labels of the to-be-processed packets, and when there is label repetition in the virtual local area network labels, rewrite the virtual local area network labels with the virtual local area network labels of the to-be-processed packets received by other edge leaf node devices in the plurality of edge leaf node devices.
[0046] In a fifth aspect, an embodiment of the present application further provides a communication device, which comprises a transceiver, a memory and a processor, the memory stores a computer program, and the processor implements the steps of the method in any one of the embodiments of the first aspect and the second aspect when executing the computer program.
[0047] In a sixth aspect, an embodiment of the present application further provides a computer readable storage medium, which stores a computer program, and the computer program implements the steps of the method in any one of the embodiments of the first aspect and the second aspect when executed by a processor.
[0048] In a seventh aspect, an embodiment of the present application further provides a computer program product, which comprises a computer program, and the computer program implements the steps of the method in any one of the embodiments of the first aspect and the second aspect when executed by a processor.
[0049] The virtual local area network (VLAN) tag processing method, apparatus, device, medium, and product provided in this application include: receiving pending messages from different users sent by an access leaf node device, obtaining the VLAN tags of each pending message, and when there are duplicate tags among the VLAN tags, rewriting the VLAN tags with duplicate tags based on the VLAN tags of the pending messages received by other edge leaf node devices among multiple edge leaf node devices. The above method can be applied to any one of multiple edge leaf node devices. When it is determined that there are duplicate VLAN tags among the pending messages, the VLAN tags of the pending messages received by other edge leaf node devices among multiple edge leaf node devices can be obtained. Based on the VLAN tags of the pending messages received by other edge leaf node devices among multiple edge leaf node devices, the VLAN tags with duplicate tags are rewritten, thereby ensuring that the rewritten VLAN tags do not overlap with the VLAN tags of other pending messages. Furthermore, when applied, multiple edge leaf node devices... The node devices work collaboratively. Each edge leaf node device can obtain the VLAN tags of the packets to be processed received by other edge leaf node devices, and rewrite the VLAN tags with duplicate tags based on the VLAN tags of the packets to be processed received by the edge leaf node devices. This process does not require separate tag rewriting configuration for each edge leaf node device, thereby reducing the complexity of the tag rewriting method and further improving the speed and efficiency of VLAN tag planning. In addition, the above method does not require manual intervention, which can reduce human error and thus improve the accuracy of the rewritten VLAN tags. Attached Figure Description
[0050] Figure 1 This is a schematic diagram of a novel metropolitan area network architecture in one embodiment;
[0051] Figure 2 This is a flowchart illustrating a virtual local area network (VLAN) tag processing method in one embodiment.
[0052] Figure 3 This is a flowchart illustrating a virtual local area network (VLAN) tag processing method in another embodiment;
[0053] Figure 4 This is a flowchart illustrating a virtual local area network (VLAN) tag processing method in another embodiment;
[0054] Figure 5 This is a flowchart illustrating a virtual local area network (VLAN) tag processing method in another embodiment;
[0055] Figure 6 This is a flowchart illustrating a virtual local area network (VLAN) tag processing method in another embodiment;
[0056] Figure 7 Flowchart of a method for processing a virtual local area network tag in another embodiment;
[0057] Figure 8 Flowchart of a method for processing a virtual local area network tag in another embodiment;
[0058] Figure 9 Flowchart of a method for processing a virtual local area network tag in another embodiment;
[0059] Figure 10 Flowchart of a method for processing a virtual local area network tag in another embodiment;
[0060] Figure 11 Flowchart of a method for processing a virtual local area network tag in another embodiment;
[0061] Figure 12 Flowchart of a method for processing a virtual local area network tag in another embodiment;
[0062] Figure 13 Block diagram of a device for processing a virtual local area network tag in an embodiment;
[0063] Figure 14 Block diagram of a device for processing a virtual local area network tag in another embodiment;
[0064] Figure 15 Internal block diagram of a communication device in an embodiment. DETAILED DESCRIPTION
[0065] In order to make the objects, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and not used to limit the present application.
[0066] In the field of communication, when different broadband users use a new metropolitan area network for communication, different optical line terminals and different optical network units in the new metropolitan area network architecture can plan virtual local area network tags for user messages generated when different broadband users access the new metropolitan area network. However, because the virtual local area network tags of different user messages can be planned by different optical line terminals and corresponding optical network units, the phenomenon of repeated virtual local area network tags of different user messages can occur. In related technologies, in order to solve the problem of repeated virtual local area network tags of different user messages, each access leaf node device in the new metropolitan area network architecture mainly processes by rewriting the virtual local area network tags. However, in related technologies, because the number of access leaf node devices in the new metropolitan area network architecture is large, the label rewriting configuration of each access leaf node device can have a relatively complex label rewriting mode, which can affect the label planning efficiency of the virtual local area network. Based on this, the embodiments of the present application provide a virtual local area network tag processing method, which can reduce the complexity of the virtual local area network tag rewriting mode and improve the label planning efficiency of the virtual local area network.
[0067] The virtual local area network tag processing method provided by the embodiments of the present application can be applied to a virtual local area network tag processing system, which includes an Internet device and a new metropolitan area network architecture. The Internet device and the new metropolitan area network architecture are communicatively connected, and the connection mode can be Bluetooth, Wi-Fi, mobile data, etc. The Internet device can be, but is not limited to, various personal computers, notebook computers, smart phones, smart watches, smart cameras, tablet computers, etc. The specific form of the Internet device is not limited in the embodiments.
[0068] The new metropolitan area network architecture can include a plurality of optical network units, a plurality of optical line terminals, a plurality of access leaf node devices, a plurality of edge leaf node devices (i.e., S-Leaf), a plurality of spine routers (i.e., Spine), and a virtual broadband remote access server (vBRAS). The virtual broadband remote access server can include a plurality of forwarding plane (i.e., UP) devices and a plurality of control plane (i.e., CP) devices. The access leaf node device can be a traffic distribution node, and the virtual broadband remote access server can be a network distribution node.
[0069] Optionally, each optical network unit in the new metropolitan area network architecture can be connected with a corresponding optical line terminal through a physical interface, and each optical line terminal can be connected with a plurality of corresponding edge leaf node devices through a plurality of physical interfaces, each edge leaf node device can be connected with each spine router through a plurality of physical interfaces respectively, each spine router is connected with each edge leaf node device, each edge leaf node device is connected with each forwarding plane device, and each forwarding plane device is connected with each control plane device.
[0070] In actual application, each optical line terminal can send virtual local area network tags of network messages of different users to any access leaf node device connected therewith respectively, each access leaf node device can send different virtual local area network tags received thereto to any edge leaf node device connected therewith respectively, each edge leaf node device can send different rewritten virtual local area network tags to any forwarding plane device connected therewith respectively, and each forwarding plane device can send different rewritten virtual local area network tags received thereto to any control plane device connected therewith respectively.
[0071] Figure 1 is a schematic diagram of the new metropolitan area network architecture, and Figure 1 is an example of the new metropolitan area network architecture including 2 optical network units (i.e., optical network unit 1 and optical network unit 2), 2 optical line terminals (i.e., optical line terminal 1 and optical line terminal 2), 4 access leaf node devices (i.e., access leaf node device 1, access leaf node device 2, access leaf node device 3 and access leaf node device 4), 2 edge leaf node devices (i.e., edge leaf node device 1 and edge leaf node device 2), 2 spine routers (i.e., spine router 1 and spine router 2), 2 forwarding plane devices (i.e., forwarding plane device 1 and forwarding plane device 2) and 2 control plane devices (i.e., control plane device 1 and control plane device 2).
[0072] In the new metropolitan area network architecture, a plurality of access leaf node devices can be used as an Ethernet Virtual Private Network (EVPN) instance to process virtual local area network tags of to-be-processed messages of different users. In the present embodiment, two access leaf node devices are used as an Ethernet Virtual Private Network (EVPN) instance for illustration. Correspondingly, as shown in Figure 1 each optical line terminal is connected with 2 access leaf node devices,
[0073] The following embodiments will describe the specific process of the virtual LAN tag processing method, and the execution subject will be any one of the edge leaf node devices or access leaf node devices among the multiple edge leaf node devices in the virtual LAN tag processing system to describe the specific process of the virtual LAN tag processing method.
[0074] like Figure 2 The diagram shown is a flowchart illustrating a virtual local area network (VLAN) tag processing method provided in this application embodiment. This method is applied to any one of multiple edge leaf node devices and may include the following steps:
[0075] S101. Receive pending messages from different users sent by the access leaf node device.
[0076] The aforementioned messages to be processed may include the virtual local area network (VLAN) tag, VLAN tag length, VLAN tag location information, VLAN tag type, and optical line terminal (OLT) identifier of the planned VLAN tag generated when a user's internet device accesses the new metropolitan area network (MAN). Optionally, the OLT identifier of the planned VLAN tag can be configured by the OLT of the planned VLAN tag, or it can be configured by the access leaf node device in the new MAN architecture for the OLT that sends the VLAN tags it receives.
[0077] In practical applications, access leaf node devices can encapsulate, bind, and convert the virtual local area network (VLAN) tags, VLAN tag lengths, VLAN tag types, VLAN tag location information, and optical line terminal identifiers of planned VLAN tags in network packets generated when users' Internet devices access the new metropolitan area network, thus obtaining the packets to be processed.
[0078] In this embodiment of the application, the access leaf node device can encapsulate, bind, and convert the virtual local area network (VLAN) tag, the length of the VLAN tag, and the location information of the network packets generated when the user's Internet device accesses the new metropolitan area network, to obtain the packets to be processed.
[0079] Optionally, the format of the above-mentioned message to be processed can be Ethernet frame format, data packet format, virtual LAN frame format, data encoding format, etc.
[0080] In practical applications, the generation process of a Virtual LAN (VLAN) label can involve a new metropolitan area network (MAN) architecture first planning network packets through optical network units, and then a second planning process through optical line terminals. It should be noted that a VLAN label refers to a VLAN ID or VLAN identifier.
[0081] Specifically, the edge leaf node device can receive pending messages from different users sent by at least one access leaf node device. Here, the access leaf node device can be any access leaf node device in the new metropolitan area network architecture, and the user here can be understood as a broadband user.
[0082] It should be noted that a single access leaf node device can send a single user's pending message to an edge leaf node device, or it can send pending messages from multiple different users to the same edge leaf node device. Furthermore, a single access leaf node device can also send pending messages from multiple different users to multiple edge leaf node devices.
[0083] S102. Obtain the virtual LAN tag for each message to be processed.
[0084] In this embodiment of the application, the virtual local area network (VLAN) tag of the message to be processed refers to the VLAN tag in the message to be processed.
[0085] For any message to be processed, the edge leaf node device can parse the message to obtain the virtual LAN tag in the message.
[0086] In one embodiment, the method for parsing the message to be processed may be to determine the message parsing method based on the format of the message to be processed, and then use the message parsing method to parse the message to be processed.
[0087] In another embodiment, the method for parsing the message to be processed can also be to extract the virtual local area network tag from the message to be processed according to a preset message parsing strategy.
[0088] S103. If there are duplicate labels among the virtual LAN labels, then based on the virtual LAN labels of the messages to be processed received by other edge leaf node devices among the multiple edge leaf node devices, the virtual LAN labels with duplicate labels are rewritten.
[0089] In practical applications, for any message to be processed, the edge leaf node device can detect whether the VLAN tag is the same as the VLAN tag of other messages to be processed. If they are the same, it indicates that there is a VLAN tag duplication.
[0090] In this embodiment of the application, different edge leaf node devices can work together, enabling multiple edge leaf node devices to perform centralized management of the virtual local area network (VLAN) labels of the pending messages of different users, i.e., unified rewriting processing, so as to quickly solve the problem of duplicate VLAN labels.
[0091] Naturally, the edge leaf node device can obtain the virtual local area network (VLAN) tags of the pending messages received by other edge leaf node devices among multiple edge leaf node devices. Furthermore, based on the VLAN tags of the pending messages received by other edge leaf node devices among multiple edge leaf node devices, it can rewrite the VLAN tags that have duplicate tags, so that the rewritten VLAN tags are different from the VLAN tags of the pending messages received by other edge leaf node devices, that is, they are not duplicated.
[0092] One method for rewriting duplicate VLAN tags based on the VLAN tags of the packets to be processed received by other edge leaf node devices can be to pre-train an algorithm model, and then input both the VLAN tags of the packets to be processed received by other edge leaf node devices and the VLAN tags with duplicate tags into the algorithm model. After rewriting each VLAN tag with duplicate tags, the algorithm model outputs the rewritten VLAN tags.
[0093] Alternatively, based on the VLAN tags of the pending messages received by other edge leaf node devices among multiple edge leaf node devices, the method for rewriting VLAN tags with duplicate tags can also be to modify some fields in the VLAN tags with duplicate tags, so that the modified VLAN tags are different from the VLAN tags of the pending messages received by other edge leaf node devices, thereby completing the rewriting process for each VLAN tag with duplicate tags.
[0094] The technical solution in this application embodiment receives pending messages from different users sent by access leaf node devices, obtains the virtual local area network (VLAN) tags of each pending message, and, when there are duplicate tags among the VLAN tags, rewrites the VLAN tags with duplicate tags based on the VLAN tags of the pending messages received by other edge leaf node devices among the multiple edge leaf node devices. The above method can be applied to any one of multiple edge leaf node devices. Specifically, when it is determined that there are duplicate VLAN tags among the pending messages, the VLAN tags of the pending messages received by other edge leaf node devices among the multiple edge leaf node devices can be obtained. Based on the VLAN tags of the pending messages received by other edge leaf node devices among the multiple edge leaf node devices, the VLAN tags with duplicate tags are rewritten, thereby ensuring that the rewritten VLAN tags do not overlap with the VLAN tags of other pending messages. Furthermore, when applied to multiple edge leaf node devices... The node devices work collaboratively. Each edge leaf node device can obtain the VLAN tags of the packets to be processed received by other edge leaf node devices, and rewrite the VLAN tags with duplicate tags based on the VLAN tags of the packets to be processed received by the edge leaf node devices. This process does not require separate tag rewriting configuration for each edge leaf node device, thereby reducing the complexity of the tag rewriting method and further improving the speed and efficiency of VLAN tag planning. In addition, the above method does not require manual intervention, which can reduce human error and thus improve the accuracy of the rewritten VLAN tags.
[0095] In one embodiment, before performing the steps in S103 above, the method may further include: for any virtual local area network (VLAN) tag, if a VLAN tag identical to the VLAN tag is found in the tag planning table, then it is determined that the VLAN tag of the message to be processed is duplicated. The tag planning table stores VLAN tags for multiple other messages to be processed.
[0096] In practical applications, for any virtual local area network (VLAN) label of a message to be processed, the edge leaf node device can check whether there is a VLAN label with the same VLAN label as the message to be processed in the label planning table. If a VLAN label with the same VLAN label as the message to be processed is found in the label planning table, it can be determined that the VLAN label of the message to be processed has been duplicated. In this case, the VLAN label of the message to be processed can be rewritten.
[0097] Additionally, if no VLAN tag matching the one for the message to be processed is found in the tag planning table, it can be determined that the VLAN tag for the message to be processed is not duplicated. In this case, it is not necessary to rewrite the VLAN tag for the message to be processed.
[0098] Optionally, the label planning table mentioned above can store virtual LAN labels for multiple other pending messages that have been planned.
[0099] The construction process of the above label planning table is described below. In one embodiment, as follows: Figure 3 As shown, the process of constructing the above label planning table may include the following steps:
[0100] S104. Obtain the virtual LAN tags of other pending messages from different target users.
[0101] Specifically, edge leaf node devices can acquire virtual LAN tags of other pending messages from different target users that have been planned before the current time, either asynchronously or synchronously.
[0102] S105. Generate a tag planning table based on the virtual LAN tags of other pending messages.
[0103] Furthermore, the virtual LAN tags of the other unprocessed messages can be stored in an empty tag planning table to generate a tag planning table.
[0104] In this embodiment, the virtual local area network (VLAN) labels of other pending messages of the target user can be the original VLAN labels configured for the network messages of the target user by the optical network unit and optical line terminal in the new metropolitan area network architecture, or the rewritten VLAN labels generated by the edge leaf node device after rewriting the original VLAN labels of the network messages of the target user.
[0105] Correspondingly, the virtual LAN tags for different other pending messages stored in the tag planning table are not duplicated.
[0106] In the technical solution of this application embodiment, for any virtual local area network (VLAN) tag, if a VLAN tag identical to the VLAN tag of the message to be processed is found in the tag planning table, it is determined that the VLAN tag of the message to be processed has a tag duplication. This method can determine whether the VLAN tag of the message to be processed has a tag duplication by using a pre-constructed tag planning table. This process does not require complex algorithm processing, thereby reducing the complexity of the processing process and improving the speed of the processing process. At the same time, the result of whether the VLAN tag of the message to be processed has a tag duplication can be used as a reference, so that only the VLAN tags with duplicate tags are rewritten in the rewriting process, thereby improving the planning speed and efficiency of VLAN tags.
[0107] The following describes the process of rewriting the VLAN tags that have duplicate tags. In one embodiment, the VLAN tags include an outer VLAN tag; such as... Figure 4 As shown, the step in S103 above, which rewrites virtual local area network (VLAN) labels of packets with duplicate labels based on the VLAN labels of the packets to be processed received by other edge leaf node devices among multiple edge leaf node devices, can be implemented in the following way:
[0108] S113. Obtain the outer virtual local area network (VLAN) label of each message to be processed from the VLAN tags of each message to be processed.
[0109] The virtual LAN label of the message to be processed may include the outer virtual LAN label of the network message, the time label for configuring the outer virtual LAN label of the network message, and the physical interface label for transmitting the outer virtual LAN label.
[0110] Specifically, for any message to be processed, the edge leaf node device can extract the outer VLAN tag of the message from the VLAN tag of the message to be processed.
[0111] S123. For any message to be processed, based on the outer VLAN tags of the messages to be processed received by other edge leaf node devices among the multiple edge leaf node devices, rewrite the outer VLAN tags that have duplicate tags. The rewritten outer VLAN tag of the message to be processed must be different from the outer VLAN tags of other messages to be processed.
[0112] In practical applications, edge leaf node devices can rewrite the outer VLAN tags of packets to be processed received by other edge leaf node devices, and rewrite the outer VLAN tags that are duplicated, so that the rewritten outer VLAN tags are different from the outer VLAN tags of packets to be processed received by other edge leaf node devices, i.e., they are not duplicated.
[0113] One method for rewriting duplicated outer VLAN tags in packets received by other edge leaf node devices can be to pre-train an algorithm model, then input both the outer VLAN tags of the packets received by other edge leaf node devices and the duplicated outer VLAN tags into the algorithm model. After rewriting the duplicated outer VLAN tags, the algorithm model outputs the rewritten outer VLAN tags.
[0114] Alternatively, based on the outer VLAN tags of the pending messages received by other edge leaf node devices among multiple edge leaf node devices, another way to rewrite outer VLAN tags with duplicate tags is to modify some fields in the outer VLAN tags with duplicate tags, so that the modified outer VLAN tags are different from the outer VLAN tags of the pending messages received by other edge leaf node devices, thereby completing the rewriting process for outer VLAN tags with duplicate tags.
[0115] In one embodiment, such as Figure 5 As shown, the step in S123 above, which rewrites outer VLAN tags that have duplicate tags based on the outer VLAN tags of the packets to be processed received by other edge leaf node devices among multiple edge leaf node devices, may include:
[0116] S1231. Based on the outer VLAN tags of the packets to be processed received by other edge leaf node devices among the multiple edge leaf node devices, update the tag pool to generate an updated tag pool. The tag pool includes multiple tags that are different from the individual VLAN tags.
[0117] It should be noted that the tag pool can be understood as a tag information library built by the edge leaf node device. Optionally, the tag pool can be built based on the outer VLAN tags of each packet to be processed and the outer VLAN tags of other packets to be processed. The tag pool can include multiple tags that are different from the outer VLAN tags of each packet to be processed and the outer VLAN tags of other packets to be processed, and these tags are distinct. The tags stored in the tag pool have the same format as the outer VLAN tags.
[0118] Specifically, the edge leaf node device can search the tag pool for the same outer VLAN tag as the unprocessed message received by other edge leaf node devices, and delete the tag from the tag pool that is the same as the outer VLAN tag of the unprocessed message received by other edge leaf node devices, so as to update the tag pool and generate an updated tag pool.
[0119] It should be noted that updating the tag pool is to prevent the outer VLAN tag of the packet to be processed from being rewritten to be the same as the outer VLAN tag of the packet to be processed received by other edge leaf node devices during the rewriting process.
[0120] S1232. Obtain the target tag from the updated tag pool.
[0121] Specifically, when the edge leaf node device determines that there is a duplicate label in the outer virtual local area network label of the message to be processed, it can select the first label from the updated label pool according to the order of the labels stored in the updated label pool and determine it as the target label.
[0122] In addition, the edge leaf node device can also select any label from the updated label pool as the target label.
[0123] In practical applications, after obtaining the target label, the edge leaf node device can delete the target label from the updated label pool to avoid the problem of rewriting different VLAN labels with the same label, resulting in duplicate VLAN labels for different network packets.
[0124] S1233. Modify the outer VLAN tag of the message to be processed to the target tag to complete the rewriting of the outer VLAN tag with duplicate tags.
[0125] Based on the target tag obtained in the previous steps, the outer VLAN tag of the message to be processed can be modified to the target tag to complete the rewriting of the outer VLAN tag with duplicate tags.
[0126] This embodiment can rewrite outer VLAN tags with duplicate tags using a tag pool, eliminating the need for complex algorithms and thus reducing the complexity and speed of the rewriting process. Furthermore, this embodiment can update the tag pool based on the outer VLAN tags of the packets to be processed received by other edge leaf node devices, generating an updated tag pool. This updated tag pool is then used to rewrite outer VLAN tags with duplicate tags, preventing the rewriting of different VLAN tags using the same tag, which could lead to duplicate VLAN tags in different network packets.
[0127] The technical solution in this application embodiment obtains the outer VLAN tag of each message to be processed from the VLAN tags of each message to be processed. For any message to be processed, based on the outer VLAN tags of the messages to be processed received by other edge leaf node devices among multiple edge leaf node devices, the outer VLAN tags with duplicate tags are rewritten. This method can obtain the outer VLAN tag of the message to be processed from the VLAN tags of the message to be processed, and further only rewrite the outer VLAN tag of the message to be processed, without rewriting other tags in the message to be processed, thereby reducing the amount of data processed during the rewriting process and improving the speed and efficiency of the rewriting process.
[0128] In one embodiment, such as Figure 6 As shown, the step in S113 above, which involves obtaining the outer virtual local area network (VLAN) tag of each packet from the VLAN tag of each packet to be processed, can be implemented in the following way:
[0129] S1131. For any message to be processed, obtain the length of the virtual LAN tag and the location information of the virtual LAN tag from the message to be processed.
[0130] Specifically, for any message to be processed, the edge leaf node device can parse the message to be processed according to its format to obtain the length and location information of the virtual LAN tag in the message.
[0131] S1132. Obtain the virtual local area network (VLAN) label from the message to be processed based on the length and location information of the VLAN label.
[0132] Furthermore, the field information at the corresponding position can be obtained from the message to be processed based on the location information of the virtual LAN tag, and the field information with the same length as the virtual LAN tag can be extracted from the field information at the corresponding position. The extracted field information with the same length as the virtual LAN tag is then determined as the virtual LAN tag of the message to be processed.
[0133] S1133. Extract the outer virtual LAN label of the message to be processed from the virtual LAN label.
[0134] In this embodiment, the aforementioned virtual LAN label may include an inner virtual LAN (i.e., cVLAN) label generated by the optical network unit in the novel metropolitan area network architecture for the target user's network packets in a primary planning process, and an outer virtual LAN (i.e., sVLAN) label generated by the optical line terminal in the novel metropolitan area network architecture for the target user's network packets in a secondary planning process. Optionally, the aforementioned virtual LAN label can be understood as a Layer 2 tunnel (i.e., QinQ) label.
[0135] Specifically, for any message to be processed, the edge leaf node device can extract the outer VLAN tag of the message to be processed from the VLAN tag of the message to be processed according to the configuration format of the outer VLAN tag.
[0136] In addition, for any message to be processed, the edge leaf node device can also obtain the field information corresponding to the length of the outer VLAN tag from the VLAN tag of the message to be processed, and determine the field information as the outer VLAN tag of the message to be processed.
[0137] The technical solution in this application embodiment, for any message to be processed, obtains the length and position information of the virtual local area network (VLAN) tag from the message to be processed. Based on the length and position information of the VLAN tag, it retrieves the VLAN tag from the message to be processed and extracts the outer VLAN tag from the VLAN tag. This method can obtain the outer VLAN tag of the message to be processed from the VLAN tag of the message to be processed, so that only the outer VLAN tag of the message to be processed needs to be rewritten, without needing to rewrite other tags in the message to be processed. This reduces the amount of data processed during the rewriting process and improves the speed and efficiency of the rewriting process.
[0138] In some scenarios, to detect whether there are duplicate VLAN tags for other pending messages, the rewritten VLAN tags can be added to the tag planning table. In one embodiment, after performing the steps in S103 above, the method may further include: adding the rewritten VLAN tags of each pending message to the tag planning table for storage.
[0139] Specifically, the edge leaf node device can add the rewritten VLAN tags of each message to be processed to the tag planning table for storage. Optionally, the storage location of the rewritten VLAN tags in the tag planning table can be any empty position in the tag planning table, which is not limited in this embodiment.
[0140] Meanwhile, in practical applications, in order to authenticate the Internet devices of different users so that they can successfully access the new metropolitan area network (MAN), any control plane device in the new MAN architecture can perform user authentication by rewriting and processing the virtual local area network (VLAN) tags of different users' pending messages. The process of how the control plane device performs user authentication will be described below. In one embodiment, after executing the steps in S103 above, the method may further include: for any pending message, sending the rewritten and processed VLAN tag of the pending message to the forwarding plane device to instruct the forwarding plane device to forward the rewritten and processed VLAN tag to the control plane device for user authentication.
[0141] For any pending message, the edge leaf node device can rewrite and process the virtual LAN tag of the pending message and send it to the forwarding plane device in the virtual broadband remote access server, instructing the forwarding plane device to forward the rewritten and processed virtual LAN tag to the control plane device in the virtual broadband remote access server for user authentication.
[0142] It's important to note that access leaf node devices can send Unknown MAC Routes (UMRs) from the forwarding plane to edge leaf node devices. This allows edge leaf node devices to determine the forwarding plane's MAC address without needing to learn it. Based on the UMR, they can then rewrite and process the VLAN tag of the packet to be processed and send it to the forwarding plane device. In this process, the edge leaf node device doesn't need to learn the forwarding plane's MAC address, reducing the load on its MAC table entries.
[0143] The technical solution in this application embodiment can add the rewritten VLAN tags of each message to be processed to a tag planning table for storage. This helps to detect whether there are duplicate VLAN tags for other messages to be processed, and can completely avoid the problem of duplicate VLAN tags in the final planned VLANs. At the same time, this method can solve the problem of duplicate VLAN tags for network messages of different users through tag rewriting. On this basis, it can successfully send different rewritten VLAN tags to the forwarding plane device, and further enable the control plane device to perform user authentication for different users' Internet devices based on the different rewritten VLAN tags, so that different users' Internet devices can successfully access the new metropolitan area network.
[0144] In one embodiment, this application also provides a virtual local area network (VLAN) tag processing method, applied to any one of multiple edge leaf node devices, such as... Figure 7 As shown, the method includes the following procedures:
[0145] S01. Receive pending messages from different users sent by the access leaf node device.
[0146] S02. Obtain the virtual LAN tag for each message to be processed.
[0147] S03. For any virtual LAN label, if a virtual LAN label identical to the one in the label planning table is found, it is determined that the virtual LAN label of the message to be processed is duplicated; the label planning table stores virtual LAN labels of multiple other messages to be processed.
[0148] The process of constructing the aforementioned label planning table includes:
[0149] S031. Obtain the virtual LAN tags of other pending messages from different target users;
[0150] S032. Generate a label planning table based on the virtual LAN labels of other pending messages.
[0151] S04. If there are duplicate tags in each virtual LAN tag, then for any pending message, obtain the length and location information of the virtual LAN tag from the pending message.
[0152] S05. Obtain the virtual LAN label from the message to be processed based on the length and location information of the virtual LAN label.
[0153] S06. Extract the outer virtual LAN label of the message to be processed from the virtual LAN label.
[0154] S07. For any message to be processed, update the tag pool based on the outer VLAN tags of the messages to be processed received by other edge leaf node devices among the multiple edge leaf node devices, and generate an updated tag pool; the tag pool includes multiple tags that are different from each outer VLAN tag.
[0155] S08. Obtain the target tag from the updated tag pool.
[0156] S09. Modify the outer VLAN tag of the message to be processed to the target tag to complete the rewriting process of the outer VLAN tag with duplicate tags; wherein, the outer VLAN tag of the message to be processed after rewriting is different from the outer VLAN tag of other messages to be processed.
[0157] S10. Add the rewritten and processed VLAN tags of each pending message to the tag planning table for storage. And,
[0158] S11. For any pending message, rewrite the processed VLAN tag and send it to the forwarding plane device to instruct the forwarding plane device to forward the rewritten VLAN tag to the control plane device for user authentication.
[0159] The specific execution process of S01 to S11 above can be found in the description of the above embodiments. The implementation principle and technical effect are similar, and will not be repeated here.
[0160] like Figure 8 The diagram shown is a flowchart of a virtual local area network (VLAN) tag processing method provided in this application embodiment. This method is applied to access leaf node devices and may include the following steps:
[0161] S201. Obtain the pending messages from each user.
[0162] The aforementioned messages to be processed may include virtual local area network (VLAN) tags, VLAN tag length, VLAN tag type, VLAN tag location information, and optical line terminal identifiers for planned VLAN tags, etc., generated when a user's Internet device accesses the new metropolitan area network.
[0163] Optionally, the optical line terminal identifier of the aforementioned planned virtual local area network (VLAN) label can be configured by the optical line terminal of the planned VLAN label. In this embodiment, the optical line terminal identifier of the aforementioned planned VLAN label can be configured by the access leaf node device in the new metropolitan area network architecture for the optical line terminal that sends the VLAN label it receives.
[0164] In practical applications, the generation process of a Virtual LAN (VLAN) label can involve a new metropolitan area network (MAN) architecture first planning network packets through optical network units, and then a second planning process through optical line terminals. It should be noted that a VLAN label refers to a VLAN ID or VLAN identifier.
[0165] Optionally, the format of the above-mentioned message to be processed can be Ethernet frame format, data packet format, virtual LAN frame format, data encoding format, etc.
[0166] The access leaf node device can receive the virtual LAN label (VLAN tag) of network packets from at least one user sent by the optical line terminal (OLT). Then, for any user, it processes the VLAN tag, VLAN tag length, VLAN tag type, VLAN tag location information, and the OLT identifier of the planned VLAN tag in the user's network packet to obtain the user's pending packet. Here, "user" can be understood as a broadband user.
[0167] S202. Send each message to be processed to the edge leaf node device to instruct the edge leaf node device to obtain the virtual local area network (VLAN) label of each message to be processed. If there is a duplicate label among the VLAN labels, rewrite the VLAN labels of the messages to be processed based on the VLAN labels of the messages to be processed received by other edge leaf node devices.
[0168] Specifically, the access leaf node device can send each message to be processed to the edge leaf node device, instructing the edge leaf node device to obtain the virtual local area network (VLAN) label of each message to be processed. If duplicate VLAN labels exist, the device rewrites the duplicate VLAN labels based on the VLAN labels of the messages to be processed received by other edge leaf node devices. Optionally, there can be one or more edge leaf node devices.
[0169] In this embodiment of the application, the virtual local area network (VLAN) tag of the message to be processed refers to the VLAN tag in the message to be processed.
[0170] For any message to be processed, the edge leaf node device can parse the message to obtain the virtual LAN tag in the message.
[0171] In one embodiment, the method for parsing the message to be processed may be to determine the message parsing method based on the format of the message to be processed, and then use the message parsing method to parse the message to be processed.
[0172] In another embodiment, the method for parsing the message to be processed can also be to extract the virtual local area network tag from the message to be processed according to a preset message parsing strategy.
[0173] In practical applications, for any pending message, the edge leaf node device can detect whether the VLAN tag is the same as the VLAN tag of other pending messages. If they are the same, it indicates that there is a VLAN tag duplication. In this case, the VLAN tag with the duplicate tag can be rewritten based on the VLAN tags of pending messages received by other edge leaf node devices, so that the rewritten VLAN tag is different from the VLAN tags of pending messages received by other edge leaf node devices, i.e., it is not duplicated.
[0174] One method for rewriting duplicate VLAN tags based on the VLAN tags of the packets to be processed received by other edge leaf node devices can be to pre-train an algorithm model, and then input both the VLAN tags of the packets to be processed received by other edge leaf node devices and the VLAN tags with duplicate tags into the algorithm model. After rewriting each VLAN tag with duplicate tags, the algorithm model outputs the rewritten VLAN tags.
[0175] Alternatively, based on the VLAN tags of the pending messages received by other edge leaf node devices among multiple edge leaf node devices, the method for rewriting VLAN tags with duplicate tags can also be to modify some fields in the VLAN tags with duplicate tags, so that the modified VLAN tags are different from the VLAN tags of the pending messages received by other edge leaf node devices, thereby completing the rewriting process for each VLAN tag with duplicate tags.
[0176] The technical solution in this application embodiment obtains the pending messages from each user and sends each pending message to the edge leaf node device. This instructs the edge leaf node device to obtain the virtual local area network (VLAN) tags of each pending message. When duplicate tags exist among the VLAN tags, the device rewrites the VLAN tags with duplicate tags based on the VLAN tags of the pending messages received by other edge leaf node devices. This method can instruct the edge leaf node device to obtain the VLAN tags of the pending messages received by other edge leaf node devices when it determines that duplicate VLAN tags exist. This method rewrites duplicate VLAN tags based on the VLAN tags of packets to be processed received by other edge leaf node devices. This ensures that the rewritten VLAN tags do not overlap with those of other packets to be processed. Furthermore, the method enables collaborative processing among multiple edge leaf node devices, eliminating the need for individual tag rewriting configurations for each device. This reduces the complexity of the tag rewriting process and further improves the speed and efficiency of VLAN tag planning. Additionally, this method does not require manual intervention, reducing human error and improving the accuracy of the rewritten VLAN tags.
[0177] The process of obtaining the pending messages from each user is described below. In one embodiment, as follows... Figure 9 As shown, the steps in S201 above can be implemented in the following ways:
[0178] S211. Obtain the virtual local area network (VLAN) tags of the network packets sent by each user from the optical line terminal.
[0179] In practical applications, access leaf node devices can receive virtual LAN tags for network packets from each user sent by the optical line terminal.
[0180] S221. For any network packet, encapsulate the virtual LAN tag of the network packet to generate a packet to be processed.
[0181] In practical applications, for any network packet, the access leaf node device can obtain the length, type, and location information of the virtual LAN label of the network packet, as well as the optical line terminal identifier of the planned virtual LAN label. It can also encapsulate, bind, and convert the virtual LAN label, virtual LAN label length, virtual LAN label type, virtual LAN label location information, and optical line terminal identifier of the planned virtual LAN label of the network packets generated when the user's Internet device accesses the new metropolitan area network, to obtain the packet to be processed.
[0182] In this embodiment, the access leaf node device can obtain the length and location information of the virtual local area network (VLAN) tag of the network packet, and encapsulate, bind and convert the VLAN tag, VLAN tag length and VLAN tag location information of the network packet generated when the user's Internet device accesses the new metropolitan area network to obtain the packet to be processed.
[0183] Meanwhile, in one embodiment, such as Figure 10 As shown, the step of sending each message to be processed to the edge leaf node device in S202 above may include:
[0184] S212, Construct a communication tunnel between the device and the edge leaf node.
[0185] In this embodiment of the application, the communication tunnel can be a tunnel encapsulating multiple network protocols (Generic Routing Encapsulation, GRE), a tunnel of Border Gateway Protocol (BGP), etc., and the tunnel of Border Gateway Protocol can be a tunnel of External Border Gateway Protocol (EBGP), etc.
[0186] However, in this embodiment, the communication tunnel between the access leaf node device and the edge leaf node device can be an Internal Border Gateway Protocol (IBGP) tunnel, i.e., an IBGP neighbor.
[0187] Furthermore, based on IBGP neighbors, access leaf node devices can also construct Layer 2 communication tunnels with edge leaf node devices. These Layer 2 communication tunnels can be segment routing IPv4 tunnels based on the Internet Protocol Version 4 (IPv4) forwarding plane. However, in this embodiment, the Layer 2 communication tunnel can be a segment routing IPv6 tunnel based on the Internet Protocol Version 6 (IPv6) forwarding plane. The IPv6 tunnel can be used to transmit control layer messages.
[0188] S222. For any pending message, send the Border Gateway Protocol Update message carrying the pending message to the edge leaf node device through the communication tunnel.
[0189] In this embodiment of the application, for any message to be processed, the access leaf node device can send the border gateway protocol update message carrying the message to be processed to the edge leaf node device through the communication tunnel via the internal border gateway protocol-link state (IBGP-LS).
[0190] It should be noted that the message to be processed can be carried in the border gateway protocol update message in the form of a data encoding format (Tag-Length-Value, TLV).
[0191] Table 1 shows the message format of the pending message carried in the Border Gateway Protocol update message. The first row of data (0, 1, 2, and 3) in Table 1 represents the 4 bytes of the VLAN tag in the pending message. The second row of data (0, 1, 2, ..., 9, 0, ..., 0, 1) represents the bits corresponding to each byte in the VLAN tag (i.e., the location information of the VLAN tag). Table 1 is an example illustrative table that includes the VLAN tag, the type of the VLAN tag, the length of the VLAN tag, the location information of the VLAN tag, and the optical line terminal identifier of the planned VLAN tag.
[0192] In practical applications, the Border Gateway Protocol update message is scalable. Correspondingly, in addition to carrying the message to be processed, the Border Gateway Protocol update message can also carry other information that needs to be sent to the edge leaf node device, such as the other information in Table 1.
[0193] Table 1
[0194]
[0195] In this embodiment of the application, if the optical line terminal identifier of the planned virtual local area network (VLAN) tag is not included in the message to be processed, the border gateway protocol update message may not carry the optical line terminal identifier of the planned VLAN tag.
[0196] The technical solution in this application embodiment obtains the virtual local area network (VLAN) tags of network packets sent by each user from the optical line terminal (OLT), and for any network packet, encapsulates the VLAN tag of the network packet to generate a packet to be processed, which is then sent to the edge leaf node device. This enables the access leaf node device to successfully send the VLAN tag of the network packet to the edge leaf node device, instructing the edge leaf node device to rewrite VLAN tags with duplicate tags, reducing the complexity of the VLAN tag rewriting method, and improving the efficiency of VLAN tag planning.
[0197] In one embodiment, this application also provides a virtual local area network (VLAN) tag processing method, applied to access leaf node devices, such as... Figure 11 As shown, the method includes the following procedures:
[0198] S21. Obtain the virtual local area network (VLAN) tags of the network packets sent by each user from the optical line terminal.
[0199] S22. For any network packet, encapsulate the virtual LAN tag of the network packet to generate a packet to be processed.
[0200] S23. Construct a communication tunnel between the device and the edge leaf node.
[0201] S24. For any pending message, the Border Gateway Protocol Update message carrying the pending message is sent to the edge leaf node device through the communication tunnel to instruct the edge leaf node device to obtain the virtual local area network (VLAN) label of each pending message. If there is a duplicate label among the VLAN labels, the VLAN labels with duplicate labels are rewritten according to the VLAN labels of the pending messages received by other edge leaf node devices.
[0202] The specific execution process of S21 to S24 above can be found in the description of the above embodiments. The implementation principle and technical effect are similar, and will not be repeated here.
[0203] For ease of understanding, an interactive embodiment is used to illustrate the virtual local area network (VLAN) tag processing method. In one embodiment, this application also provides a VLAN tag processing method applied to a novel metropolitan area network (MAN) architecture within a VLAN tag processing system. This novel MAN architecture includes multiple edge leaf node devices and access leaf node devices, such as... Figure 12 As shown, the method includes the following procedures:
[0204] S31. Access leaf node devices obtain the virtual LAN tags of network packets sent by optical line terminals to each user.
[0205] S32. For any network packet, the access leaf node device encapsulates the virtual LAN tag of the network packet and generates a packet to be processed.
[0206] S33. Access leaf node devices construct communication tunnels between themselves and edge leaf node devices.
[0207] S34. For any pending message, the access leaf node device will send the border gateway protocol update message carrying the pending message to the edge leaf node device through the communication tunnel.
[0208] S35. The edge leaf node device receives pending messages from different users sent by the access leaf node device.
[0209] S36. Edge leaf node devices acquire the virtual LAN tags of each message to be processed.
[0210] S37. For any virtual LAN label, if the edge leaf node device finds a virtual LAN label that is the same as the virtual LAN label in the label planning table, it determines that the virtual LAN label of the message to be processed has a label duplication; the label planning table stores multiple virtual LAN labels of other messages to be processed.
[0211] The process of constructing the aforementioned label planning table includes:
[0212] S371. Obtain the virtual LAN tags of other pending messages from different target users;
[0213] S372. Generate a label planning table based on the virtual LAN labels of other pending messages.
[0214] S38. If there are duplicate tags in each virtual LAN tag, the edge leaf node device obtains the length and location information of the virtual LAN tag from the packet to be processed for any packet to be processed.
[0215] S39. The edge leaf node device obtains the virtual LAN label from the message to be processed based on the length and location information of the virtual LAN label.
[0216] S40, the edge leaf node device extracts the outer VLAN tag of the packet to be processed from the VLAN tag.
[0217] S41. For any pending message, the edge leaf node device updates the tag pool based on the outer VLAN tags of the pending messages received by other edge leaf node devices, generating an updated tag pool; the tag pool includes multiple tags that are different from the outer VLAN tags.
[0218] S42, The edge leaf node device obtains the target label from the updated label pool.
[0219] S43. The edge leaf node device modifies the outer VLAN tag of the message to be processed to the target tag, so as to complete the rewriting process of the outer VLAN tag with duplicate tags; wherein, the outer VLAN tag of the message to be processed after rewriting is different from the outer VLAN tag of other messages to be processed.
[0220] S44. The edge leaf node device adds the rewritten and processed VLAN tags of each message to the tag planning table for storage. And,
[0221] S45. For any pending message, the edge leaf node device rewrites and processes the virtual LAN label of the pending message and sends it to the forwarding plane device, instructing the forwarding plane device to forward the rewritten and processed virtual LAN label to the control plane device for user authentication.
[0222] The execution process of S31 to S45 can be found in the description of the above embodiments. The implementation principle and technical effect are similar, and will not be repeated here.
[0223] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0224] Based on the same inventive concept, this application also provides a virtual local area network (VLAN) tag processing device for implementing the aforementioned VLAN tag processing method. The solution provided by this device is similar to the implementation described in the above method. Therefore, the specific limitations in one or more VLAN tag processing device embodiments provided below can be found in the limitations of the VLAN tag processing method described above, and will not be repeated here.
[0225] In one embodiment, Figure 13 This is a schematic diagram of the structure of a virtual local area network (VLAN) tag processing device in one embodiment of this application. The VLAN tag processing device provided in this embodiment can be applied to multiple edge leaf node devices within a novel metropolitan area network architecture in a VLAN tag processing system. For example... Figure 13 As shown, the virtual local area network tag processing device of this application embodiment may include: a message receiving module 11, a tag acquisition module 12, and a rewriting processing module 13, wherein:
[0226] The message receiving module 11 is used to receive unprocessed messages from different users sent by the access leaf node device;
[0227] The tag acquisition module 12 is used to acquire the virtual local area network tags of each message to be processed;
[0228] The rewrite processing module 13 is used to rewrite the virtual local area network (VLAN) labels that have duplicate labels when there are duplicate labels among the VLAN labels. This is done based on the VLAN labels of the messages to be processed received by other edge leaf node devices among the multiple edge leaf node devices.
[0229] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0230] In one embodiment, the virtual LAN tag processing device further includes a lookup module, wherein:
[0231] The lookup module is used to determine if a duplicate VLAN tag is found in the tag planning table for any given VLAN tag. The tag planning table stores VLAN tags for multiple other VLAN tags for other VLAN tags to be processed.
[0232] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0233] In one embodiment, the virtual LAN tag processing device further includes:
[0234] The planning table construction module is specifically used for:
[0235] Obtain the virtual LAN tags of other pending messages from different target users;
[0236] Generate a label planning table based on the virtual LAN labels of other pending messages.
[0237] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0238] In one embodiment, the virtual LAN label includes an outer virtual LAN label; the rewriting processing module 13 includes: an acquisition unit and a label rewriting unit, wherein:
[0239] The acquisition unit is used to acquire the outer virtual local area network (VLAN) tag of each message to be processed from the VLAN tag of each message to be processed.
[0240] The tag rewriting unit is used to rewrite the outer VLAN tag of any message to be processed based on the outer VLAN tags of other edge leaf node devices among multiple edge leaf node devices, and to rewrite the outer VLAN tags of messages to be processed that have duplicate tags; the outer VLAN tags of the message to be processed after rewriting are different from the outer VLAN tags of other messages to be processed.
[0241] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0242] In one embodiment, the label rewriting unit is specifically used for:
[0243] The tag pool is updated based on the outer VLAN tags of the packets to be processed received by other edge leaf node devices in multiple edge leaf node devices, generating an updated tag pool; the tag pool includes multiple tags that are different from each VLAN tag;
[0244] Retrieve the target tag from the updated tag pool;
[0245] Modify the outer VLAN tag of the message to be processed to the target tag to complete the rewriting of outer VLAN tags with duplicate tags.
[0246] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0247] In one embodiment, the first acquisition unit is specifically used for:
[0248] For any message to be processed, obtain the length and location information of the virtual LAN tag from the message to be processed;
[0249] Based on the length and location information of the virtual LAN tag, obtain the virtual LAN tag from the message to be processed;
[0250] Extract the outer VLAN tag of the message to be processed from the VLAN tag.
[0251] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0252] In one embodiment, the virtual LAN tag processing device further includes: a tag adding module, wherein:
[0253] The tag adding module is specifically used to add the rewritten and processed virtual LAN tags of each message to the tag planning table for storage.
[0254] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0255] In one embodiment, the virtual local area network (VLAN) tag processing device further includes: a tag forwarding module, wherein:
[0256] The tag forwarding module is specifically used to send a rewritten and processed virtual LAN tag to any pending message to the forwarding plane device, so as to instruct the forwarding plane device to forward the rewritten and processed virtual LAN tag to the control plane device for user authentication.
[0257] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0258] In one embodiment, Figure 14 This is a schematic diagram of the structure of a virtual local area network (VLAN) tag processing device in one embodiment of this application. The VLAN tag processing device provided in this embodiment can be applied to access leaf node devices in a novel metropolitan area network architecture within a VLAN tag processing system. Figure 14 As shown, the virtual local area network tag processing device of this application embodiment may include: a message acquisition module 21 and a message sending module 22, wherein:
[0259] Message acquisition module 21 is used to acquire the messages to be processed from each user;
[0260] The message sending module 22 is used to send each message to be processed to the edge leaf node device to instruct the edge leaf node device to obtain the virtual local area network (VLAN) tag of each message to be processed, and when there is a duplicate tag in each VLAN tag, it rewrites each VLAN tag with duplicate tags according to the VLAN tags of the messages to be processed received by other edge leaf node devices.
[0261] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0262] In one embodiment, the message acquisition module 21 is specifically used for:
[0263] Obtain the virtual local area network (VLAN) tags of the network packets sent by each user from the optical line terminal (OLT);
[0264] For any network packet, the virtual LAN tag of the network packet is encapsulated to generate a packet to be processed.
[0265] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0266] In one embodiment, the message sending module 22 is specifically used for:
[0267] Construct a communication tunnel between the device and the edge leaf node;
[0268] For any pending message, the Border Gateway Protocol update message carrying the pending message will be sent to the edge leaf node device through the communication tunnel.
[0269] The virtual local area network (VLAN) tag processing device provided in this application embodiment can be used to execute the technical solutions in the above-described VLAN tag processing method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0270] Specific limitations regarding the VLAN tag processing device can be found in the limitations of the VLAN tag processing method described above, and will not be repeated here. Each module in the aforementioned VLAN tag processing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in the communication device, or stored in software in the memory of the communication device, so that the processor can call and execute the corresponding operations of each module.
[0271] In one embodiment, a communication device is provided, see [link to previous document]. Figure 15 . Figure 15 This is a schematic diagram of the communication device provided in an embodiment of this application. Optionally, the communication device can be a communication module within a base station or terminal in a network access method system. Figure 15 The communication device shown includes a transceiver, at least one processor, memory, at least one network interface, and a user interface. The various components of the communication device are coupled together via a bus system. It is understood that the bus system is used to implement communication between these components. In addition to a data bus, the bus system also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 15 In this context, all buses are labeled as bus systems. Optionally, a transceiver can be multiple elements, including a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.
[0272] The user interface may include a display, keyboard, or clicking device (e.g., mouse, trackball, touchpad, or touchscreen).
[0273] It is understood that the memory in the embodiments of this application can be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory of the systems and methods described in the embodiments of this application is intended to include, but is not limited to, these and any other suitable types of memory.
[0274] In some implementations, the memory stores elements such as executable modules or data structures, or other subsets or extensions thereof: operating systems and applications.
[0275] The operating system includes various system programs, such as the framework layer, core library layer, and driver layer, used to implement various basic business functions and handle hardware-based tasks. The application programs include various applications, such as media players and browsers, used to implement various application functions. Programs implementing the methods of the embodiments of this application can be included in the application programs.
[0276] In the embodiments of this application, a program or instruction stored in the memory is invoked; specifically, it may be a program or instruction stored in an application program.
[0277] The methods disclosed in the embodiments of this application can be applied to a processor, implemented by a processor, or implemented by a processor in conjunction with other components (e.g., a transceiver). The processor may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above methods can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this application can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and, in conjunction with its hardware, completes the steps of the above method.
[0278] It is understood that the embodiments described in this application can be implemented using hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in this application, or combinations thereof.
[0279] For software implementation, the techniques described in the embodiments of this application can be implemented by modules (e.g., procedures, functions, etc.) that perform the functions described in the embodiments of this application. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or externally.
[0280] Those skilled in the art will understand that Figure 15 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the communication device to which the present application is applied. Specific communication devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0281] In one embodiment, a communication device is also provided, including a transceiver, a memory, and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method in any of the above embodiments.
[0282] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements the steps of the method in any of the above embodiments.
[0283] In one embodiment, a computer program product is also provided, including a computer program that, when executed by a processor, implements the steps of the methods in any of the above embodiments.
[0284] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0285] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0286] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A method of processing a virtual local area network tag, the method comprising: The method applied to any one of the plurality of edge leaf node devices comprises: receiving different user's to-be-processed packets sent by an access leaf node device; acquiring a virtual local area network label of each of the to-be-processed packets, wherein the virtual local area network label comprises an outer virtual local area network label; if there is label repetition in each of the virtual local area network labels, acquiring the outer virtual local area network label of each of the to-be-processed packets from the virtual local area network label of each of the to-be-processed packets; for any to-be-processed packet, rewriting the outer virtual local area network label with label repetition according to the outer virtual local area network label of the to-be-processed packet received by other edge leaf node devices in the plurality of edge leaf node devices; and the outer virtual local area network label of the to-be-processed packet after rewriting is different from the outer virtual local area network label of other to-be-processed packets.
2. The method of claim 1, wherein, The method further comprises: for any virtual local area network label, if the same virtual local area network label as the virtual local area network label is found in a label planning table, it is determined that the virtual local area network label of the to-be-processed packet has label repetition; and the label planning table stores virtual local area network labels of a plurality of other to-be-processed packets.
3. The method of claim 2, wherein, The construction process of the label planning table comprises: acquiring virtual local area network labels of other to-be-processed packets of different target users; generating the label planning table according to the virtual local area network labels of each of the other to-be-processed packets.
4. The method of claim 1, wherein, The rewriting of the outer virtual local area network label with label repetition according to the outer virtual local area network label of the to-be-processed packet received by other edge leaf node devices in the plurality of edge leaf node devices comprises: updating a label pool according to the outer virtual local area network label of the to-be-processed packet received by other edge leaf node devices in the plurality of edge leaf node devices to generate an updated label pool; the label pool comprises a plurality of labels different from each virtual local area network label; acquiring a target label from the updated label pool; modifying the outer virtual local area network label of the to-be-processed packet to the target label to complete the rewriting of the outer virtual local area network label with label repetition.
5. The method of claim 1, wherein, The acquisition of the outer virtual local area network label of each of the to-be-processed packets from the virtual local area network label of each of the to-be-processed packets comprises: for any to-be-processed packet, acquiring the length of the virtual local area network label and the position information of the virtual local area network label from the to-be-processed packet; acquiring the virtual local area network label from the to-be-processed packet according to the length of the virtual local area network label and the position information of the virtual local area network label; extracting the outer virtual local area network label of the to-be-processed packet from the virtual local area network label.
6. The method according to any one of claims 1-3, characterized in that, The method further comprises: adding the virtual local area network label of each of the to-be-processed packets after rewriting to a label planning table for storage.
7. The method according to any one of claims 1-3, characterized in that, The method further comprises: for any to-be-processed packet, sending the virtual local area network label of the to-be-processed packet after rewriting to a forwarding plane device to instruct the forwarding plane device to forward the virtual local area network label after rewriting to a control plane device for user authentication.
8. A method of processing a virtual local area network tag, the method comprising: The method is applied to an access leaf node device, and the method comprises the following steps: Obtaining to-be-processed messages of each user; Sending each to-be-processed message to an edge leaf node device to instruct the edge leaf node device to obtain virtual local area network labels of each to-be-processed message and to obtain outer virtual local area network labels of each to-be-processed message from the virtual local area network labels of each to-be-processed message when there is label repetition in each virtual local area network label; for any to-be-processed message, rewriting the outer virtual local area network label with label repetition according to the outer virtual local area network labels of to-be-processed messages received by other edge leaf node devices in a plurality of edge leaf node devices; the outer virtual local area network label of the to-be-processed message after rewriting is different from the outer virtual local area network labels of other to-be-processed messages; the virtual local area network label comprises the outer virtual local area network label.
9. The method of claim 8, wherein, The step of obtaining to-be-processed messages of each user comprises the following steps: Obtaining virtual local area network labels of network messages of each user sent by an optical line terminal; For any network message, encapsulating the virtual local area network label of the network message to generate a to-be-processed message.
10. The method according to claim 8 or 9, characterized in that, The step of sending each to-be-processed message to an edge leaf node device comprises the following steps: Constructing a communication tunnel between the edge leaf node device; For any to-be-processed message, sending a border gateway protocol update message carrying the to-be-processed message to the edge leaf node device through the communication tunnel.
11. A virtual local area network tag processing device, characterized by: The device is applied to any edge leaf node device in a plurality of edge leaf node devices, and the device comprises the following modules: A message receiving module, configured to receive to-be-processed messages of different users sent by an access leaf node device; A label obtaining module, configured to obtain virtual local area network labels of each to-be-processed message, wherein the virtual local area network label comprises an outer virtual local area network label; A rewriting processing module, configured to, if there is label repetition in each virtual local area network label, obtain the outer virtual local area network label of each to-be-processed message from the virtual local area network labels of each to-be-processed message; for any to-be-processed message, rewriting the outer virtual local area network label with label repetition according to the outer virtual local area network labels of to-be-processed messages received by other edge leaf node devices in a plurality of edge leaf node devices; the outer virtual local area network label of the to-be-processed message after rewriting is different from the outer virtual local area network labels of other to-be-processed messages.
12. A virtual local area network tag processing device, characterized by: The device is applied to an access leaf node device, and the device comprises the following modules: A message obtaining module, configured to obtain to-be-processed messages of each user; The message sending module is configured to send each of the to-be-processed messages to an edge leaf node device, to instruct the edge leaf node device to acquire a virtual local area network label of each of the to-be-processed messages, and to acquire an outer virtual local area network label of each of the to-be-processed messages from the virtual local area network label of each of the to-be-processed messages when there is label repetition in each of the virtual local area network labels; for any to-be-processed message, the outer virtual local area network label with label repetition is rewritten according to the outer virtual local area network label of the to-be-processed message received by other edge leaf node devices in the plurality of edge leaf node devices; the outer virtual local area network label of the to-be-processed message after the rewriting processing is different from the outer virtual local area network label of other to-be-processed messages; and the virtual local area network label comprises the outer virtual local area network label.
13. A communication device comprising a transceiver, a memory, and a processor, the memory storing a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1-10.
14. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1-10.
15. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps of the method of any one of claims 1-10. The computer program is executed by the processor to implement the steps of the method of any one of claims 1-10.
Citation Information
Patent Citations
A data transmission method and a device
CN109104353A