CN117714916A - Optical network message forwarding method and device, optical network unit, equipment and medium - Google Patents

Optical network message forwarding method and device, optical network unit, equipment and medium Download PDF

Info

Publication number
CN117714916A
CN117714916A CN202410053372.4A CN202410053372A CN117714916A CN 117714916 A CN117714916 A CN 117714916A CN 202410053372 A CN202410053372 A CN 202410053372A CN 117714916 A CN117714916 A CN 117714916A
Authority
CN
China
Prior art keywords
mode
target
configuration information
vlan
optical network
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
CN202410053372.4A
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.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp 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 China Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202410053372.4A priority Critical patent/CN117714916A/en
Publication of CN117714916A publication Critical patent/CN117714916A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • 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/465Details on frame tagging wherein a single frame includes a plurality of VLAN tags
    • H04L12/4662Details on frame tagging wherein a single frame includes a plurality of VLAN tags wherein a VLAN tag represents a service instance, e.g. I-SID in PBB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The disclosure provides an optical network message forwarding method, an optical network message forwarding device, an optical network unit, an optical network device and a medium, and relates to the technical field of Internet. The method comprises the following steps: acquiring a service message received by a target local area network interface on an optical network unit, wherein the target local area network interface is any local area network interface on the optical network unit; identifying whether the service message carries a target virtual local area network VLAN identifier, wherein the target VLAN identifier is used for identifying a target virtual local area network; if the service message carries the target VLAN identifier, determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target local area network interface prestored on the optical network unit. The virtual local area network identification matching method and device can enable the virtual local area network identification of the existing equipment to be matched with the virtual local area network identification of the newly added equipment automatically, so that the probability of extra network overhead in the network upgrading and transformation process is reduced.

Description

Optical network message forwarding method and device, optical network unit, equipment and medium
Technical Field
The disclosure relates to the technical field of the internet, and in particular relates to a method, a device, an optical network unit, equipment and a medium for forwarding an optical network message.
Background
Along with development of science and technology, in order to meet the current intelligent transformation requirement of enterprises, passive Optical Networks (PON) are used by each factory to replace industrial Ethernet, so that characteristics of large bandwidth, high speed, low time delay and the like are obtained, and for a more precise production process, a bearing network is also required to ensure the determination of the service.
Because the field industrial equipment is often various, protocol formats of the messages uploaded by the equipment are different, the service flow characteristics and gateway configuration can be matched in initial network planning, but the industrial equipment cannot be unified when new equipment is added in a later factory or intelligent reconstruction and upgrading are carried out on an old factory, at this time, part of the messages are caused to collide with the configuration of the ONU when entering the first node optical network unit ONU of the PON network, and then a communication link terminal is caused.
In the related art, when the gateway configuration collides with the VLAN of the service flow, the factory uses two processing methods in the process of upgrading and modifying the old factory network except for uniformly planning the global configuration through newly built network: in the first processing mode, the production line is stopped, and the original industrial equipment network configuration and the newly-built network configuration (i.e. the factory network configuration is re-planned) of the production line are planned in a unified way, so that the production efficiency of an enterprise is reduced; in the second processing mode, the production line is not shut down, in order to migrate the original network configuration, the conflict point location is kept still, the newly-added equipment point location is used for meeting the newly-built requirement (i.e. an ONU is newly added to guide the conflict traffic flow to a new path), and the equipment cost is additionally consumed.
It should be noted that the information disclosed in the above background section is only for enhancing understanding of the background of the present disclosure and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure provides a method, an apparatus, an optical network unit, a device, and a medium for forwarding an optical network packet, which at least overcome to a certain extent the problem of a large amount of additional network overhead occurring in network upgrade and reformation in the related art.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to one aspect of the present disclosure, there is provided an optical network packet forwarding method, including: acquiring a service message received by a target local area network interface on an optical network unit, wherein the target local area network interface is any local area network interface on the optical network unit; identifying whether the service message carries a target virtual local area network VLAN identifier, wherein the target VLAN identifier is used for identifying a target virtual local area network; if the service message carries the target VLAN identifier, determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target local area network interface stored in advance on the optical network unit.
In some embodiments, after determining WAN connection configuration information for forwarding traffic messages carrying the destination VLAN identification, the method further comprises: determining whether the WAN connection configuration information corresponding to the target local area network interface needs to be modified according to the obtained WAN connection configuration information for forwarding the service message carrying the target VLAN identifier; if the WAN connection configuration information corresponding to the target local area network interface is determined to be required to be modified, the WAN connection configuration information corresponding to the target local area network interface is modified, so that the optical network unit forwards the service message carrying the target VLAN identifier according to the modified WAN connection configuration information.
In some embodiments, the WAN connection configuration information includes: the network connection mode of the optical network unit and the VLAN message forwarding mode include: a bridge mode or a route mode, wherein the VLAN packet forwarding mode includes: the system comprises a transparent transmission mode and a rewriting mode, wherein the transparent transmission mode is a VLAN message forwarding mode in which VLAN identification is not carried in WAN connection configuration information, and the rewriting mode is a VLAN message forwarding mode in which VLAN identification is carried in the WAN connection configuration information.
In some embodiments, determining whether modification of WAN connection configuration information corresponding to the target lan interface is required according to the obtained WAN connection configuration information for forwarding a service packet carrying a target VLAN identifier includes: if the WAN connection configuration information meets a first preset condition, modifying the WAN connection configuration information corresponding to the target lan interface, where the first preset condition includes any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, the VLAN message forwarding mode is a transparent transmission mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a rewriting mode; if the WAN connection configuration information meets a second preset condition, the WAN connection configuration information corresponding to the target local area network interface is not required to be modified, wherein the second preset condition is that the network connection mode of the optical network unit is a bridging mode and the VLAN message forwarding mode is a transparent transmission mode.
In some embodiments, if the WAN connection configuration information meets a first preset condition, modifying the WAN connection configuration information corresponding to the target lan interface is required, including: if the network connection mode of the optical network unit is a bridge mode and the VLAN message forwarding mode is a rewrite mode, modifying the VLAN identifier carried in the WAN connection configuration information into the target VLAN identifier; if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a transparent transmission mode, changing the VLAN message forwarding mode into a rewriting mode, and adding the target VLAN identifier into the WAN connection configuration information; and if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode, modifying the VLAN identifier carried in the WAN connection configuration information into the target VLAN identifier.
In some embodiments, after identifying whether the service packet carries the destination VLAN identifier, the method further includes: and if the service message does not carry the VLAN identifier of the target virtual local area network, determining not to modify WAN connection configuration information corresponding to the target local area network interface.
In some embodiments, the determining that the WAN connection configuration information corresponding to the target lan interface is not modified includes: if the WAN connection configuration information meets a third preset condition, determining that the WAN connection configuration information corresponding to the target lan interface is not modified, wherein the third preset condition at least comprises any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a transparent transmission mode, the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a transparent transmission mode; if the WAN connection configuration meets a fourth preset condition, determining that the WAN connection configuration information corresponding to the target lan interface is not modified, and adding the VLAN identifier carried in the WAN connection configuration information to the service packet, where the fourth preset condition includes: the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode.
According to another aspect of the present disclosure, there is also provided a network element comprising: at least one local area network interface, VLAN identification identifying and modifying device and wide area network interface; the local area network interface is used for acquiring a service message received by a target local area network interface on the optical network unit; the VLAN identifier identifying and modifying device is used for identifying whether the service message carries a target VLAN identifier, if the service message carries the target VLAN identifier, determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target LAN interface prestored on the optical network unit; the wide area network interface is used for forwarding the service message carrying the target VLAN identifier.
According to another aspect of the present disclosure, there is also provided an optical network packet forwarding apparatus, including: the system comprises a service message acquisition module, a service message generation module and a service message generation module, wherein the service message acquisition module is used for acquiring a service message received by a target local area network interface on an optical network unit, wherein the target local area network interface is any local area network interface on the optical network unit; the VLAN identification recognition module is used for recognizing whether the service message carries a target VLAN identification or not, wherein the target VLAN identification is used for identifying a target VLAN; and the configuration information confirmation module is used for determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target local area network interface prestored on the optical network unit if the service message carries the target VLAN identifier.
According to another aspect of the present disclosure, there is also provided an electronic device including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to perform the optical network packet forwarding method of any one of the above through execution of the executable instructions.
According to another aspect of the present disclosure, there is also provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the optical network packet forwarding method of any one of the above.
According to another aspect of the present disclosure, there is also provided a computer program product comprising a computer program which, when executed by a processor, implements the optical network packet forwarding method of any one of the above.
The embodiment of the disclosure determines whether WAN connection configuration information corresponding to a target local area network interface for receiving a service message needs to be modified by identifying whether the service message obtained from the optical network unit carries a target VLAN identifier, so that the optical network unit can successfully forward the received service message. The embodiment of the disclosure can enable the virtual local area network identifier of the existing equipment to be consistent with the virtual local area network identifier of the newly added equipment, so as to reduce extra network overhead in the process of upgrading and reforming the network.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. It will be apparent to those of ordinary skill in the art that the drawings in the following description are merely examples of the disclosure and that other drawings may be derived from them without undue effort.
Fig. 1 is a flowchart of an optical network packet forwarding method in an embodiment of the disclosure;
fig. 2 is a flowchart illustrating another optical network packet forwarding method according to an embodiment of the present disclosure;
fig. 3 is a flowchart illustrating another optical network packet forwarding method according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an optical network unit according to an embodiment of the disclosure;
fig. 5 is a schematic diagram of another optical network unit according to an embodiment of the disclosure;
fig. 6 is a schematic diagram of an optical network packet forwarding device according to an embodiment of the disclosure;
fig. 7 shows a block diagram of an electronic device in an embodiment of the disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software or in one or more hardware modules or integrated circuits or in different networks and/or processor devices and/or microcontroller devices.
For ease of understanding, before describing embodiments of the present disclosure, several terms referred to in the embodiments of the present disclosure are first explained as follows:
PON: passive Optical Nework, a passive optical network;
an ONU: optical Network Unit, an optical network unit;
and (3) a WAN: wide Area Network, wide area network;
LAN: local Area Network, local area network;
VLAN: virtual Local Area Network, virtual local area network.
The following detailed description of embodiments of the present disclosure refers to the accompanying drawings.
Fig. 1 shows a flowchart of an optical network packet forwarding method in an embodiment of the disclosure, as shown in fig. 1, where the method includes the following steps:
s102, obtaining a service message received by a target local area network interface on an optical network unit, wherein the target local area network interface is any local area network interface on the optical network unit.
In one embodiment of the present disclosure, one or more lan interfaces may exist on the optical network unit, and the target lan interface that receives the service packet may be any lan interface on the optical network unit.
S104, identifying whether the service message carries a target VLAN identifier, wherein the target VLAN identifier is used for identifying the target VLAN.
In one embodiment of the present disclosure, VLAN identifiers are used to distinguish different virtual local area networks, each virtual local area network corresponds to one VLAN identifier, and a service packet has a VLAN frame, which is used to store a target VLAN identifier when the service packet carries the VLAN identifier of the virtual local area network that sends the service packet, that is, the VLAN identifier that is used to identify the target virtual local area network.
And S106, if the service message carries the target VLAN identifier, determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target local area network interface prestored on the optical network unit.
In one embodiment of the present disclosure, whether the service packet carries the VLAN identifier of the target virtual local area network may be determined by whether the VLAN frame in the service packet stores the target VLAN identifier. The WAN connection configuration information is used for configuring a wide area network interface (WAN port) on the optical network unit, and each local area network interface is pre-bound with the corresponding WAN connection configuration information.
As can be seen from the foregoing, in the embodiments of the present disclosure, by identifying whether the service packet obtained in the optical network unit carries the target VLAN identifier, it is determined whether the WAN connection configuration information corresponding to the target lan interface of the received service packet needs to be modified, so that the optical network unit successfully forwards the received service packet. The virtual local area network identification of the existing equipment is consistent with the virtual local area network identification of the newly added equipment, so that extra network overhead in the process of upgrading and reforming the network is reduced.
In one embodiment of the present disclosure, after S106, determining whether modification is required to be performed on WAN connection configuration information corresponding to the target lan interface according to the obtained WAN connection configuration information for forwarding the service packet carrying the target VLAN identifier; if the WAN connection configuration information corresponding to the target local area network interface is determined to be required to be modified, the WAN connection configuration information corresponding to the target local area network interface is modified, so that the optical network unit forwards the service message carrying the target VLAN identifier according to the modified WAN connection configuration information.
In the embodiment of the disclosure, after the WAN connection configuration information is modified, the connection configuration information at the WAN port is changed, and the optical network unit forwards the service message through the WAN port after the WAN connection configuration information is modified, so that the service message received by the optical network unit is successfully sent out.
In one embodiment of the present disclosure, each lan interface on the optical network unit may be bound with the corresponding WAN connection configuration information in advance, and the obtained binding information may be stored, and stored in a buffer memory in the form of a WAN connection template, so that after determining the lan interface that receives the service packet, the WAN connection configuration information corresponding to the lan interface may be directly determined.
In one embodiment of the present disclosure, the WAN connection configuration information includes: the network connection mode of the optical network unit and the VLAN message forwarding mode include: a bridge mode or a routing mode, and a VLAN packet forwarding mode includes: the transparent transmission mode is a VLAN message forwarding mode which does not carry VLAN identification in WAN connection configuration information, and the rewriting mode is a VLAN message forwarding mode which carries VLAN identification in WAN connection configuration information.
In one embodiment of the present disclosure, the bridge mode, that is, the optical network unit, functions as a switch, and is used for port expansion and traffic aggregation, so that the occupation of hardware resources is less, and the destination address is directly obtained; the routing mode is to manage and forward the data packet, occupies more connection resources and needs further authentication.
In one embodiment of the present disclosure, the WAN connection configuration information may further include: network address, mask, default gateway, IP protocol version, connection name, etc. It should be noted that the above WAN connection configuration information is merely exemplary, and the configuration information used in the WAN connection is not specifically limited in the embodiments of the present disclosure.
In one embodiment of the present disclosure, the WAN interface is an interface in the optical network unit for exchanging traffic flows with the upper layer communication device, where the WAN connection configuration information may be set according to the network configuration required, or may query the configuration of the WAN side according to the gateway local log. It should be noted that, the configuration basis of the WAN interface may be selected according to actual needs, which is not specifically limited in the embodiments of the present disclosure.
In one embodiment of the present disclosure, determining whether modification of WAN connection configuration information corresponding to a target lan interface is required according to the obtained WAN connection configuration information for forwarding a service packet carrying a target VLAN identifier, includes: if the WAN connection configuration information meets a first preset condition, modifying the WAN connection configuration information corresponding to the target lan interface is required, where the first preset condition includes any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, the VLAN message forwarding mode is a transparent mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a rewriting mode; if the WAN connection configuration information meets a second preset condition, the WAN connection configuration information corresponding to the target local area network interface does not need to be modified, wherein the second preset condition is that the network connection mode of the optical network unit is a bridge mode and the VLAN message forwarding mode is a transparent transmission mode.
In one embodiment of the present disclosure, if the WAN connection configuration information satisfies a first preset condition, modifying the WAN connection configuration information corresponding to the target lan interface is required, including: if the network connection mode of the optical network unit is a bridge mode and the VLAN message forwarding mode is a rewrite mode, modifying the VLAN identifier carried in the WAN connection configuration information into a target VLAN identifier; if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a transparent transmission mode, changing the VLAN message forwarding mode into a rewriting mode and adding the target VLAN identifier into WAN connection configuration information; and if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode, modifying the VLAN identifier carried in the WAN connection configuration information into a target VLAN identifier.
Specifically, fig. 2 shows a flowchart of another optical network packet forwarding method in an embodiment of the disclosure, as shown in fig. 2, where the method includes the following steps:
s201, identifying and confirming that the service message carries the target VLAN identifier.
S202, judging whether the WAN connection configuration information meets a first preset condition. If yes, executing S204; if not, S203 is performed.
In one embodiment of the present disclosure, the first preset condition includes any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, the VLAN message forwarding mode is a transparent mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a rewriting mode.
S203, determining that the WAN connection configuration information meets a second preset condition.
In one embodiment of the disclosure, the second preset condition is that the network connection mode of the optical network unit is a bridge mode and the VLAN packet forwarding mode is a transparent mode.
S204, the VLAN identification carried in the WAN connection configuration information is modified into a target VLAN identification.
S205, the VLAN message forwarding mode is changed into a rewriting mode, and the target VLAN identification is added into WAN connection configuration information.
In one embodiment of the present disclosure, after the step S104, the method further includes: if the service message does not carry the VLAN identifier of the target virtual local area network, the WAN connection configuration information corresponding to the target local area network interface is determined not to be modified.
In one embodiment of the present disclosure, determining that no modification is made to WAN connection configuration information corresponding to the target lan interface includes: if the WAN connection configuration information meets a third preset condition, determining that the WAN connection configuration information corresponding to the target lan interface is not modified, wherein the third preset condition at least comprises any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a transparent transmission mode, the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a transparent transmission mode; if the WAN connection configuration meets a fourth preset condition, determining that the WAN connection configuration information corresponding to the target lan interface is not modified, and adding the VLAN identifier carried in the WAN connection configuration information to the service message, where the fourth preset condition includes: the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode.
In the related art, in the case of actual deployment of a factory, there may be a situation that ONUs of multiple equipment manufacturers exist, for example, when a network connection mode of the ONUs is a routing mode and a VLAN message forwarding mode is a transparent mode, a service message reported from an external industrial device carries a VLAN identifier, and when the service message is transmitted out of the ONU, the VLAN identifier carried on the service message is stripped; when the network connection mode of the ONU is a routing mode, the VLAN packet forwarding mode is a rewriting mode, and the VLAN identifier is 1002, the service packet reported from the external industrial device has a VLAN identifier of 102, the link is not connected, the service packet cannot be forwarded, and if the service packet does not carry the VLAN identifier, the VLAN identifier 1002 is added.
In one embodiment of the present disclosure, according to a network connection mode and a VLAN packet forwarding mode in WAN connection configuration information, and a result of identifying whether a service packet carries a target VLAN identifier, eight possible cases are obtained, where specific contents may be as follows:
TABLE 1
Wherein, case (2) and case (6) can be implemented based on theory, but such configuration schemes are less likely to occur in actual cases.
In one embodiment of the present disclosure, the above eight WAN connection configurations may be recorded in PON chip memory in advance for subsequent comparison.
It should be noted that, VLAN a and VLAN b described above are only exemplary for distinguishing a virtual local area network where an industrial device sending a service packet is located from a virtual local area network where an optical network unit receiving a service packet is located, and may be set according to actual situations, which is not specifically limited in this disclosure.
Specifically, fig. 3 shows a flowchart of another optical network packet forwarding method in an embodiment of the disclosure, as shown in fig. 3, where the method includes the following steps:
s301, a target local area network interface on an optical network unit receives a service message.
S302, identifying WAN link configuration information corresponding to the target local area network interface.
S303, identifying VLAN frames in the target service message, and taking the obtained information as VLAN identification information.
S304, judging the matching condition of the WAN connection configuration information and VLAN identification information in the service message. If any one of cases (1), (2), (4), (6) and (8) is satisfied, S305 is performed; if any one of cases (3), (5) and (7) is satisfied, S306 is performed.
S305, forwarding service message normally.
S306, if the conditions (3) and (7) are met, modifying the VLAN identifier in the WAN connection configuration information into a target VLAN identifier; and (5) if the conditions are met, modifying the VLAN message forwarding mode in the WAN connection configuration information into a rewriting mode, and adding the target VLAN identification into the WAN connection configuration information.
In one embodiment of the disclosure, after a target lan interface receives a service packet sent by an industrial device, WAN connection configuration information corresponding to the target lan interface is determined according to a WAN connection template, and a network connection mode (a bridge mode or a routing mode) and a VLAN packet forwarding mode (a transparent mode and a rewriting mode) of an optical network unit are determined based on the obtained WAN connection configuration information.
In one embodiment of the present disclosure, VLAN frames in a service packet are identified, and VLAN identification information is obtained, so as to determine whether the service packet carries a target VLAN identifier.
In one embodiment of the present disclosure, if the network connection mode of the optical network unit, and the identification result of the VLAN frame meet any one of the conditions (1), (2), (4), (6), and (8), the service packet is forwarded normally.
Specifically, if the network connection mode of the optical network unit is a bridge mode and the VLAN message forwarding mode is a transparent mode, the service message is forwarded normally; if the network connection mode of the optical network unit is a bridge mode and the VLAN message forwarding mode is a rewrite mode, the service message is forwarded normally; if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a transparent transmission mode, the service message is forwarded normally; if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode, VLAN identifiers carried in WAN connection configuration information are added to the service message, and the message is forwarded normally.
In one embodiment of the present disclosure, if the network connection mode of the optical network unit, and the VLAN frame identification result are any one of the cases (3), (5), and (7), the WAN connection configuration information needs to be modified.
Specifically, if the network connection mode of the optical network unit is a bridge mode and the VLAN packet forwarding mode is a rewrite mode, modifying the VLAN identifier carried in the WAN connection configuration information to a target VLAN identifier; if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a transparent transmission mode, changing the VLAN message forwarding mode into a rewriting mode and adding the target VLAN identifier into WAN connection configuration information; and if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode, modifying the VLAN identifier carried in the WAN connection configuration information into a target VLAN identifier.
Fig. 4 is a schematic structural diagram of an optical network unit according to an embodiment of the disclosure, as shown in fig. 4, where the optical network unit includes: a local area network interface 401, a VLAN identification identifying and modifying device 402 and a wide area network interface 403, wherein the local area network interface may comprise one or more local area network interfaces.
The lan interface 401 is configured to obtain a service packet received by a target lan interface on the optical network unit; the VLAN identification identifying and modifying device 402 is configured to identify whether the service packet carries a target VLAN identifier, and if the service packet carries the target VLAN identifier, determine WAN connection configuration information for forwarding the service packet carrying the target VLAN identifier according to the target VLAN identifier carried by the service packet and WAN connection configuration information corresponding to a target lan interface stored in advance on the optical network unit; the wan interface 403 is configured to forward a service packet carrying the identifier of the target VLAN.
As can be seen from the foregoing, in the embodiments of the present disclosure, by identifying whether the service packet obtained in the optical network unit carries the target VLAN identifier, it is determined whether the WAN connection configuration information corresponding to the target lan interface of the received service packet needs to be modified, so that the optical network unit successfully forwards the received service packet. The embodiment of the disclosure can enable the virtual local area network identifier of the existing equipment to be consistent with the virtual local area network identifier of the newly added equipment, so as to reduce extra network overhead in the process of upgrading and reforming the network.
Fig. 5 is a schematic diagram of another optical network unit structure in an embodiment of the disclosure, for example, a VLAN identifier identifying and modifying apparatus 402, as shown in fig. 5, where the apparatus includes: a flow characteristic identification module 4021 and a network configuration adaptation module 4022.
The flow characteristic identifying module 4021 is configured to identify whether the service packet carries a target VLAN identifier, and if the service packet carries the target VLAN identifier, determine whether to modify WAN connection configuration information corresponding to the target lan interface according to the target VLAN identifier carried by the service packet and WAN connection configuration information corresponding to the target lan interface stored in advance on the optical network unit; the network configuration adaptive module 4022 is configured to modify WAN connection configuration information corresponding to the target lan interface if it is determined that modification is required to be performed on WAN connection configuration information corresponding to the target lan interface, so that the optical network unit forwards, according to the modified WAN connection configuration information, a service packet carrying the target VLAN identifier.
In an embodiment of the present disclosure, the flow characteristic identifying module 4021 may further read WAN connection configuration information corresponding to different lan interfaces in the ONU and form a WAN connection template, and store the obtained WAN connection template in a buffer.
In one embodiment of the disclosure, after the lan interface receives the service packet from the industrial device, the service packet is forwarded to the flow characteristic identifying module 4021, and whether the network connection mode of the ONU is a bridge mode or a route mode, and whether the VLAN packet forwarding mode is a transparent mode or a rewriting mode is determined according to WAN connection configuration information bound on the ONU by different lan interfaces. The flow characteristic identifying module 4021 is further configured to identify a VLAN frame in the service packet, and determine whether the service packet carries a target VLAN identifier.
In one embodiment of the present disclosure, when the WAN connection configuration information accords with any one of the cases (1), (2), (4), (6) and (8) of VLAN identification information in the service packet, the network configuration adaptive module 4022 is not started, and the service packet is forwarded normally. Specifically, if the condition (8) is met, the VLAN identifier in the WAN connection configuration information is added to the service packet, and then the service packet is forwarded.
In one embodiment of the present disclosure, when the WAN connection configuration information conforms to any one of the VLAN identification information in the service packet (3), (5), and (7), the network configuration adaptation module 4022 is started to modify the WAN connection configuration information. Specifically, if the network connection mode of the optical network unit is a bridge mode and the VLAN packet forwarding mode is a rewrite mode, modifying the VLAN identifier carried in the WAN connection configuration information to a target VLAN identifier; if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a transparent transmission mode, changing the VLAN message forwarding mode into a rewriting mode and adding the target VLAN identifier into WAN connection configuration information; and if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode, modifying the VLAN identifier carried in the WAN connection configuration information into a target VLAN identifier.
As can be seen from the foregoing, in the embodiment of the present disclosure, VLAN features of service packets received by different lan interfaces are identified by the flow characteristic identifying module, and then, according to WAN connection configuration information bound by different lan interfaces recorded in the memory, the two are compared with each other to confirm which preset condition is currently met and modified accordingly, thereby avoiding re-planning of the whole network, and meanwhile, no new equipment node is required to meet service requirements, so that a factory network can evolve smoothly when being upgraded, and overhead generated to point positions of equipment for producing a service machine is reduced.
Based on the same inventive concept, the embodiments of the present disclosure further provide an optical network packet forwarding device, as described in the following embodiments. Since the principle of solving the problem of the embodiment of the device is similar to that of the embodiment of the method, the implementation of the embodiment of the device can be referred to the implementation of the embodiment of the method, and the repetition is omitted.
Fig. 6 is a schematic diagram of an optical network packet forwarding device according to an embodiment of the present disclosure, as shown in fig. 6, where the device includes: a service message acquisition module 601, a VLAN identifier identification module 602 and a configuration information confirmation module 603;
the service message obtaining module 601 is configured to obtain a service message received by a target lan interface on the optical network unit, where the target lan interface is any lan interface on the optical network unit; the VLAN identification module 602 is configured to identify whether the service packet carries a target VLAN identifier, where the target VLAN identifier is used to identify a target VLAN; the configuration information confirmation module 603 is configured to determine WAN connection configuration information for forwarding the service packet carrying the target VLAN identifier according to the target VLAN identifier carried by the service packet and WAN connection configuration information corresponding to the target lan interface stored in advance on the optical network unit if the service packet carries the target VLAN identifier.
As can be seen from the foregoing, in the embodiments of the present disclosure, by identifying whether the service packet obtained in the optical network unit carries the target VLAN identifier, it is determined whether the WAN connection configuration information corresponding to the target lan interface of the received service packet needs to be modified, so that the optical network unit successfully forwards the received service packet. The embodiment of the disclosure can enable the virtual local area network identifier of the existing equipment to be consistent with the virtual local area network identifier of the newly added equipment, so as to reduce extra network overhead in the process of upgrading and reforming the network.
In one embodiment of the present disclosure, the apparatus further comprises: a configuration information determination module 604 and a configuration information modification module 605; the configuration information determining module 604 is configured to determine whether to modify WAN connection configuration information corresponding to the target lan interface according to the obtained WAN connection configuration information for forwarding the service packet carrying the target VLAN identifier, and the configuration information modifying module 605 is configured to modify the WAN connection configuration information corresponding to the target lan interface if it is determined that modification is required to be performed on the WAN connection configuration information corresponding to the target lan interface, so that the optical network unit forwards the service packet carrying the target VLAN identifier according to the modified WAN connection configuration information.
In one embodiment of the present disclosure, the WAN connection configuration information includes: the network connection mode of the optical network unit and the VLAN message forwarding mode include: a bridge mode or a routing mode, and a VLAN packet forwarding mode includes: the transparent transmission mode is a VLAN message forwarding mode which does not carry VLAN identification in WAN connection configuration information, and the rewriting mode is a VLAN message forwarding mode which carries VLAN identification in WAN connection configuration information.
In an embodiment of the present disclosure, the configuration information confirmation module 603 is further configured to modify WAN connection configuration information corresponding to the target lan interface if the WAN connection configuration information meets a first preset condition, where the first preset condition includes any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, the VLAN message forwarding mode is a transparent mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a rewriting mode; if the WAN connection configuration information meets a second preset condition, the WAN connection configuration information corresponding to the target local area network interface does not need to be modified, wherein the second preset condition is that the network connection mode of the optical network unit is a bridge mode and the VLAN message forwarding mode is a transparent transmission mode.
In an embodiment of the present disclosure, the configuration information confirmation module 603 is further configured to modify a VLAN identifier carried in the WAN connection configuration information into a target VLAN identifier if a network connection mode of the optical network unit is a bridge mode and a VLAN packet forwarding mode is a rewrite mode; if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a transparent transmission mode, changing the VLAN message forwarding mode into a rewriting mode and adding the target VLAN identifier into WAN connection configuration information; and if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode, modifying the VLAN identifier carried in the WAN connection configuration information into a target VLAN identifier.
In an embodiment of the present disclosure, the configuration information modification module 604 is further configured to determine not to modify WAN connection configuration information corresponding to the target lan interface if the service packet does not carry the target VLAN identifier.
In an embodiment of the present disclosure, the configuration information modification module 604 is further configured to determine not to modify the WAN connection configuration information corresponding to the target lan interface if the WAN connection configuration information meets a third preset condition, where the third preset condition at least includes any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a transparent transmission mode, the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a transparent transmission mode; if the WAN connection configuration meets a fourth preset condition, determining that the WAN connection configuration information corresponding to the target lan interface is not modified, and adding the VLAN identifier carried in the WAN connection configuration information to the service message, where the fourth preset condition includes: the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode.
Those skilled in the art will appreciate that the various aspects of the present disclosure may be implemented as a system, method, or program product. Accordingly, various aspects of the disclosure may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
Fig. 7 shows a block diagram of an electronic device in an embodiment of the disclosure. An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: the at least one processing unit 710, the at least one memory unit 720, and a bus 730 connecting the different system components, including the memory unit 720 and the processing unit 710.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps according to various exemplary embodiments of the present disclosure described in the above-described "exemplary methods" section of the present specification. For example, the processing unit 710 may perform the following steps of the method embodiment described above: acquiring a service message received by a target local area network interface on an optical network unit, wherein the target local area network interface is any local area network interface on the optical network unit; identifying whether the service message carries a target virtual local area network VLAN identifier, wherein the target VLAN identifier is used for identifying a target virtual local area network; if the service message carries the target VLAN identifier, determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target local area network interface prestored on the optical network unit.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 740 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 700, and/or any device (e.g., router, modem, etc.) that enables the electronic device 700 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. As shown, network adapter 760 communicates with other modules of electronic device 700 over bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
In particular, according to embodiments of the present disclosure, the process described above with reference to the flowcharts may be implemented as a computer program product comprising: and the computer program realizes the optical network message forwarding method when being executed by the processor.
In some possible implementations, various aspects of the disclosure may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the disclosure as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
More specific examples of the computer readable storage medium in the present disclosure may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In this disclosure, a computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Alternatively, the program code embodied on a computer readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In particular implementations, the program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
Furthermore, although the steps of the methods in the present disclosure are depicted in a particular order in the drawings, this does not require or imply that the steps must be performed in that particular order or that all illustrated steps be performed in order to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step to perform, and/or one step decomposed into multiple steps to perform, etc.
From the description of the above embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, including several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (11)

1. The optical network message forwarding method is characterized by comprising the following steps:
acquiring a service message received by a target local area network interface on an optical network unit, wherein the target local area network interface is any local area network interface on the optical network unit;
identifying whether the service message carries a target virtual local area network VLAN identifier, wherein the target VLAN identifier is used for identifying a target virtual local area network;
if the service message carries the target VLAN identifier, determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target local area network interface stored in advance on the optical network unit.
2. The method for forwarding an optical network packet according to claim 1, wherein after determining WAN connection configuration information for forwarding a service packet carrying a destination VLAN identifier, the method further comprises:
determining whether the WAN connection configuration information corresponding to the target local area network interface needs to be modified according to the obtained WAN connection configuration information for forwarding the service message carrying the target VLAN identifier;
If the WAN connection configuration information corresponding to the target local area network interface is determined to be required to be modified, the WAN connection configuration information corresponding to the target local area network interface is modified, so that the optical network unit forwards the service message carrying the target VLAN identifier according to the modified WAN connection configuration information.
3. The method for forwarding an optical network packet according to claim 2, wherein the WAN connection configuration information includes: the network connection mode of the optical network unit and the VLAN message forwarding mode include: a bridge mode or a route mode, wherein the VLAN packet forwarding mode includes: the system comprises a transparent transmission mode and a rewriting mode, wherein the transparent transmission mode is a VLAN message forwarding mode in which VLAN identification is not carried in WAN connection configuration information, and the rewriting mode is a VLAN message forwarding mode in which VLAN identification is carried in the WAN connection configuration information.
4. The method for forwarding an optical network packet according to claim 3, wherein determining whether modification of WAN connection configuration information corresponding to the target lan interface is required according to the obtained WAN connection configuration information for forwarding a service packet carrying a target VLAN identifier, includes:
If the WAN connection configuration information meets a first preset condition, modifying the WAN connection configuration information corresponding to the target lan interface, where the first preset condition includes any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, the VLAN message forwarding mode is a transparent transmission mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a rewriting mode;
if the WAN connection configuration information meets a second preset condition, the WAN connection configuration information corresponding to the target local area network interface is not required to be modified, wherein the second preset condition is that the network connection mode of the optical network unit is a bridging mode and the VLAN message forwarding mode is a transparent transmission mode.
5. The method for forwarding an optical network packet according to claim 4, wherein if the WAN connection configuration information satisfies a first preset condition, modifying the WAN connection configuration information corresponding to the target lan interface is required, including:
if the network connection mode of the optical network unit is a bridge mode and the VLAN message forwarding mode is a rewrite mode, modifying the VLAN identifier carried in the WAN connection configuration information into the target VLAN identifier;
If the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a transparent transmission mode, changing the VLAN message forwarding mode into a rewriting mode, and adding the target VLAN identifier into the WAN connection configuration information;
and if the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode, modifying the VLAN identifier carried in the WAN connection configuration information into the target VLAN identifier.
6. The method for forwarding an optical network packet according to claim 3, wherein after identifying whether the service packet carries a target VLAN identifier, the method further comprises:
and if the service message does not carry the VLAN identifier of the target virtual local area network, determining not to modify WAN connection configuration information corresponding to the target local area network interface.
7. The method for forwarding an optical network packet according to claim 6, wherein the determining that the WAN connection configuration information corresponding to the target lan interface is not modified includes:
if the WAN connection configuration information meets a third preset condition, determining that the WAN connection configuration information corresponding to the target lan interface is not modified, wherein the third preset condition at least comprises any one of the following: the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a transparent transmission mode, the network connection mode of the optical network unit is a bridging mode, the VLAN message forwarding mode is a rewriting mode, the network connection mode of the optical network unit is a routing mode, and the VLAN message forwarding mode is a transparent transmission mode;
If the WAN connection configuration meets a fourth preset condition, determining that the WAN connection configuration information corresponding to the target lan interface is not modified, and adding the VLAN identifier carried in the WAN connection configuration information to the service packet, where the fourth preset condition includes: the network connection mode of the optical network unit is a routing mode and the VLAN message forwarding mode is a rewriting mode.
8. An optical network unit, comprising: at least one local area network interface, VLAN identification identifying and modifying device and wide area network interface;
the local area network interface is used for acquiring a service message received by a target local area network interface on the optical network unit;
the VLAN identifier identifying and modifying device is used for identifying whether the service message carries a target VLAN identifier, if the service message carries the target VLAN identifier, determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target LAN interface prestored on the optical network unit;
the wide area network interface is used for forwarding the service message carrying the target VLAN identifier.
9. An optical network message forwarding device, comprising:
the system comprises a service message acquisition module, a service message generation module and a service message generation module, wherein the service message acquisition module is used for acquiring a service message received by a target local area network interface on an optical network unit, wherein the target local area network interface is any local area network interface on the optical network unit;
the VLAN identification identifying module is used for identifying whether the service message carries a target VLAN identification, wherein the target VLAN identification is used for identifying a target VLAN;
and the configuration information confirmation module is used for determining WAN connection configuration information for forwarding the service message carrying the target VLAN identifier according to the target VLAN identifier carried by the service message and WAN connection configuration information corresponding to the target local area network interface prestored on the optical network unit if the service message carries the target VLAN identifier.
10. An electronic device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to perform the optical network packet forwarding method of any of claims 1-7 via execution of the executable instructions.
11. A computer readable storage medium having stored thereon a computer program, wherein the computer program when executed by a processor implements the optical network message forwarding method of any of claims 1 to 7.
CN202410053372.4A 2024-01-12 2024-01-12 Optical network message forwarding method and device, optical network unit, equipment and medium Pending CN117714916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410053372.4A CN117714916A (en) 2024-01-12 2024-01-12 Optical network message forwarding method and device, optical network unit, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410053372.4A CN117714916A (en) 2024-01-12 2024-01-12 Optical network message forwarding method and device, optical network unit, equipment and medium

Publications (1)

Publication Number Publication Date
CN117714916A true CN117714916A (en) 2024-03-15

Family

ID=90157203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410053372.4A Pending CN117714916A (en) 2024-01-12 2024-01-12 Optical network message forwarding method and device, optical network unit, equipment and medium

Country Status (1)

Country Link
CN (1) CN117714916A (en)

Similar Documents

Publication Publication Date Title
CN109088820B (en) Cross-device link aggregation method and device, computing device and storage medium
CN111181758B (en) Configuration file generation method and device
CN112511416A (en) Rule-based data communication protocol conversion system, decoding method and encoding method
CN102959910A (en) Notifying a controller of a change to a packet forwarding configuration of a network element over a communication channel
CN106576074A (en) Routing rule acquisition method, device and system
CN114244906B (en) Data traffic distribution method, device, equipment and medium
CN110177010B (en) Link switching method and device
CN110557281B (en) Intelligent operation and maintenance method and device based on CMDB and alarm map
CN104753804A (en) Data stream transmission control method, device and system
CN117714916A (en) Optical network message forwarding method and device, optical network unit, equipment and medium
CN111510384B (en) Method, electronic device and computer-readable medium for processing data generated by a service
CN115941392A (en) Method, electronic equipment and computer readable medium for realizing interconnection and intercommunication
CN112865999B (en) Information processing method and related equipment
US8130765B2 (en) Method for processing data packets while communicating with a machine via one or more secondary networks
CN110266597B (en) Flow control method, device, equipment and storage medium
CN116074159B (en) Method and device for realizing service isolation based on equipment mapping table in industrial PON system
CN114338525B (en) Automatic route aggregation method and device, electronic equipment and storage medium
CN115297529B (en) Private network access method and device, storage medium and electronic equipment
CN114697774B (en) Port management method and device, computer readable storage medium and electronic equipment
CN115277309A (en) Message forwarding method and device, storage medium and electronic equipment
CN115914068A (en) Network communication method, device, electronic equipment and computer readable storage medium
CN116155789A (en) Message transmission method, device, electronic equipment and computer readable storage medium
CN117997974A (en) Serial port communication method and related equipment
CN115766557A (en) Routing system, table item generation method of session maintenance table and related device
CN116896513A (en) Network quality assurance method and device, storage medium and electronic equipment

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