CN115118547A - F5G terminal VLAN aggregation method, system, device and storage medium - Google Patents

F5G terminal VLAN aggregation method, system, device and storage medium Download PDF

Info

Publication number
CN115118547A
CN115118547A CN202210729409.1A CN202210729409A CN115118547A CN 115118547 A CN115118547 A CN 115118547A CN 202210729409 A CN202210729409 A CN 202210729409A CN 115118547 A CN115118547 A CN 115118547A
Authority
CN
China
Prior art keywords
downlink
vlan
port
address data
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210729409.1A
Other languages
Chinese (zh)
Inventor
郭军勇
吴闽华
孟庆晓
李天佑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Genew Technologies Co Ltd
Original Assignee
Shenzhen Genew Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Genew Technologies Co Ltd filed Critical Shenzhen Genew Technologies Co Ltd
Priority to CN202210729409.1A priority Critical patent/CN115118547A/en
Publication of CN115118547A publication Critical patent/CN115118547A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • H04L12/462LAN interconnection over a bridge based backbone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4645Details on frame tagging
    • H04L12/4666Operational details on the addition or the stripping of a tag in a frame, e.g. at a provider edge node

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses a method, a system, a device and a storage medium for F5G terminal VLAN aggregation, which belong to the technical field of communication, wherein the method comprises the steps of extracting destination address data from downlink data after the downlink data are received; inquiring whether record address data matched with the destination address data are stored in an aggregation table; if so, calling a downlink port identifier corresponding to the record address data in the aggregation table; and converting the current VLAN of the current port into the downlink VLAN of the downlink port corresponding to the downlink port identification so as to complete VLAN aggregation. By using the recorded address data and the corresponding downlink port identifier stored in the aggregation table, the VLAN of the downlink port to which the VLAN of the current port needs to be converted can be obtained, the downlink data does not need to be broadcasted and copied, and the network information transmission efficiency and the VLAN aggregation efficiency are improved.

Description

F5G terminal VLAN aggregation method, system, device and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, an apparatus, and a storage medium for F5G terminal VLAN aggregation.
Background
F5G (The 5th generational fixed Network), i.e. fifth generation fixed Network, in The F5G era, a physical fiber (fiber) Network is moved to an all-optical service Network, which includes two major parts, an all-optical access Network and an all-optical transport Network. A VLAN, also known as a virtual local area network, is a group of logical users and devices that are used to combine terminals distributed in different geographical locations into a logical network according to communication needs. The terminals in the same logic network can communicate with each other, and the terminals in different logic networks can not communicate directly.
In practical applications, terminals under different VLANs may generate communication requirements. In the prior art, VLAN aggregation is usually adopted for solving the problem, specifically, after uplink data transmitted by a downlink interface is received by an uplink interface, a VLAN of the downlink interface is converted into a VLAN of the uplink interface, so that a terminal corresponding to the downlink interface and an upper computer corresponding to the uplink interface are located under the same VLAN; and after the downlink interface receives the downlink data transmitted by the uplink interface, the VLAN of the uplink interface is converted into the VLAN of the downlink interface, so that the upper computer corresponding to the uplink interface and the terminal are positioned under the same VLAN. The mutual conversion process between multiple VLANs and one VLAN is VLAN aggregation.
However, since the number of the downlink interfaces is large, when the uplink interface is converted into the VLAN of the downlink interface, it is necessary to know which VLAN of the downlink interface is converted. The existing solution is to duplicate the broadcast, i.e. transmit the downlink data to all downlink interfaces, and after a certain terminal feeds back that it is the receiver of the downlink data, convert the VLAN of the uplink interface into the VLAN of the downlink interface corresponding to the terminal. But the manner of duplicate broadcasting reduces the transmission efficiency of network information.
Disclosure of Invention
In view of this, the present invention provides a method, a system, a device and a storage medium for F5G terminal VLAN aggregation, which are used to solve the problem of low network information transmission efficiency in the prior art. To achieve one or a part of or all of the above or other objects, the present invention provides a method, a system, a device and a storage medium for F5G terminal VLAN aggregation, in which:
a F5G termination VLAN aggregation method, the method comprising:
after receiving downlink data, extracting destination address data from the downlink data;
inquiring whether record address data matched with the destination address data are stored in an aggregation table;
if so, calling a downlink port identifier corresponding to the record address data in the aggregation table;
and converting the current VLAN of the current port into the downlink VLAN of the downlink port corresponding to the downlink port identification so as to complete VLAN aggregation.
Preferably, when the record address data matching the destination address data is not stored in the aggregation table, the method further includes:
inquiring all the downlink ports in the same subnet area with the destination address data;
acquiring downlink address data of all the downlink ports and corresponding downlink port identifications;
adding the downlink address data and the corresponding downlink port identification to the aggregation table so as to convert the downlink address data into the recording address data.
Preferably, the step of acquiring the downlink address data of all the downlink ports and the corresponding downlink port identifiers includes:
sending address requests to all the downlink ports;
receiving response data fed back by the downlink port based on the address request;
and extracting the downlink address data of the downlink port and the corresponding downlink port identification from the response data.
Preferably, after the sending the address request to all the downstream ports, the method further includes:
and deleting the corresponding downlink data.
Preferably, the method further comprises:
when a data packet uploaded by the newly added downlink port is received, extracting the downlink address data of the newly added downlink port and the corresponding downlink port identifier from the data packet;
adding the downlink address data and the corresponding downlink port identification to the aggregation table so as to convert the downlink address data into the recording address data.
Preferably, the method further comprises:
after receiving the uplink data, extracting a preset conversion mapping relation;
and converting the current VLAN of the current port into an uplink VLAN of a corresponding uplink port based on the conversion mapping relation.
Preferably, the step of converting the current VLAN of the current port into an upstream VLAN of a corresponding upstream port based on the conversion mapping relationship includes:
acquiring an uplink port identifier in the conversion mapping relation;
and converting the current VLAN into the uplink VLAN corresponding to the uplink port identifier.
In a second aspect:
an F5G terminal VLAN aggregation system comprises an acquisition module, a forwarding module and a receiving module, wherein the acquisition module is used for extracting destination address data from downlink data after the downlink data are received;
the query module is used for querying whether record address data matched with the destination address data are stored in an aggregation table or not, and if so, calling a downlink port identifier corresponding to the record address data in the aggregation table;
and the aggregation module is used for converting the current VLAN of the current port into the downlink VLAN of the downlink port corresponding to the downlink port identifier so as to finish VLAN aggregation.
Preferably, when the record address data matching with the destination address data is not stored in the aggregation table, the query module includes a query unit configured to query all the downstream ports in the same subnet area as the destination address data;
an address identification unit, configured to obtain downlink address data of all the downlink ports and corresponding downlink port identifications;
an adding unit, configured to add the downlink address data and the corresponding downlink port identifier to the aggregation table, so as to convert the downlink address data into the record address data.
Preferably, the address identification unit includes a request subunit, configured to send an address request to all the downstream ports;
a receiving subunit, configured to receive response data fed back by the downlink port based on the address request;
and the extracting subunit is configured to extract the downlink address data of the downlink port and the corresponding downlink port identifier from the response data.
Preferably, the address identification unit further includes a deletion subunit, configured to delete the corresponding downlink data.
Preferably, the system further includes an extracting module, configured to extract, when a data packet uploaded by the newly added downlink port is received, the downlink address data of the newly added downlink port and the corresponding downlink port identifier from the data packet;
and the logging module is used for adding the downlink address data and the corresponding downlink port identifier into the aggregation table so as to convert the downlink address data into the recording address data.
Preferably, the system further includes a rule module, configured to extract a preset conversion mapping relationship after receiving the uplink data;
and the uplink module is used for converting the current VLAN of the current port into the uplink VLAN of the corresponding uplink port based on the conversion mapping relation.
Preferably, the uplink module includes an uplink unit, configured to obtain an uplink port identifier in the conversion mapping relationship;
and the conversion unit is used for converting the current VLAN into the uplink VLAN corresponding to the uplink port identifier.
In a third aspect:
an F5G terminating VLAN aggregation device comprising a memory having stored therein an F5G terminating VLAN aggregation method and a processor for employing the method when executing the F5G terminating VLAN aggregation method.
In a fourth aspect:
a storage medium storing a computer program that can be loaded by a processor and that executes the method described above.
The embodiment of the invention has the following beneficial effects:
when the received data is downlink data, calling destination address data from the downlink data; and inquiring the recorded address data in the aggregation table according to the destination address data. If the aggregation table has the recorded address data matched with the destination address data, the VLAN of the current port is converted into the downlink VLAN corresponding to the downlink port. The VLAN of the current port can be inquired to be converted into the VLAN of which downlink port through the aggregation table, downlink data do not need to be copied and broadcasted, the VLAN aggregation efficiency and the network information transmission efficiency are improved, and network resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a flow chart of a terminal VLAN aggregation method of F5G in one embodiment.
Fig. 2 is a block diagram of a F5G terminating VLAN aggregation system in one embodiment.
Fig. 3 is a schematic structural diagram of a F5G terminating VLAN aggregation device in one embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
When the number of the downlink ports is large, after the current port receives the downlink data, the current port cannot know which VLAN the VLAN of the current port is converted into, and only receives feedback of the downlink port in a manner of copying the downlink data and broadcasting again, so that which downlink port corresponds to the downlink data is known. However, the broadcast duplication reduces the transmission efficiency of network information and also reduces the efficiency of VLAN aggregation. Based on this, the embodiment of the present application discloses a F5G terminal VLAN aggregation method, where a VLAN of a current port and a VLAN of a downstream port are both configured in a bridge, and the bridge supports a VLAN aggregation function, and specifically, the bridge is an 802.1Q-attribute bridge, and supports not only the VLAN aggregation function but also the VLAN. As shown in fig. 1, the method includes:
s101, after receiving the downlink data, extracting the destination address data from the downlink data.
The downlink data refers to data transmitted to the lower computer by the upper computer. The destination address data refers to an MAC address of a destination terminal of the downlink data, wherein the destination terminal refers to a transmission destination terminal of the downlink data; for example, if terminal a transmits data to terminal B, terminal B is the destination terminal, and routers, switches, and the like that pass through the destination terminal do not belong to the destination terminal. Before the terminal sends data to the outside, the MAC address of the destination terminal is obtained, and based on this, the downlink data carries the MAC address of the destination terminal, that is, destination address data. Therefore, the destination address data can be found from the downlink data according to the destination address data label or position, and then extracted and obtained.
S102, inquiring whether record address data matched with the destination address data are stored in the aggregation table.
The aggregation table stores record address data, which is, in an embodiment, the MAC address of the terminal. If the same record address data as the destination address data exists in the aggregation table, judging that the record address data is matched with the destination address data; if the aggregation table does not have the same recording address data as the destination address data, the determination is made as a mismatch.
In another embodiment, the address data is recorded as a MAC address set or a MAC address field, and if the destination address data is located in the MAC address set or the MAC address field, it is determined as matching, otherwise, it is determined as not matching.
And if the aggregation table stores the record address data matched with the destination address data, calling the downlink port identification corresponding to the record address data in the aggregation table.
That is, the aggregation table stores a plurality of recording address data, and each recording address data corresponds to a downlink port identifier. It should be noted that, before the downlink terminal sends data to the outside, a data packet for obtaining the MAC address of the destination terminal is actively uploaded, and the downlink port corresponding to the downlink terminal, the VLAN of the downlink port, and the MAC address of the downlink terminal can be obtained through the data packet, so as to obtain the downlink address data of the downlink port and the corresponding downlink port identifier. And storing the downlink address data and the downlink port identification of each downlink port in an aggregation table.
In an embodiment, the downlink port identifier is a name of the downlink port, for example, there are 3 downlink ports corresponding to the current port, and the names of the downlink ports are, in order, port a, port B, and port C. The port A corresponds to a terminal a, and the MAC address of the terminal a is 1; the port B corresponds to a terminal B, and the MAC address of the terminal B is 2; the port C corresponds to the terminal C, and the MAC address of the terminal C is 3. When the destination address data in the agile star data is 3, the record address data with 3 stored in the aggregation table is queried, and at this time, the downlink port identifier of "port C" can be obtained, so that which port corresponds to the downlink data is can be known, the port is known, and the VLAN of the port can be known.
In another embodiment, the downstream port identification is the name of the downstream port's VLAN. For example, the VLAN names of ports A, B and C are VLAN1, VLAN2, and VLAN3, in that order. After obtaining the VLAN name, it can be known to which VLAN the VLAN of the current port needs to be converted.
S103, converting the current VLAN of the current port into the downlink VLAN of the downlink port corresponding to the downlink port identification so as to complete VLAN aggregation.
Setting an aggregation table, and storing the MAC address of the terminal corresponding to the downlink port in the aggregation table, and storing the downlink port identifier. Therefore, after the destination address data of the downlink data is obtained, the corresponding downlink port identifier can be searched in the aggregation table according to the destination address data. After the downstream port identification is obtained, the current VLAN can be converted into the downstream VLAN corresponding to the downstream port identification, and the broadcast is not required to be copied, so that the transmission efficiency of network information and the efficiency of VLAN aggregation are improved, and network resources are saved. In an embodiment, the IP address corresponding to the current VLAN is converted into the IP address corresponding to the downlink VLAN, that is, it is determined that the current VLAN is converted into the downlink VLAN.
In another embodiment of the present invention, for further limitation and explanation, when the aggregation table does not store the record address data matching the destination address data, the method further includes:
s201, inquiring all downlink ports in the same subnet area with the destination address data.
In one embodiment, when the bridge is connected to the port, the downstream port connected to the bridge is recorded, so that the downstream port in the same subnet area can be found in the port connection data of the bridge.
In another embodiment, the ports connected to the network bridge are all recorded in the document, which network bridges are connected to the current port are inquired first, and then the destination address data in the downlink data is used to find the network bridge connected to the corresponding downlink terminal, so as to lock the network bridge connected together, and then all the downlink ports under the network bridge are inquired in the recorded document.
S202, acquiring downlink address data of all downlink ports and corresponding downlink port identifications.
S203, adding the downlink address data and the corresponding downlink port identification into the aggregation table to convert the downlink address data into the recorded address data.
Because the downlink address data and the downlink port identifier are obtained in the aggregation table when the downlink terminal actively queries the MAC address of the destination terminal, for the downlink terminal which has not actively transmitted data to the outside, the aggregation table does not store the corresponding downlink address data and the corresponding recorded address data. Therefore, the downlink address data and the downlink port identification of the downlink port are actively acquired so as to perfect the data in the aggregation table.
The method is favorable for obtaining the downlink port identification corresponding to the downlink data by actively obtaining the downlink address data and the downlink port identification, thereby converting the current VLAN of the current port into the downlink VLAN, completing the transmission of the downlink data aggregated by the VLAN as soon as possible and improving the transmission efficiency of network information. In addition, the downstream port identifier is added to the aggregation table, which is helpful for ensuring the transmission efficiency of subsequent downstream data.
In another embodiment of the present invention, for further limitation and description, the step of acquiring the downlink address data and the corresponding downlink port identifier of all the downlink ports includes:
s301, address requests are sent to all downlink ports.
In one embodiment, the address request is an APR request.
And S302, receiving response data fed back by the downlink port based on the address request.
It should be noted that, since the address request is sent, the downlink port returns downlink address data, that is, the response data includes the downlink address data.
S303, extracting the downlink address data of the downlink port and the corresponding downlink port identification from the response data.
The response data also includes a downlink port identifier. On one hand, compared with the method of transmitting downlink data, the address request occupies less network resources, and has higher transmission efficiency, thereby being beneficial to ensuring the efficiency of VLAN aggregation; on the other hand, the data volume carried in the data returned based on the APR request is small, so that the transmission efficiency is convenient to ensure.
In another embodiment of the present invention, for further definition and explanation, after the step of sending the address request to all downstream ports, the method further comprises:
and deleting the corresponding downlink data.
Since the record address data corresponding to the destination address data is not matched in the aggregation table, an address request needs to be transmitted to the downstream port. But the downlink data is deleted at the moment, so that on one hand, network resources occupied by the downlink data are reduced; on the other hand, the replication and broadcasting of the downlink data are avoided, so that the network transmission efficiency is reduced.
In another embodiment of the present invention, for further definition and illustration, the method further comprises:
s401, when a data packet uploaded by a newly added downlink port is received, extracting downlink address data of the newly added downlink port and a corresponding downlink port identifier from the data packet.
S402, adding the downlink address data and the corresponding downlink port identification into an aggregation table so as to convert the downlink low-speed data into the recorded address data.
Because each downlink terminal needs to upload an output packet before transmitting data outwards, the MAC address of the destination terminal is required. Therefore, when a newly added downlink terminal uploads a data packet by using a downlink port, downlink address data and a downlink port identifier of the downlink port are actively stored in the aggregation table, the phenomenon that the downlink address data are actively acquired due to insufficient data records in the aggregation table in the later period is reduced, and the transmission efficiency of network information and the efficiency of VLAN aggregation are favorably ensured.
In another embodiment of the present invention, for further definition and illustration, the method further comprises:
s501, after receiving the uplink data, extracting a preset conversion mapping relation.
The uplink data refers to data transmitted from the lower computer to the upper computer, that is, data transmitted from the downlink terminal to the uplink terminal. In one embodiment, the conversion mapping relationship is pre-stored at the designated position, and when the conversion mapping relationship needs to be queried, the conversion mapping relationship is extracted from the designated position according to the preset position information. Wherein, the conversion mapping relation refers to the mapping relation for converting the current VLAN into the uplink VLAN.
It should be noted that, for the upstream VLAN, there are a plurality of current ports at the same level as the current VLAN, but for the current port, there is only one upstream port. Therefore, no matter which current VLAN the current port corresponds to, the final conversion result is only one, i.e., the upstream VLAN. For example, the downstream VLANs include a downstream VLAN1, a downstream VLAN2, and a downstream VLAN3, and only one corresponding upstream VLAN is an upstream VLAN 1. The mapping relationship is converted into the downstream VLAN1 converted into the upstream VLAN1, the downstream VLAN2 converted into the upstream VLAN1, and the downstream VLAN3 converted into the upstream VLAN 1.
S502, converting the current VLAN of the current port into the uplink VALN of the corresponding uplink port based on the conversion mapping relation.
The VLAN aggregation is performed during uplink data transmission by using the preset conversion mapping relation without executing excessive steps, so that the number of information transmitted for VLAN aggregation in network information is reduced, the occupation of a network is reduced, and the efficiency of VALN aggregation and network information transmission of other ports is favorably ensured.
In another embodiment of the present invention, for further limitation and description, the step of converting the current VLAN of the current port into the upstream VLAN of the corresponding upstream port based on the conversion mapping relationship includes:
s601, obtaining the uplink port identification in the conversion mapping relation.
Since there is only one upstream port for the current port, the upstream port identifier is pre-stored in the translation mapping relationship. Can be directly obtained when needed, and is convenient and quick.
S602, converting the current VLAN into an uplink VLAN corresponding to the uplink port identification.
The corresponding uplink VLAN can be known through the uplink port identification, so that VLAN aggregation can be directly carried out, the VLAN aggregation efficiency and the network information transmission efficiency are ensured, and the occupation of network resources is reduced.
After receiving the downlink data, obtaining destination address data from the downlink data, and searching a corresponding downlink port identifier in the aggregation table according to the destination address data. The downlink port identification can be used for knowing which downlink VLAN in all downlink ports the current VLAN is to be converted into, broadcast copying is not needed, and VLAN aggregation efficiency is improved. When a downlink interface transmits a data packet to a current port for the first time, downlink address data and a downlink port identifier of the downlink interface are obtained from the data packet, and the downlink address data and the downlink port identifier are maintained in an aggregation table, so that the method is convenient to use when the VLAN is aggregated. In addition, when the downlink port identifier is not found, the downlink port identifier of each downlink port is obtained in a mode of transmitting address requests to all downlink ports, and compared with a mode of copying and broadcasting downlink data, network resources are saved.
The embodiment of the present application further discloses an F5G terminal VLAN aggregation system, referring to fig. 2, the system includes an obtaining module 1, configured to extract destination address data from downlink data after the downlink data is received;
the query module 2 is configured to query whether record address data matching the destination address data is stored in an aggregation table, and if so, retrieve a downlink port identifier corresponding to the record address data in the aggregation table;
and the aggregation module 3 is used for converting the current VLAN of the current port into a downlink VLAN of the downlink port corresponding to the downlink port identifier so as to complete VLAN aggregation.
Preferably, when the record address data matching the destination address data is not stored in the aggregation table, the query module 2 includes a query unit, configured to query all the downlink ports in the same subnet area as the destination address data;
an address identification unit, configured to obtain downlink address data of all the downlink ports and corresponding downlink port identifications;
an adding unit, configured to add the downlink address data and the corresponding downlink port identifier to the aggregation table, so as to convert the downlink address data into the record address data.
Preferably, the address identification unit includes a request subunit, configured to send an address request to all the downstream ports;
a receiving subunit, configured to receive response data fed back by the downlink port based on the address request;
and the extracting subunit is configured to extract the downlink address data of the downlink port and the corresponding downlink port identifier from the response data.
Preferably, the address identification unit further includes a deletion subunit, configured to delete the corresponding downlink data.
Preferably, the system further includes an extracting module, configured to extract, when a data packet uploaded by the newly added downlink port is received, the downlink address data of the newly added downlink port and the corresponding downlink port identifier from the data packet;
and the logging module is used for adding the downlink address data and the corresponding downlink port identifier into the aggregation table so as to convert the downlink address data into the recording address data.
Preferably, the system further includes a rule module, configured to extract a preset conversion mapping relationship after receiving the uplink data;
and the uplink module is used for converting the current VLAN of the current port into the uplink VLAN of the corresponding uplink port based on the conversion mapping relation.
Preferably, the uplink module includes an uplink unit, configured to obtain an uplink port identifier in the conversion mapping relationship;
and the conversion unit is used for converting the current VLAN into the uplink VLAN corresponding to the uplink port identifier.
Here, it should be noted that: the above description applied to the embodiment of the F5G termination VLAN aggregation system is similar to the above description of the method, and has the same beneficial effects as the method embodiment. For technical details not disclosed in the embodiment of the terminating VLAN aggregation system of the present invention F5G, those skilled in the art should understand with reference to the description of the embodiment of the method of the present invention.
It should be noted that, in the embodiment of the present invention, if the method is implemented in the form of a software functional module and sold or used as a standalone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
Correspondingly, the embodiment of the application further discloses a storage medium which stores a computer program capable of being loaded by a processor and executing the method.
The embodiment of the present application further discloses an F5G terminal VLAN aggregation device, as shown in fig. 3, including a processor 100, at least one communication bus 200, a user interface 300, at least one external communication interface 400, and a memory 500. Wherein the communication bus 200 is configured to enable connective communication between these components. Wherein the user interface 300 may comprise a display screen and the external communication interface 400 may comprise a standard wired interface and a wireless interface. The memory 500 stores therein a F5G terminating VLAN aggregation method. Wherein the processor 100 is configured to employ the above method when executing the F5G terminating VLAN aggregation method stored in the memory 500.
The above description applied to the embodiments of the F5G terminating VLAN aggregation device and storage medium is similar to the description of the above method embodiments, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the terminal VLAN aggregation apparatus and storage medium of the present invention F5G, refer to the description of the embodiments of the method of the present invention.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not imply an order of execution, and the order of execution of the processes should be determined by their functions and internal logics, and should not limit the implementation processes of the embodiments of the present invention in any way. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a device to perform all or part of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (10)

1. An F5G terminal VLAN aggregation method, characterized in that the method comprises:
after receiving downlink data, extracting destination address data from the downlink data;
inquiring whether record address data matched with the destination address data are stored in an aggregation table;
if so, calling a downlink port identifier corresponding to the record address data in the aggregation table;
and converting the current VLAN of the current port into the downlink VLAN of the downlink port corresponding to the downlink port identification so as to complete VLAN aggregation.
2. The F5G terminating VLAN aggregation method of claim 1, wherein when said aggregation table does not have stored therein said record address data matching said destination address data, said method further comprises:
inquiring all the downlink ports in the same subnet area with the destination address data;
acquiring downlink address data of all the downlink ports and corresponding downlink port identifications;
adding the downlink address data and the corresponding downlink port identification to the aggregation table so as to convert the downlink address data into the recording address data.
3. The F5G terminal VLAN aggregation method of claim 2, wherein the step of obtaining the downstream address data of all the downstream ports and the corresponding downstream port identifications includes:
sending address requests to all the downlink ports;
receiving response data fed back by the downlink port based on the address request;
and extracting the downlink address data of the downlink port and the corresponding downlink port identification from the response data.
4. The F5G terminating VLAN aggregation method of claim 2, further comprising, after said sending address requests to all of said downstream ports:
and deleting the corresponding downlink data.
5. The F5G termination VLAN aggregation method of claim 1, wherein the method further comprises:
when a data packet uploaded by the newly added downlink port is received, extracting the downlink address data of the newly added downlink port and the corresponding downlink port identifier from the data packet;
adding the downlink address data and the corresponding downlink port identification to the aggregation table so as to convert the downlink address data into the recording address data.
6. The F5G terminating VLAN aggregation method of claim 1, wherein the method further comprises:
after receiving the uplink data, extracting a preset conversion mapping relation;
and converting the current VLAN of the current port into an uplink VLAN of a corresponding uplink port based on the conversion mapping relation.
7. The F5G terminating VLAN aggregation method of claim 6, wherein said step of converting the current VLAN of the current port to an upstream VLAN of a corresponding upstream port based on the conversion mapping comprises:
acquiring an uplink port identifier in the conversion mapping relation;
and converting the current VLAN into the uplink VLAN corresponding to the uplink port identification.
8. An F5G terminal VLAN aggregation system is characterized by comprising an acquisition module, a forwarding module and a forwarding module, wherein the acquisition module is used for extracting destination address data from downlink data after the downlink data are received;
the query module is used for querying whether the aggregation table stores the record address data matched with the destination address data or not, and if so, calling the downlink port identification corresponding to the record address data in the aggregation table;
and the aggregation module is used for converting the current VLAN of the current port into the downlink VLAN of the downlink port corresponding to the downlink port identifier so as to finish VLAN aggregation.
9. An F5G terminating VLAN aggregation device comprising a memory and a processor, wherein the memory stores an F5G terminating VLAN aggregation method, and the processor is configured to employ any one of the methods of claims 1-7 when performing the F5G terminating VLAN aggregation method.
10. A storage medium storing a computer program which can be loaded by a processor and which executes the method according to any one of claims 1 to 7.
CN202210729409.1A 2022-06-24 2022-06-24 F5G terminal VLAN aggregation method, system, device and storage medium Pending CN115118547A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210729409.1A CN115118547A (en) 2022-06-24 2022-06-24 F5G terminal VLAN aggregation method, system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210729409.1A CN115118547A (en) 2022-06-24 2022-06-24 F5G terminal VLAN aggregation method, system, device and storage medium

Publications (1)

Publication Number Publication Date
CN115118547A true CN115118547A (en) 2022-09-27

Family

ID=83329081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210729409.1A Pending CN115118547A (en) 2022-06-24 2022-06-24 F5G terminal VLAN aggregation method, system, device and storage medium

Country Status (1)

Country Link
CN (1) CN115118547A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1677950A (en) * 2004-04-01 2005-10-05 华为技术有限公司 Data exchange method based on virtual local area network
CN102055669A (en) * 2010-12-20 2011-05-11 武汉烽火网络有限责任公司 Method for realizing N:1 virtual local area network (VLAN) mapping in 10 gigabit-capable passive optical network (10GPON) system
CN105490911A (en) * 2014-09-19 2016-04-13 杭州华三通信技术有限公司 Virtual local area network mapping method and apparatus
CN108075956A (en) * 2016-11-16 2018-05-25 新华三技术有限公司 A kind of data processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1677950A (en) * 2004-04-01 2005-10-05 华为技术有限公司 Data exchange method based on virtual local area network
CN102055669A (en) * 2010-12-20 2011-05-11 武汉烽火网络有限责任公司 Method for realizing N:1 virtual local area network (VLAN) mapping in 10 gigabit-capable passive optical network (10GPON) system
CN105490911A (en) * 2014-09-19 2016-04-13 杭州华三通信技术有限公司 Virtual local area network mapping method and apparatus
CN108075956A (en) * 2016-11-16 2018-05-25 新华三技术有限公司 A kind of data processing method and device

Similar Documents

Publication Publication Date Title
CN110326345B (en) Method, device and system for configuring network slice
CN102946356B (en) CB-PE (controlling bridge-port extender) network-based multicast message transmitting method and device
US9438679B2 (en) Method, apparatus, name server and system for establishing FCOE communication connection
CN101662511B (en) Network address distributing method, DHCP server, access system and method thereof
CN101924785A (en) Data uploading and downloading methods and system
CN107070790B (en) Route learning method and routing equipment
WO2022048412A1 (en) Method for generating table item, method for sending message, device, and system
JPH1063598A (en) Method, system, and server for multicast communication
WO2007085167A1 (en) A method, system and application of implementing an identification of a service based on an address
CN101442800B (en) Method, system and terminal for discharging terminal business
CN112583655B (en) Data transmission method and device, electronic equipment and readable storage medium
CN104426816A (en) Virtual machine communication method and device
CN103237074A (en) Data interactive method and data interactive system between intelligent terminals
CN115118547A (en) F5G terminal VLAN aggregation method, system, device and storage medium
WO2015085573A1 (en) Method and device for communication using white spectrum
CN109962834B (en) Information processing method, system, terminal and computer storage medium
CN105491065A (en) Resource access method of message-oriented middleware, server, and resource access system
US8073957B2 (en) Communication control system
CN110474781B (en) Method and device for forwarding multicast data
CN110809033B (en) Message forwarding method and device and switching server
CN101771901B (en) Method of multicast permission control in passive optical network, system and multi-dwelling unit
CN103997508A (en) Method and apparatus for concentrated fixture storage
JP2022554380A (en) Method, Apparatus, and System for Generating Forwarding Information
CN108418709B (en) Port aggregation method and device
CN110943897A (en) PPPoE data message transmission method, device, equipment and storage medium

Legal Events

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